Skip to main content

Business Calculus with Excel

Section 6.3 Critical Points and Extrema

Subsection 6.3.1 Critical Points

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), if both partial derivatives are 0 at the same time.
In other words,
xf(x,y)|x=a,y=b=0
and
yf(x,y)|x=a,y=b=0.

Example 6.3.1. Finding a Local Minimum of a Function.

Figure 6.3.2. Video of finding local minimum
Use the partial derivatives of f(x,y)=x2+2xy+3y24x3y to find the minimum of the graph.
Solution.
Critical Point by Algebra
In the previous section, we already computed
xf(x,y)=2x+2y4yf(x,y)=2x+6y3.
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).
0=2x+2y40=2x+6y3.
Subtract the equations to eliminate x:
0=04y1.
Solve for y:
4y=1y=1/4.
Substitute back and solve for x:
0=2x+2(1/4)42x=9/2x=9/4.
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.
Figure 6.3.3. Critical point setup
To get solver to set both partials to 0 at the same time, I ask it to solve for fy=0, while setting fx=0 as a constraint. Make sure to uncheck the box that makes unconstrained variables non-negative.
Figure 6.3.4. Critical point setup
This finds our critical point within our error tolerance.
Critical Point by CAS
We can also use Wolfram|Alpha 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)=x2+y2 has a critical point at (0,0) and that that point is a minimum for the function. Similarly, f(x,y)=x2y2 has a critical point at (0,0) and that that point is a maximum for the function. For some functions, like f(x,y)=x2y2, which has a critical point at (0,0), 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.5. A Saddle Point at a Minimum on Both Axes.

Figure 6.3.6. Video presentation of this example
Show that f(x,y)=x23xy+y2 has a critical point at (0,0), which is a minimum of both slice curves, but is not a local minimum.
Solution.
We look at the two partial derivatives, and notice they are both zero at the origin.
xf(x,y)=2x3yxf(x,y)=3x+2y.
We then see that both slice curves are parabolas that bend up, with a minimum at 0.
f(x,0)=x2f(0,y)=y2.
However if we take the slice with x=y, we get a parabola bending down, so we don’t have a minimum.
f(x,x)=x23xx+x2=x2.
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.

fab=(fa)b=b(af).
Note that fxx is simply the old second derivative of the curve f(x,y0) and fyy is simply the old second derivative of the curve f(x0,y). For functions with continuous second partial derivatives, the mixed partials, fyx and fxy are the same.

Example 6.3.7. Finding Second Partial Derivatives.

Find the second partial derivatives of
f(x,y)=x2+3xy+5y37x11y.
Solution.
We start by computing the first partial derivatives.
fx=xf(x,y)=2x+3y7fy=yf(x,y)=3x+15y211.
Then we compute the second partial derivatives.
fxx=xfx=2fxy=yfx=3fyx=xfy=3fyy=yfy=30y.
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.

D(f(x,y))=fxxfyyfxy2.

Example 6.3.8. Finding the Discriminant of a Function.

Find the discriminant of
f(x,y)=x2+3xy+5y37x11y.
Solution.
We have already computed the second partial derivatives.
fxx=2,fxy=3,fyy=30y.
Substituting into the formula,
D=(2)(30y)32=60y9.

Discriminant test.

Let (a,b) be a critical point of f(x,y).
If D(a,b)>0 and fxx(a,b)>0 then (a,b) is a local minimum of f(x,y).
If D(a,b)>0 and fxx(a,b)<0 then (a,b) is a local maximum of f(x,y).
If D(a,b)<0 then (a,b) is a saddle point of f(x,y).
If D(a,b)=0 we do not have enough information to classify the point.

Example 6.3.9. 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 fx fy fxx fxy fyy
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
Solution.
We need to compute the discriminant and apply the test.
p fx fy fxx fxy fyy 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.10. Finding and Classifying Critical Points.

Let f(x,y)=x33x+y33y2. Find the critical points and classify them using the discriminant.
Solution.
We start by computing the first partial derivatives.
fx=3x23=3(x1)(x+1)fy=3y26y=3(y2)(y).
Then we compute the second partial derivatives and the discriminant.
fxx=6x,fxy=0,fyy=6y6,D=(6x)(6y6)02=36xy36x.
We have critical points when both first partials are 0, so at (1,2), (1,2), (1,0), and (1,0).
At (1,2), both D and fxx are positive, so we have a local minimum.
At (1,2) and (1,0), D is negative, so we have a saddle point.
At (1,0), D is positive and fxx is negative, so we have a local maximum.

Reading Questions 6.3.4 Reading Check

1. Reading check, Wire Frames, Critical Points and Extrema.

This question checks your reading comprehension of the material is section 6.3, Critical Points and Extrema, of Business Calculus with Excel. Based on your reading, select all statements that are correct. There may be more than one correct answer. The statements may appear in what seems to be a random order.
  1. If the discriminant of f is positive , and fxx is negative, then we have a local maximum.
  2. The point (a,b) is a critical point for the multivariable function f(x,y), if both partial derivatives are 0 at the same time.
  3. If the discriminant of f is positive at a critical point, and fxx is positive, then we have a local minimum.
  4. We cannot have a maximum if the discriminant is zero.
  5. If the discriminant is negative at a critical point, then we have a saddle point.
  6. If a function is a minimum in both the x and y directions, then it is a minimum.
  7. The formula for the discriminant of f(x,y) is is fxxfyyfxy2.
  8. A saddle point has a minimum in one direction and a maximum in a different direction.
  9. None of the above

