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}Unit vectors
\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}Arrow over several letters
\overrightarrow{AB}Common mistakes
- \vec{AB} for a segment: the arrow covers only one letter. Over two letters use \overrightarrow.
- Using * or x as the cross product instead of \times.
See also
Don't want to memorize commands?
Draw a formula or paste a screenshot, and CamteX turns it into ready LaTeX.