The LaTeX command for overbrace (x) is \overbrace{x}^{n} (overbrace with label).
\overbrace{x}^{n}Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.
Write \overbrace{x}^{n} inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.
\overbrace{x}^{n} is a math accent: it takes an argument and only works in math mode, while text accents such as \'e are separate commands. With unicode-math under XeLaTeX or LuaLaTeX, typing x in a formula gives the same symbol.
Open this example in the live preview: it renders as you type, with no compiler and no signup.
\widehat{xy}\widetilde{xy}\underline{x}\hat{x}\tilde{x}\bar{x}\overline{x}\underbrace{x}_{n}\vec{x}\dot{x}\ddot{x}\acute{x}\grave{x}\check{x}Math accents in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \overbrace{x}^{n} in math mode; it needs no extra package. For example, $\overbrace{x}^{n}$.
None: \overbrace{x}^{n} is built into LaTeX, so no extra package is required.