Notes
four squares and a quarter circle extension

Extension for the Four Squares and a Quarter Circle Problem

Four Squares and a Quarter Circle

The radius of the quarter circle is 55. What’s the total area of the four squares?

This problem can be extended as follows. The right way to view the problem for generalising is to see it as two rectangles side by side overlaying a quarter circle. The aspect that will vary is how the rectangles are made up of smaller squares. Pick two positive whole numbers pp and qq with q>pq \gt p (the original problem has p=1p = 1 and q=2q = 2). The quarter circle will have radius p 2+q 2p^2 + q^2 (so in the original it is 1 2+2 2=51^2 + 2^2 = 5). The two rectangles are then made up of qq squares vertically and pp squares horizontally. As in the original, the height of the larger rectangle is the radius of the quarter circle, and the smaller rectangle is as large as it can be to fit in the quarter circle.

Generalisation of Four Squares and a Quarter Circle

The radius of the quarter circle is 218218. What’s the total area of the squares?

The remarkable part is that the height of the smaller rectangle is a whole number, and the area of the squares is a rational number.

To show this, let us rescale so that the quarter circle has radius 11 and let us write α\alpha for the width of the larger rectangle and hh for the height of the smaller one. Then α=pq\alpha = \frac{p}{q} and the smaller rectangle has width αh\alpha h. Pythagoras' Theorem says that:

1 2 =(α+αh) 2+h 2 1 2h 2 =α 2(1+h) 2 (1h)(1+h) =α 2(1+h) 2 α 2 =1h1+h h =1α 21+α 2 \begin{aligned} 1^2 &= (\alpha + \alpha h)^2 + h^2 \\ 1^2 - h^2 &= \alpha^2(1 + h)^2 \\ (1 - h)(1 + h) &= \alpha^2(1 + h)^2 \\ \alpha^2 &= \frac{1 - h}{1 + h} \\ h &= \frac{1 - \alpha^2}{1 + \alpha^2} \end{aligned}

Using α=pq\alpha = \frac{p}{q} the expression for hh becomes

h=q 2p 2q 2+p 2 h = \frac{q^2 - p^2}{q^2 + p^2}

Scaling up by q 2+p 2q^2 + p^2, the radius of the original quarter circle, then gives a height of the smaller rectangle of q 2p 2q^2 - p^2. The combined width of the two rectangles is α(q 2+p 2+q 2p 2)=2αq 2=2pq\alpha(q^2 + p^2 + q^2 - p^2) = 2 \alpha q^2 = 2 p q.

We therefore have a Pythagorean triple:

2pq,q 2p 2,q 2+p 2 2 p q,\quad q^2 - p^2,\quad q^2 + p^2

and it turns out that every Pythagorean triple can be obtained in this way.

The areas of the rectangles (in the scaled up version) are then:

α(q 2+p 2) 2+α(q 2p 2) 2 =pq(q 4+2q 2p 2+p 4+q 42p 2q 2+p 4) =2pq(q 4+p 4) \begin{aligned} \alpha(q^2 + p^2)^2 + \alpha(q^2 - p^2)^2 &= \frac{p}{q} ( q^4 + 2 q^2 p^2 + p^4 + q^4 - 2 p^2 q^2 + p^4) \\ &= \frac{2 p}{q}( q^4 + p^4 ) \end{aligned}

In the original problem then q=2q = 2 meaning that this formula gave a whole number. In general, it will not but it is rational so the whole problem can be scaled up a little more to make it a whole number.

Variant on the Four Squares and a Quarter Circle Problem

The orange square has area 154453154453; the magenta and cyan rectangles are divided into squares with 77 across and 1313 up. What is the total area of the magenta and cyan rectangles?