My son presented me with an interesting problem:

Of all possible polygons inscribed in a circle of radius $R$, find the one that has the sum $S$ of squared side lengths maximized: $S=a_1^2+a_2^2+\dots+a_n^2$, with $a_i$ representing the length of the $i$-th side. The number of sides is not fixed, you should consider all triangles, quadrilaterals, pentagons...

It's not that complicated, at least in the beginning. It's easy to show that the optimal polygon (with $n>3$) cannot have obtuse ($>90^\circ$) angles. For example, if such an angle $A_{i-1}A_{i}A_{i+1}$ exists, by cosine theorem:


So if you drop vertex $A_i$, you get a polygon with a bigger $S$. This quickly eliminates all polygons with $n>4$.

All candidate polygons with $n=4$ must be rectangles and if their sides are $a$ and $b$, the sum $S$ is $2a^2+2b^2=8R^2$. So with respect to $S$ all rectangles inscribed in the circle are equivalent. In fact, a right triangle with sides $a$, $b$ and $2R$ has the same $S$ as any inscribed rectangle.

But maybe there is an inscribed triangle with $S>8R^2$. I was able to show that for an inscribed triangle with sides $a,b,c$ and $b\ne c$, an isosceles triangle with all acute angles and base $a$ has better value of $S$. So the optimal triangle must be isosceles. Looking from all three sides, the only possible solution is the equilateral triangle and the sum $S$ in that case is $9R^2$.

However, to prove that fact I had to use trigonometry which is not so complicated (and I can present it here if you want so), but it leaves impression that there has to be some simpler explanation why the equilateral triangle is the best choice. My trigonometry proof takes a few lines of text, I want something more elegant.

Just an idea: if you draw lines through the center of the circle perpendicular to the sides of a triangle and denote the pedal lengths with $h_a,h_b,h_c$, it's easy to show that in order to maximize $a^2+b^2+c^2$ you have to minimize $h_a^2+h_b^2+h_c^2$. And then - what?

EDIT: I want to present the part of the proof that I don't like. Take an arbitrary triangle $ABC$ with sides $a,b,c$ inscribed in a circle. Consider side $a$ fixed and play with angle $\gamma$ to get different values of $b,c$. I want to prove that isosceles triangle $BCA_1$ has bigger $S$ than any other triangle with one side equal to $a$.

enter image description here






And this sum achieves maximum obviously for $\gamma=0$, or for $A\equiv A_1$. So for any given side $a$, $b$ and $c$ must be of equal. But you can look at the optimal triangle from sides $b$ and $c$ as well. The only triangle which has no better option is equilateral triangle.

EDIT 2: This “moving vertex” procedure can be repeated infinite number of times and the result is an equilateral triangle! Check excellent proof by Noah Schweber here.

  • 1
    $\begingroup$ Note that your last sentence "The only triangle which has no better option is equilateral triangle." is insufficient to imply "The equilateral triangle is better than every other triangle.". See my answer for a sketch of how to do that part rigorously. $\endgroup$ – user21820 Sep 17 '18 at 17:45
  • $\begingroup$ @Oldboy, I'm studying your topic and curiously I have a problem a little similar in here. The triangle's case was the most problematic for me too. $\endgroup$ – Na'omi Sep 18 '18 at 14:10

Yes, the maximal sum is the one of the equilateral triangle, that is $9R^2$.

Since Prove that in any triangle $ABC$, $\cos^2A+\cos^2B+\cos^2C\geq\frac{3}{4}$ then $$ \sin^2 A+\sin^2 B+\sin^2 C=3-\cos^2 A-\cos^2 B-\cos^2 C\leq \frac{9}{4} $$ where $A$, $B$ and $C$ are non negative numbers such that $A+B+C=\pi$. Hence, for any inscribed triangle, the sum of the squares of the sides is $$(2R\sin A)^2+(2R\sin B)^2+(2R\sin C)^2\leq 9R^2.$$

  • $\begingroup$ I have upvoted your answer, it's just that it's not much simpler compared with my solution. It uses a trigonometric fact about triangle that is not obvious. Anyway, if nothing better shows up in a day or two, I'll accept your answer as the best one. $\endgroup$ – Oldboy Sep 17 '18 at 9:27

This problem can be stated as

$$ \max_{n}\sum_{k=1}^n\left(2r\sin\left(\frac{\theta_k}{2}\right)\right)^2 $$

s. t.

$$ \sum_{k=1}^n\theta_k = 2\pi $$


$$ \sum_{k=1}^n\left(2r\sin\left(\frac{\theta_k}{2}\right)\right)^2\ge n\left(2^{2n}r^{2n}\prod_{k=1}^n\sin^2\left(\frac{\theta_k}{2}\right)\right)^{\frac 1n} $$

assuming $\theta_1=\cdots=\theta_n$ we have

$$ \sum_{k=1}^n\left(2r\sin\left(\frac{\theta_k}{2}\right)\right)^2\ge n\left(2^{2n}r^{2n}\sin^{2n}\left(\frac{\pi}{n}\right)\right)^{\frac 1n} = n2^2r^2\sin^{2}\left(\frac{\pi}{n}\right) $$

