Geometry

The sums a triangulation cannot change

The Japanese theorem says the inradii of any triangulation of a cyclic polygon add to the same total. Write the inradius as a sum of cosines of the angles, and the theorem becomes one case of a rule that fits in a line: a sum of f over every angle of every triangle ignores the triangulation exactly when f(x) + f(π − x) is constant. cos 3x qualifies, cos 2x does not, and the proof is the inscribed-angle theorem applied to a single flipped diagonal.

Worth reading first: A total hung in a temple · An angle that does not care where it stands.

A total hung in a temple followed the Japanese theorem from a sangaku tablet to its proof. Cut a polygon inscribed in a circle into triangles by non-crossing diagonals, draw each triangle’s incircle, and add the radii. The total is the same for every way of cutting. That essay checked it on a hexagon’s fourteen triangulations and proved it through Carnot’s theorem on the distances from the circumcentre to the sides. It ended by asking which other quantities share the property.

This essay answers the question for a large family at once. In a triangle with circumradius RR, the inradius is r=R(cos⁡A+cos⁡B+cos⁡C−1)r = R(\cos A + \cos B + \cos C - 1), so the Japanese theorem says that the sum of the cosines of all the angles of all the triangles does not depend on the triangulation. Replace the cosine with any function ff of an angle and the question becomes concrete: for which ff is the sum of ff over every angle of every triangle the same for all triangulations? The answer is a single condition on ff, and its proof is the inscribed-angle theorem used once.

Two triangulations, the same sum of cos 3x, different sums of cos 2x. Cyclic heptagon, triangulations 0 and 29: Σcos3x 1.52896873 / 1.52896873; Σcos2x -0.789261 / -0.467086.
Fig. 1 Two of the 42 ways to cut the same cyclic heptagon into triangles. The sum of cos⁡3x\cos 3x over every angle of every triangle is 1.5289691.528969 for both — and for all 42 — while the sum of cos⁡2x\cos 2x is −0.789-0.789 for one and −0.467-0.467 for the other.

A sum over angles

A triangulation of a convex polygon with nn vertices has n−2n - 2 triangles and therefore 3(n−2)3(n - 2) angles. The number of triangulations is a Catalan number, the sequence one sequence, counting everything found counting a dozen other things: 14 for a hexagon, 42 for a heptagon, 132 for an octagon. For each triangulation and each function ff, add f(angle)f(\text{angle}) over all its angles. The sum depends on the polygon, on ff and possibly on the triangulation, and the question is when the last dependence vanishes.

Some cases are obvious. With f(x)=xf(x) = x the sum is the total of all the angles, (n−2)π(n - 2)\pi, whatever the triangulation. With f(x)=12sin⁡2xf(x) = \tfrac12\sin 2x and the circle of radius one, the sum is the polygon’s area. A triangle inscribed in a unit circle has area 12(sin⁡2A+sin⁡2B+sin⁡2C)\tfrac12(\sin 2A + \sin 2B + \sin 2C), and the triangles of any triangulation tile the polygon. The Japanese theorem is the first case that is not obvious: f(x)=cos⁡xf(x) = \cos x. The hero figure adds a fourth, cos⁡3x\cos 3x, which nothing in the literature of sangaku suggests.

Eleven functions, forty-two triangulations

Testing a function is mechanical: enumerate the 42 triangulations of a fixed cyclic heptagon, compute each sum, and measure the spread between the largest and smallest.

Which angle sums ignore the triangulation. cos x: 1.78e-15; cos 3x: 1.07e-14; cos 5x: 1.15e-14; sin 2x: 5.33e-15; x: 5.33e-15; (x − π/2)³: 1.78e-14; cos 2x: 2.47e+0; sin x: 7.53e-1; cos 4x: 4.69e+0; x²: 1.60e+0; tan(x/2): 1.14e+0.
Fig. 2 For eleven functions ff, the spread of the sum of ff over every angle of every triangle across all 42 triangulations of the heptagon, on a logarithmic scale. Six spreads are rounding error, near 10−1410^{-14}; five are of order one.

