Maxima and minima of multi-variable functions (analytic criteria)

At a Glance

Why This Chapter Matters

Multi-variable Lagrange multiplier questions appear in Section A at 15 marks and are among the highest-value non-compulsory questions. All three Lagrange archetypes (one constraint, two constraints, distance to surface) follow the same procedure: write the Lagrange system, exploit symmetry to reduce it, solve for the coordinates, and evaluate the objective. The key skill is recognising when the system admits a symmetric solution (x=y=zx=y=z, etc.) to avoid solving a general cubic.

Minimum Theory

Lagrange multipliers (one constraint). Minimise/maximise f(x)f(\mathbf{x}) subject to g(x)=0g(\mathbf{x})=0. At a constrained extremum: f=λg\nabla f=\lambda\nabla g. This gives n+1n+1 equations (the nn gradient equations plus the constraint).

Lagrange multipliers (two constraints). Subject to g=0g=0 and h=0h=0: at a constrained extremum, f=λg+μh\nabla f=\lambda\nabla g+\mu\nabla h. The n+2n+2 equations are usually solved by exploiting symmetry.

Lagrange multipliers: constrained extremum where \nabla f \parallel \nabla g

Hessian test (unconstrained). At a critical point of f(x,y)f(x,y): D=fxxfyyfxy2D=f_{xx}f_{yy}-f_{xy}^2. See P2-RA-20 for details.

Distance to surface. Minimise f=(xa)2+(yb)2+(zc)2f=(x-a)^2+(y-b)^2+(z-c)^2 (squared distance) subject to the surface equation g(x,y,z)=0g(x,y,z)=0. The Lagrange equations factor as (1λ)xi=ai(1-\lambda)x_i=a_i (or similar), giving the critical point in terms of λ\lambda; substituting into g=0g=0 determines λ\lambda.

Question Archetypes

ArchetypeRecognition
lagrange-extremaMinimise/maximise ff subject to one constraint g=0g=0
lagrange-distanceExtremise distance from a point to a surface
lagrange-two-constraintExtremise ff subject to two constraints; secular equation
hessian-extremaUnconstrained; find critical points and classify

lagrange-extrema (1 question(s); 2014)

Worked Example

2014 Paper 2, 2014-P2-Q4b (15 marks)

Find the minimum of x2+y2+z2x^2+y^2+z^2 subject to xyz=a3xyz=a^3 by Lagrange multipliers.

Lagrange system: 2x=λyz2x=\lambda yz, 2y=λxz2y=\lambda xz, 2z=λxy2z=\lambda xy. Multiply each by xx, yy, zz respectively: 2x2=λxyz=λa32x^2=\lambda xyz=\lambda a^3, 2y2=λa32y^2=\lambda a^3, 2z2=λa32z^2=\lambda a^3. Hence x2=y2=z2x^2=y^2=z^2, so x=y=z=a|x|=|y|=|z|=a (from xyz=a3>0xyz=a^3>0, either all positive or two negative).

Minimum value: x2+y2+z2=3a2x^2+y^2+z^2=3a^2, attained at (a,a,a)(a,a,a) (and other sign patterns).

min=3a2 at (a,a,a).\boxed{\min = 3a^2 \text{ at } (a,a,a).}

(AM-GM alternative: x2+y2+z23(xyz)2/3=3a2x^2+y^2+z^2\ge3(xyz)^{2/3}=3a^2 with equality iff x2=y2=z2x^2=y^2=z^2.)

lagrange-distance (1 question(s); 2023)

Worked Example

2023 Paper 2, 2023-P2-Q2b (15 marks)

Find min/max distances from P(2,6,3)P(2,6,3) to sphere x2+y2+z2=4x^2+y^2+z^2=4 using Lagrange multipliers.

Minimise f=(x2)2+(y6)2+(z3)2f=(x-2)^2+(y-6)^2+(z-3)^2 subject to g=x2+y2+z24=0g=x^2+y^2+z^2-4=0.

f=λg\nabla f=\lambda\nabla g: (1λ)x=2(1-\lambda)x=2, (1λ)y=6(1-\lambda)y=6, (1λ)z=3(1-\lambda)z=3.

