Maths accents are semantic marks, not decoration: a hat means an estimate, a bar a mean, a dot a time derivative. Two technical facts decide whether they look right — accents do not stretch, and some base symbols refuse the mark entirely. Which mark belongs to which meaning is the territory of Statistics Notation and Vectors; how marks compose with superscripts is Sub & Sup.
Which one to use
\hat{x}\bar{x}\overline for long names.\dot{x}, \ddot{x}\vec{v}\widehat{ABC}, \widetilde{ABC}\text{}The commands
\hat{\theta}
\bar{x}
\overline{AB}
\vec{v} \quad \overrightarrow{PQ}
\tilde{y} \quad \widetilde{MM}
\ddot. \dot{x}
\ddot{\theta}
\check{a} \quad \grave{b} \quad \acute{c}
^{\circ} \quad f'
\underline{\phantom{abc}}
Worked examples
Estimator versus parameter
\hat{p} = \frac{x}{n}, \qquad p = P(X=1)
The hat is doing real work: it separates the quantity you computed from the truth you are estimating.
Kinematics dots
\dot{s} = v, \qquad \ddot{s} = a
Newtonian notation for time derivatives, compact enough to survive inside a multi-line derivation.
Accent on a subscripted base
\hat{\beta}_1
The accent binds to the symbol, the subscript to the accented whole. Writing \beta_1^{\hat{}} gets the hierarchy backwards.
Wide versus narrow
\hat{\theta} \quad \widehat{\theta \phi}
A small hat over two symbols looks like it belongs to the first one; the wide form spreads the cover.
Common mistakes
- Stacking two accents on the same symbol, e.g.
\bar{\hat{x}}. KaTeX and TeX both shift one mark aside awkwardly; rename the symbol instead. - Applying
\mathbf{\alpha}thinking it is an accent-adjacent style command. Bold Greek needs\boldsymbol{\alpha}; the plain bold command skips Greek entirely. - Using
\hat{i}for the imaginary unit. It is a legitimate reading of some texts, but\mathrm{i}avoids colliding with the unit-vector convention. - Writing
\tilde{a}when you meanta \approx b. The tilde accent marks a modified object; the tilde relation means approximately equal or similar.
Questions about this notation
What is the difference between \hat and \widehat?
\hat places a small circumflex sized for one glyph; \widehat stretches to cover whatever is in the braces. Use the wide form for multi-character bases such as \widehat{ABC}.Why does my accent float too high?
Can I put an accent over a word?
\overbrace{\text{word}}^{\text{note}} instead, which is designed for spanning material.How do I write dot notation for a time derivative?
\dot{x} is the first derivative and \ddot{x} the second; both take exactly one argument and both need maths mode. For a third derivative amsmath provides \dddot{x}, and beyond that x^{\prime\prime\prime} reads better than a fourth dot. Accents over a multi-letter label want the wide forms — \overrightarrow{AB}, \widehat{AB} — because \hat{AB} squeezes a small hat over two letters.Keep reading
Three ways into the same idea: the notation itself, the lesson that teaches it, and an article that applies it.