STEMviz
Mathematics · Differential and Integral Calculus

Extrema of Multivariable Functions and Lagrange Multipliers

This final chapter of Block A brings together Chapter 14's partial derivatives and tangent planes to solve a genuinely practical problem: finding the maximum and minimum values of a function of two variables, both freely (over an open region) and when restricted to a constraint curve. The free case extends single-variable optimisation via a Second Derivative Test built from second-order partial derivatives; the constrained case introduces Lagrange multipliers, a strikingly different-looking but conceptually natural technique for optimising along a curve rather than throughout a whole region.

Have to hand: Chapter 14's partial derivatives, the tangent plane, and the fact that a horizontal tangent plane (fx=fy=0f_x=f_y=0) is necessary but not sufficient for a local extremum (demonstrated by the saddle point example in Section 2 below).

Every extremum problem in this chapter reduces to solving a system of equations built from partial derivatives. Free extrema require fx=0,fy=0f_x=0,f_y=0 simultaneously; constrained extrema require the gradient of ff to be parallel to the gradient of the constraint — both are systems to be solved algebraically, then classified.

1. Critical Points and the Necessary Condition for a Local Extremum

Definition. A point (a,b)(a,b) is a critical point of ff if fx(a,b)=0f_x(a,b)=0 and fy(a,b)=0f_y(a,b)=0 (or if either partial derivative fails to exist there).

Theorem (necessary condition for an interior local extremum). If ff has a local maximum or minimum at an interior point (a,b)(a,b) of its domain, and fx(a,b),fy(a,b)f_x(a,b),f_y(a,b) both exist, then (a,b)(a,b) is a critical point.

Proof. Fix y=by=b; the single-variable function g(x)=f(x,b)g(x)=f(x,b) has a local extremum at x=ax=a (since ff does, restricted to this slice), so by single-variable theory (Fermat's theorem, Chapter 4), g′(a)=fx(a,b)=0g'(a)=f_x(a,b)=0. Symmetrically, fixing x=ax=a gives fy(a,b)=0f_y(a,b)=0. ■\blacksquare

Worked example. Find the critical points of f(x,y)=x2+y2−4x+6y+13f(x,y)=x^2+y^2-4x+6y+13. Setting fx=2x−4=0f_x=2x-4=0 gives x=2x=2; setting fy=2y+6=0f_y=2y+6=0 gives y=−3y=-3. The unique critical point is (2,−3)(2,-3).

A critical point is only a CANDIDATE for a local extremum — exactly as in one variable. Just as f′(a)=0f'(a)=0 does not guarantee a maximum or minimum (consider f(x)=x3f(x)=x^3 at x=0x=0), fx=fy=0f_x=f_y=0 does not guarantee one either; the saddle point of Section 2 below is the two-variable analogue of this phenomenon.

Keep reading: Extrema of Multivariable Functions and Lagrange Multipliers

This chapter is Premium. Unlock every Mathematics lesson — theory, interactive visualizations, quizzes, exercises and flashcards — with a one-time purchase or a monthly plan, or get every subject at once with the Full Course Bundle. The first 2 chapters of every block are free with an account.