Since λ1\lambda\ne1: x=2/(1λ)x=2/(1-\lambda), y=6/(1λ)y=6/(1-\lambda), z=3/(1λ)z=3/(1-\lambda).

Substituting into g=0g=0: 49/(1λ)2=449/(1-\lambda)^2=4, so 1λ=±7/21-\lambda=\pm7/2.

Two critical points: Q+=27(2,6,3)Q_+=\frac{2}{7}(2,6,3) (near side) and Q=27(2,6,3)Q_-=-\frac{2}{7}(2,6,3) (far side).

Since OP=4+36+9=7|OP|=\sqrt{4+36+9}=7: distances are 72=57-2=5 (min, near) and 7+2=97+2=9 (max, far).

dmin=5,dmax=9.\boxed{d_{\min}=5,\quad d_{\max}=9.}

hessian-extrema (1 question(s); 2016)

Worked Example

2016 Paper 2, 2016-P2-Q3b (15 marks)

Find relative extrema of f=x4+y42x2+4xy2y2f=x^4+y^4-2x^2+4xy-2y^2.

fx=4x34x+4y=0f_x=4x^3-4x+4y=0, fy=4y3+4x4y=0f_y=4y^3+4x-4y=0. Adding: x3+y3=0y=xx^3+y^3=0\Rightarrow y=-x. Substituting: x32x=0x=0,±2x^3-2x=0\Rightarrow x=0,\pm\sqrt{2}.

Critical points: (0,0)(0,0), (2,2)(\sqrt{2},-\sqrt{2}), (2,2)(-\sqrt{2},\sqrt{2}).

fxx=12x24f_{xx}=12x^2-4, fyy=12y24f_{yy}=12y^2-4, fxy=4f_{xy}=4.

At (±2,2)(\pm\sqrt{2},\mp\sqrt{2}): D=202016=384>0D=20\cdot20-16=384>0, fxx=20>0f_{xx}=20>0local min, f=8f=-8.

At (0,0)(0,0): D=(4)(4)16=0D=(-4)(-4)-16=0inconclusive. Line slices: f(t,t)=2t40f(t,t)=2t^4\ge0 (rises); f(t,t)=2t48t2<0f(t,-t)=2t^4-8t^2<0 for small t0t\ne0 (falls). Saddle point.

Relative minima f=8 at (±2,2);  saddle at (0,0).\boxed{\text{Relative minima }f=-8\text{ at }(\pm\sqrt{2},\mp\sqrt{2});\;\text{saddle at }(0,0).}

lagrange-two-constraint (1 question(s); 2023, 2025)

Recognition Cues — Maximise ff subject to TWO constraints; often involves an ellipsoid and a plane; solved by a secular equation.

Worked Example (2025)

2025 Paper 2, 2025-P2-Q3b (15 marks)

Maximise V=8xyzV=8xyz subject to x2/a2+y2/b2+z2/c2=1x^2/a^2+y^2/b^2+z^2/c^2=1 (x,y,z>0x,y,z>0).

By Lagrange: 8yz=2λx/a28yz=2\lambda x/a^2, etc. Multiply the three equations by xx, yy, zz: 8xyz=2λx2/a2=2λy2/b2=2λz2/c28xyz=2\lambda x^2/a^2=2\lambda y^2/b^2=2\lambda z^2/c^2. So x2/a2=y2/b2=z2/c2=1/3x^2/a^2=y^2/b^2=z^2/c^2=1/3 (from the constraint). Max volume V=8abc/33V=8abc/3\sqrt{3}.

Common Traps

Marks-Aware Writing

All four historical questions are 15 marks. The examiner awards marks for: (a) writing the Lagrange system explicitly, (b) the algebraic step reducing to the symmetric case, (c) applying the constraint to find the coordinates, and (d) evaluating the objective and stating min/max. Steps (b) and (c) together account for about 8 marks — the algebra must be shown.

For the distance problem: computing OP=7|OP|=7 geometrically and subtracting/adding the radius is a useful check, but the Lagrange algebra must still be shown in full.

Practice Set

Ready to drill what you just read?

Daily Practice turns these patterns into one adaptive set a day — practised daily until they're automatic, free for everyone through the 2026 Mains.

See Daily Practice →

This chapter is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.