Skip to the page
Home Campus
Start free

Pythagoras' Theorem in Solids

Find the right-angled triangles inside a cuboid, a cube and a cylinder, and use Pythagoras' theorem twice to find the longest straight line inside a box.

Before you start

  • A cuboid has six rectangular faces, and its edges meet at right angles. In a cuboid ABCDEFGHABCDEFGH, ABCDABCD is the base and EFGHEFGH the top, with EE above AA, FF above BB, GG above CC and HH above DD.
  • An upright edge, such as CGCG, is at right angles to every line drawn on the base through its foot CC.
  • The diagonal of a rectangle is the hypotenuse of a right-angled triangle made by two of its sides (lesson 9.6).

Face Diagonals and Space Diagonals

A face diagonal joins opposite corners of one face, such as ACAC across the base. A space diagonal joins opposite corners of the whole cuboid and runs through its inside, such as AGAG from a bottom corner to the top corner furthest from it.

The space diagonal is the hypotenuse of a right-angled triangle standing inside the cuboid: △ACG\triangle ACG, shaded below. Its right angle is at CC, between the base diagonal ACAC and the upright edge CGCG.

Cuboid ABCDEFGH with AB = 5 m, BC = 4 m and CG = 3 m. The base diagonal AC is blue and dashed, as it lies on the hidden base, and the space diagonal AG is red; the triangle ACG is shaded, with a right angle at C.5 m4 m3 mABCDEFGH

The space diagonal in two steps

1. On the base: AC2=AB2+BC2AC^2 = AB^2 + BC^2.

2. In △ACG\triangle ACG, with ∠ACG=90∘\angle ACG = 90^{\circ}: AG2=AC2+CG2AG^2 = AC^2 + CG^2.

Carry AC2AC^2 from step 1 into step 2 as it is: there is no need to find ACAC itself, or to round it.

Example 1: A room

A room is a cuboid ABCDEFGHABCDEFGH with floor ABCDABCD, AB=5AB = 5 m, BC=4BC = 4 m and height CG=3CG = 3 m. Find (a) the length of the diagonal ACAC of the floor, (b) the length of a straight wire from the floor corner AA to the ceiling corner GG.

Solution

(a) The floor is a rectangle, so ∠ABC=90∘\angle ABC = 90^{\circ}: AC2=52+42=25+16=41,AC^2 = 5^2 + 4^2 = 25 + 16 = 41\text{,} and AC=41=6.403…=6.40AC = \sqrt{41} = 6.403\ldots = 6.40 m (3 s.f.).

(b) CGCG is upright, so ∠ACG=90∘\angle ACG = 90^{\circ} and AGAG is the hypotenuse of △ACG\triangle ACG.

AG2=AC2+CG2=41+32=41+9=50AG^2 = AC^2 + CG^2 = 41 + 3^2 = 41 + 9 = 50

AG=50=7.071…=7.07AG = \sqrt{50} = 7.071\ldots = 7.07 m (3 s.f.)

(a) AC=6.40AC = 6.40 m (b) the wire is 7.077.07 m long.

Example 2: Naming the triangle

In the cuboid ABCDEFGHABCDEFGH, AB=8AB = 8 cm, BC=6BC = 6 cm and CG=5CG = 5 cm. (a) The space diagonal BHBH is the hypotenuse of a right-angled triangle whose other sides are a diagonal of the base and an edge. Name the triangle and its right angle. (b) Find BHBH.

Cuboid ABCDEFGH with AB = 8 cm, BC = 6 cm and CG = 5 cm, and the space diagonal BH drawn in red.8 cm6 cm5 cmABCDEFGH

Solution

(a) HH is above DD, so the edge DHDH is upright. The base diagonal from BB that ends at DD is BDBD. The triangle is △BDH\triangle BDH, with its right angle at DD: ∠BDH=90∘\angle BDH = 90^{\circ}.

The same cuboid with the triangle BDH shaded, the base diagonal BD in blue, and the right angle at D marked.8 cm6 cm5 cmABCDEFGH

(b) AD=BC=6AD = BC = 6 cm, and ∠BAD=90∘\angle BAD = 90^{\circ}: BD2=82+62=64+36=100,BD^2 = 8^2 + 6^2 = 64 + 36 = 100\text{,} so BD=10BD = 10 cm.

DH=CG=5DH = CG = 5 cm. BH2=BD2+DH2=100+25=125,BH^2 = BD^2 + DH^2 = 100 + 25 = 125\text{,} so BH=125=11.18…=11.2BH = \sqrt{125} = 11.18\ldots = 11.2 cm (3 s.f.).

(a) △BDH\triangle BDH, with ∠BDH=90∘\angle BDH = 90^{\circ} (b) BH=11.2BH = 11.2 cm

One Formula for the Space Diagonal

Put the two steps together. For a cuboid of length ll, width ww and height hh, step 1 gives AC2=l2+w2AC^2 = l^2 + w^2, and step 2 gives AG2=AC2+h2AG^2 = AC^2 + h^2.

The space diagonal of a cuboid

If dd is the length of a space diagonal of a cuboid with edges ll, ww and hh, then d2=l2+w2+h2d^2 = l^2 + w^2 + h^2.

A cuboid has four space diagonals, all of this length. It is the longest straight line that fits inside the cuboid.

Example 3: A box

Find the length of the longest straight stick that fits inside a box 3030 cm long, 2020 cm wide and 1515 cm high, correct to 1 decimal place.

Solution

The longest stick lies along a space diagonal.

d2=302+202+152=900+400+225=1525d^2 = 30^2 + 20^2 + 15^2 = 900 + 400 + 225 = 1525

d=1525=39.051…=39.1d = \sqrt{1525} = 39.051\ldots = 39.1 (1 d.p.)

Round once, from the calculator's full value. Writing 39.0539.05 and then rounding that again is rounding twice, which can give a wrong answer.

The longest stick is 39.139.1 cm.

Example 4: Decimals and a cube

(a) A shipping container is a cuboid 1212 m long, 2.42.4 m wide and 2.62.6 m high. Find the length of a space diagonal. (b) Find the length of a space diagonal of a cube of edge 1010 cm.

A cube ABCDEFGH of edge 10 cm, with the space diagonal AG drawn in red.10 cm10 cm10 cmABCDEFGH

Solution

(a) d2=122+2.42+2.62=144+5.76+6.76=156.52,d^2 = 12^2 + 2.4^2 + 2.6^2 = 144 + 5.76 + 6.76 = 156.52\text{,} so d=156.52=12.51…=12.5d = \sqrt{156.52} = 12.51\ldots = 12.5 m (3 s.f.).

(b) All three edges are 1010 cm: d2=102+102+102=300,d^2 = 10^2 + 10^2 + 10^2 = 300\text{,} so d=300=17.32…=17.3d = \sqrt{300} = 17.32\ldots = 17.3 cm (3 s.f.).

(a) 12.512.5 m (b) 17.317.3 cm

Example 5: A missing edge

A box has a base 1212 cm by 44 cm, and its space diagonal is 1313 cm. How high is the box?

Solution

Let the height be hh cm. 132=122+42+h213^2 = 12^2 + 4^2 + h^2

169=144+16+h2169 = 144 + 16 + h^2, so h2=169−160=9h^2 = 169 - 160 = 9

h=9=3h = \sqrt{9} = 3

The box is 33 cm high.

The Longest Rod in a Cylinder

The longest straight rod inside a closed cylinder runs from a point on the rim of the base to the opposite point on the rim of the top, through the axis. It is the diagonal of the rectangle made by a diameter and the height.

Example 6: A rod in a tin

A closed cylindrical tin has a radius of 33 cm and a height of 88 cm. Find the length of the longest straight rod that fits inside it.

A cylinder of radius 3 cm and height 8 cm, with centre O of the base. P and R are opposite ends of a diameter of the base, at the left and right edges of the drawing, Q is above R on the top rim, and the rod PQ is drawn in red across the shaded rectangle through the axis, with a right angle at R.3 cm8 cmPRQO

Solution

The rectangle through the axis has the diameter PRPR as its base: PR=2×3=6PR = 2 \times 3 = 6 cm. Its height is RQ=8RQ = 8 cm, and ∠PRQ=90∘\angle PRQ = 90^{\circ}.

PQ2=62+82=36+64=100,PQ^2 = 6^2 + 8^2 = 36 + 64 = 100\text{,} so PQ=10PQ = 10.

The longest rod is 1010 cm.

Common Mistakes

  • Stopping at the face diagonal. For a 33 cm by 44 cm by 1212 cm box, the base diagonal is 55 cm, but the space diagonal is 25+144=13\sqrt{25 + 144} = 13 cm.
  • Adding the edges before squaring. (3+4+12)2=361(3 + 4 + 12)^2 = 361 gives 1919 cm, which is the three edges added. Square each edge first: 9+16+144=1699 + 16 + 144 = 169, so 1313 cm.
  • Using the radius in a cylinder. The rod crosses the whole base: use the diameter.
  • Rounding the face diagonal. Carry AC2AC^2 into the second step; a rounded ACAC can change the final answer.

