Brain teaser

elioruzan

New member
Joined
Feb 14, 2023
Messages
11
Hi,
I stumbled upon this question on Facebook and I tried to solve it unsuccessfully.
I saw in the comments people talking about symmetry in their solutions but I didn't understand them.
To me it seems there is insufficient info because the heights and widths of A and B share constraints, but there are still 2 variables.
Any help would be greatly appreciated.
 

Attachments

  • IMG_20241021_223854.jpg
    IMG_20241021_223854.jpg
    98.5 KB · Views: 11
Not sure which symmetry they had in mind... I would try the following approach:
Pick an arbitrary height for A, call it h. What's the area of A? Now, what is the maximum area of B? It will be a function of h. What's the total area? Again, this is a function of h. Maximize it.
 
If you use polar coordinates you will only have two angles as variables and f(φa,φb)=sin(2φa)+sin(2φb)2sin(φa)cos(φb) f(\varphi_a,\varphi_b)=\sin(2\varphi_a)+\sin(2\varphi_b)-2\sin(\varphi_a )\cos(\varphi_b) but the solution that WA has found is a bit strange (~78,7%):
 
Last edited:
Hi,
I stumbled upon this question on Facebook and I tried to solve it unsuccessfully.
I saw in the comments people talking about symmetry in their solutions but I didn't understand them.
To me it seems there is insufficient info because the heights and widths of A and B share constraints, but there are still 2 variables.
Any help would be greatly appreciated.
You can solve the problem by symmetry or Lagrange multiplier. But I prefer polar coordinate.

Let A1A_1 be the area of the first rectangle and let A2A_2 be the area of the second rectangle.

A1=x1y1A_1 = x_1y_1
A2=x2y2A_2 = x_2y_2

x=rcosθx = r\cos\theta
y=rsinθy = r\sin\theta

Then

A1=r2cosθ1sinθ1A_1 = r^2\cos\theta_1\sin\theta_1
A2=r2cosθ2sinθ2A_2 = r^2\cos\theta_2\sin\theta_2

Or

A1=r22sin2θ1\displaystyle A_1 = \frac{r^2}{2}\sin2\theta_1

A2=r22sin2θ2\displaystyle A_2 = \frac{r^2}{2}\sin2\theta_2

A=A1+A2=r22sin2θ1+r22sin2θ2=r22(sin2θ1+sin2θ2)\displaystyle A = A_1 + A_2 = \frac{r^2}{2}\sin2\theta_1 + \frac{r^2}{2}\sin2\theta_2 = \frac{r^2}{2}(\sin2\theta_1 + \sin2\theta_2)

Now think about it. To get the maximum area, you want sin2θ1+sin2θ2\sin2\theta_1 + \sin2\theta_2 to be maximum.

Also you must have noticed that because of the symmetry of the two rectangles (they have the same area), θ1=θ2\theta_1 = \theta_2.

A=r22(sin2θ+sin2θ)=r2sin2θ=r2\displaystyle A = \frac{r^2}{2}(\sin2\theta + \sin2\theta) = r^2\sin2\theta = r^2

Finding the angle θ\theta will help you to find the length of each leg of the rectangle by substituting back in xx and yy.
 
Where is your negative term? I have
A=sinφacosφaB=cosφb(sinφbsinφa)2A=2sinφacosφa=sin(2φa)2B=2cosφbsinφb2cosφbsinφa=sin(2φb)2cosφbsinφa2A=sin(2φb)2cosφbsinφa+sin(2φa)\begin{array}{lll} A&=\sin \varphi_a\cdot \cos \varphi_a\\ B&=\cos \varphi_b \cdot (\sin \varphi_b -\sin \varphi_a)\\ 2A&=2\sin \varphi_a\cdot \cos \varphi_a=\sin(2\varphi_a)\\ 2B&=2\cos \varphi_b \cdot \sin \varphi_b- 2\cos \varphi_b\sin \varphi_a\\ &=\sin(2\varphi_b)- 2\cos \varphi_b\sin \varphi_a\\ 2A&=\sin(2\varphi_b)- 2\cos \varphi_b\sin \varphi_a+\sin(2\varphi_a) \end{array}and WA says it is max{2A}1,23607 at (φa,φb)(0.553574,1.01722) \max \{2A\} \approx 1,23607 \text{ at } (\varphi_a, \varphi_b) \approx (0.553574, 1.01722) which covers about 78.7% 78.7\% of the area.
 
Where is your negative term? I have
A=sinφacosφaB=cosφb(sinφbsinφa)2A=2sinφacosφa=sin(2φa)2B=2cosφbsinφb2cosφbsinφa=sin(2φb)2cosφbsinφa2A=sin(2φb)2cosφbsinφa+sin(2φa)\begin{array}{lll} A&=\sin \varphi_a\cdot \cos \varphi_a\\ B&=\cos \varphi_b \cdot (\sin \varphi_b -\sin \varphi_a)\\ 2A&=2\sin \varphi_a\cdot \cos \varphi_a=\sin(2\varphi_a)\\ 2B&=2\cos \varphi_b \cdot \sin \varphi_b- 2\cos \varphi_b\sin \varphi_a\\ &=\sin(2\varphi_b)- 2\cos \varphi_b\sin \varphi_a\\ 2A&=\sin(2\varphi_b)- 2\cos \varphi_b\sin \varphi_a+\sin(2\varphi_a) \end{array}and WA says it is max{2A}1,23607 at (φa,φb)(0.553574,1.01722) \max \{2A\} \approx 1,23607 \text{ at } (\varphi_a, \varphi_b) \approx (0.553574, 1.01722) which covers about 78.7% 78.7\% of the area.
I apologize. I have just realized that my approach will let the two rectangles overlapping which is wrong!
 
You can solve the problem by symmetry or Lagrange multiplier. But I prefer polar coordinate.

Let A1A_1 be the area of the first rectangle and let A2A_2 be the area of the second rectangle.

A1=x1y1A_1 = x_1y_1
A2=x2y2A_2 = x_2y_2

x=rcosθx = r\cos\theta
y=rsinθy = r\sin\theta

Then

A1=r2cosθ1sinθ1A_1 = r^2\cos\theta_1\sin\theta_1
A2=r2cosθ2sinθ2A_2 = r^2\cos\theta_2\sin\theta_2

Or

A1=r22sin2θ1\displaystyle A_1 = \frac{r^2}{2}\sin2\theta_1

A2=r22sin2θ2\displaystyle A_2 = \frac{r^2}{2}\sin2\theta_2

A=A1+A2=r22sin2θ1+r22sin2θ2=r22(sin2θ1+sin2θ2)\displaystyle A = A_1 + A_2 = \frac{r^2}{2}\sin2\theta_1 + \frac{r^2}{2}\sin2\theta_2 = \frac{r^2}{2}(\sin2\theta_1 + \sin2\theta_2)

Now think about it. To get the maximum area, you want sin2θ1+sin2θ2\sin2\theta_1 + \sin2\theta_2 to be maximum.

Also you must have noticed that because of the symmetry of the two rectangles (they have the same area), θ1=θ2\theta_1 = \theta_2.

A=r22(sin2θ+sin2θ)=r2sin2θ=r2\displaystyle A = \frac{r^2}{2}(\sin2\theta + \sin2\theta) = r^2\sin2\theta = r^2

Finding the angle θ\theta will help you to find the length of each leg of the rectangle by substituting back in xx and yy.
I will do my calculations again, but this time I will get rid of the overlapping area.

Let A1A_1 be the area of the first rectangle and let A2A_2 be the area of the second rectangle.

A1=x1y1A_1 = x_1y_1
A2=x2y2x2y1A_2 = x_2y_2 - x_2y_1

g54895599.png

x=rcosθx = r\cos\theta
y=rsinθy = r\sin\theta

Then

A1=r2cosθ1sinθ1A_1 = r^2\cos\theta_1\sin\theta_1
A2=r2cosθ2sinθ2r2cosθ2sinθ1A_2 = r^2\cos\theta_2\sin\theta_2 - r^2\cos\theta_2\sin\theta_1

Or

A1=r22sin2θ1\displaystyle A_1 = \frac{r^2}{2}\sin2\theta_1

A2=r22sin2θ2r2cosθ2sinθ1\displaystyle A_2 = \frac{r^2}{2}\sin2\theta_2 - r^2\cos\theta_2\sin\theta_1

A=A1+A2=r22sin2θ1+r22sin2θ2r2cosθ2sinθ1\displaystyle A = A_1 + A_2 = \frac{r^2}{2}\sin2\theta_1 + \frac{r^2}{2}\sin2\theta_2 - r^2\cos\theta_2\sin\theta_1

Now let us assume that the two rectangles are inside a unit circle in the first quadrant.

