UcenlyOpen in the app

Calculus 2 · BE5B01MA2 · Topic 5 of 14

Local extrema & Lagrange multipliers

Week 5. Find the critical points first, then decide what each one is.

Open the interactive lesson

Key ideas

Classify with the Hessian

At a critical point (fx=fy=0), let Δ = fxx·fyy − fxy². Δ>0 with fxx>0 is a local minimum, Δ>0 with fxx<0 a local maximum, Δ<0 a saddle; Δ=0 is inconclusive.

Search a closed bounded set

A continuous function on a closed bounded set attains its extrema. Evaluate f at interior critical points, find the extrema on the boundary, and compare all values.

Impose a constraint with a multiplier

To extremise f subject to g(x)=k, solve ∇f=λ∇g together with g(x)=k, then compare f at all solutions. Existence of the extrema is assumed.

In one line: A critical point is only a candidate; the Hessian or a boundary comparison decides.

Formulas

Practice with worked solutions

Question 1

Find the value of f at its local maximum.

f(x,y)=xy−x2−y2−2x−2y+4f(x,y)=xy-x^2-y^2-2x-2y+4
Worked solution

Answer: 8

  1. fx=y−2x−2=0,fy=x−2y−2=0 ⇒ (x,y)=(−2,−2)f_x=y-2x-2=0,\quad f_y=x-2y-2=0\ \Rightarrow\ (x,y)=(-2,-2)
  2. Δ=fxxfyy−fxy2=(−2)(−2)−1=3>0, fxx=−2<0 ⇒ max⁡, f(−2,−2)=8\Delta=f_{xx}f_{yy}-f_{xy}^2=(-2)(-2)-1=3>0,\ f_{xx}=-2<0\ \Rightarrow\ \max,\ f(-2,-2)=8

Solve fx=fy=0, then confirm with the Hessian.

Question 2

Find the maximum of f on the constraint curve.

f(x,y)=xy  on  x28+y22=1f(x,y)=xy\ \text{ on }\ \frac{x^2}8+\frac{y^2}2=1
Worked solution

Answer: 2

  1. y=λx/4,x=λy ⇒ x2=4y2y=\lambda x/4,\quad x=\lambda y\ \Rightarrow\ x^2=4y^2
  2. x2/8+y2/2=1⇒y2=1, x2=4;max⁡xy=2⋅1=2x^2/8+y^2/2=1\Rightarrow y^2=1,\ x^2=4;\quad \max xy=2\cdot1=2

Use ∇f = λ∇g, or parametrise the ellipse.

Question 3

Find the absolute minimum value of f on the rectangle 0≤x≤5, −3≤y≤0.

f(x,y)=x2+xy+y2−6x+2f(x,y)=x^2+xy+y^2-6x+2
Worked solution

Answer: -10

  1. fx=2x+y−6=0, fy=x+2y=0 ⇒ (4,−2),f(4,−2)=−10f_x=2x+y-6=0,\ f_y=x+2y=0\ \Rightarrow\ (4,-2),\quad f(4,-2)=-10
  2. on the boundary the smallest value is f(5,−52)=−374=−9.25>−10 ⇒ min⁡=−10\text{on the boundary the smallest value is}\ f(5,-\tfrac52)=-\tfrac{37}4=-9.25>-10\ \Rightarrow\ \min=-10

The only interior critical point already lies in the rectangle; compare it with the boundary values.

More Calculus 2 practice in Ucenly

Sources

Written by Ucenly. Based on the BE5B01MA2 course materials: