Knaph

The Pythagorean Theorem78 of 972 min read

The Diagonal of a Box

Will a 13 cm pencil fit in a box that is 3 cm by 4 cm by 12 cm? The longest line inside a box runs from one corner to the opposite corner, and Pythagoras finds it twice.

Two right triangles

A box has a length, a width and a height. First find the diagonal across the floor: for a 3 by 4 floor it is 5. That diagonal and the height 12 are the legs of a second right triangle standing up. Its hypotenuse is the diagonal through the box.

52+122=25+144=1695^2 + 12^2 = 25 + 144 = 169, so the diagonal is 13 cm.

A box of 3 by 4 by 12 with the floor diagonal of 5 drawn in the base and the diagonal of the box drawn from a bottom corner to the opposite top corner, labeled 13.

One formula

Put the two steps together: d2=l2+w2+h2d^2 = l^2 + w^2 + h^2. For this box, 9+16+144=1699 + 16 + 144 = 169.

So d=l2+w2+h2d = \sqrt{l^2 + w^2 + h^2}. A 2 by 3 by 6 box has d=4+9+36=7d = \sqrt{4 + 9 + 36} = 7.

The 13 cm pencil just fits, lying along the diagonal.

Check with reasons

The diagonal is longer than every edge and longer than the floor diagonal. If it is not, you made a mistake.

The same idea gives the diagonal of a cube of side s: it is s times the square root of 3.

Careful

Add all three squares, then take one square root at the end.

Try it at home

  1. Find a small box and measure its length, width and height.
  2. Work out the longest straight stick that fits inside.
  3. Try it with a stick or a straw.

Words in this lesson

  • space diagonal - the longest straight line inside a box, from one corner to the opposite corner.

Big idea

The diagonal of a box comes from two right triangles: d² = l² + w² + h².

Test your understanding

Sign in to test your understanding of this lesson and track your progress.