CamteX
All guides

Vector in LaTeX

A vector with an arrow is written as \vec{v}. University textbooks more often use bold, \mathbf{v}. Pick one convention and stick with it throughout the document.

Arrow and bold

\vec{F} = m\vec{a} \qquad \mathbf{F} = m\mathbf{a}
F=maF=ma\vec{F} = m\vec{a} \qquad \mathbf{F} = m\mathbf{a}

Unit vectors

\hat{\imath}, \hat{\jmath}, \hat{k}
ı^,ȷ^,k^\hat{\imath}, \hat{\jmath}, \hat{k}

Dot and cross product

\vec{a} \cdot \vec{b} = |\vec{a}||\vec{b}|\cos\alpha, \quad \vec{a} \times \vec{b}
ab=abcosα,a×b\vec{a} \cdot \vec{b} = |\vec{a}||\vec{b}|\cos\alpha, \quad \vec{a} \times \vec{b}

Arrow over several letters

\overrightarrow{AB}
AB\overrightarrow{AB}

Common mistakes

See also

Don't want to memorize commands?

Draw a formula or paste a screenshot, and CamteX turns it into ready LaTeX.

Try it free