The result is a clean split. Six functions give spreads of 10−1510^{-15} to 10−1410^{-14}, which is the arithmetic’s rounding error: cos⁡x\cos x, cos⁡3x\cos 3x, cos⁡5x\cos 5x, sin⁡2x\sin 2x, xx and (x−π/2)3(x - \pi/2)^3. Five give spreads between 0.750.75 and 4.74.7: cos⁡2x\cos 2x, sin⁡x\sin x, cos⁡4x\cos 4x, x2x^2 and tan⁡(x/2)\tan(x/2). There is nothing in between, no function that is nearly invariant. The six are exactly the functions for which f(x)+f(π−x)f(x) + f(\pi - x) is the same for every xx, and the five are exactly those for which it is not. cos⁡(π−x)=−cos⁡x\cos(\pi - x) = -\cos x, so the cosine and its value at π−x\pi - x always add to nought. cos⁡3(π−x)=−cos⁡3x\cos 3(\pi - x) = -\cos 3x likewise. But cos⁡2(π−x)=+cos⁡2x\cos 2(\pi - x) = +\cos 2x, so those add to 2cos⁡2x2\cos 2x, which varies.

One flip, and the inscribed angles that cancel

The proof needs two facts. The first is combinatorial: any triangulation can be turned into any other by a sequence of flips, each of which removes one diagonal, leaving a quadrilateral, and inserts the other diagonal of that quadrilateral. So a sum is the same for all triangulations as soon as no single flip changes it. The second fact is the theorem of an angle that does not move: angles inscribed in the same arc are equal. Neither fact alone is enough: the flips connect every triangulation to every other without saying anything about angles, and the inscribed-angle theorem relates angles without saying anything about how triangulations differ. Together they reduce a statement about every triangulation to a statement about one quadrilateral.

One flip of a diagonal, and what it changes. Cyclic quadrilateral with angles A 85.94°, B 99.79°, C 94.06°, D 80.21°.
Fig. 3 A cyclic quadrilateral ABCDABCD cut by its diagonal ACAC (left) and by BDBD (right). By the inscribed-angle theorem, four of the six angles on the left equal four on the right; what is left is the whole angles BB and DD on the left and AA and CC on the right.

Cut a cyclic quadrilateral ABCDABCD by the diagonal ACAC. The two triangles have six angles. Two are the quadrilateral’s whole angles at BB and DD, and four are pieces of its angles at AA and CC: ∠BAC\angle BAC, ∠CAD\angle CAD, ∠BCA\angle BCA and ∠ACD\angle ACD. Cut it instead by BDBD. Now the whole angles are at AA and CC, and the four pieces are ∠ABD\angle ABD, ∠DBC\angle DBC, ∠ADB\angle ADB and ∠BDC\angle BDC. Each piece on one side equals a piece on the other: ∠BAC\angle BAC and ∠BDC\angle BDC stand on the same chord BCBC, ∠CAD\angle CAD and ∠CBD\angle CBD on CDCD, and so on round the quadrilateral. The pieces cancel in pairs.

What remains is the difference

f(B)+f(D)−f(A)−f(C).f(B) + f(D) - f(A) - f(C).

Opposite angles of a cyclic quadrilateral add to π\pi — the inscribed-angle theorem again, since the two arcs they stand on make up the whole circle. So D=π−BD = \pi - B and C=π−AC = \pi - A, and the difference is [f(B)+f(π−B)]−[f(A)+f(π−A)][f(B) + f(\pi - B)] - [f(A) + f(\pi - A)]. That is zero for every quadrilateral exactly when f(x)+f(π−x)f(x) + f(\pi - x) is the same for all xx. The rule is proved in both directions. If f(x)+f(π−x)f(x) + f(\pi - x) is constant, no flip changes the sum. If not, a quadrilateral with angles chosen where it differs gives a flip that does, and that quadrilateral can be part of a larger cyclic polygon.

