Maths WorkshopMaths problems with full solutions
Exercise 139Calculus › Single-variable calculus › Differentiation › Optimisation and curve sketchingL1Added 4 Nov 2026

The largest rectangle inscribed in an ellipse

#optimisation#ellipse#parametrisation#trigonometry

Statement

Find the rectangle of largest area, with sides parallel to the axes, inscribed in the ellipse x2a2+y2b2=1\dfrac{x^2}{a^2}+\dfrac{y^2}{b^2}=1.

Hint

A vertex in the first quadrant is (acos⁡θ,bsin⁡θ)(a\cos\theta,b\sin\theta) with θ∈(0,π2)\theta\in\left(0,\frac\pi2\right).

Show solutionHide solution

Solution

Symmetry. Let the vertices be (x1,y1),(x2,y1),(x1,y2),(x2,y2)(x_1,y_1),(x_2,y_1),(x_1,y_2),(x_2,y_2) on the ellipse, with x1≠x2x_1\neq x_2 and y1≠y2y_1\neq y_2. From the first two vertices, x12a2=1−y12b2=x22a2\frac{x_1^2}{a^2}=1-\frac{y_1^2}{b^2}=\frac{x_2^2}{a^2}, so x2=−x1x_2=-x_1; likewise y2=−y1y_2=-y_1. So the rectangle is centred at the origin, and it is determined by its vertex in the first quadrant, (acos⁡θ,bsin⁡θ)(a\cos\theta,b\sin\theta).

Area. The rectangle has sides 2acos⁡θ2a\cos\theta and 2bsin⁡θ2b\sin\theta:
A(θ)=4absin⁡θcos⁡θ=2absin⁡2θ.A(\theta)=4ab\sin\theta\cos\theta=2ab\sin2\theta.

Maximum. A′(θ)=4abcos⁡2θ=0A'(\theta)=4ab\cos2\theta=0 on (0,π2)\left(0,\frac\pi2\right) only at θ=π4\theta=\frac\pi4, where AA goes from increasing to decreasing. So
Amax⁡=2ab,sides a2 and b2.A_{\max}=2ab,\qquad\text{sides }a\sqrt2\text{ and }b\sqrt2.

Remark. The ellipse has area πab\pi ab: the best rectangle fills 2π≈64%\frac2\pi\approx64\% of it, whatever the ellipse. This is no coincidence: an ellipse is a stretched circle, and stretching multiplies all areas by the same factor ba\frac ba. For a circle (a=b=ra=b=r), the best rectangle is a square of area 2r22r^2.