Practice Questions

Try each question before you open its solution. Name the right-angled triangle you use. Give lengths correct to 3 significant figures where they are not exact.

Question 1

A cuboid is 1212 cm long, 99 cm wide and 88 cm high. Find (a) the diagonal of its base, (b) its space diagonal.

ShowHide solution

(a) 122+92=144+81=225=15\sqrt{12^2 + 9^2} = \sqrt{144 + 81} = \sqrt{225} = 15 cm

(b) 152+82=225+64=289=17\sqrt{15^2 + 8^2} = \sqrt{225 + 64} = \sqrt{289} = 17 cm

(a) 1515 cm (b) 1717 cm

Question 2

In the cuboid ABCDEFGHABCDEFGH, AB=4AB = 4 cm, BC=3BC = 3 cm and CG=12CG = 12 cm. (a) Name the right-angled triangle that has AGAG as its hypotenuse and ACAC as a side, and its right angle. (b) Find AGAG.

A tall cuboid ABCDEFGH with AB = 4 cm, BC = 3 cm and CG = 12 cm, and the space diagonal AG drawn in red.4 cm3 cm12 cmABCDEFGH
ShowHide solution

(a) △ACG\triangle ACG, with the right angle at CC: ∠ACG=90∘\angle ACG = 90^{\circ}, since CGCG is upright.

(b) AC2=42+32=25AC^2 = 4^2 + 3^2 = 25; AG2=25+122=25+144=169,AG^2 = 25 + 12^2 = 25 + 144 = 169\text{,} so AG=13AG = 13 cm.

(a) △ACG\triangle ACG, ∠ACG=90∘\angle ACG = 90^{\circ} (b) 1313 cm

Question 3

Find the length of a space diagonal of a box 2525 cm by 1515 cm by 1010 cm.

ShowHide solution

d2=252+152+102=625+225+100=950d^2 = 25^2 + 15^2 + 10^2 = 625 + 225 + 100 = 950

d=950=30.82…=30.8d = \sqrt{950} = 30.82\ldots = 30.8 (3 s.f.)

30.830.8 cm

Question 4

A cube has edges of 77 cm. Find the length of (a) a diagonal of one face, (b) a space diagonal.

ShowHide solution

(a) 72+72=98=9.899…=9.90\sqrt{7^2 + 7^2} = \sqrt{98} = 9.899\ldots = 9.90 cm (3 s.f.)

(b) 72+72+72=147=12.12…=12.1\sqrt{7^2 + 7^2 + 7^2} = \sqrt{147} = 12.12\ldots = 12.1 cm (3 s.f.)

(a) 9.909.90 cm (b) 12.112.1 cm

Question 5

A classroom is 99 m long, 77 m wide and 3.53.5 m high. Find the length of the longest straight pole that would fit inside it.

ShowHide solution

The longest pole lies along a space diagonal.

d2=92+72+3.52=81+49+12.25=142.25d^2 = 9^2 + 7^2 + 3.5^2 = 81 + 49 + 12.25 = 142.25

d=142.25=11.92…=11.9d = \sqrt{142.25} = 11.92\ldots = 11.9 (3 s.f.)

11.911.9 m

Question 6

A cuboid has a base 66 cm by 22 cm, and its space diagonal is 77 cm. Find its height.

ShowHide solution

72=62+22+h27^2 = 6^2 + 2^2 + h^2, so 49=36+4+h249 = 36 + 4 + h^2 and h2=9h^2 = 9.

h=3h = 3

33 cm

Question 7

For a box 22 cm long, 66 cm wide and 99 cm high, Arjun gives the space diagonal as 6.326.32 cm and Lina gives it as 1717 cm. Explain each mistake and find the correct length.

ShowHide solution

Arjun found 22+62=40=6.324…=6.32\sqrt{2^2 + 6^2} = \sqrt{40} = 6.324\ldots = 6.32 cm (3 s.f.), the diagonal of the base, and stopped after the first step.

Lina found 2+6+9=172 + 6 + 9 = 17: she added the edges instead of their squares.

d=22+62+92=4+36+81=121=11d = \sqrt{2^2 + 6^2 + 9^2} = \sqrt{4 + 36 + 81} = \sqrt{121} = 11 cm.

