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

Two equality constraints

#Lagrange#multiple constraints#KKT

Statement

Maximize f(x,y,z)=xyzf(x,y,z)=xyz under x+y+z=3x+y+z=3 and x=yx=y.

Hint

Substitute y=xy=x first, then Lagrange on two variables.

Show solutionHide solution

Solution

Substitute. With y=xy=x: f(x,z)=x2zf(x,z)=x^2z, constraint 2x+z=32x+z=3.

Lagrange. ∂xf=2xz=λ⋅2\partial_x f=2xz=\lambda\cdot 2, ∂zf=x2=λ\partial_z f=x^2=\lambda. So xz=x2/2xz=x^2/2, i.e. z=x/2z=x/2. Then 2x+x/2=32x+x/2=3, x=6/5x=6/5, z=3/5z=3/5.

Value. f=(6/5)2⋅3/5=108/125f=(6/5)^2\cdot3/5=108/125.

Conclusion. Maximum 108/125108/125 at (6/5,6/5,3/5)(6/5,6/5,3/5).