Introduction

Welcome to the final lesson of Advanced Math Notation! Across the previous five lessons, you have added accents and diacritics to symbols, auto-sized delimiters around tall expressions, combined notation elements into layered formulas, typeset big operators with limits, and created numbered display equations with labels and cross-references. That toolkit already covers a wide range of mathematical writing needs.

There is one common scenario it does not yet handle, though: multi-line derivations. In the last lesson, the equation environment gave us numbered single-line formulas. This lesson introduces the align environment, which lets us stack multiple related lines with precise alignment, controlled line breaks, selective numbering, and explanatory text annotations — everything we need to typeset step-by-step mathematical arguments.

When One Line Is Not Enough

Mathematical reasoning rarely fits on a single line. When we solve an equation, simplify an expression, or develop a proof, the work naturally unfolds as a chain of steps. On a whiteboard or in a notebook, we instinctively stack those steps so the equals signs line up vertically, making it easy to scan downward and follow the logic.

Published textbooks and journal articles follow the same convention. A neatly aligned column of equals signs signals to the reader that each line transforms the previous one, while the left-hand and right-hand sides stay easy to compare. Without that alignment, even a straightforward three-step derivation can look cluttered and hard to follow.

The align environment brings this convention into LaTeX. It handles vertical alignment, spacing, centering, and numbering automatically, so we can focus on the mathematics rather than manual formatting.

The align Environment
Suppressing Numbers with \nonumber
Adding Text Annotations with \text{}
Building a Complete Derivation
Conclusion and Next Steps

In this lesson, we explored the align environment and the tools that make it work: & for alignment points, \\ for line breaks, \nonumber for suppressing numbers on selected lines, align* for fully unnumbered blocks, and \text{} for adding explanatory annotations. Combined with the labeling and cross-referencing workflow from the previous lesson, these features give us everything we need to typeset clean, publication-ready multi-line derivations.

This wraps up the entire Advanced Math Notation course! From math accents in lesson one to fully aligned, annotated equation arrays here in lesson six, you now have a comprehensive LaTeX math typesetting toolkit. Head into the practice exercises to craft multi-line derivations of your own — the kind that would look right at home in a published paper.

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal