An Ant Finds Its Shortest Route by Flattening the Box
Learn to identify the solid a net folds into, count vertices, edges and faces of prisms and pyramids, test whether an arrangement closes up, and find the shortest surface path across a cuboid by unfolding it.
How does an ant find the shortest way across the outside of a box?
By flattening the box in its mind. Once two faces are unfolded into one flat sheet, the shortest route between the two points is a straight line — which becomes a bent path when the box is folded back up.
A curved-looking problem turns into Pythagoras. This page covers everything in the CBSE Class 8 Mathematics chapter's second part: identifying solids from nets, counting vertices, edges and faces, testing whether a net closes, and shortest paths.
A curved-looking problem turns into Pythagoras. This page covers everything in the CBSE Class 8 Mathematics chapter's second part: identifying solids from nets, counting vertices, edges and faces, testing whether a net closes, and shortest paths.
Which solid does a given net fold into?
A net is a flat arrangement of faces that folds into a solid with no gaps and no overlaps. Count the shapes and their kinds, and the solid is decided.
- 6 squares — a cube
- 6 rectangles in matching pairs — a cuboid
- 2 triangles and 3 rectangles — a triangular prism
- 2 hexagons and 6 rectangles — a hexagonal prism
- 1 square and 4 triangles — a square pyramid
- 4 triangles — a triangular pyramid (tetrahedron)
- 2 circles and 1 rectangle — a cylinder, where the rectangle's length equals the circle's circumference
- 1 circle and 1 sector — a cone
- 8 equilateral triangles — an octahedron
The pattern is worth noticing. A prism has two identical end faces joined by rectangles; a pyramid has one base and triangles meeting at a single apex. So triangles all round means a pyramid or an octahedron, while rectangles in the middle means a prism.
An unfolded cardboard carton flattened for recycling is a cuboid net you can handle, and a cut-open cone from a party hat shows the sector clearly.
The count of faces alone is not enough, and that is what the next section tests. Both a square pyramid and a triangular prism have 5 faces — they are told apart by the kinds of face, since the pyramid has one square and four triangles while the prism has two triangles and three rectangles.
- 6 squares — a cube
- 6 rectangles in matching pairs — a cuboid
- 2 triangles and 3 rectangles — a triangular prism
- 2 hexagons and 6 rectangles — a hexagonal prism
- 1 square and 4 triangles — a square pyramid
- 4 triangles — a triangular pyramid (tetrahedron)
- 2 circles and 1 rectangle — a cylinder, where the rectangle's length equals the circle's circumference
- 1 circle and 1 sector — a cone
- 8 equilateral triangles — an octahedron
The pattern is worth noticing. A prism has two identical end faces joined by rectangles; a pyramid has one base and triangles meeting at a single apex. So triangles all round means a pyramid or an octahedron, while rectangles in the middle means a prism.
An unfolded cardboard carton flattened for recycling is a cuboid net you can handle, and a cut-open cone from a party hat shows the sector clearly.
The count of faces alone is not enough, and that is what the next section tests. Both a square pyramid and a triangular prism have 5 faces — they are told apart by the kinds of face, since the pyramid has one square and four triangles while the prism has two triangles and three rectangles.
How do you count the vertices, edges and faces?
Count in groups rather than one at a time, and check the answer with Euler's relation .
The standard solids:
- Cube — , , . Check:
- Cuboid — , ,
- Triangular prism — , , . Check:
- Square pyramid — , , . Check:
- Tetrahedron — , , . Check:
- Octahedron — , , . Check:
- Hexagonal prism — , , . Check:
General rules save memorising. For a prism on an -sided base:
Testing on : , , — the triangular prism, correct.
For a pyramid on an -sided base:
Testing on : , , — the square pyramid, correct.
Counting a cuboid's edges in groups is the safe method: on the top, on the bottom and vertical, giving — far more reliable than ticking off twelve separate lines in a sketch. And Euler's relation applies to polyhedra only, so it will not check a cylinder or a cone.
The standard solids:
- Cube — , , . Check:
- Cuboid — , ,
- Triangular prism — , , . Check:
- Square pyramid — , , . Check:
- Tetrahedron — , , . Check:
- Octahedron — , , . Check:
- Hexagonal prism — , , . Check:
General rules save memorising. For a prism on an -sided base:
Testing on : , , — the triangular prism, correct.
For a pyramid on an -sided base:
Testing on : , , — the square pyramid, correct.
Counting a cuboid's edges in groups is the safe method: on the top, on the bottom and vertical, giving — far more reliable than ticking off twelve separate lines in a sketch. And Euler's relation applies to polyhedra only, so it will not check a cylinder or a cone.
How do you tell whether an arrangement folds into a closed solid?
Check the number of faces first, then mentally fold to see whether each face reaches a different position with no overlap.
For a cube the arrangement must have exactly 6 squares. That is necessary but not sufficient.
Works. Four squares in a row with one attached above and one below, in a cross shape. Folding the row into a ring gives the four side faces, and the two extra squares become the top and bottom. There are eleven different arrangements of six squares that fold into a cube.
Fails. Six squares in a straight line. Folding the row wraps it round, and after four squares the ring is complete — the fifth and sixth then overlap faces already in place, leaving the top and bottom open.
Fails. Six squares in a block. Folding it leaves faces overlapping and two openings.
Correcting a failed net. Take the straight line of six squares. Remove the last two from the end and attach them above and below the row instead, one each. Now four squares form the ring and the two moved squares close the top and bottom — a working net.
The same reasoning applies to other solids. A square pyramid needs one square with a triangle on each of its four sides; four triangles attached to just two sides of the square cannot close.
The test that actually decides it is folding, not counting, and it is why the eleven cube nets have to be recognised rather than derived from the number 6. Each of the six squares must land on a different face of the cube — so if two squares would arrive at the same place, the arrangement fails however many squares it has.
For a cube the arrangement must have exactly 6 squares. That is necessary but not sufficient.
Works. Four squares in a row with one attached above and one below, in a cross shape. Folding the row into a ring gives the four side faces, and the two extra squares become the top and bottom. There are eleven different arrangements of six squares that fold into a cube.
Fails. Six squares in a straight line. Folding the row wraps it round, and after four squares the ring is complete — the fifth and sixth then overlap faces already in place, leaving the top and bottom open.
Fails. Six squares in a block. Folding it leaves faces overlapping and two openings.
Correcting a failed net. Take the straight line of six squares. Remove the last two from the end and attach them above and below the row instead, one each. Now four squares form the ring and the two moved squares close the top and bottom — a working net.
The same reasoning applies to other solids. A square pyramid needs one square with a triangle on each of its four sides; four triangles attached to just two sides of the square cannot close.
The test that actually decides it is folding, not counting, and it is why the eleven cube nets have to be recognised rather than derived from the number 6. Each of the six squares must land on a different face of the cube — so if two squares would arrive at the same place, the arrangement fails however many squares it has.
How do you find the shortest path across a cuboid's surface?
Unfold the cuboid so both points lie on one flat sheet, join them with a straight line, and find its length with Pythagoras. Different unfoldings give different lengths, so try each and take the smallest.
Worked example. A cuboid measures units long, wide and high. An ant travels across the surface from one corner to the opposite corner. There are three sensible unfoldings:
Unfolding 1 — across the length and width, then the height:
Unfolding 2 — across the length and height, then the width:
Unfolding 3 — across the width and height, then the length:
The shortest is units, from unfolding 3.
Worked example on a cube of side . All three unfoldings give the same length:
A spider crossing a room from a floor corner to the opposite ceiling corner faces exactly this problem.
The pattern in the three answers is worth reading: pairing the two smallest dimensions inside the bracket gave the shortest route, because that keeps the squared sum lowest.
And note what this is not. The straight line through the inside of the cuboid is , which is shorter still — but an ant cannot tunnel, so the surface answer is the larger . Reading whether the path must stay on the surface decides which calculation the question wants.
Worked example. A cuboid measures units long, wide and high. An ant travels across the surface from one corner to the opposite corner. There are three sensible unfoldings:
Unfolding 1 — across the length and width, then the height:
Unfolding 2 — across the length and height, then the width:
Unfolding 3 — across the width and height, then the length:
The shortest is units, from unfolding 3.
Worked example on a cube of side . All three unfoldings give the same length:
A spider crossing a room from a floor corner to the opposite ceiling corner faces exactly this problem.
The pattern in the three answers is worth reading: pairing the two smallest dimensions inside the bracket gave the shortest route, because that keeps the squared sum lowest.
And note what this is not. The straight line through the inside of the cuboid is , which is shorter still — but an ant cannot tunnel, so the surface answer is the larger . Reading whether the path must stay on the surface decides which calculation the question wants.
Exam tip
Exam tip: trying all three unfoldings before answering
Net and solid questions reward a systematic approach over guessing.
For a shortest-path question, compute all three unfoldings and state the smallest. Showing only one leaves the answer unjustified even if it happens to be right.
Remember the form: , and pair the two smallest dimensions to find the shortest.
Check whether the path is on the surface or through the solid — they give different answers.
When counting edges, count in groups, and verify with for a polyhedron. Quote the general prism and pyramid rules where they apply.
And for a net, count the faces and mentally fold. Six squares is necessary but not sufficient, so say why a failing net fails — usually that two faces would overlap.
For a shortest-path question, compute all three unfoldings and state the smallest. Showing only one leaves the answer unjustified even if it happens to be right.
Remember the form: , and pair the two smallest dimensions to find the shortest.
Check whether the path is on the surface or through the solid — they give different answers.
When counting edges, count in groups, and verify with for a polyhedron. Quote the general prism and pyramid rules where they apply.
And for a net, count the faces and mentally fold. Six squares is necessary but not sufficient, so say why a failing net fails — usually that two faces would overlap.
Did you know
Why does flattening the box turn a bent path into a straight one?
Because unfolding does not stretch or squash anything — it only changes how the faces are arranged.
Every distance measured along the surface is preserved when the box is opened out flat, so a route that crossed two faces becomes a route across one flat sheet of the same total length. And on a flat sheet the shortest route between two points is a straight line.
Fold the box back up and that straight line becomes a bend at the edge, but its length is unchanged. So the flattening is not an approximation — it is an exact way of measuring a path you could not lay a ruler along.
Every distance measured along the surface is preserved when the box is opened out flat, so a route that crossed two faces becomes a route across one flat sheet of the same total length. And on a flat sheet the shortest route between two points is a straight line.
Fold the box back up and that straight line becomes a bend at the edge, but its length is unchanged. So the flattening is not an approximation — it is an exact way of measuring a path you could not lay a ruler along.
Key takeaways
Nets, solids and shortest paths: quick revision
- Identify a solid from its net by the kinds of face: 6 squares a cube, 2 triangles and 3 rectangles a triangular prism, 1 square and 4 triangles a square pyramid, 8 triangles an octahedron.
- Face count alone is not enough — a square pyramid and a triangular prism both have 5 faces.
- Counts: cube ; triangular prism ; square pyramid ; tetrahedron ; octahedron — all satisfying .
- General rules: a prism on an -gon has , , ; a pyramid has , , .
- Six squares is necessary but not sufficient for a cube — a straight line of six overlaps when folded, and there are eleven working arrangements.
- Unfold to find a surface path: for a cuboid the three options give , and , so the shortest is — while the route through the solid would be .
You will remember all of this far better after answering five questions on it than after reading it twice.
- Face count alone is not enough — a square pyramid and a triangular prism both have 5 faces.
- Counts: cube ; triangular prism ; square pyramid ; tetrahedron ; octahedron — all satisfying .
- General rules: a prism on an -gon has , , ; a pyramid has , , .
- Six squares is necessary but not sufficient for a cube — a straight line of six overlaps when folded, and there are eleven working arrangements.
- Unfold to find a surface path: for a cuboid the three options give , and , so the shortest is — while the route through the solid would be .
You will remember all of this far better after answering five questions on it than after reading it twice.