MathorynMathematical Formula Database

Vectors

Direction Cosines

The direction cosines are the cosines of the angles a vector makes with the coordinate axes; they are the components of its unit vector, so their squares add up to 11. They are used to describe orientations in 3D geometry.

cos⁡α=a1∥a∥, cos⁡β=a2∥a∥, cos⁡γ=a3∥a∥,cos⁡2α+cos⁡2β+cos⁡2γ=1\cos\alpha=\frac{a_1}{\|\mathbf a\|},\ \cos\beta=\frac{a_2}{\|\mathbf a\|},\ \cos\gamma=\frac{a_3}{\|\mathbf a\|},\qquad \cos^2\alpha+\cos^2\beta+\cos^2\gamma=1
LaTeX\cos\alpha=\frac{a_1}{\|\mathbf a\|},\ \cos\beta=\frac{a_2}{\|\mathbf a\|},\ \cos\gamma=\frac{a_3}{\|\mathbf a\|},\qquad \cos^2\alpha+\cos^2\beta+\cos^2\gamma=1

Variables

α, β, γ\alpha,\ \beta,\ \gamma
angles with the x-, y- and z-axes
a\mathbf a
nonzero vector (a₁, a₂, a₃)

Example

Find the direction cosines of (2,3,6)(2,3,6).

  1. ∥a∥=4+9+36=7\|\mathbf a\|=\sqrt{4+9+36}=7.
  2. cos⁡α=27, cos⁡β=37, cos⁡γ=67\cos\alpha=\frac27,\ \cos\beta=\frac37,\ \cos\gamma=\frac67.

Answer: 27, 37, 67\frac27,\ \frac37,\ \frac67; squares sum to 4949=1\frac{49}{49}=1.

Related formulas