Porisma

Relate a direction to the positive coordinate axes

Use unit-axis vectors and preserve component signs.

Relate a direction to the positive coordinate axes

For a nonzero vector, compare its direction with each positive coordinate axis. Divide each signed component by the vector length, then take inverse cosine if an angle is requested. A negative component gives an obtuse angle to that positive axis.

The positive x-, y- and z-axes are represented by the unit columns

i=(100),j=(010),k=(001).\mathbf i=\begin{pmatrix}1\\0\\0\end{pmatrix},\qquad\mathbf j=\begin{pmatrix}0\\1\\0\end{pmatrix},\qquad\mathbf k=\begin{pmatrix}0\\0\\1\end{pmatrix}.

An angle to an axis is therefore another angle between vectors. For a nonzero v=(v1,v2,v3)\mathbf v=(v_1,v_2,v_3) making angles θ,ϕ,ω\theta,\phi,\omega with the positive axes,

cos⁡θ=v⋅i∣v∣∣i∣=v1∣v∣,cos⁡ϕ=v2∣v∣,cos⁡ω=v3∣v∣.\cos\theta=\frac{\mathbf v\cdot\mathbf i}{|\mathbf v||\mathbf i|}=\frac{v_1}{|\mathbf v|},\qquad \cos\phi=\frac{v_2}{|\mathbf v|},\qquad\cos\omega=\frac{v_3}{|\mathbf v|}.

These are directional cosines; their squares sum to one. Example 14 works through all three unit-column substitutions for OA→=(1,4,7)\overrightarrow{OA}=(1,4,7), giving 1/66,4/66,7/661/\sqrt{66},4/\sqrt{66},7/\sqrt{66} and the squared sum (1+16+49)/66=1(1+16+49)/66=1. Keep signs when a component is negative.

Check why the squared cosines sum to one

Appendix A gives the general proof. Write a=axi+ayj+azk≠0\mathbf a=a_x\mathbf i+a_y\mathbf j+a_z\mathbf k\ne\mathbf0. For each positive coordinate axis,

a⋅i=∣a∣∣i∣cos⁡θx,cos⁡θx=a⋅i∣a∣∣i∣=ax∣a∣,a⋅j=∣a∣∣j∣cos⁡θy,cos⁡θy=a⋅j∣a∣∣j∣=ay∣a∣,a⋅k=∣a∣∣k∣cos⁡θz,cos⁡θz=a⋅k∣a∣∣k∣=az∣a∣.\begin{aligned} \mathbf a\cdot\mathbf i&=|\mathbf a||\mathbf i|\cos\theta_x,&\cos\theta_x&=\frac{\mathbf a\cdot\mathbf i}{|\mathbf a||\mathbf i|}=\frac{a_x}{|\mathbf a|},\\ \mathbf a\cdot\mathbf j&=|\mathbf a||\mathbf j|\cos\theta_y,&\cos\theta_y&=\frac{\mathbf a\cdot\mathbf j}{|\mathbf a||\mathbf j|}=\frac{a_y}{|\mathbf a|},\\ \mathbf a\cdot\mathbf k&=|\mathbf a||\mathbf k|\cos\theta_z,&\cos\theta_z&=\frac{\mathbf a\cdot\mathbf k}{|\mathbf a||\mathbf k|}=\frac{a_z}{|\mathbf a|}. \end{aligned}

Consequently,

cos⁡2θx+cos⁡2θy+cos⁡2θz=ax2∣a∣2+ay2∣a∣2+az2∣a∣2=ax2+ay2+az2∣a∣2=ax2+ay2+az2(ax2+ay2+az2)2=1.\begin{aligned} \cos^2\theta_x+\cos^2\theta_y+\cos^2\theta_z &=\frac{a_x^2}{|\mathbf a|^2}+\frac{a_y^2}{|\mathbf a|^2}+\frac{a_z^2}{|\mathbf a|^2}\\ &=\frac{a_x^2+a_y^2+a_z^2}{|\mathbf a|^2}\\ &=\frac{a_x^2+a_y^2+a_z^2}{(\sqrt{a_x^2+a_y^2+a_z^2})^2}=1. \end{aligned}

A zero vector has no direction angles, so this division requires ∣a∣>0|\mathbf a|>0. Angles are measured to the positive axes, not to whichever orientation gives the smaller angle.

Diagrams for this unit

Open 1 diagram

Try these examples

Open an example in chapter practice. Try it first, then read its solution. Use “Learn this step” to return to this unit.