Library · The Fiddler: Solutions · Chapter 2

Can You Frame the Triangle?

Revised PDF handout Report an error

A paper football is an equilateral triangle of side one inch, and it is to be framed. What is the side of the smallest square frame that will hold it?

The Fiddler, Zach Wissner-Gross, September 25, 2026(original post)

The official solution appeared in the post of October 2, 2026 and gives cos⁡(π/12)=(6+2)/4≈0.966\cos(\pi/12) = (\sqrt6+\sqrt2)/4 \approx 0.966 for the main puzzle, reaching 15∘15^\circ the same way, by setting cos⁡θ=sin⁡(π/3+θ)\cos\theta = \sin(\pi/3 + \theta). The Extra Credit half of that post is paywalled, so 3(6−2)/π3(\sqrt6-\sqrt2)/\pi is my own and has not been checked against it.

Solution

Put the triangle’s centre at the origin. A unit equilateral triangle has circumradius 1/31/\sqrt3, so after a turn through θ\theta its vertices sit at angles θ\theta, θ+120∘\theta + 120^\circ and θ+240∘\theta + 240^\circ at that distance from the centre.

A square frame must be as wide as the triangle and as tall, so its side is the larger of those two extents, and both are worth writing down. The horizontal extent is the spread of the three vertex xx-coordinates. For θ\theta between 00 and 60∘60^\circ the extreme pair are the vertices at θ\theta and θ+120∘\theta + 120^\circ, so w(θ)  =  13(cos⁡θ−cos⁡(θ+120∘))  =  sin⁡(θ+60∘),w(\theta) \;=\; \tfrac{1}{\sqrt3}\bigl(\cos\theta - \cos(\theta + 120^\circ)\bigr) \;=\; \sin(\theta + 60^\circ), by cos⁡A−cos⁡B=2sin⁡A+B2sin⁡B−A2\cos A - \cos B = 2\sin\frac{A+B}{2}\sin\frac{B-A}{2}. The vertical extent is the same function measured a quarter turn round, h(θ)=w(θ−90∘)h(\theta) = w(\theta - 90^\circ), which for 0≤θ≤30∘0 \le \theta \le 30^\circ is cos⁡θ\cos\theta.

On that range the frame therefore has side max⁡(sin⁡(θ+60∘),cos⁡θ)\max\bigl(\sin(\theta + 60^\circ), \cos\theta\bigr). One term climbs and the other falls, so their maximum is least where they meet: sin⁡(θ+60∘)=cos⁡θ=sin⁡(90∘−θ)⟹θ=15∘,\sin(\theta + 60^\circ) = \cos\theta = \sin(90^\circ - \theta) \quad\Longrightarrow\quad \theta = 15^\circ , and there the frame comes out square by construction, of side sin⁡75∘\sin 75^\circ.  side  =  cos⁡15∘  =  6+24  ≈  0.9659 inches. \boxed{\ \text{side} \;=\; \cos 15^\circ \;=\; \frac{\sqrt6 + \sqrt2}{4} \;\approx\; 0.9659 \text{ inches}. \ } At that angle the triangle touches all four sides of the frame, with the vertex that is both leftmost and highest sitting exactly in a corner.

Left alone, with one side horizontal, the frame would need a full inch, since the triangle’s side is an inch while its height is only 3/2\sqrt3/2. The 15∘15^\circ tilt saves about 3.43.4 per cent on the side, which is the puzzle’s small surprise: the tidy orientation is the expensive one.

Left: the triangle turned 15^\circ , touching all four sides of its smallest frame. Right: the side of the smallest frame as the triangle spins, over one full period of 60^\circ . The curve is four arcs of a sine, each running between \cos 15^\circ and 1 .
Left: the triangle turned 15∘15^\circ, touching all four sides of its smallest frame. Right: the side of the smallest frame as the triangle spins, over one full period of 60∘60^\circ. The curve is four arcs of a sine, each running between cos⁡15∘\cos 15^\circ and 11.

