What this lesson covers

Direction cosines make it easy to measure how much of a segment lies along a given line, its projection. This lesson defines projection, gives its length on a line, the axes and the coordinate planes, finds areas of triangles and quadrilaterals in space, and ends with standard results about cubes and boxes.

Projection of a segment on a line

Let AA and BB be two points and l=PQ→l = \overrightarrow{PQ} a directed line. Drop perpendiculars from AA and BB to the line, meeting it at MM and NN. Through AA draw a line parallel to PQPQ meeting BNBN at RR, so that ARNMARNM is a rectangle and AR=MNAR = MN. Let θ\theta be the angle that AB→\overrightarrow{AB} makes with PQ→\overrightarrow{PQ}, which is the angle BARBAR.

  • If θ\theta is acute, MNMN is the projection of ABAB on ll.
  • If θ\theta is obtuse, −MN-MN is the projection of ABAB on ll.
  • In both cases the projection of ABAB on ll is ABcos⁡θAB\cos\theta.

The length of the projection of the segment joining A(x1,y1,z1)A(x_1, y_1, z_1) and B(x2,y2,z2)B(x_2, y_2, z_2) on a line with d.c.'s (l,m,n)(l, m, n) is

∣l(x2−x1)+m(y2−y1)+n(z2−z1)∣.|l(x_2 - x_1) + m(y_2 - y_1) + n(z_2 - z_1)|.

This is ABcos⁡θAB\cos\theta written with coordinates: cos⁡θ\cos\theta is the sum of products of the d.c.'s of ABAB and of the line.

Projections on the axes and planes

The lengths of the projections of the segment ABAB on

  • the xx axis, yy axis and zz axis are ∣x2−x1∣|x_2 - x_1|, ∣y2−y1∣|y_2 - y_1| and ∣z2−z1∣|z_2 - z_1|;
  • the XYXY plane is (x2−x1)2+(y2−y1)2\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2};
  • the YZYZ plane is (y2−y1)2+(z2−z1)2\sqrt{(y_2 - y_1)^2 + (z_2 - z_1)^2};
  • the ZXZX plane is (z2−z1)2+(x2−x1)2\sqrt{(z_2 - z_1)^2 + (x_2 - x_1)^2}.

If d1,d2,d3d_1, d_2, d_3 are the projections of a segment of length dd on the coordinate axes, then d12+d22+d32=d2d_1^2 + d_2^2 + d_3^2 = d^2. If they are the projections on the coordinate planes, then d12+d22+d32=2d2d_1^2 + d_2^2 + d_3^2 = 2d^2, because each squared difference appears in two of the three plane projections.

Areas

If A(x1,y1,z1)A(x_1, y_1, z_1), B(x2,y2,z2)B(x_2, y_2, z_2), C(x3,y3,z3)C(x_3, y_3, z_3) are the vertices of triangle ABCABC, then

Area of △ABC=12∣AB→×AC→∣.\displaystyle \text{Area of } \triangle ABC = \frac{1}{2}\left|\overrightarrow{AB} \times \overrightarrow{AC}\right|.

For four points A,B,C,DA, B, C, D:

Area of parallelogram ABCD=12∣AC→×BD→∣=∣AB→×AD→∣,\displaystyle \text{Area of parallelogram } ABCD = \frac{1}{2}\left|\overrightarrow{AC} \times \overrightarrow{BD}\right| = \left|\overrightarrow{AB} \times \overrightarrow{AD}\right|,

Area of plane quadrilateral ABCD=12∣AC→×BD→∣.\displaystyle \text{Area of plane quadrilateral } ABCD = \frac{1}{2}\left|\overrightarrow{AC} \times \overrightarrow{BD}\right|.

The second formula uses the diagonals and works for any plane quadrilateral.

Some standard results

The d.c.'s of a line equally inclined to the coordinate axes are (±13,±13,±13)\displaystyle \left(\pm\tfrac{1}{\sqrt{3}}, \pm\tfrac{1}{\sqrt{3}}, \pm\tfrac{1}{\sqrt{3}}\right), since 3l2=13l^2 = 1.

In a cube, the angle between any two diagonals is cos⁡−1(13)\displaystyle \cos^{-1}\left(\tfrac{1}{3}\right), and the angle between a diagonal of the cube and a diagonal of a face is cos⁡−123\displaystyle \cos^{-1}\sqrt{\tfrac{2}{3}}. Taking the cube with edges along the axes, the diagonals have d.r.'s like (1,1,1)(1, 1, 1) and (−1,1,1)(-1, 1, 1), and a face diagonal has d.r.'s like (1,1,0)(1, 1, 0).

If a variable line in two adjacent positions has d.c.'s (l,m,n)(l, m, n) and (l+δl,m+δm,n+δn)(l + \delta l, m + \delta m, n + \delta n), and δθ\delta\theta is the small angle between the two positions, then

(δl)2+(δm)2+(δn)2=(δθ)2.(\delta l)^2 + (\delta m)^2 + (\delta n)^2 = (\delta\theta)^2.

If a,b,ca, b, c are the lengths of the edges of a rectangular parallelepiped (a box), the angle between any two diagonals is given by

