Maths WorkshopMaths problems with full solutions
Exercise 1476Calculus › Multivariable calculus › Optimisation in several variablesL3Added 2 Nov 2026

Constrained extrema and a compactness argument

#Lagrange#compactness#global maximum

Statement

Let f(x,y)=eaxyf(x,y) = e^{axy} with a>0a>0, under the constraint g(x,y)=x3+y3+x+y−4=0g(x,y) = x^3 + y^3 + x + y - 4 = 0. Show that ff has a global maximum at (1,1)(1,1).

Hint

Apply Lagrange to identify the only possible critical point, then use a compactness argument and the behaviour at infinity.

Show solutionHide solution

Solution

Lagrange system.
∂f∂x=ayeaxy,∂g∂x=3x2+1,\frac{\partial f}{\partial x} = ay e^{axy}, \quad \frac{\partial g}{\partial x} = 3x^2+1,
∂f∂y=axeaxy,∂g∂y=3y2+1.\frac{\partial f}{\partial y} = ax e^{axy}, \quad \frac{\partial g}{\partial y} = 3y^2+1.
The condition ∇f=λ∇g\nabla f = \lambda \nabla g gives
ayeaxy3x2+1=axeaxy3y2+1.\frac{ay e^{axy}}{3x^2+1} = \frac{ax e^{axy}}{3y^2+1}.
Simplifying by aeaxy>0a e^{axy} > 0:
y3x2+1=x3y2+1  ⟹  y(3y2+1)=x(3x2+1).\frac{y}{3x^2+1} = \frac{x}{3y^2+1} \implies y(3y^2+1) = x(3x^2+1).
The function t↦3t3+tt \mapsto 3t^3+t is strictly increasing, so x=yx = y.

Critical point. Substituting x=yx=y into the constraint:
2x3+2x−4=0  ⟹  x3+x−2=0.2x^3 + 2x - 4 = 0 \implies x^3 + x - 2 = 0.
The only real root is x=1x=1 (since x3+x−2=(x−1)(x2+x+2)x^3+x-2 = (x-1)(x^2+x+2) and the discriminant of x2+x+2x^2+x+2 is negative). So the only possible critical point is (1,1)(1,1).

Compactness argument. On the curve GG, if ∥(x,y)∥→+∞\|(x,y)\| \to +\infty, then xx and yy have opposite signs (since x3+y3x^3+y^3 must stay bounded), so axy→−∞axy \to -\infty and f(x,y)→0f(x,y) \to 0. The function ff is continuous on GG (which is closed), and f(1,1)=ea>0f(1,1) = e^a > 0. Hence ff attains its maximum on a compact set, and this maximum cannot be at infinity (where f→0f \to 0). The only candidate is (1,1)(1,1), so it is the global maximum.