Now calling

$$ f(n) = n\sin^{2}\left(\frac{\pi}{n}\right) $$

we have clearly a maximum about $n = 3$ as can be depicted in the attached plot

enter image description here

  • 6
    $\begingroup$ This is interesting, but as far as I can tell it assumes that the polygon is regular; and in some cases an irregular polygon can do better for fixed $n$. For example, for a regular hexagon, we have $S = 6 R^2$. But for a hexagon where four of the points are degenerate, the hexagon is "basically" a triangle with three sides of length zero; and if we pick the other three sides to have equal length, we have an equilateral triangle with $S = 9 R^2$. $\endgroup$ – Michael Seifert Sep 17 '18 at 14:50

Let $\theta_k$ be the successive angles subtended by the sides, but the last one. The sum of squares is given by

$$4\sum_{k=1}^n\sin^2\frac{\theta_k}2+4\sin^2\left(\pi-\frac12\sum_{k=1}^n\theta_k\right)$$ which has the same extrema as $$\sum_{k=1}^n\cos\theta_k-\cos\left(\sum_{k=1}^n\theta_k\right).$$

Canceling the gradient,


This shows that all angles $\theta_k$ must be equal, and then

$$n\cos\theta-\cos n\theta$$ is minimized with $n\theta=2\pi$.


$$n\cos\frac{2\pi} n-\cos\pi$$ is the smallest with $n=3$.


The objective function is continuous on the domain of interest (all triples of points on the circle), which is also compact. Therefore by the extreme value theorem it has a global maximum. That reduces the problem to the part you are interested in, namely proving that if the optimal triangle has sides $a,b,c$ then $b = c$. Firstly it has to be acute as you observed. Thus maximizing $b^2+c^2$ $= a^2+2bc·\cos(\angle A)$ is equivalent to maximizing $bc$, since fixing $B,C$ fixes $a$ and $\angle A$. Letting $x = \angle BAO$ and $y = \angle OAC$ we have $bc = 4R^2·\cos(x)\cos(y)$, and finally note $2 \cos(x)\cos(y)$ $= \cos(x+y) + \cos(x-y)$ $\le \cos(x+y) + 1$ $= \cos(\angle A) + 1$ with equality exactly when $x=y$.

  • 2
    $\begingroup$ Part of the reason for the first part of my answer is that I have a small suspicion that you did not get that part right. One cannot automatically claim that every optimization problem has a global extremum. This has to be proven, and you cannot do so via an infinite iterative process unless you prove that it converges. One way around this is to use the extreme value theorem if the domain is compact, as here. $\endgroup$ – user21820 Sep 17 '18 at 17:43

$$ \begin{align} AB^2 + BC^2 + CA^2 &= (\vec{OB} - \vec{OA})^2 + (\vec{OC} - \vec{OB})^2 + (\vec{OA} - \vec{OC})^2\\ &= 2(\vec{OA})^2 + 2(\vec{OB})^2 + 2(\vec{OC})^2 - 2 \times \vec{OA} \cdot \vec{OB} - 2 \times \vec{OB} \cdot \vec{OC} - 2 \times \vec{OC} \cdot \vec{OA} \\ &= 3(\vec{OA})^2 + 3(\vec{OB})^2 + 3(\vec{OC})^2 - (\vec{OA} + \vec{OB} + \vec{OC})^2 \\ &\leq 9R^2. \end{align} $$

  • $\begingroup$ I would try to avoid $\times$, as it usually denotes cross product in this context. Also, this appears to be simply proving that the value for an equilateral triangle is $9R^2$, rather than, as the OP asks, proving that this is maximal. $\endgroup$ – Acccumulation Sep 17 '18 at 15:20
  • $\begingroup$ @Acccumulation sorry, what exactly is unclear in proving that $AB^2+BC^2+CA^2 \leq 9R^2$ for an arbitrary inscribed triangle? $\endgroup$ – Roman Odaisky Sep 17 '18 at 15:23

We want to maximise $b^2+c^2$, which by the cosine rule is equal to $a^2+2bc\cos A$.

Angle $\angle BAC$ is fixed, so this means maximising $bc$.

The area of the triangle is $\frac12bc\sin A$, and $\sin A$ is fixed, so this means maximising the area of the triangle.

The area of the triangle is $\frac12$base$\times$height $= \frac12a\times$ height, so this means maximising the height.

And the height is maximum when $\triangle BA_1C$ is isosceles.


Suppose we have three unit vectors a, b, and c. This will define a triangle with side lengths (a-b), (a-c), and (b-c), so the sum of squares will be (a-b)^2+(a-c)^2+(b-c)^2. Taking the derivative with respect to a, we get 2a'(a-b)+2a'(a-c)=2a'(2a-(b+c)). Because a is constrained to be on the unit circle, a' is perpendicular to a, hence a'a=0. So the derivative simplifies to -2a'(b+c). Thus, the derivative is zero if a' is perpendicular to b+c, which is equivalent to a being parallel to b+c, which happens when the angle between a and b is equal to the angle between a and c. Applying the same argument to the derivatives with respect to b and c shows that all the angles must be equal.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.