Arjun stopped at the face diagonal; Lina added the edges. The space diagonal is 1111 cm.

Question 8

A closed cylindrical tin has a radius of 44 cm and a height of 1515 cm. Can a straight chopstick 1616 cm long fit inside it with the lid on?

ShowHide solution

The longest rod inside runs across a diameter, 2×4=82 \times 4 = 8 cm, and up the height, 1515 cm.

82+152=64+225=289=17\sqrt{8^2 + 15^2} = \sqrt{64 + 225} = \sqrt{289} = 17 cm

1616 cm is less than 1717 cm.

Yes: the longest rod that fits is 1717 cm.

Question 9

A cylindrical water tank has a radius of 0.50.5 m and a height of 1.21.2 m. Find the length of the longest straight pole that can be placed inside it with the lid closed.

ShowHide solution

Diameter =2×0.5=1= 2 \times 0.5 = 1 m.

d2=12+1.22=1+1.44=2.44,d^2 = 1^2 + 1.2^2 = 1 + 1.44 = 2.44\text{,} so d=2.44=1.562…=1.56d = \sqrt{2.44} = 1.562\ldots = 1.56 (3 s.f.).

1.561.56 m

Question 10

In the cuboid ABCDEFGHABCDEFGH, AB=9AB = 9 cm, BC=7BC = 7 cm and BF=6BF = 6 cm. The space diagonal DFDF is the hypotenuse of a right-angled triangle whose other sides are a diagonal of the base and an edge. Name the triangle and its right angle, and find DFDF.

ShowHide solution

FF is above BB, so BFBF is upright, and the base diagonal ending at BB is BDBD. The triangle is △BDF\triangle BDF, with ∠DBF=90∘\angle DBF = 90^{\circ}.

BD2=AB2+AD2=92+72=81+49=130BD^2 = AB^2 + AD^2 = 9^2 + 7^2 = 81 + 49 = 130 (AD=BC=7AD = BC = 7 cm). Carry BD2BD^2 into the next step as it is.

DF2=BD2+BF2=130+62=130+36=166,DF^2 = BD^2 + BF^2 = 130 + 6^2 = 130 + 36 = 166\text{,} so DF=166=12.88…=12.9DF = \sqrt{166} = 12.88\ldots = 12.9 cm (3 s.f.).

△BDF\triangle BDF, with ∠DBF=90∘\angle DBF = 90^{\circ}; DF=12.9DF = 12.9 cm.

Question 11

A pencil case is a closed box 2020 cm long, 66 cm wide and 44 cm high. (a) Can a pencil 2121 cm long lie flat on the bottom of the case? (b) Can it fit inside the closed case at all?

ShowHide solution

(a) The longest line on the bottom is its diagonal: 202+62=436=20.88…\sqrt{20^2 + 6^2} = \sqrt{436} = 20.88\ldots cm, less than 2121 cm. It cannot lie flat.

(b) The longest line inside is a space diagonal: 436+42=452=21.26…\sqrt{436 + 4^2} = \sqrt{452} = 21.26\ldots cm, more than 2121 cm.

(a) No (20.920.9 cm) (b) Yes, slanting along a space diagonal (21.321.3 cm).

Key Points

  • A face diagonal crosses one face; a space diagonal runs through the inside, from a corner to the opposite corner.
  • The space diagonal AGAG of cuboid ABCDEFGHABCDEFGH is the hypotenuse of △ACG\triangle ACG, with the right angle at CC between the base diagonal ACAC and the edge CGCG.
  • Two steps: find AC2AC^2 on the base, then AG2=AC2+CG2AG^2 = AC^2 + CG^2. In one formula: d2=l2+w2+h2d^2 = l^2 + w^2 + h^2.
  • The space diagonal is the longest straight line inside a cuboid; in a cylinder, the longest is (diameter)2+(height)2.\sqrt{(\text{diameter})^2 + (\text{height})^2}\text{.}
  • Square the edges before adding, and round only at the end.

‹ 9.6 Pythagoras' Theorem in Plane Figures 10.1 Sine, Cosine and Tangent ›

All Secondary 2 (Grade 8) lessons

Home Campus has lessons for Primary 3 to Secondary 2, and practice questions with worked solutions and worksheets for Primary 3 to Secondary 1. Register free to practise and keep track of progress.

This lesson follows the Singapore Secondary 2 syllabus and was checked question by question before it was published. Spotted a mistake? Tell us.