How to write multi lined equations using the align environment

This is video #17 in a series of twenty one by Dr Vincent Knight of Cardiff University.

In large equations or derivations which span multiple lines, we can use the \begin{align} and \end{align} commands to correctly display the aligned mathematics. Here we use the ampersand (&) command to ensure the equations always line up as desired. We also see how to use the \nonumber command to remove the equation number from intermediate steps in the equation if required.

The example given in the video is also provided here as a template. To get started, simply open the 'Aligned mathematics' example (opens in a new tab/window), and use the online Overleaf (formerly writeLaTeX) editor to try it for yourself.

See the full list of tutorial videos.