Introduction

Welcome back to Advanced Math Notation! In the first lesson of this course, you learned how small accent marks like hats, bars, and arrows can change the meaning of a mathematical symbol. Now, in this second lesson, we shift from the tiny to the tall and explore a feature that makes a dramatic visual difference in your formulas: auto-sizing delimiters.

Parentheses, brackets, and braces are everywhere in mathematics, but they do not always look right at their default size. When the content inside them grows — as with fractions or stacked expressions — fixed-size delimiters can look awkwardly small. In this lesson, you will learn how to use \left and \right to make delimiters scale automatically to match their contents. You will also discover what to do when only one side of a delimiter pair should be visible, using the handy dot notation.

When Fixed-Size Delimiters Fall Short

Writing parentheses in math mode is as simple as typing ( and ). For short expressions like (a+b)(a + b), this works perfectly — the parentheses and the content are roughly the same height, so everything looks balanced.

The trouble appears when the enclosed content is tall. Consider placing a fraction inside plain parentheses:

(ab)(\frac{a}{b})
The \left and \right Commands

The solution is straightforward: prefix the opening delimiter with \left and the closing delimiter with \right. LaTeX then measures the height of everything between them and scales both delimiters to match. Here is the pattern applied to our earlier fraction:

This produces:

(ab)\left( \frac{a}{b} \right)

Notice how the parentheses now stretch to cover the full height of the fraction. The result looks polished and professional — exactly what you would see in a published textbook. Two essential rules govern every use of these commands:

  • Every \left must have a matching \right within the same math environment. Missing one side will cause a compilation error.
Supported Delimiter Types

Auto-sizing is not limited to parentheses. The \left and \right commands work with all of the common delimiter types shown below:

LaTeX codeOutputName
\left( ... \right)( )Parentheses
\left[ ... \right][ ]Square brackets
\left\{ ... \right\}{ }Curly braces
\left| ... \right|| |Vertical bars (absolute value)
\left\| ... \right\|‖ ‖Double vertical bars (norm)
Grid showing each supported auto-sized delimiter type wrapped around a tall fraction

Notice that curly braces require a backslash before each brace character (\{ and \}), because plain { and } already serve as grouping characters in LaTeX. All other delimiters are typed directly after \left or \right.

Invisible Delimiters with Dot Notation

So far, every example has had a visible delimiter on both sides. But sometimes mathematics calls for a visible delimiter on only one side. A classic example is the evaluation bar used when computing a definite integral. After finding an antiderivative F(x)F(x), you write it with a vertical bar on the right and the evaluation bounds as a subscript:

F(x)x=a\left. F(x) \right|_{x=a}

Here, the right side has a vertical bar, but the left side has no visible delimiter. Since every must be paired with a , LaTeX provides the () as an . Writing satisfies the pairing rule without drawing anything on the page. The code for the expression above is:

Nesting Auto-Sized Delimiters

Real-world formulas in physics, statistics, and engineering often require several layers of delimiters. The good news is that each \left/\right pair scales independently based on its own contents, so nesting works naturally. Consider an expression with parentheses inside square brackets:

This renders as:

[(ab)+c]\left[ \left( \frac{a}{b} \right) + c \right]
Conclusion and Next Steps

In this lesson, you learned how \left and \right make delimiters scale automatically to match tall content. We explored the most common delimiter types that support auto-sizing, discovered how the dot notation handles unpaired delimiters, and saw how nested delimiter pairs each scale independently to keep complex expressions readable.

Up next, you will put all of this into practice by writing and compiling real LaTeX expressions. You will compare fixed and auto-sized delimiters side by side, experiment with different bracket types, craft an unpaired delimiter using dot notation, and build a nested expression with multiple scaling layers — jump in and see the difference auto-sizing makes!

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