Academy
Formulas/maths/3d Geometry/Fundamental Relation of Direction Cosines

Fundamental Relation of Direction Cosines

If a line makes angles α, β, γ with the positive x, y, z axes respectively, the direction cosines are l = cos α, m = cos β, n = cos γ, and they always satisfy l²+m²+n²=1.
Derivation

Let a line make angles α\alpha, β\beta, γ\gamma with the positive x, y, z axes. The direction cosines are:

l=cosα,m=cosβ,n=cosγl = \cos\alpha, \quad m = \cos\beta, \quad n = \cos\gamma

Consider a unit vector u^\hat{u} along the line. Its components along the axes are exactly its projections:

u^=(l,m,n)=(cosα,cosβ,cosγ)\hat{u} = (l, m, n) = (\cos\alpha, \cos\beta, \cos\gamma)

Since u^\hat{u} is a unit vector:

u^2=l2+m2+n2=1|\hat{u}|^2 = l^2+m^2+n^2 = 1

This is the key constraint: Direction cosines are never independent — fixing two determines the third (up to sign).

Angles α\alpha, β\beta, γ\gamma are not arbitrary: For example, α=β=γ\alpha = \beta = \gamma gives cosα=1/3\cos\alpha = 1/\sqrt{3}, so α=β=γ54.7°\alpha = \beta = \gamma \approx 54.7°. One cannot have α=β=γ=45°\alpha = \beta = \gamma = 45° since 3cos2(45°)=3/213\cos^2(45°) = 3/2 \neq 1.

Two direction cosine sets per line: A line has two directions (forward and backward). If (l,m,n)(l, m, n) are the DCs of one direction, (l,m,n)(-l, -m, -n) are the DCs of the other. Both satisfy l2+m2+n2=1l^2+m^2+n^2=1.