A=12(sin2θ1+sin2θ2)cosθ2sinθ1\displaystyle A = \frac{1}{2}(\sin2\theta_1 + \sin2\theta_2) - \cos\theta_2\sin\theta_1

It is not easy to find by hand when AA is a maximum, so you will have to use a CAS, W|A, or any other approximation methods.

I get θ10.553574    \theta_1 \approx 0.553574 \ \ \ \ and     θ21.01722 \ \ \ \ \theta_2 \approx 1.01722

So, the maximum area of the two rectangles when r=1r = 1 is:

A=12(sin2θ1+sin2θ2)cosθ2sinθ1\displaystyle A = \frac{1}{2}(\sin2\theta_1 + \sin2\theta_2) - \cos\theta_2\sin\theta_1

where θ1\theta_1 and θ2\theta_2 as mentioned above.

Or in general, the maximum area is:

A=r22(sin2θ1+sin2θ22cosθ2sinθ1)\displaystyle A = \frac{r^2}{2}(\sin2\theta_1 + \sin2\theta_2 - 2\cos\theta_2\sin\theta_1)
 
Last edited:
Or in general, the maximum area is:

A=r22(sin2θ1+sin2θ22cosθ2sinθ1)\displaystyle A = \frac{r^2}{2}(\sin2\theta_1 + \sin2\theta_2 - 2\cos\theta_2\sin\theta_1)
Just to be clear about my last sentence. I meant that this is the general area of the two rectangles (inscribed inside a circle in the first quadrant) and if you want to maximize it, choose a radius and then use a CAS, W|A, or any other approximation method to get the angles.
 
I get θ10.553574\theta_1 \approx 0.553574 and θ21.01722\theta_2 \approx 1.01722

BTW, tanθ1=512,tanθ2=5+12\tan \theta_1 = \frac{\sqrt{5}-1}{2}, \tan\theta_2 = \frac{\sqrt{5}+1}{2} and θ1+θ2=π2\theta_1 + \theta_2 = \frac{\pi}{2}, i.e. angles of the golden ratio.
 
BTW, tanθ1=512,tanθ2=5+12\tan \theta_1 = \frac{\sqrt{5}-1}{2}, \tan\theta_2 = \frac{\sqrt{5}+1}{2} and θ1+θ2=π2\theta_1 + \theta_2 = \frac{\pi}{2}, i.e. angles of the golden ratio.
Beautiful.

I did not even think about it. Nice catch!

😁

And here is the magic: The maximum area is:

Amax=r2(512)\large A_{\text{max}} = r^2\left(\frac{\sqrt{5} - 1}{2}\right)

where r\large r is the radius of the arc.

Thanks to the golden ratio!

Did anyone arrive to this conclusion?

🤔
 
Last edited:
BTW, tanθ1=512,tanθ2=5+12\tan \theta_1 = \frac{\sqrt{5}-1}{2}, \tan\theta_2 = \frac{\sqrt{5}+1}{2} and θ1+θ2=π2\theta_1 + \theta_2 = \frac{\pi}{2}, i.e. angles of the golden ratio.
Beautiful. Is there a mathematical derivation or did you get there by the numeric solutions?

I had the following chain of associations: golden ratio --> Fibanocci numbers --> Archimedean spiral --> squaring the circle.

1729687924700.png