Carnot’s proof is the same proof

The proof in a total hung in a temple went through Carnot’s theorem: in any triangle, the signed distances from the circumcentre to the three sides add to R+rR + r. It looks like a different argument, and it is the same one. The signed distance from the circumcentre to a chord is RR times the cosine of the inscribed angle standing on that chord, measured from the side where the triangle lies. So Carnot’s theorem is the cosine formula for the inradius, written chord by chord instead of angle by angle.

Summed over a triangulation, each diagonal appears in two triangles, once on each side. Its two signed distances are Rcos⁡θR\cos\theta and Rcos⁡(π−θ)R\cos(\pi - \theta), where θ\theta and π−θ\pi - \theta are the two inscribed angles standing on it, one from each side. These are supplementary because the two arcs on either side make up the whole circle. The two terms cancel, only the polygon’s own sides survive, and the total is fixed. That is the flip argument with the cancellation moved from the corners of a quadrilateral to the two sides of a chord, and it needs the same property of the cosine. For cos⁡3x\cos 3x the chord-by-chord version works identically: the diagonal contributes cos⁡3θ+cos⁡3(π−θ)=0\cos 3\theta + \cos 3(\pi - \theta) = 0.

Seen this way, every invariant in the family is a sum over the chords of a cyclic polygon of a quantity that depends on the chord and on the side it is viewed from, odd under switching sides. The power of a point, which one number for every chord through a point attached to every chord through a fixed point, is a quantity of the same kind, attached to chords rather than to triangles.

Odd harmonics and even ones

The criterion has a natural form for cosines of multiples of the angle.

cos kx sums: odd harmonics ignore the triangulation, even ones do not. k=1: 3.55e-15; k=2: 1.55e+1; k=3: 2.40e-14; k=4: 1.55e+1; k=5: 5.82e-14; k=6: 1.47e+1; k=7: 9.95e-14; k=8: 1.64e+1.
Fig. 4 For f(x)=cos⁡kxf(x) = \cos kx with kk from 1 to 8, the largest spread across all 132 triangulations of each of 40 random cyclic octagons. Odd kk give rounding error; even kk give spreads of order one.

cos⁡k(π−x)=(−1)kcos⁡kx\cos k(\pi - x) = (-1)^k \cos kx. For odd kk the two terms cancel, and for even kk they double. So every odd harmonic gives an invariant sum and every even one does not, on every cyclic polygon. The figure confirms it on forty random octagons, with spreads below 10−1310^{-13} for k=1,3,5,7k = 1, 3, 5, 7 and above 10 for k=2,4,6,8k = 2, 4, 6, 8.

That gives the whole family a description. Write y=x−π/2y = x - \pi/2, the angle measured from a right angle. The condition f(x)+f(π−x)=cf(x) + f(\pi - x) = c says that f−c/2f - c/2 is an odd function of yy. A sum of ff over the angles ignores the triangulation exactly when ff, centred at a right angle, has only odd terms — sin⁡\sin of odd multiples of yy, odd powers of yy, or anything built from them. cos⁡x=−sin⁡y\cos x = -\sin y is the simplest such function, which is why the Japanese theorem was found first.

Odd powers of the cosines

The odd-function form of the criterion produces invariants that look nothing like the Japanese theorem. Since cos⁡(π−x)3=−cos⁡3x\cos(\pi - x)^3 = -\cos^3 x, the sum of the cubes of the cosines of all the angles is invariant. So is the sum of their fifth powers, and of any odd polynomial in the cosines. These are not new in disguise: cos⁡3x=14(cos⁡3x+3cos⁡x)\cos^3 x = \tfrac14(\cos 3x + 3\cos x), so the sum of cubes is a combination of the sums of cos⁡3x\cos 3x and cos⁡x\cos x, both invariant already. The odd harmonics and the odd powers span the same family, the way a Fourier series and a power series describe the same odd functions in two different bases.

