Math Lab
Home/Class VIII/Ch 11/Shortest paths on the surface

Shortest paths on the surface

An ant sits at one corner of a 3×4×53 \times 4 \times 5 box. It wants to reach the diagonally-opposite corner. It can only walk along the outside surface, not through the box. What is the shortest path?

This puzzle is delightful because the "obvious" answer is wrong, and the right answer uses nets , exactly the unfolding we just learned.

Concept

Why we need to unfold. The shortest path along the surface might cross several faces. On the 3D box, this is a sequence of broken straight lines, hard to optimise directly. But once you unfold (some of) the faces into a flat net, the path that was broken on the surface becomes a straight line in the net. And the shortest path between two points in a plane is just the straight line.

Procedure.

  1. Identify the start and end points on the 3D box.
  2. Choose a path that crosses some faces. Unfold those faces flat (the surrounding faces stay attached at the shared edge).
  3. Mark the start and end in the net. Connect them with a straight line.
  4. Its length is the candidate shortest path. Different unfoldings give different lengths , try a few.
  5. The minimum over all possible unfoldings is the true shortest surface distance.

Example. A box of size 3×4×53 \times 4 \times 5. Ant at corner A=(0,0,0)A = (0,0,0), target at corner B=(3,4,5)B = (3, 4, 5).

There are three ways to unfold for the path:

  1. Unfold via 3+4=73 + 4 = 7 and 55: straight line of length 72+52=748.60\sqrt{7^2 + 5^2} = \sqrt{74} \approx 8.60.
  2. Via 3+5=83 + 5 = 8 and 44: length 82+42=808.94\sqrt{8^2 + 4^2} = \sqrt{80} \approx 8.94.
  3. Via 4+5=94 + 5 = 9 and 33: length 92+32=909.49\sqrt{9^2 + 3^2} = \sqrt{90} \approx 9.49.

Shortest: 748.60\sqrt{74} \approx 8.60. The route uses the 33 and 44 sides plus the 55 side. Through the inside (which the ant can't do), the diagonal would be 507.07\sqrt{50} \approx 7.07.

Generalising. For a cuboid a×b×ca \times b \times c with the ant going corner to corner, the three candidate path lengths are:

  • (a+b)2+c2\sqrt{(a+b)^2 + c^2}
  • (b+c)2+a2\sqrt{(b+c)^2 + a^2}
  • (a+c)2+b2\sqrt{(a+c)^2 + b^2}

The smallest is the shortest. Often the middle-sized face combinations win.

Other surfaces. Shortest paths on cylinders, cones, and pyramids work the same way: unfold, draw a straight line, measure.

Worked examples

Example 1. Ant on a 1×1×11 \times 1 \times 1 cube, corner to corner via surface. Find shortest path.

  • Three candidates: (1+1)2+12=5\sqrt{(1+1)^2 + 1^2} = \sqrt{5}, three identical.
  • Shortest: 52.236\sqrt{5} \approx 2.236.

Example 2. 2×3×42 \times 3 \times 4 box, corner to corner.

  • Candidates: (2+3)2+42=416.40\sqrt{(2+3)^2 + 4^2} = \sqrt{41} \approx 6.40, (3+4)2+22=537.28\sqrt{(3+4)^2 + 2^2} = \sqrt{53} \approx 7.28, (2+4)2+32=456.71\sqrt{(2+4)^2 + 3^2} = \sqrt{45} \approx 6.71.
  • Shortest: 41\sqrt{41}.

Example 3. A spider in a 20×20×2020 \times 20 \times 20 room, sitting at one corner of the floor. A fly is at the diagonally opposite corner of the ceiling. Shortest surface path?

  • For an unfolding through two walls plus floor or ceiling: 402+202=200044.72\sqrt{40^2 + 20^2} = \sqrt{2000} \approx 44.72.
  • A second unfolding: 302+302=180042.43\sqrt{30^2 + 30^2} = \sqrt{1800} \approx 42.43. (Counterintuitive: a "ZZ-shaped" path is shorter.)

Example 4. On a cylinder of radius 11 and height 33, an ant at the bottom edge wants the diametrically-opposite top edge. Unfold the cylinder into a 2π×32\pi \times 3 rectangle. Half-circumference =π= \pi. Path: π2+918.874.34\sqrt{\pi^2 + 9} \approx \sqrt{18.87} \approx 4.34.

Try it yourself

  1. Cube of side 33. Find shortest corner-to-corner surface distance.
  2. Cuboid 2×5×62 \times 5 \times 6. Find shortest surface distance.
  3. Cube of side 11, ant going from a vertex to centre of the opposite face?
  4. Cylinder r=2r = 2, h=5h = 5. Shortest from bottom rim to diametrically opposite top rim.
  5. A long thin box 1×1×101 \times 1 \times 10. Shortest path corner-to-corner?
  6. Square pyramid base 44, slant edge 55. Shortest path along the surface from one base vertex to the opposite base vertex.
  7. Cube of side 55, ant on centre of one face going to centre of opposite face along surface.
  8. Compare with the "through-the-inside" straight-line distance for the 3×4×53 \times 4 \times 5 box (50\sqrt{50}).

Activity / Insight

Real-life unfolding. Take a small box and a piece of string. Mark two opposite corners. Try wrapping the string around the box to find the shortest path. Now unfold the box and draw the same string path as a straight line. The straight line should match the wrapped string exactly , and any other route should be longer.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Shortest paths
5 questions · pick the best answer
Q1

Shortest path between two points on a plane is

Q2

On a sphere, shortest path is along

Q3

To find shortest path on a box's surface, you should

Q4

Two cities on Earth : shortest flight follows

Q5

Distance from (0,0)(0,0) to (3,4)(3,4) in a plane