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 , , with the positive x, y, z axes. The direction cosines are:
Consider a unit vector along the line. Its components along the axes are exactly its projections:
Since is a unit vector:
This is the key constraint: Direction cosines are never independent — fixing two determines the third (up to sign).
Angles , , are not arbitrary: For example, gives , so . One cannot have since .
Two direction cosine sets per line: A line has two directions (forward and backward). If are the DCs of one direction, are the DCs of the other. Both satisfy .