Maths WorkshopMaths problems with full solutions
Exercise 1596Calculus › Multivariable calculus › Optimisation in several variablesL1Added 3 Nov 2026

Distance from origin to an ellipsoid

#Lagrange#ellipsoid#distance

Statement

Find the maximum distance from the origin to the ellipsoid x2a2+y2b2+z2c2=1\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}=1 with 0<a<b<c0<a<b<c.

Hint

Maximize x2+y2+z2x^2+y^2+z^2 under the constraint; use Lagrange.

Show solutionHide solution

Solution

Lagrange. 2x=λ⋅2x/a22x=\lambda\cdot 2x/a^2, etc. Nontrivial solutions require λ=a2\lambda=a^2 or b2b^2 or c2c^2.

Points. If λ=a2\lambda=a^2, then y=z=0y=z=0, x=±ax=\pm a: distance aa. Similarly for b,cb,c.

Conclusion. Maximum distance cc (longest semi-axis), minimum aa.