Counting holes with V − E + F
Tonight's idea
Take a cube and count: \(V = 8\) vertices (corners), \(E = 12\) edges and \(F = 6\) faces. Then \(V - E + F = 8 - 12 + 6 = 2\). A pyramid on a triangle gives \(4 - 6 + 4 = 2\) again.
Now build the surface of any solid from flat polygons glued edge to edge, where each face is a polygon with no hole in it. The number \(V - E + F\) is called the Euler characteristic.
For a ball-like surface it is 2. For the surface of a doughnut it is 0, and for a doughnut with two holes it is \(-2\). Every hole takes away 2.
Cutting the faces into smaller polygons does not change the number. Stretching and bending do not change it either, a fact we will not prove here. So the number belongs to the shape, not to the cuts. Alternating tallies like this are how mathematicians count holes of every kind, a subject called homology.
Watch one: a square picture frame
A square picture frame is a doughnut with corners. The left picture shows it from above. Its top is a square ring, which is not allowed as a face because it has a hole. So cut the top into 4 pieces along the orange lines. The bottom looks the same, and upright edges and walls join top to bottom.
Vertices. 8 on top (the dots) and 8 below: \(V = 16\). Edges. On top, 4 outer, 4 inner and 4 cuts make 12. Below, 12 more. Under each dot hangs one upright edge, 8 in all: \(E = 12 + 12 + 8 = 32\).
Faces. 4 on top, 4 below, 4 outer walls and 4 inner walls around the hole. So \(F = 16\).
The tally. \(V - E + F = 16 - 32 + 16 = 0\), the doughnut's number. The trap. Skip the cuts and you lose 8 edges and 6 faces: \(16 - 24 + 10 = 2\), a ball's number. Ring faces break the rule.
Your turn
- Find \(V\), \(E\), \(F\) and \(V - E + F\) for each solid. (a) A square pyramid. (b) An octahedron: two square pyramids glued base to base, so that the two bases disappear inside. (c) A prism with a triangle at each end and three rectangles round the sides.
- Now flat shapes cut from card. Count only the pieces of card as faces: there is no outside face and no underside. (a) A square cut into 2 triangles by one diagonal. (b) A square with a dot at its centre, joined to all 4 corners. (c) Lift the centre dot of (b) up off the table. Which solid from exercise 1 has appeared, and which of its faces is missing? Use this to explain why the flat square does not give 2.
- Treat the two pictures above as flat card shapes, cut along the orange lines. (a) Find \(V\), \(E\), \(F\) and \(V - E + F\) for the left shape. (b) Do the same for the right shape. Its top and bottom strips each have 6 corners, which is allowed. (c) With exercise 2 you now have flat shapes with 0, 1 and 2 holes. Guess the rule for a flat shape in one piece with \(h\) holes. What would 5 holes give?
- The right picture is now the top of a solid window frame with two holes, built like the frame in the worked example: the same picture underneath, with upright edges and walls between. (a) Predict \(V - E + F\) before you count. (b) Count \(V\), \(E\) and \(F\) layer by layer and check. (c) The surface of a doughnut with \(g\) holes gives \(2 - 2g\). How many holes give \(-8\)? Can any number of holes give \(-3\)?
Stretch: why the cuts do not matter
(a) Put a new vertex inside a face that has \(n\) corners and join it to every corner. How do \(V\), \(E\) and \(F\) each change, and what happens to \(V - E + F\)? (b) Put a new vertex in the middle of an edge, splitting it in two. Same questions. (c) On the frame in the worked example, rub out the 4 cuts on the top one at a time. Each time, \(E\) drops by 1. What happens to \(F\) each time? Which rub-out changes \(V - E + F\), and what has the top become at that moment?
Answers
- (a) \(V = 5\), \(E = 8\) (4 round the base and 4 sloping), \(F = 5\) (the base and 4 triangles): \(5 - 8 + 5 = 2\). (b) \(V = 6\) (4 round the middle, one at the top and one at the bottom), \(E = 12\) (4 round the middle, 4 up and 4 down), \(F = 8\) triangles: \(6 - 12 + 8 = 2\). (c) \(V = 6\), \(E = 9\) (3 at each end and 3 between), \(F = 5\): \(6 - 9 + 5 = 2\). All three are ball-like, so all three give 2.
- (a) \(V = 4\), \(E = 5\) (4 sides and the diagonal), \(F = 2\): \(4 - 5 + 2 = 1\). (b) \(V = 5\), \(E = 8\) (4 sides and 4 spokes), \(F = 4\): \(5 - 8 + 4 = 1\). (c) A square pyramid with its base missing. Lifting the dot changes no counts, so the open pyramid still gives 1. Putting the base back adds one face and no new vertices or edges, and \(1 + 1 = 2\). A flat piece of card with no hole gives 1, not 2, because it is a ball-like surface with one face left off.
- (a) \(V = 8\), \(E = 12\) (4 outer, 4 inner, 4 cuts), \(F = 4\): \(8 - 12 + 4 = 0\). (b) \(V = 12\) (4 outer corners and 4 on each hole). \(E = 18\): 4 outer sides, 8 hole sides and 6 cuts. \(F = 5\): left, right, top, bottom and the bar between the holes. So \(12 - 18 + 5 = -1\). (c) The results 1, 0, \(-1\) suggest \(V - E + F = 1 - h\), so 5 holes would give \(-4\). Three examples are evidence, not a proof, but the rule is true for every flat shape in one piece, as long as each face is a polygon with no hole.
- (a) Two holes, so \(2 - 2 \times 2 = -2\). (b) \(V = 12 + 12 = 24\). \(E = 18\) on top, 18 below and 12 uprights, so \(E = 48\). \(F = 5\) on top, 5 below, 4 outer walls and 4 walls inside each hole, so \(F = 5 + 5 + 4 + 8 = 22\). Then \(24 - 48 + 22 = -2\), as predicted. The cuts need no walls, because they lie on the surface and the frame is solid beneath them. (c) \(2 - 2g = -8\) gives \(g = 5\) holes. And \(2 - 2g\) is always even, so no doughnut gives \(-3\).
Stretch. (a) \(V\) goes up by 1. \(E\) goes up by \(n\), one new edge to each corner. The face becomes \(n\) triangles, so \(F\) goes up by \(n - 1\). The change in \(V - E + F\) is \(1 - n + (n - 1) = 0\). (b) \(V\) goes up by 1 and \(E\) goes up by 1, because one edge has become two. \(F\) stays the same, though the faces beside that edge each gain a corner. The change is \(1 - 1 = 0\). (c) The first three rub-outs each merge two different faces into one, so \(F\) drops by 1 along with \(E\), and \(V - E + F\) stays 0. The fourth cut has the same face on both sides, so \(F\) does not drop: the tally is \(16 - 28 + 13 = 1\). At that moment the top has closed up into a ring. Do the same underneath and you reach \(16 - 24 + 10 = 2\), the trap in the worked example. Cuts can be added or removed freely only while every face stays a polygon with no hole.