# Find the rectangle with the maximum area inside the ellipse $\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1$ [duplicate]

Find the rectangle with the maximum area inside the ellipse $\frac{x^2}{a^2} + \frac{y^2}{b^2} = 1$, whose edges are parallel to the axises. Hint: Find the function we need to maximize.

Well in the answers it says that the function we need to maximize is $4xy$ and the area is $2ab$. How do we solve this?

## marked as duplicate by user147263, Jyrki LahtonenDec 7 '15 at 23:07

• The vertices will be $(\pm a\cos\theta,\pm b\sin\theta)\implies$ the area $=2a\cos\theta\cdot2b\sin\theta=2ab\sin2\theta$ – lab bhattacharjee Jul 6 '13 at 13:45
• The assumption used is that the rectangle is centered at $(0,0)$ and it's four corners are actually on the ellipse. If the top right corner is $(x,y)$ the area here is $2x\cdot2y=4xy$. However this assumption about the rectangle touching the ellipse symmetrically this way would need to be justified, by showing it must be better than other possibilities. – coffeemath Jul 6 '13 at 13:46
• Unless you want to use Lagrange multipliers, you should rewrite the area as $A^2 = 4x^2b^2(1-\frac{x^2}{a^2})$. How would you find the $x$ that maximizes $A^2(x)$? – Omnomnomnom Jul 6 '13 at 13:48
• Can the assumption that the edges are parallel to the axes be relaxed? That is, can you prove that the rectangle with largest area inside the ellipse has edges parallel to the axes of the ellipse? – becko Jul 6 '13 at 13:58
• – lab bhattacharjee Jul 6 '13 at 14:39

Let $x = a\cos \theta$, $y =b\sin \theta$, then the area of the rectangle in the first quadrant is $$A = xy = \frac12ab\sin(2\theta)$$ As $0\le\sin(2\theta)\le 1$, we can see the maximum area of $A_{\max}$ is $\frac12ab$. Because of the axial symmetry of the ellipse about both $X$ and $Y$ axis, the maximum area of the rectangle inside the ellise would be $4A_{\max}$, that is, $2ab$.
A comment has suggested extending this to include rectangles whose sides may not be parallel to the axis. The way to do this is to extend even more and consider any inscribed quadrilateral. To simplify this, stretch everything vertically by $\sqrt\frac{a}{b}$, and compress horizontally by the same factor. This transforms the ellipse into a circle of radius $\sqrt{ab}$ . Areas are preserved, straight lines remain straight lines, and parallel lines remain parallel. Now it is easy to show that in a circle, any inscribed square will have the maximum area of $2r^2$, and any other inscribed quadrilateral will have less. Now transform back to the original geometry. The inscribed squares become inscribed parallelograms of area $2ab$. Only one of these will be a rectangle, with sides parallel to the axis. This is the only one which preserves the right angles under transformation. So in particular, any other inscribed rectangle will have less area.
the area of rectangle with one vertex $(x,y)$ (in the first quadrant) is $4xy$. From the equation of ellipse we can express $y$ by terms of $x$, as $y=b\sqrt{1-\frac{x^2}{a^2}}$, so the function to maximize is $$A(x)=4x\cdot b\sqrt{1-\frac{x^2}{a^2}}$$ We can then apply the inequality of geometric and arithmetic means for the positive numbers $\frac{x^2}{a^2}$ and $1-\frac{x^2}{a^2}$ to get the solution.