When a line makes angles α, β, and γ with the positive directions of the x, y, and z axes, the values cosα, cosβ, and cosγ are called direction cosines.
For any line in 3D space:
cos2α+cos2β+cos2γ=1
The double angle formula states:
cos2θ=2cos2θ−1
Applying this to each angle:
cos2α=2cos2α−1
cos2β=2cos2β−1
cos2γ=2cos2γ−1
Adding the three expressions:
cos2α+cos2β+cos2γ
=(2cos2α−1)+(2cos2β−1)+(2cos2γ−1)
=2cos2α+2cos2β+2cos2γ−3
=2(cos2α+cos2β+cos2γ)−3
Using the property of direction cosines:
=2(1)−3
=−1
Therefore, cos2α+cos2β+cos2γ=−1