Math & ScienceCaret/circumflex in equation environment

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

Caret/circumflex in equation environment

Post by aerodinamika »

Hello all,

I am having trouble writing a circumflex above some letters in \begin{equation} 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.

Code: Select all

\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
Screenshot_1.png (4.62 KiB) Viewed 3952 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

aerodinamika
Posts: 7
Joined: Tue Nov 10, 2020 9:51 am

Caret/circumflex in equation environment

Post by aerodinamika »

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.
Post Reply