## LaTeX forum ⇒ Math & Science ⇒ Caret/circumflex in equation environment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
aerodinamika
Posts: 7
Joined: Tue Nov 10, 2020 9:51 am

### Caret/circumflex in equation environment

Hello all,

I am having trouble writing a circumflex above some letters in environment.
I tried to use \^{} as you can see. However, for some variables in the equation, like matrix A, the syntax works. But for the vector b, the output is an offset circumflex. For vector c it works, and for d it returns an error.

\begin{equation}    \displaystyle \frac{d\boldsymbol{\mbox{x}}}{dt} = \text{\^{A}}\boldsymbol{\mbox{x}} + \boldsymbol{\mbox{\^{b}}} x_{u}\end{equation}\begin{equation}    x_{i} = \boldsymbol{\mbox{\^{c}}}\boldsymbol{\mbox{x}} + \^{d}x_{u}\end{equation}

I also get a an error saying I should use \mathaccents in math mode, but I am not in math mode.
Any reason as to why I am getting inconsistent output using the same syntax?
Attachments
Screenshot_1.png (4.62 KiB) Viewed 50 times

aerodinamika
Posts: 7
Joined: Tue Nov 10, 2020 9:51 am
I figured it out. The offset appears to be an offset since the letter b is wide, so it is really centered.
With the use of \hat before \boldsymbol{\mbox{x}} the issue seems to be solved.

Hope this helps someone in their future endeavors.