cos⁡−1(a2±b2±c2a2+b2+c2),\displaystyle \cos^{-1}\left(\frac{a^2 \pm b^2 \pm c^2}{a^2 + b^2 + c^2}\right),

where the three terms in the numerator do not all have the same sign.

If a line makes angles α,β,γ,δ\alpha, \beta, \gamma, \delta with the four diagonals of a cube, then

cos⁡2α+cos⁡2β+cos⁡2γ+cos⁡2δ=43.\displaystyle \cos^2\alpha + \cos^2\beta + \cos^2\gamma + \cos^2\delta = \frac{4}{3}.

Example 1

Find the projection of the segment from A(1,2,3)A(1, 2, 3) to B(3,4,4)B(3, 4, 4) on the line with d.c.'s (23,13,23)\displaystyle \left(\tfrac{2}{3}, \tfrac{1}{3}, \tfrac{2}{3}\right), and its projections on the axes and the coordinate planes.

The differences are (2,2,1)(2, 2, 1), so the projection on the line is 43+23+23=83\displaystyle \tfrac{4}{3} + \tfrac{2}{3} + \tfrac{2}{3} = \tfrac{8}{3}.

On the axes: 22, 22 and 11; and 4+4+1=9=AB24 + 4 + 1 = 9 = AB^2. On the planes: XYXY gives 8\sqrt{8}, YZYZ gives 5\sqrt{5}, ZXZX gives 5\sqrt{5}; and 8+5+5=18=2AB28 + 5 + 5 = 18 = 2AB^2.

Example 2

Find the area of the triangle with vertices A(1,0,0)A(1, 0, 0), B(0,1,0)B(0, 1, 0), C(0,0,1)C(0, 0, 1).

AB→=(−1,1,0)\overrightarrow{AB} = (-1, 1, 0) and AC→=(−1,0,1)\overrightarrow{AC} = (-1, 0, 1), so AB→×AC→=(1,1,1)\overrightarrow{AB} \times \overrightarrow{AC} = (1, 1, 1), whose length is 3\sqrt{3}. The area is 32\displaystyle \tfrac{\sqrt{3}}{2}.

Example 3

Find the acute angle between two diagonals of a box with edges 1, 2, 3.

The diagonals (1,2,3)(1, 2, 3) and (−1,2,3)(-1, 2, 3) give cos⁡θ=−1+4+914=67\displaystyle \cos\theta = \dfrac{-1 + 4 + 9}{14} = \dfrac{6}{7}, which is the formula with numerator −a2+b2+c2-a^2 + b^2 + c^2. So one angle between diagonals is cos⁡−167\displaystyle \cos^{-1}\tfrac{6}{7}.

Practice

  1. Find the projection of the segment from (2,−1,3)(2, -1, 3) to (5,3,3)(5, 3, 3) on the line with d.c.'s (27,37,67)\displaystyle \left(\tfrac{2}{7}, \tfrac{3}{7}, \tfrac{6}{7}\right).
  2. Find the projections of the segment in question 1 on the xx axis, the yy axis and the XYXY plane.
  3. Find the area of the triangle with vertices (0,0,0)(0, 0, 0), (2,0,0)(2, 0, 0) and (0,3,4)(0, 3, 4).
  4. ABCDABCD is a parallelogram with A=(0,0,0)A = (0, 0, 0), AB→=(1,2,2)\overrightarrow{AB} = (1, 2, 2) and AD→=(2,−2,1)\overrightarrow{AD} = (2, -2, 1). Find its area.
  5. Find the angle a line equally inclined to the three axes makes with each axis.
  6. Find the acute angles between the diagonals of a box with edges 1, 1, 2.
  7. A segment of length 7 has projections 2 and 3 on the xx and yy axes. Find its projection on the zz axis.

Answers

Show answers
  1. Differences (3,4,0)(3, 4, 0): 6+12+07=187\displaystyle \tfrac{6 + 12 + 0}{7} = \tfrac{18}{7}.
  2. 33, 44 and 9+16=5\sqrt{9 + 16} = 5.
  3. (2,0,0)×(0,3,4)=(0,−8,6)(2, 0, 0) \times (0, 3, 4) = (0, -8, 6), of length 10, so the area is 5.
  4. (1,2,2)×(2,−2,1)=(6,3,−6)(1, 2, 2) \times (2, -2, 1) = (6, 3, -6), of length 9, so the area is 9.
  5. cos⁡−113\displaystyle \cos^{-1}\tfrac{1}{\sqrt{3}} with each axis (or its supplement).
  6. The possible values of cos⁡θ\cos\theta are 1+1−46=−13\displaystyle \tfrac{1 + 1 - 4}{6} = -\tfrac{1}{3} and 1−1+46=23\displaystyle \tfrac{1 - 1 + 4}{6} = \tfrac{2}{3}, so the acute angles are cos⁡−113\displaystyle \cos^{-1}\tfrac{1}{3} and cos⁡−123\displaystyle \cos^{-1}\tfrac{2}{3}.
  7. 49−4−9=3649 - 4 - 9 = 36, so the projection is 6.