The computation

The check works from the three vertex coordinates and assumes none of the algebra above. It rotates the triangle, takes the spread of the coordinates in each direction, and keeps the larger.

import numpy as np
from math import pi, sqrt

R = 1/sqrt(3)                       # circumradius of a unit equilateral triangle

def side(theta):                    # side of the smallest axis-aligned square
    a = theta + np.array([0.0, 2*pi/3, 4*pi/3])
    x, y = R*np.cos(a), R*np.sin(a)
    return max(x.max() - x.min(), y.max() - y.min())

Scanning 600,001600{,}001 rotations puts the smallest frame at 0.9659258260.965925826, reached at 15.0000∘15.0000^\circ, against cos⁡15∘=0.965925826\cos 15^\circ = 0.965925826, and the largest at exactly 11. The same function confirms that the triangle in use has all three sides equal to 11, which is worth asserting rather than assuming.

Extra Credit

Now spin the football through a uniformly random angle and frame it with a square whose sides are horizontal and vertical. On average, what side does the frame need?

Solution

The answer is the average of s(θ)=max⁡(w(θ),h(θ))s(\theta) = \max\bigl(w(\theta), h(\theta)\bigr) over a uniform angle, and the work lies in seeing how little of the circle has to be looked at.

The triangle carries itself onto itself under a third of a turn, so ww repeats every 120∘120^\circ. Exchanging the two extents is a quarter turn, and the two symmetries together make ss repeat every 60∘60^\circ. Within one period the extents trade places at 15∘15^\circ, 30∘30^\circ and 45∘45^\circ, which cuts the period into four arcs of 15∘15^\circ. On each arc ss is a piece of a single sine curve, with its argument sweeping between 75∘75^\circ and 90∘90^\circ in one direction or the other.

That is the whole calculation, because a sine curve is symmetric about its peak. All four arcs therefore contribute the same amount, ∫75∘90∘sin⁡x dx  =  cos⁡75∘,\int_{75^\circ}^{90^\circ} \sin x \,\mathrm{d}x \;=\; \cos 75^\circ , and dividing the total by the length of the period gives  E[side]  =  4cos⁡75∘π/3  =  12cos⁡75∘π  =  3(6−2)π∗[4pt]≈  0.9886 inches \boxed{\ \begin{array}{c} \mathbb{E}[\text{side}] \;=\; \dfrac{4\cos 75^\circ}{\pi/3} \;=\; \dfrac{12 \cos 75^\circ}{\pi} \;=\; \dfrac{3(\sqrt6 - \sqrt2)}{\pi} \\*[4pt] \approx\; 0.9886 \text{ inches} \end{array} \ }

Two features of that number are worth pausing on. It lies between the best frame at cos⁡15∘=0.9659\cos 15^\circ = 0.9659 and the worst at exactly 11, which occurs whenever a side of the triangle is horizontal or vertical. And it lies above the midpoint of those two, 0.98300.9830, because a sine curve flattens near its peak, so a spinning triangle spends longer close to its widest than close to its narrowest.

A random spin thus costs about two and a third per cent more frame than careful placement, and it still beats the tidy orientation, which is the worst case of all.

The computation

Integrating s(θ)s(\theta) over one 60∘60^\circ period by Simpson’s rule gives 0.9886159290.988615929 against 3(6−2)/π=0.9886159293(\sqrt6 - \sqrt2)/\pi = 0.988615929, agreeing to 3×10−163 \times 10^{-16}.

One check earns its place here. The claim that the period is 60∘60^\circ rather than something longer is easy to assume and easy to get wrong, and the whole calculation rests on it, so the same average was taken over a full turn instead. That returns 0.9886159860.988615986, the small difference being the coarser grid rather than a different answer.

Report an error on this page

Reports are stored by Netlify. See the privacy note.