The even powers fail for the matching reason. The sum of the squared cosines is 12∑(1+cos⁡2x)\tfrac12\sum(1 + \cos 2x), which carries the non-invariant cos⁡2x\cos 2x, and it varies from one triangulation to the next. So does every combination that contains an even harmonic with a nonzero coefficient. A proposed identity for cyclic polygons that involves a quadratic in the cosines, or the product cos⁡Acos⁡Bcos⁡C\cos A \cos B \cos C that appears in formulas for the orthocentre, cannot be true for all triangulations unless the even part cancels exactly. The criterion detects that in one line, without any figure.

Named quantities, sorted

The criterion turns a list of familiar triangle quantities into a test, because most of them have formulas in the angles when the circumradius is one.

Named triangle quantities that do and do not ignore the triangulation. inradius r: 1.55e-15; OI², circumcentre to incentre: 3.11e-15; sum of the three exradii: 1.42e-14; area: 3.11e-15; perimeter: 1.51e+0; OH², circumcentre to orthocentre: 4.94e+0; r²: 6.58e-2.
Fig. 5 Seven quantities of a triangle inscribed in a circle of radius one, each written as a function of its angles, and the spread of their sums across the heptagon’s 42 triangulations, computed from the vertices directly. The four that are linear in cos⁡\cos or in sin⁡2x\sin 2x ignore the triangulation; the other three do not.

The inradius is cos⁡A+cos⁡B+cos⁡C−1\cos A + \cos B + \cos C - 1; its sum is invariant, which is the Japanese theorem. The squared distance from circumcentre to incentre is OI2=1−2rOI^2 = 1 - 2r by Euler’s formula, linear in rr, so its sum is invariant too. The same holds for the sum of the three exradii, 4+r4 + r, and for the area, 12∑sin⁡2A\tfrac12\sum \sin 2A. The perimeter is 2(sin⁡A+sin⁡B+sin⁡C)2(\sin A + \sin B + \sin C). Since sin⁡(π−x)=sin⁡x\sin(\pi - x) = \sin x, that fails the criterion, and indeed the perimeters depend on which diagonals are drawn. The squared distance from circumcentre to orthocentre is 3+2∑cos⁡2A3 + 2\sum \cos 2A, which fails because cos⁡2x\cos 2x does. And r2r^2 fails because squaring a sum of cosines is not a sum of odd functions.

The figure computes each quantity from the triangle’s vertices, not from these formulas, and the split matches the criterion exactly. It gives a quick way to read off whether any proposed generalisation of the Japanese theorem can be true. A quantity linear in the inradius always works. Anything involving the perimeter, the orthocentre or a square never does.

The flip graph

The proof used the fact that flips connect every triangulation, and for the heptagon the connections can be drawn.

The flip graph of the heptagon's triangulations. 42 triangulations, each with 4 flips; Σcos2x from -0.8631 to 1.6087; Σcos x constant.
Fig. 6 The 42 triangulations of the heptagon, joined when one flip turns one into the other — every triangulation has exactly four — arranged in order of their sum of cos⁡2x\cos 2x, from cool to warm. Any quantity unchanged by every flip is the same on all 42.

Every triangulation of a heptagon has four diagonals, and each can be flipped, so each point in the graph has exactly four neighbours. The graph is connected. It is the skeleton of the associahedron, the solid whose corners are triangulations, and its diameter for nn-gons is 2n−102n - 10 for large nn, a theorem of Daniel Sleator, Robert Tarjan and William Thurston settled completely by Lionel Pournin in 2014. The colours show ∑cos⁡2x\sum \cos 2x changing along almost every edge. An invariant sum is constant along every edge, so it is constant on the whole graph.