(Image source: https://de.wikipedia.org/wiki/Archimedische_Spirale)

I have no idea whether this works for the given problem statement, but whenever Fibonacci numbers appear, there is likely something mathematical behind them.
 
Beautiful. Is there a mathematical derivation or did you get there by the numeric solutions?
I got numerical solutions first, then figured out formal derivation, but the latter is somewhat hairy -- I might try cleaning it up and posting later.
 
I couldn't follow your argument about the golden ratio, but I found out how to get the exact values if we assume that φa+φb=π2. \varphi_a+\varphi_b=\dfrac{\pi}{2}. This appears to be the "symmetry argument" the OP spoke about. Here it goes:

Assume φa+φb=π2 \varphi_a+\varphi_b=\dfrac{\pi}{2} and let f=f(φa,φb)=A+B. f=f(\varphi_a,\varphi_b)=A+B. Then
f=sinφacosφa+cosφb(sinφbsinφa)=sinφacosφa+cos((π/2)φa)(sin((π/2)φa)sinφa)=sinφacosφa+sinφa(cosφasinφa)=sin(2φa)sin2φa=sin(2φa)1+cos2φa=sin(2φa)1+12(1+cos(2φa))2f=1+cos(2φa)+2sin(2φa)2f=2sin(2φa)+2cos(2φa)=0tan(2φa)=2φa=12tan1(2),φb=π212tan1(2)\begin{array}{lll} f&=\sin \varphi_a\cdot \cos \varphi_a+\cos \varphi_b \cdot (\sin \varphi_b -\sin \varphi_a)\\ &=\sin\varphi_a\cdot\cos\varphi_a+\cos((\pi/2)-\varphi_a)\cdot(\sin((\pi/2)-\varphi_a)-\sin\varphi_a)\\ &=\sin\varphi_a\cdot\cos\varphi_a+\sin\varphi_a \cdot (\cos\varphi_a-\sin\varphi_a)\\ &=\sin(2\varphi_a)-\sin^2\varphi_a=\sin(2\varphi_a)-1+\cos^2\varphi_a\\ &=\sin(2\varphi_a)-1+\dfrac{1}{2}(1+\cos(2\varphi_a))\\ 2f&=-1 + \cos(2 \varphi_a) + 2 \sin(2 \varphi_a)\\ 2f'&=-2\sin(2\varphi_a)+2\cos(2\varphi_a)=0 \Longrightarrow \tan(2\varphi_a)=2\Longrightarrow \varphi_a=\dfrac{1}{2}\tan^{-1}(2)\, , \,\varphi_b=\dfrac{\pi}{2}-\dfrac{1}{2}\tan^{-1}(2) \end{array}
This yields the numerical values
max{2f}1,23607 and f0.61803578.7%π4 at (φa,φb)(0,553574,1,01722). \max\{2f\} \approx 1,23607\text{ and }f \approx 0.618035\approx 78.7\% \cdot \dfrac{\pi}{4}\text{ at } (\varphi_a, \varphi_b)\approx (0,553574, 1,01722).
Remains to prove why the sum of the two angles to the upper right corners has to be 90°. 90°.

And, of course, why tan(12tan1(2))=512, \tan\left(\dfrac{1}{2}\tan^{-1}(2)\right) = \dfrac{\sqrt{5}-1}{2}, and
tan(π212tan1(2))=5+12. \tan\left(\dfrac{\pi}{2}-\dfrac{1}{2}\tan^{-1}(2)\right) = \dfrac{\sqrt{5}+1}{2}.
 
Last edited:
Did anyone arrive to this conclusion?

🤔
Yes, the Japanese blogger who claims to have "created" the problem did arrive at the same answer, here.
(Based on some unsubstantiated assumptions).

I have also attached an English version of his post (for anyone whose browser doesn't offer to translate it).

PS: I note that you have generalized your solution (
👍) but the original problem did specify that the radius was 1.
 

Attachments

  • Translation.pdf
    351.3 KB · Views: 1
And, of course, why tan(12tan1(2))=512, \tan\left(\dfrac{1}{2}\tan^{-1}(2)\right) = \dfrac{\sqrt{5}-1}{2}, and
tan(π212tan1(2))=5+12. \tan\left(\dfrac{\pi}{2}-\dfrac{1}{2}\tan^{-1}(2)\right) = \dfrac{\sqrt{5}+1}{2}.
At least this part was easy:

Let c=12tan1(2) c=\dfrac{1}{2}\tan^{-1}(2) and tan(c)=x. \tan(c)=x. Then
tan(2c)=2=2tan(c)1tan2(c)=2x1x20=x2+x1x1,2=12±14+1=1±52tan(c)=512tan(π2c)=tan(cπ2)=cot(c)=1tan(c)=1x=251=2(5+1)51=5+12\begin{array}{lll} \tan(2c)&=2=\dfrac{2\tan(c)}{1-\tan^2(c)}=\dfrac{2x}{1-x^2}\\ 0&=x^2+x-1\Longrightarrow x_{1,2}=-\dfrac{1}{2}\pm\sqrt{\dfrac{1}{4}+1}=\dfrac{-1\pm\sqrt{5}}{2}\\ \tan(c)&=\dfrac{\sqrt{5}-1}{2}\\[12pt] \tan\left(\dfrac{\pi}{2}-c\right)&=-\tan\left(c-\dfrac{\pi}{2}\right)=\cot(c)=\dfrac{1}{\tan(c)}=\dfrac{1}{x}\\ &=\dfrac{2}{\sqrt{5}-1}=\dfrac{2(\sqrt{5}+1)}{5-1}=\dfrac{\sqrt{5}+1}{2} \end{array}
Now for the "symmetry argument"...
 
Top