Exercises 6.3.5 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)=x2+2xy+4y2+5x6y, for the region 10x10, and 10y10.
Solution.
  • fx(x,y)=2x+2y+5fy(x,y)=2x+8y6.
  • Set the partial derivatives equal to 0 and solve for x and y.
    fx(x,y)=2x+2y+5=0fy(x,y)=2x+8y6=0.
    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:
    1×(2x+2y+5=0)gives 2x2y5=01×(2x+8y6=0)gives 2x+8y6=0.
    Adding the two equations gives 6y11=0; hence, y=11/6.
    Pick one of the equations to solve for x (it does not matter which one):
    2x+2y+5=0and y=11/6
    implies that 2x+2(11/6)+5=0 so x=(2(11/6)+5)/(2)=13/3.
    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.
    fxx(x,y)=2fxy(x,y)=2fyy(x,y)=8D=fxx(x,y)fyy(x,y)fxy(x,y)2=2822=12>0.
    Since D>0 and fxx(x,y)>0 we have a local minimum.
2.
The function is f(x,y)=x2+7xy+2y2+4x3y, for the region 10x10, and 10y10.
3.
The function is f(x,y)=x2+2xy4y2+8x11y, for the region 10x10, and 10y10.
Solution.
  • fx(x,y)=2x+2y+8fy(x,y)=2x8y11.
  • Set the partial derivatives equal to 0 and solve for x and y.
    fx(x,y)=2x+2y+8=0fy(x,y)=2x8y11=0.
    Adding the equations 6y3=0, and so y=1/2.
    Substituting in the first equation give 2x+7=0, and so x=7/2.
    Hence we have a critical points at (7/2,1/2).
  • For (x,y)=(2,1):
  • From the picture we conclude that the critical point is a maximum. As an alternative we can find the discriminant.
    fxx(x,y)=2fxy(x,y)=2fyy(x,y)=8D=fxx(x,y)fyy(x,y)fxy(x,y)2=2822=12>0.
    Since D>0 and fxx(x,y)<0 we have a local maximum.
4.
The function is f(x,y)=x312x+y33y, for the region 10x10, and 10y10.
5.
The function is the revenue function for selling widgets and gizmos with demand price functions
PriceGizmos=25QuantityGizmos50QuantityWidgets200PriceWidgets=30QuantityWidgets45QuantityGizmos300
for the region 0QuantityWidgets1500, and 0QuantityGizmos1500.
Solution.
To solve this problem we will rename Gizmos x and Widgets y. This will make using Wolfram Alpha slightly easier, and symbol manipulation a tad more straight forward.
PriceX=25x50y200PriceY=30y45x300Revenue(x,y)=xPriceX+yPriceY=x[25x50y200]+y[30y45x300]=36x215xy+45000x40y2+54000y1800.
  • Revenuex(x,y)=24x5y+1000600Revenuey(x,y)=3x16y+10800360
  • Using WolframALpha, the critical point is at (62000/123,23800/41)(504,580.5).
  • Using WolframAlpha we get:
  • From the picture we conclude that the critical point is a maximum.
    As an alternative we can find the discriminant.
    fxx(x,y)=125fxy(x,y)=1120fyy(x,y)=425D=fxx(x,y)fyy(x,y)fxy(x,y)2>0.
    Since D>0 and fxx(x,y)<0 we have a local maximum.
6.
The function is the revenue function for selling widgets and gizmos with demand price functions
PriceGizmos=30(0.9)(QuantityGizmos/150)QuantityWidgets250PriceWidgets=20(0.97)(QuantityWidgets/50)QuantityGizmos350
for the region 0QuantityWidgets1500, and 0QuantityGizmos1500. (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 fx fy fxx fxy fyy
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
Solution.
Add a column for D and classify.
p fx fy fxx fxy fyy 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 fx fy fxx fxy fyy
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)=ax3+bx4+cy3+dy4, produce a function that has a critical point at (0,0), of each type.
  1. A local maximum.
  2. A local minimum.
  3. A saddle point where the function f(x,0) has a local maximum and f(0,y) has a local minimum.
  4. A saddle point where the function f(x,0) and f(0,y) both have inflection points.
Solution.
It helps to consider the question with only one variable.
f(x)=ax3 has an inflection point at x=0 and neither a max nor a minimum.
f(x)=ax4 has minimum at x=0 if a>0 and a maximum if a<0.
Since all terms are of degree at least three, all second partial derivatives are zero at the origin, so the discriminant test fails.
  1. A local maximum: (x,y)=x4y4. Both x4 and y4 are nonnegative, so the function is negative everywhere except at the origin where it is 0.
  2. A local minimum: f(x,y)=x4+y4. Both x4 and y4 are nonnegative, so the function is positive everywhere except at the origin where it is 0.
  3. A saddle point where the function f(x,0) has a local maximum and f(0,y) has a local minimum: (x,y)=x4+y4.
  4. A saddle point where the function f(x,0) and f(0,y) both have inflection points: f(x,y)=x3+y3