Underbrace in LaTeX (\underbrace{x+y}_{\text{sum}})

x+y⏟sum\underbrace{x+y}_{\text{sum}}
LaTeX command
\underbrace{x+y}_{\text{sum}}
Package
Add to your preamble:\usepackage{amsmath}
Mode
Math mode only

Where it is used

Puts a curly brace under an expression, with a label set through a subscript beneath it.

Textbooks use \underbrace to explain pieces of an equation, such as marking \underbrace{\frac{1}{2}mv^2}_{\text{kinetic}} in an energy balance or counting terms in a product. The label goes in a subscript right after the command; use \text for words and \scriptstyle content for short math. The brace stretches to the exact width of its argument. Nested or overlapping braces need care: you can underbrace part of an expression that is already overbraced, but braces cannot cross each other. Like \overbrace, it is best in display math.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

E=12mv2⏟kinetic+mghE = \underbrace{\tfrac{1}{2} m v^2}_{\text{kinetic}} + mgh
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Underbrace: $\underbrace{x+y}_{\text{sum}}$

\[ E = \underbrace{\tfrac{1}{2} m v^2}_{\text{kinetic}} + mgh \]
\end{document}

Related symbols

All 악센트 및 수정자 →

Frequently asked questions

How do I write Underbrace in LaTeX?
Type \underbrace{x+y}_{\text{sum}} in math mode, for example $E = \underbrace{\tfrac{1}{2} m v^2}_{\text{kinetic}} + mgh$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \underbrace{x+y}_{\text{sum}}?
\underbrace{x+y}_{\text{sum}} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \underbrace{x+y}_{\text{sum}} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\underbrace{x+y}_{\text{sum}}$ in running text.
Math poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기