Section 6.3 Critical Points and Extrema
Subsection 6.3.1 Critical Points
Link to worksheets used in this section^{ 1 }
With functions of one variable we were interested in places where the derivative is zero, since they made candidate points for the maximum or minimum of a function. If the derivative is not zero, we have a direction that is downhill and moving a little in that direction gives a lower value of the function. Similarly, with functions of two variables we can only find a minimum or maximum for a function if both partial derivatives are 0 at the same time. Such points are called critical points.
The point \((a,b)\) is a critical point for the multivariable function \(f(x,y)\text{,}\) if both partial derivatives are 0 at the same time.
In other words,
and
Example 6.3.1. Finding a Local Minimum of a Function.
Use the partial derivatives of \(f(x,y)=x^2+ 2xy+3y^24x3y\) to find the minimum of the graph.
 Critical Point by Algebra

In the previous section, we already computed
\begin{align*} \frac{\partial }{\partial x} f(x,y) \amp = 2x+2y4\\ \frac{\partial }{\partial y} f(x,y) \amp = 2x+6y3\text{.} \end{align*}We need to find the places where both partial derivatives are 0. With this simple system, I can solve this system algebraically and find the only critical point is \((9/4, 1/4)\text{.}\)
\begin{align*} 0 \amp = 2x+2y4\\ 0 \amp = 2x+6y3\text{.} \end{align*}Subtract the equations to eliminate \(x\text{:}\)
\begin{equation*} 0=04y1\text{.} \end{equation*}Solve for \(y\text{:}\)
\begin{align*} 4y \amp = 1\\ y \amp = 1/4\text{.} \end{align*}Substitute back and solve for \(x\text{:}\)
\begin{align*} 0 \amp = 2x+2(1/4)4\\ 2x \amp = 9/2\\ x \amp =9/4\text{.} \end{align*}  Critical Point by Solver

If the partials are more complicated, I will want to find the critical points another way. I can find the point with Solver.
To get solver to set both partials to 0 at the same time, I ask it to solve for \(f_y=0\text{,}\) while setting \(f_x=0\) as a constraint. Make sure to uncheck the box that makes unconstrained variables nonnegative.
This finds our critical point within our error tolerance.
 Critical Point by CAS

We can also use WolframAlpha to find the solution to our system of equations.
 Determining the Critical Point is a Minimum

