All courses › Multivariable Calculus › Lagrange multipliers

Lagrange multipliers

Lagrange's method finds extreme points of ff when (x,y)(x,y) is constrained to a curve g(x,y)=0g(x,y)=0. At the extreme point the level curve of ff is tangent to the constraint, so the gradients are parallel.

∇f=λ∇g\nabla f = \lambda\nabla gthe Lagrange condition, together with g=0g=0

Symbols

λ\lambdaLagrange multiplier
g(x,y)=0g(x,y)=0the constraint

Example

Maximize f=xyf=xy subject to x+y=10x+y=10: ∇f=(y,x)=λ(1,1)⇒x=y\nabla f=(y,x)=\lambda(1,1) \Rightarrow x=y, which with x+y=10x+y=10 gives x=y=5x=y=5 and f=25f=25.

Lagrange's method gives candidates for extreme points - check whether they are a max or min by comparing function values.
Practise partial derivatives for free →

← The second derivative test · Double integral →

Part of Multivariable Calculus: Partial derivatives.