The align environment is used for two or more equations when vertical alignment is desired; usually binary relations such as equal signs are aligned.

American Mathematical Society, User's Guide for the amsmath Package

Introduction to align Edit

For all intents and purposes, the align environment is a replacement for the eqnarray environment and all its warts. Rather than

x^2 + y^2 &=& 1 \\
y &=& \sqrt{1 - x^2},

one can type

x^2 + y^2 &= 1 \\
y &= \sqrt{1 - x^2}.

Benefits over eqnarray Edit

Besides the slightly simpler syntax, you side-step bugs documented by Lars Madsen for The PracTeX Journal, such as

  • inconsistent spacing around binary symbols,
  • overwriting equation numbers, and
  • silent label mismatch.

Multiple equations on one line Edit

Besides being used for aligning binary symbols, the ampersand can also mark an invisible alignment for separating columns of equations. For example,

    u  &= \arctan x             &  dv &= 1 \, dx  \\ 
    du &= \frac{1}{1 + x^2} dx  &  v  &= x.


 u &= \arctan x & dv &= 1 \, dx
 \\ du &= \frac{1}{1 + x^2} dx & v &= x.

Preamble Edit

To use align, import the amsmath package in your preamble.


    u  &= \(\frac{1}{x}\cdot x\)\cdot y             &  dv &= 1 \, dx  \\ 
    du &= \frac{1}{1 + x^2} dx  &  v  &= x.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.