We thus get a critical point at \((9/4,1/4)\) with any of the three methods of solving for both partial derivatives being zero at the same time. Once we have a critical point we want to determine if it is a maximum, minimum, or something else. The easiest way is to look at the graph near the critical point.
It is clear from the graph that this critical point is a local minimum.
It is easy to see that \(f(x,y)=x^2+y^2\) has a critical point at \((0,0)\) and that that point is a minimum for the function. Similarly, \(f(x,y)=x^2y^2\) has a critical point at \((0,0)\) and that that point is a maximum for the function. For some functions, like \(f(x,y)=x^2y^2\text{,}\) which has a critical point at \((0,0)\text{,}\) we can have a maximum in one direction and a minimum in another direction. Such a point is called a saddle point. We note that we can have a saddle point even if the \(x\) and \(y\) slice curves both indicate a minimum.
Example 6.3.3. A Saddle Point at a Minimum on Both Axes.
Show that \(f(x,y)=x^23xy+y^2\) has a critical point at \((0,0)\text{,}\) which is a minimum of both slice curves, but is not a local minimum.
We look at the two partial derivatives, and notice they are both zero at the origin.
We then see that both slice curves are parabolas that bend up, with a minimum at 0.
However if we take the slice with \(x=y\text{,}\) we get a parabola bending down, so we don’t have a minimum.
Looking at the graph, we see that this graph does not have a minimum.
Subsection 6.3.2 Second Partial Derivatives
With only first derivatives, we can just find the critical points. To check if a critical point is maximum, a minimum, or a saddle point, using only the first derivative, the best method is to look at a graph to determine the kind of critical point. For some applications we want to categorize the critical points symbolically.
With functions of one variable we used the second derivative to test if a critical point was a maximum or minimum. In the two variable case we need to define the second derivatives and use them to define the discriminant of a function to test if a critical point is a minimum, maximum, or saddle point. We first need to define second partial derivatives.
Second partials.
Note that \(f_{xx}\) is simply the old second derivative of the curve \(f(x,y_0)\) and \(f_{yy}\) is simply the old second derivative of the curve \(f(x_0,y)\text{.}\) For functions with continuous second partial derivatives, the mixed partials, \(f_{yx}\) and \(f_{xy}\) are the same.
Example 6.3.5. Finding Second Partial Derivatives.
Find the second partial derivatives of
We start by computing the first partial derivatives.
Then we compute the second partial derivatives.
As expected, the mixed partials are the same.
Subsection 6.3.3 Using the Discriminant to Test Critical Points
To test if a critical point is a maximum, minimum, or saddle point we compute the discriminant of the function.
Discriminant.
Example 6.3.6. Finding the Discriminant of a Function.
Find the discriminant of
We have already computed the second partial derivatives.
Substituting into the formula,
Discriminant test.
Let \((a,b)\) be a critical point of \(f(x,y)\text{.}\)
If \(D(a,b)>0\) and \(f_{xx} (a,b)>0\) then \((a,b)\) is a local minimum of \(f(x,y)\text{.}\)
If \(D(a,b)>0 \) and \(f_{xx} (a,b)\lt 0\) then \((a,b)\) is a local maximum of \(f(x,y)\text{.}\)
If \(D(a,b)\lt 0\) then \((a,b)\) is a saddle point of \(f(x,y)\text{.}\)
If \(D(a,b)=0\) we do not have enough information to classify the point.
Example 6.3.7. Using the Discriminant to Classify Critical Points.
Based on the information given, classify each of the following points as a local maximum, local minimum, saddle point, not a critical point, or not enough information to classify.
p  \({f_x}\)  \({f_y}\)  \(f_{xx}\)  \(f_{xy}\)  \(f_{yy}\) 
A  0  0  0  0  1 
B  0  1  3  2  4 
C  1  0  0  2  3 
D  0  0  1  2  0 
E  0  0  1  2  3 
F  0  0  3  1  2 
G  0  0  3  3  3 
We need to compute the discriminant and apply the test.
p  \(f_x\)  \(f_y\)  \(f_{xx}\)  \(f_{xy}\)  \(f_{yy}\)  Discriminant  Classification 
A  0  0  0  0  1  0  Not enough information 
B  0  1  3  2  4  8  Not a critical point 
C  1  0  0  2  3  4  Not a critical point 
D  0  0  1  2  0  4  Saddle point 
E  0  0  1  2  3  7  Saddle point 
F  0  0  3  1  2  5  Maximum 
G  0  0  3  3  3  0  Not enough information 
Example 6.3.8. Finding and Classifying Critical Points.
Let \(f(x,y)=x^33x+y^33y^2\text{.}\) Find the critical points and classify them using the discriminant.
We start by computing the first partial derivatives.
Then we compute the second partial derivatives and the discriminant.
We have critical points when both first partials are 0, so at \((1,2)\text{,}\) \((1,2)\text{,}\) \((1,0)\text{,}\) and \((1,0)\text{.}\)
At \((1,2)\text{,}\) both \(D\) and \(f_{xx}\) are positive, so we have a local minimum.
At \((1,2)\) and \((1,0)\text{,}\) \(D\) is negative, so we have a saddle point.
At (\((1,0)\text{,}\) \(D\) is positive and \(f_{xx}\) is negative, so we have a local maximum.
Exercises 6.3.4 Exercises: Critical Points and Extrema Problems
Exercise Group.
For the given functions and region:
Find the partial derivatives of the original function.
Find any critical points in the region.
Produce a small graph around any critical point.
Determine if the critical points are maxima, minima, or saddle points.
1.
The function is \(f(x,y)=x^2+2xy+4y^2+5x6y\text{,}\) for the region \(10\le x\le 10\text{,}\) and \(10\le y\le 10\text{.}\)
 \begin{align*} f_x (x,y) \amp = 2x+2y+5\\ f_y (x,y) \amp = 2x+8y6\text{.} \end{align*}

Set the partial derivatives equal to 0 and solve for \(x\) and \(y\text{.}\)
\begin{align*} f_x (x,y) \amp = 2x+2y+5=0\\ f_y (x,y) \amp = 2x+8y6=0\text{.} \end{align*}We can use either the method of substitution (solve for \(x\) or \(y\) in one equation and substitute into the other and solve), or method by elimination (multiply both equations by carefully chosen numbers and add/subtract the equations from each other.)
We will demonstrate method of elimination:
\begin{align*} 1×(2x+2y+5 \amp = 0) \amp \text{gives }2x2y5\amp=0\\ 1×(2x+8y6 \amp = 0) \amp \text{gives } 2x+8y6\amp =0\text{.} \end{align*}Adding the two equations gives \(6y11=0\text{;}\) hence, \(y= 11/6\text{.}\)
Pick one of the equations to solve for x (it does not matter which one):
\begin{equation*} 2x+2y+5=0 \quad \text{and }y= 11/6 \end{equation*}implies that \(2x+2(11/6)+5=0\) so \(x= (2(11/6)+5)/(2)=13/3\text{.}\)
We can also solve this system of equations using Wolfram Alpha:

The command in Wolfram Alpha is:
It is worth looking at both the 3D Plot and the Contour Plot.
3D Plot
Contour Plot

The 3D plot suggests a minimum, and this is confirmed by the contour plot which shows they typical view of a local minimum.
As an alternative we can find the discriminant.
\begin{align*} f_{xx} (x,y) \amp = 2\\ f_{xy} (x,y) \amp = 2\\ f_{yy} (x,y) \amp = 8\\ D \amp = f_{xx} (x,y)f_{yy} (x,y)f_{xy} (x,y)^2=2*82^2=12>0\text{.} \end{align*}Since \(D\gt 0\) and \(f_{xx} (x,y)\gt 0\) we have a local minimum.
2.
The function is \(f(x,y)=x^2+7xy+2y^2+4x3y\text{,}\) for the region \(10\le x\le 10\text{,}\) and \(10\le y\le 10\text{.}\)
3.
The function is \(f(x,y)=x^2+2xy4y^2+8x11y\text{,}\) for the region \(10\le x\le 10\text{,}\) and \(10\le y\le 10\text{.}\)
 \begin{align*} f_x (x,y) \amp = 2x+2y+8\\ f_y (x,y) \amp = 2x8y11\text{.} \end{align*}

Set the partial derivatives equal to 0 and solve for \(x\) and \(y\text{.}\)
\begin{align*} f_x (x,y) \amp = 2x+2y+8=0\\ f_y (x,y) \amp = 2x8y11=0\text{.} \end{align*}Adding the equations \(6y3=0\text{,}\) and so \(y=1/2\text{.}\)
Substituting in the first equation give \(2x+7=0\text{,}\) and so \(x=7/2\text{.}\)
Hence we have a critical points at \((7/2,1/2)\text{.}\)

For \((x,y)= (2,1)\text{:}\)

From the picture we conclude that the critical point is a maximum. As an alternative we can find the discriminant.
\begin{align*} f_{xx} (x,y) \amp = 2\\ f_{xy} (x,y) \amp = 2\\ f_{yy} (x,y) \amp = 8\\ D \amp = f_{xx} (x,y)f_{yy} (x,y)f_{xy} (x,y)^2=2*82^2=12\gt 0\text{.} \end{align*}Since \(D\gt 0\) and \(f_{xx} (x,y)\lt 0\) we have a local maximum.
4.
The function is \(f(x,y)=x^312x+y^33y\text{,}\) for the region \(10\le x\le 10\text{,}\) and \(10\le y\le 10\text{.}\)
5.
The function is the revenue function for selling widgets and gizmos with demand price functions
for the region \(0\le \QuantityWidget\le 1500\text{,}\) and \(0\le \QuantityGizmo\le 1500\text{.}\)
To solve this problem we will rename Gizmos \(x\) and Widgets \(y\text{.}\) This will make using Wolfram Alpha slightly easier, and symbol manipulation a tad more straight forward.
 \begin{align*} \revenue_x (x,y)\amp = \frac{24x5y+1000}{600} \\ \revenue_y (x,y)\amp = \frac{3x16y+10800}{360} \end{align*}

Using WolframALpha, the critical point is at \((62000/123, 23800/41) \approx (504, 580.5)\text{.}\)

Using WolframAlpha we get:

From the picture we conclude that the critical point is a maximum.
As an alternative we can find the discriminant.
\begin{align*} f_{xx} (x,y) \amp = \frac{1}{25}\\ f_{xy} (x,y) \amp = \frac{1}{120}\\ f_{yy} (x,y) \amp = \frac{4}{25}\\ D \amp = f_{xx} (x,y)f_{yy} (x,y)f_{xy} (x,y)^2 \gt 0\text{.} \end{align*}Since \(D\gt 0\) and \(f_{xx} (x,y)\lt 0\) we have a local maximum.
6.
The function is the revenue function for selling widgets and gizmos with demand price functions
for the region \(0\le \QuantityWidget\le 1500\text{,}\) and \(0\le \QuantityGizmo\le 1500\text{.}\) (Warning: There are several critical points.)
7.
Based on the information given, classify each of the following points as a local maximum, local minimum, saddle point, not a critical point, or not enough information to classify.
p  \(f_x\)  \(f_y\)  \(f_{xx}\)  \(f_{xy}\)  \(f_{yy}\) 
A  1  2  3  4  5 
B  0  0  0  0  0 
C  0  1  2  5  3 
D  0  0  2  2  2 
E  0  0  1  2  3 
F  0  0  0  1  0 
G  0  0  0  1  0 
Add a column for D and classify.
p  \(f_x\)  \(f_y\)  \(f_{xx}\)  \(f_{xy}\)  \(f_{yy}\)  \(D\)  Classification 
A  1  2  3  4  5  1  Not Critical 
B  0  0  0  0  0  0  Not Enough Info 
C  0  1  2  5  3  19  Not Critical 
D  0  0  2  2  2  0  Not Enough Info 
E  0  0  1  2  3  1  Saddle Point 
F  0  0  0  1  0  0  Not Enough Info 
G  0  0  0  1  0  0  Not Enough Info 
8.
Based on the information given, classify each of the following points as a local maximum, local minimum, saddle point, not a critical point, or not enough information to classify.
p  \(f_x\)  \(f_y\)  \(f_{xx}\)  \(f_{xy}\)  \(f_{yy}\) 
A  1  2  3  4  5 
B  0  0  0  0  0 
C  0  1  2  5  3 
D  0  0  2  2  2 
E  0  0  1  2  3 
F  0  0  0  1  0 
G  0  0  0  1  0 
9.
Using polynomials of the form \(f(x,y)=ax^3+bx^4+cy^3+dy^4\text{,}\) produce a function that has a critical point at \((0, 0)\text{,}\) of each type.
A local maximum.
A local minimum.
A saddle point where the function f(x,0) has a local maximum and f(0,y) has a local minimum.
A saddle point where the function f(x,0) and f(0,y) both have inflection points.
It helps to consider the question with only one variable.
\(f(x)=ax^3\) has an inflection point at \(x=0\) and neither a max nor a minimum.
\(f(x)=ax^4\) has minimum at \(x=0\) if \(a\gt 0\) and a maximum if \(a\lt 0\text{.}\)
Since all terms are of degree at least three, all second partial derivatives are zero at the origin, so the discriminant test fails.
A local maximum: \((x,y) = x^4y^4\text{.}\) Both \(x^4\) and \(y^4\) are nonnegative, so the function is negative everywhere except at the origin where it is 0.
A local minimum: \(f(x,y)= x^4+y^4\text{.}\) Both \(x^4\) and \(y^4\) are nonnegative, so the function is positive everywhere except at the origin where it is 0.
A saddle point where the function \(f(x,0)\) has a local maximum and \(f(0,y)\) has a local minimum: \((x,y)= x^4+y^4\text{.}\)
A saddle point where the function \(f(x,0)\) and \(f(0,y)\) both have inflection points: \(f(x,y)= x^3+y^3\)
mathstat.slu.edu/~may/ExcelCalculus/external/Examples/Section63Examples.xlsx