\overbrace{AB}

The \overbrace command in LaTeX is used to create a horizontal brace over a mathematical expression. This is often used to visually group terms or to indicate that a certain part of an equation is being considered as a whole. It is particularly useful in educational materials to highlight or emphasize specific parts of an equation or expression.

Examples

Illustrates the sum of terms a, b, and c with a descriptive label.

\overbrace{a + b + c}^{\text{Sum of terms}}

Combines overbrace and underbrace to differentiate parts of an expression.

\overbrace{\underbrace{x}_\text{variable} + \underbrace{y}_\text{constant}}^{\text{Expression}}

Indicates that AB represents a distance or a specific measurement.

\overbrace{AB}^{\text{Distance}}