Trigonometry in Three Dimensions

Flat triangles hiding inside a box.

Two diagonals in a box

A box, or cuboid, measures 4 long, 3 wide and 2 high. Two diagonals in it are not edges. The floor diagonal runs across the bottom face from one corner to the opposite corner. The space diagonal runs from a bottom corner, through the inside of the box, to the top corner farthest from it.

Neither length can be measured straight off the box, and the space diagonal does not lie in any face. The method is to find right triangles that lie flat, in one plane, and to use Pythagoras and the trigonometric ratios inside them, one triangle at a time.

A box 4 by 3 by 2, with the floor diagonal dashed across the bottom and the space diagonal running from a bottom corner to the opposite top corner.

The floor diagonal

The floor is a flat rectangle, 4 by 3. Its diagonal cuts it into two right triangles, with the right angle at a corner of the rectangle, and the edges of 4 and 3 as the two shorter sides.

By Pythagoras, the floor diagonal is √(4² + 3²) = √(16 + 9) = √25 = 5.

435

The floor is a 4 by 3 rectangle, so its diagonal is √(16 + 9) = 5.

A triangle standing on the floor diagonal

At the end of the floor diagonal, an upright edge of 2 rises to the top corner. That edge is vertical, and the floor is horizontal, so the edge is at a right angle to every line on the floor that passes through its foot. One of those lines is the floor diagonal.

So the floor diagonal, the upright edge and the space diagonal make a right triangle, standing upright inside the box. Its base is 5, its height is 2, and its hypotenuse is the space diagonal.

By Pythagoras again, the space diagonal is √(5² + 2²) = √(25 + 4) = √29, which is 5.39 to 2 decimal places.

25√29

The shaded right triangle stands on the floor diagonal of 5, with the upright edge of 2. Its hypotenuse is the space diagonal, √29.

Both rounds at once

The first round gave the square of the floor diagonal as 4² + 3². The second round added the square of the height. So the square of the space diagonal is 4² + 3² + 2² = 16 + 9 + 4 = 29.

For any box with length l, width w and height h, the space diagonal d has d² = l² + w² + h², so d = √(l² + w² + h²). A box 3 by 4 by 12 has a floor diagonal of √(9 + 16) = 5 and a space diagonal of √(25 + 144) = √169 = 13; the formula gives √(9 + 16 + 144) = 13 directly.

√(x² + y²) = 5x = 4y = 3z = 2|v| = √(5² + 2²)= √(4² + 3² + 2²) = 5.39

the floor diagonal is √(x² + y²) = 5; stand z = 2 on its end and Pythagoras again gives |v| = √(5² + 2²) = 5.39, which is √(x² + y² + z²)

Make the box 3 by 4 by 12 and read the diagonal

The box 4 by 3 by 2, with the floor diagonal in gold and the upright edge in green. The space diagonal’s length is printed as |v|. Drag any of the three edges: the floor diagonal is always √(x² + y²), and the space diagonal is always √(x² + y² + z²). Set the box to 3 by 4 by 12 to see 5 and 13.

The angle between a line and a plane

The space diagonal rises from the floor at some angle. To measure the angle between a line and a plane, drop a perpendicular from the top of the line straight down to the plane. The line on the plane from the foot of the line to the foot of that perpendicular is the projection of the line, its shadow when a light shines straight down. The angle between the line and the plane is the angle between the line and its projection.

The projection of the space diagonal onto the floor is the floor diagonal, because the top corner sits straight above the far end of it. So the angle θ is the angle at the foot of the upright triangle, between the space diagonal and the floor diagonal.

Seen from θ, the height of 2 is opposite and the floor diagonal of 5 is adjacent, so tan θ = 2 / 5 = 0.4, and θ = tan⁻¹(0.4) = 21.8°, to 1 decimal place.

25

The angle θ between the space diagonal and the floor is in the upright triangle, between the space diagonal and its projection, the floor diagonal: tan θ = 2 / 5.

Why the projection, and not another line

The space diagonal makes a different angle with each line on the floor. With the edge of 4, for example, the angle φ has cos φ = 4 ÷ √29, so φ = 42.0°. That edge is not straight below the diagonal, so it is not the right line to measure to.

Of all the lines on the floor through the foot of the diagonal, the projection makes the smallest angle with it, 21.8°. That smallest angle is what the angle between a line and a plane means.

The same triangle holds a second angle, at the top corner, between the space diagonal and the upright edge. There the floor diagonal is opposite and the height is adjacent, so its tangent is 5 ÷ 2 and the angle is 68.2°. The two angles add to 90°, as the two acute angles of a right triangle always do.

The usual mistakes

Adding or multiplying the sides of the floor. 4 + 3 = 7 is a walk round two edges, and 4 × 3 = 12 is the area. The diagonal needs Pythagoras: √(16 + 9) = 5.

