How to write a hat(^) symbol in LaTeX?

Hat is a mathematical notation used in various branches of mathematics and science. Also, the hat symbol is used in languages. In that case, the hat symbol is usually called a circumflex symbol.

In latex, the hat symbol is used separately in both text and math modes.

Properties Value
Symbol Hat
Argument Yes, a
Command \hat
Example
\hat{a} a hat

Hat symbol in math mode

To use the hat symbol in math mode, you need to use the latex hat command.

\documentclass{article}
\begin{document} 
   $$\hat{a}$$
   $$\hat{i},\hat{j},\hat{k}$$
\end{document}

Output :

latex hat symbol

If you look at the program above, you will understand that for Math mode in Latex, you have to use $$…$$ or \[…\] on both sides of the expression.

You can easily solve the above problem using physics package. Because in physics, the hat symbol is used to denote the unit vector. And you need to use \vu command to define this unit vector.

\documentclass{article}
\begin{document} 
   $$\vu{a}$$
   $$\vu*{a}$$
\end{document}

Output :

a hat symbol
a hat symbol

If you look at the output above, you will notice that the * symbol is used with the \vu command for the Greek and Italic style.

If you want to use hat symbols on more than one character, you need to use the \widehat{} command instead of the \hat{} command.

\documentclass{article}
\begin{document}
   $$ \hat{abc} $$
   $$ \widehat{abc} $$
\end{document}

Output :

Circumflex - abc

If you look at the output above, you can see the difference between the two symbols.

Hat symbol in text mode

This Circumflex symbol is used to write the letters of different mother tongues. For this, you need to use inline \^{ } command.

\documentclass{article}
\begin{document}
   Circumflex-\^{o},\^{a}
\end{document}

Output :

Circumflex-ô,â

One request!

Don't forget to share this tutorial if I have added any value to your education life with this tutorial.

facebook icontwitter iconwhatsapp iconlinkdin icon

Leave a Comment

Your email address will not be published. Required fields are marked *