Count the diagonals of an n-gon and recover the side count from a stated number of diagonals
Count the diagonals of an n-gon with n(n-3)/2 and say why the halving is exact. The idea in plain words, a worked example, and a check with the answers shown — part of the free Geometry guides.
A diagonal is a segment joining two vertices that are not next to each other.
Count them in two steps, and the second step is the whole trick.
Step 1, from one vertex. A vertex has two neighbours, and a segment to a neighbour is a side, not a diagonal. So from one vertex you can draw a diagonal to each of the other vertices.
Step 2, from every vertex. There are vertices, so naively diagonals. But each diagonal has two ends, so this count has counted every diagonal exactly twice — once from each endpoint. Divide by two:
| | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 12 | |---|---|---|---|---|---|---|---|---| | diagonals | 0 | 2 | 5 | 9 | 14 | 20 | 35 | 54 |
A triangle has none, because every pair of its vertices is already joined by a side. A quadrilateral has two, and they are the two you can see in a rectangle.
Reading the formula backwards is the other half of this skill: given, find. That is a quadratic,, so
and the answer only counts if it comes out a whole number of at least three sides.
The count is a count of ordered pairs: (this vertex, that vertex). A diagonal from to and a diagonal from to are the same segment written two ways, and they appear as two different ordered pairs. Dividing by two is not a correction for overcounting in the sloppy sense; it is the exact conversion from ordered pairs to segments.
The same shape of argument gives the handshake count in a room of people,, and the count of edges in a complete graph. It is worth recognising because it recurs constantly: whenever the objects you are counting come in unordered pairs, count the ordered version and halve it.
Two checks on the formula, both worth doing before trusting it. At it gives, which is right: a triangle has no diagonal. At it gives, which is right: the two diagonals of a quadrilateral. A formula that fails one of those is wrong, and both are one line to check.
A regular decagon has sides.
(a) How many diagonals can be drawn from one vertex? (b) How many diagonals does it have in total? (c) A different polygon has diagonals. How many sides does it have?
(a). The two neighbours are joined by sides, so seven vertices remain.
(b).
(c) Solve, so, so, so. The root is discarded because a polygon cannot have a negative number of sides.
The check. Multiply back:. Always substitute the you found into the original formula rather than trusting the quadratic alone.
- Count the diagonals of an n-gon with n(n-3)/2 and say why the halving is exact
- Count the diagonals from a single vertex
- Recover the number of sides from a stated number of diagonals
- Reject a non-integer or too-small root when solving backwards
- 1. How many diagonals does a pentagon have?
- 2. How many diagonals can be drawn from one vertex of an-gon?
- 3. Why is the total divided by two?
- 4. A polygon has 14 diagonals. How many sides?
Answers
- 1..
- 2.: all the other vertices except the two neighbours.
- 3. Because each diagonal is counted once from each of its two endpoints.
- 4. gives, so.