Master complex mathematical equations in LaTeX. Learn multi-line equations, alignment, numbering, and advanced equation environments.
$...$
and \[...\]
). See our Mathematics Basics guide if needed.Related topics: Mathematical symbols | Text formatting in math | Cross-referencing equations\[ E = mc^2 \]
→ E = mc² (centered display)\begin{equation} E = mc^2 \end{equation}
→ E = mc² (numbered equation)2x + 3y | = | 7 | (3) |
5x - 2y | = | 4 | (4) |
eqnarray
is deprecated. Use align
instead. Shown here for reference only.\,
before differentials in integralssubequations
for related equations(x + y)² | = | (x + y)(x + y) | (8) |
= | x(x + y) + y(x + y) | (9) | |
= | x² + xy + yx + y² | (10) | |
= | x² + 2xy + y² | (11) |
Environment | Purpose | Numbering |
---|---|---|
equation | Single equation | Yes |
equation* | Single equation | No |
align | Multiple aligned equations | Yes (each) |
align* | Multiple aligned equations | No |
split | Split long equation | One number |
multline | Very long equation | One number |
gather | Centered equations | Yes (each) |
cases | Piecewise functions | Within equation |