The same structure appears in every side measured by one diameter, where Ptolemy’s relation among a cyclic quadrilateral’s sides and diagonals is the identity behind a flip. Quantities that are additive over a triangulation and unchanged by flips are the subject’s natural invariants. Angle sums are only one family of them.

Off the circle, almost nothing survives

The circle is doing all the work, and moving a single vertex off it shows how much. On a convex polygon that is not inscribed in a circle, a flip still exchanges two triangulations of a quadrilateral. The inscribed-angle pairing of the small angles fails, because the four pieces no longer stand on common chords of a circle, and the opposite angles of the quadrilateral no longer add to π\pi. Of the six invariant functions in the spread figure, only f(x)=xf(x) = x survives on every convex polygon. The total of all the angles is (n−2)π(n - 2)\pi regardless.

The area survives as a quantity, since triangles always tile the polygon, but not as the angle sum 12∑sin⁡2x\tfrac12\sum\sin 2x. That formula assumed every triangle had circumradius one, and off the circle the triangles have different circumcircles. The Japanese theorem fails too, as a total hung in a temple showed by pushing one vertex of a hexagon off its circle and watching the fourteen totals spread. The invariants of this essay are invariants of cyclic polygons, and they are as special as the circle.

What the computation can and cannot show

Each figure computes every triangulation exactly and reports spreads at the level of the arithmetic’s rounding. The split between 10−1410^{-14} and order one is unambiguous. The criterion itself is proved by the flip argument, not by the figures, and the figures test it on particular polygons. A function could in principle pass on the heptagon and fail elsewhere. The proof says it cannot, because the condition involves only the quadrilateral’s angles, and every pair of supplementary angles occurs in some cyclic quadrilateral.

The figures also restrict attention to sums of a single function over individual angles. Quantities that depend on two angles of a triangle jointly, or on the triangle’s shape in ways not expressible angle by angle, need a different analysis. Some are invariant for other reasons; the area, for example, also equals a sum over the triangle’s edges of signed terms, and is invariant for that reason too.

Still open: invariants of other kinds

The criterion settles which sums of an angle function are invariant. It does not settle which quantities of a triangle in general have triangulation-invariant sums. A quantity can be a function of all three angles at once, and the flip argument then gives a functional equation on pairs of triangles that share a diagonal. Its solutions include every sum of odd angle functions and every edge-additive quantity like the area. Whether there are others, and how to describe the whole space of solutions, is a question that has been studied for particular families and has no general answer.

The same question can be asked for polygons inscribed in a sphere or in the hyperbolic plane, where the inscribed-angle theorem fails in its simple form and the Japanese theorem needs modification. On those surfaces some versions hold, with the inradius replaced by a suitable function of it, and the full list of invariants is not known. The criterion here depends on opposite angles of a cyclic quadrilateral adding to π\pi, and on the sphere they add to more.

A theorem that was one case of a rule

The sangaku that recorded the Japanese theorem stated a single surprising equality. The cosine formula for the inradius turns it into a statement about a sum of cosines over angles. The inscribed-angle theorem, applied to one flip, reduces it to a property of the cosine: cos⁡x+cos⁡(π−x)=0\cos x + \cos(\pi - x) = 0. Every function with that property, centred at a right angle and odd, gives a theorem of the same kind — cos⁡3x\cos 3x and cos⁡5x\cos 5x among them, and the area and the angle sum as the trivial members. The equality on the temple tablet was the first member of the family to be noticed, not a property special to the inradius. What made it the first is that the inradius is the one member with a picture: an incircle can be drawn inside each triangle and its radius measured with a ruler, while the sum of cos⁡3x\cos 3x has no circle to draw. The criterion explains the tablet’s theorem, and it also says that the theorem has many silent relatives, true on every cyclic polygon and visible only to someone who computes the sums.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Catalan numbersCyclic-quadrilateralIncircleInscribed angleInvariantTriangulation