Consider a general triangle, $\triangle ABC$. The lengths of all sides are known. We are looking for the largest possible rectangle that can be inscribed into the triangle in such a way that one side of this rectangle lies on one side of the triangle (in the exercise in the book, it lies on $c$)
(For numerical results, let $\overline{BC} = a = 249, \quad \overline{AC} = b = 151.8 \quad$ and $\quad \overline{AB} = c = 238.9$)
Here's a little drawing:
What I got so far:
I found that $x = \frac{1}{2}c$ and thus $y = \frac{1}{2} H$ (where $H$ is the altitude that belongs to side $c$). I couldn't prove this rigorously though: the way I found this out is that I considered three cases:
- $x > \frac{1}{2}c \rightarrow$ the rectangle is 'taller'
- $x < \frac{1}{2}c \rightarrow$ the rectangle is 'wider'
- $x = \frac{1}{2}c$
For case 1: If I imagine folding the three smaller triangles around the rectangle over the rectangle, but they will overlap $\rightarrow T_{\text{rectangle}} < \Sigma T_{\text{small triangles}}$
For case 2: If I imagine folding again, I get the same inequality as for case 1
For case 3: This is the only case when there's no overlap and $T_{\text{rectangle}} = \Sigma T_{\text{small triangles}}$
Now I suppose I can say that $T_{\text{rectangle}} + \Sigma T_{\text{small triangles}}$ is constant (it's the area of the big triangle), so $T_{\text{rectangle}}$ is maximal for case 3 (How should I prove this rigoruously?)
Then of course from $x = \frac{1}{2}c$ it follows that $y = \frac{1}{2}H$ and also that the inscribed rectangle's area is half of the triangle's area.
So there, I somewhat solved it... But I would like to see a proof that is more concise, where there are no ambiguous steps. I know that I could also use calculus (at first I was trying to differentiate the area of the rectangle which is $T(x,y) = xy$, but to do that I'd have to express $y$ in terms of $x$ (or vice versa) and it didn't really work out... I'd appreciate to see how that would be done though, I'm sure it's not hard). However, this problem is in a secondary school book, I don't think it involves calculus at all.

The problem can be tackled through the AM-GM inequality. For simplicity, let us regard the $ABC$ triangle as the union of two right triangles having legs $c_1,h$ and $c_2,h$, with $c_1+c_2=c$.
The height $y$ of the inscribed rectangle fixes its area $$ A = y\left(c-\frac{y}{h}c_1-\frac{y}{h}c_2\right)=\frac{y}{h}\left(1-\frac{y}{h}\right)hc $$ and $\frac{y}{h}\left(1-\frac{y}{h}\right)$ attains its maximum value when $y=\frac{h}{2}$. In such a case $A=\frac{hc}{4}=\frac{[ABC]}{2}$.
The fact that the area of the rectangle cannot exceed half the area of the triangle also follows from a nice origami argument: $ABC\setminus\text{rectangle}$ is made by three triangles that can be folded along three sides of the rectangle, and when we actually fold them...