- Foundation
- About 17 min
- 5 practice questions
Projections: the shadow of a segment on an axis, a plane and a line
Find the length of the projection of a segment on the coordinate axes, the coordinate planes and any line with given direction cosines or ratios, and see what a zero projection tells you.
If something looks wrong, please tell us.
If a light shines straight down on a stick held in the air, the stick casts a shadow on the floor. The length of that shadow is the projection of the stick on the floor. Projections turn a three-dimensional length into simpler pieces and are used again and again, in finding components of a force and in testing whether lines are perpendicular. This lesson uses only the distance formula and direction cosines from the earlier lessons.
Projection on the axes and the coordinate planes
Let P(x₁, y₁, z₁) and Q(x₂, y₂, z₂) be two points, and write the differences Δx = x₂ − x₁, Δy = y₂ − y₁ and Δz = z₂ − z₁. The projections of the segment PQ on the three axes have lengths |Δx|, |Δy| and |Δz|. The projection on a coordinate plane drops the missing coordinate: on the xy-plane its length is √(Δx² + Δy²), on the yz-plane √(Δy² + Δz²) and on the zx-plane √(Δz² + Δx²). Because PQ² = Δx² + Δy² + Δz², the squares of the three axis projections add up to PQ².
Projection on any line
Let a line have direction cosines l, m, n. The (signed) projection of PQ on the line is l·Δx + m·Δy + n·Δz. Its absolute value is the length of the projection. If the line is given by direction ratios a, b, c instead, first divide by √(a² + b² + c²) to get the direction cosines, so the length is |aΔx + bΔy + cΔz| / √(a² + b² + c²). A negative sign means that the segment runs against the direction chosen for the line. In this lesson the projections are always positive lengths unless we say signed.
Projection of PQ on a line with direction cosines l, m, n = lΔx + mΔy + nΔz. On an axis, take the difference of that coordinate. On a coordinate plane, drop the missing coordinate in the distance formula.
Worked example 1: a clean answer
Find the length of the projection of the segment from P(1, 2, 3) to Q(4, 6, 15) on the line with direction ratios 0, 3, 4. Here (Δx, Δy, Δz) = (3, 4, 12) and PQ = √(9 + 16 + 144) = 13. The line has √(0 + 9 + 16) = 5, so the projection is |0·3 + 3·4 + 4·12| / 5 = 60/5 = 12. The projection on the x-axis is 3, on the xy-plane √(9 + 16) = 5, and on the z-axis 12. The part of PQ at right angles to the line has length √(169 − 144) = 5.
Worked example 2: a negative projection
A(2, −1, 3) and B(5, 5, −3) are two points, and a line has direction cosines 2/3, −1/3 and 2/3 (check: 4/9 + 1/9 + 4/9 = 1). Here (Δx, Δy, Δz) = (3, 6, −6). The signed projection is (2/3)(3) + (−1/3)(6) + (2/3)(−6) = 2 − 2 − 4 = −4. The length of the projection is 4. The minus sign says that the segment AB points mostly against the chosen direction of the line. The length AB is 9, so the part of AB perpendicular to the line is √(81 − 16) = √65.
Worked example 3: axes and planes
For the segment from (−1, 2, 5) to (3, −4, 8), the differences are (4, −6, 3). The projections on the x-, y- and z-axes are 4, 6 and 3. On the yz-plane the projection is √(36 + 9) = √45 = 3√5, and on the xy-plane √(16 + 36) = √52 = 2√13. The segment has length √(16 + 36 + 9) = √61, and the squares of the axis projections give 16 + 36 + 9 = 61, as they should.
Worked example 4: a projection of zero
Let AB join A(1, −2, 4) and B(7, 0, 1), and let CD join C(0, 1, 2) and D(2, 4, 8). Then AB has differences (6, 2, −3) and CD has (2, 3, 6), with CD of length 7. The projection of AB on CD is |6·2 + 2·3 + (−3)·6| / 7 = |12 + 6 − 18| / 7 = 0. A non-zero segment with zero projection on a line is perpendicular to that line. This is the same condition as a₁a₂ + b₁b₂ + c₁c₂ = 0 for perpendicular lines.
Key takeaways. Projection on an axis is a difference of coordinates; on a coordinate plane it is a plane distance. On a line, use lΔx + mΔy + nΔz with direction cosines, or divide by the length of the direction ratios. The projection and the perpendicular part satisfy Pythagoras: PQ² = projection² + perpendicular². A zero projection means perpendicular.
Check your understanding
-
1. P(2, 1, −3) and Q(5, 5, 9) are two points. What is the length of the projection of PQ on the xy-plane?
- 7
- 12
- 5
- 13
Show answer
Answer: C. The differences are (3, 4, 12). On the xy-plane the projection is √(3² + 4²) = 5. The number 12 is the projection on the z-axis and 13 is the whole length PQ.
-
2. The segment from (1, 2, 3) to (7, −1, 6) is projected on a line with direction cosines 2/3, −1/3 and 2/3. What is the length of the projection?
- 7
- 5
- 3
- 9
Show answer
Answer: A. The differences are (6, −3, 3). The projection is (2/3)(6) + (−1/3)(−3) + (2/3)(3) = 4 + 1 + 2 = 7. Dropping the minus sign of m would give 4 − 1 + 2 = 5, and mishandling the signs in another way would give 3.
-
3. A segment of length 13 has a projection of length 12 on a line. What is the length of the part of the segment perpendicular to the line?
- 1
- 7
- 25
- 5
Show answer
Answer: D. By Pythagoras, perpendicular² = 13² − 12² = 169 − 144 = 25, so the length is 5. The value 25 is the square, and 1 is just the difference 13 − 12.
-
4. A segment of non-zero length has a projection of 0 on a line. What can you conclude?
- The segment is parallel to the line
- The segment is perpendicular to the line
- The segment lies along the line
- The segment makes an angle of 45° with the line
Show answer
Answer: B. The projection is the length of the segment times the cosine of the angle between them. It is zero only when that cosine is zero, that is, when the angle is 90°.
-
5. The projections of a segment on the three coordinate axes have lengths 2, 3 and 6. What is the length of the segment?
- 7
- 11
- 49
- 5
Show answer
Answer: A. The length is √(2² + 3² + 6²) = √(4 + 9 + 36) = √49 = 7. Adding the three projections (11) is wrong, and 49 forgets the square root.
Sign in to keep track of the lessons you finish.