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 .
The floor is a 4 by 3 rectangle, so its diagonal is .
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 , which is 5.39 to 2 decimal places.
The shaded right triangle stands on the floor diagonal of 5, with the upright edge of 2. Its hypotenuse is the space diagonal, .
Both rounds at once
The first round gave the square of the floor diagonal as . The second round added the square of the height. So the square of the space diagonal is .
For any box with length l, width w and height h, the space diagonal d has , so . A box 3 by 4 by 12 has a floor diagonal of and a space diagonal of ; the formula gives directly.
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 , and the space diagonal is always . 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 , and , to 1 decimal place.
The angle between the space diagonal and the floor is in the upright triangle, between the space diagonal and its projection, the floor diagonal: .
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 , so . 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: .
Stopping at the floor. The floor diagonal, 5, is only the first round; the space diagonal still has to climb the height, so , 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.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.
The cable AG runs from the top corner G down to A. Straight below it on the floor is the diagonal AC. 2.Triangle ABC on the floor is right-angled at B, so AC2 = 122 + 92 = 144 + 81 = 225 and AC = 15 m.
On the floor: AC2 = 122 + 92 = 225, so AC = 15 m. 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.
(a) Triangle ACG is right-angled at C: AG = √152 + 62 = √261 = 16.2 m. 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.
The angle with the floor is between the cable and its projection: tan θ = 615 = 0.4. 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.
(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.