Stopping at the floor. The floor diagonal, 5, is only the first round; the space diagonal still has to climb the height, so d² = 25 + 4 = 29, not 25.

Taking the box’s three edges as one triangle. The length, width and height meet at a single corner and never close up into a triangle. The upright triangle is the floor diagonal, the height and the space diagonal.

Measuring the angle to the wrong line on the floor, such as an edge, instead of to the projection.

Turning the tangent upside down. 5 ÷ 2 is the tangent of the angle at the top, against the upright edge, not the angle with the floor.

Worked example: A Camera Cable Across a Sports Hall from Corner to Corner

Question A camera hangs from a cable stretched straight from a top corner G of a sports hall to the bottom corner A diagonally opposite. The hall is a cuboid 12 m long, 9 m wide and 6 m high. Take tan−1(0.4) = 21.8°. (a) How long is the cable, to 1 decimal place? (b) What angle does the cable make with the floor?

  1. 1.Label the floor ABCD with AB = 12 m and BC = 9 m, and let G be the top corner above C, so CG = 6 m. The cable is AG. Straight below it on the floor is the diagonal AC, the projection of the cable.

    ABCG12 m9 m6 mthe projection of AG on the floor is AC
    ABCG12 m9 m6 mthe projection of AG on the floor is AC
    The cable AG runs from the top corner G down to A. Straight below it on the floor is the diagonal AC.
  2. 2.Triangle ABC on the floor is right-angled at B, so AC2 = 122 + 92 = 144 + 81 = 225 and AC = 15 m.

    ABCG12 m9 m6 m15 mthe projection of AG on the floor is ACAC2= 122+ 92= 225, AC = 15 m
    ABCG12 m9 m6 m15 mthe projection of AG on the floor is ACAC2= 122+ 92= 225, AC = 15 m
    On the floor: AC2 = 122 + 92 = 225, so AC = 15 m.
  3. 3.Triangle ACG stands upright and is right-angled at C. (a) AG2 = 152 + 62 = 225 + 36 = 261, so AG = √261 = 16.2 m to 1 decimal place.

    ABCG12 m9 m6 m15 m16.2 mthe projection of AG on the floor is ACAC2= 122+ 92= 225, AC = 15 mAG2= 152+ 62= 261, AG = 16.2 m
    ABCG12 m9 m6 m15 m16.2 mthe projection of AG on the floor is ACAC2= 122+ 92= 225, AC = 15 mAG2= 152+ 62= 261, AG = 16.2 m
    (a) Triangle ACG is right-angled at C: AG = √152 + 62 = √261 = 16.2 m.
  4. 4.The angle between the cable and the floor is the angle GAC between the cable and its projection. The height 6 m is opposite it and AC = 15 m is adjacent, so tan θ = 615 = 0.4.

    θABCG12 m9 m6 m15 m16.2 mthe projection of AG on the floor is ACAC2= 122+ 92= 225, AC = 15 mAG2= 152+ 62= 261, AG = 16.2 mtan θ = 6/15 = 0.4
    θABCG12 m9 m6 m15 m16.2 mthe projection of AG on the floor is ACAC2= 122+ 92= 225, AC = 15 mAG2= 152+ 62= 261, AG = 16.2 mtan θ = 6/15 = 0.4
    The angle with the floor is between the cable and its projection: tan θ = 615 = 0.4.
  5. 5.(b) θ = tan−1(0.4) = 21.8°. Check: sin 21.8° = 0.371, and 16.2 × 0.371 = 6.0 m, the height of the hall.

    21.8 degABCG12 m9 m6 m15 m16.2 mthe projection of AG on the floor is ACAC2= 122+ 92= 225, AC = 15 mAG2= 152+ 62= 261, AG = 16.2 mtan θ = 6/15 = 0.4θ = 21.8 deg
    21.8 degABCG12 m9 m6 m15 m16.2 mthe projection of AG on the floor is ACAC2= 122+ 92= 225, AC = 15 mAG2= 152+ 62= 261, AG = 16.2 mtan θ = 6/15 = 0.4θ = 21.8 deg
    (b) θ = tan−1(0.4) = 21.8°.

Answer: (a) 16.2 m; (b) 21.8°

Common mistakes

  • Using the length of the hall, 12 m, as the adjacent side: tan−1(612) is the angle with the floor of a line up the end wall. The cable crosses the hall, so its projection on the floor is the diagonal AC.
  • Finding tan−1(156) = 68.2°. That is the angle at G, between the cable and the upright corner post; opposite and adjacent swap when the angle moves to the other end of the triangle.

More triangle trigonometry problems, worked step by step →

Practice Trigonometry in Three Dimensions in the app