Skip to main content

Section 3.12 PD7: The Second Derivative Test

Handout PD7: Lecture Scaffold

Recall/Motivation.

In single variable calculus you considered the following problems about a function \(f(x)\) defined on some interval:
  1. classify local extrema inside the interval
  2. determine absolute extrema
The first problem boiled down the following:
  • find critical points (points \(c\) for which \(f'(c)=0\))
  • use the second derivative test:
    • if \(f''(c)>0\text{,}\) then the function is concave up and \(x=c\) is a local minimum
    • if \(f''(c)<0\text{,}\) then the function is concave down and \(x=c\) is a local maximum
    • if \(f''(c)=0\text{,}\) the test is inconclusive (the point may be an inflection point but more work needed)
The second problem boiled down to:

Definition 3.12.1.

Let \(f(x, y)\) be defined on a region \(R\) containing the point \((a, b)\text{.}\) Then:
  1. \(f(a, b)\) is a local maximum value of \(f\) if \(f(a, b) \geq f(x, y)\) for all domain points \((x, y)\) in an open disk centered at \((a, b)\text{.}\) \(f(a, b)\) is an absolute maximum value of \(f\) on \(R\) if \(f(a, b) \geq f(x, y)\) for all domain points \((x, y)\) in \(R\text{.}\)
  2. \(f(a, b)\) is a local minimum value of \(f\) if \(f(a, b) \leq f(x, y)\) for all domain points \((x, y)\) in an open disk centered at \((a, b)\text{.}\) \(f(a, b)\) is an absolute minimum value of \(f\) on \(R\) if \(f(a, b) \leq f(x, y)\) for all domain points \((x, y)\) in \(R\text{.}\)
Geometrically, local maxima and minima correspond to peaks and valleys respectively on the surface given by the graph of \(z=f(x,y)\text{.}\)

Important Observation.

If \(f(x,y)\) has a local max or min at \((a,b)\text{,}\) then the same must be true of the curves \(f(a,y)\) at \(y=b\) and \(f(x,b)\) at \(x=a\text{.}\)
In other words, it must be the case that:
\begin{equation*} \nabla(f)_{(a,b)}=\langle\frac{\partial f}{\partial x}\Big|_{(a,b)},\frac{\partial f}{\partial y}\Big|_{(a,b)}\rangle=\langle 0,0\rangle. \end{equation*}
So, these points correspond to points on the graph at which the corresponding tangent plane is horizontal (i.e. parallel to the \(xy\) plane)

Definition 3.12.2.

Let \(z=f(x,y)\) be a function and \((a,b)\) be an interior point of the domain \(R\text{.}\) We say \((a,b)\) is a critical point if \(\nabla (f)=\vec{0}\) or if \(\nabla (f)\) is not defined.

Definition 3.12.3.

A differentiable function \(f(x, y)\) has a saddle point at a critical point \((a, b)\) if in every open disk centered at \((a, b)\) there are domain points \((x, y)\) where \(f(x, y) > f(a, b)\) and domain points \((x, y)\) where \(f(x, y) < f(a, b)\text{.}\) The corresponding point \((a, b, f(a, b))\) on the surface \(z = f(x, y)\) is called a saddle point of the surface.

Example 3.12.6.

Find and classify the local extreme values of \(f(x,y)=3y^2-2y^3-3x^2+6xy\)

Example 3.12.7.

Find the critical points of \(f(x,y)=10xye^{-(x^2+y^2)}\text{.}\)

Example 3.12.8.

Now use the following table of values to classify the critical points:
Table 3.12.9. Critical Point Analysis
\(\textbf{Critical Point}\) \(f_{xx}\) \(f_{xy}\) \(f_{yy}\) \(\textbf{Discriminant } D\)
\((0,0)\) \(0\) \(10\) \(0\) \(-100\)
\(\left(\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)\) \(-\frac{20}{e}\) \(0\) \(-\frac{20}{e}\) \(\frac{400}{e^2}\)
\(\left(-\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)\) \(\frac{20}{e}\) \(0\) \(\frac{20}{e}\) \(\frac{400}{e^2}\)
\(\left(\frac{1}{\sqrt{2}}, -\frac{1}{\sqrt{2}}\right)\) \(\frac{20}{e}\) \(0\) \(\frac{20}{e}\) \(\frac{400}{e^2}\)
\(\left(-\frac{1}{\sqrt{2}}, -\frac{1}{\sqrt{2}}\right)\) \(-\frac{20}{e}\) \(0\) \(-\frac{20}{e}\) \(\frac{400}{e^2}\)

Example 3.12.10.

Find the absolute maximum and minimum values of
\begin{equation*} f(x,y)=2+2x+4y-x^2-y^2 \end{equation*}
on the triangular region in the first quadrant bounded by the lines \(x=0\text{,}\) \(y=0\) and \(y=9-x.\)

Problem 3.12.11 PD7 Representative Assessment.

(a)

Explain and demonstrate how to find the critical points of the function \(f(x,y)=x^2-4xy+y^2+6y+2\text{.}\)
Solution.
To find the critical points of \(f(x,y) = x^2 - 4xy + y^2 + 6y + 2\text{,}\) we set the first-order partial derivatives equal to zero:
\begin{align*} f_x(x,y) \amp = 2x - 4y = 0 \implies x = 2y\\ f_y(x,y) \amp = -4x + 2y + 6 = 0 \end{align*}
Substituting \(x = 2y\) into the second equation gives:
\begin{equation*} -4(2y) + 2y + 6 = 0 \implies -6y + 6 = 0 \implies y = 1 \end{equation*}
Since \(x = 2y\text{,}\) when \(y = 1\) we have \(x = 2(1) = 2\text{.}\)
Thus, the only critical point is \((2, 1)\text{.}\)

(b)

Suppose \(g\) is function of two variables and that the locations of its critical points, values of second-order derivatives are as tabulated below. Explain and demonstrate how to classify the critical points.
Table 3.12.12. Critical Points and Second Partial Derivatives
Critical Point \((x, y)\) \(g_{xx} = 6x\) \(g_{yy} = 6x + 6y\) \(g_{xy} = 6y\)
\((2, 1)\) \(12\) \(18\) \(6\)
\((-2, -1)\) \(-12\) \(-18\) \(-6\)
\((0, \sqrt{5})\) \(0\) \(6\sqrt{5}\) \(6\sqrt{5}\)
\((0, -\sqrt{5})\) \(0\) \(-6\sqrt{5}\) \(-6\sqrt{5}\)
Solution.
To classify each critical point using the Second Derivative Test, we compute the discriminant:
\begin{equation*} D = g_{xx} g_{yy} - (g_{xy})^2 \end{equation*}
Evaluating \(D\) at each given critical point:
  • At \((2, 1)\text{:}\) \(D = (12)(18) - (6)^2 = 216 - 36 = 180 > 0\text{.}\) Since \(D >0\) and \(g_{xx} = 12 > 0\text{,}\) \(g\) has a local minimum at \((2, 1)\text{.}\)
  • At \((-2, -1)\text{:}\) \(D = (-12)(-18) - (-6)^2 = 216 - 36 = 180 > 0\text{.}\) Since \(D > 0\) and \(g_{xx} = -12 < 0\text{,}\) \(g\) has a local maximum at \((-2, -1)\text{.}\)
  • At \((0, \sqrt{5})\text{:}\) \(D = (0)(6\sqrt{5}) - (6\sqrt{5})^2 = 0 - 180 = -180 < 0\text{.}\) Since \(D < 0\text{,}\) \(g\) has a saddle point at \((0, \sqrt{5})\text{.}\)
  • At \((0, -\sqrt{5})\text{:}\) \(D = (0)(-6\sqrt{5}) - (-6\sqrt{5})^2 = 0 - 180 = -180 < 0\text{.}\) Since \(D < 0\text{,}\) \(g\) has a saddle point at \((0, -\sqrt{5})\text{.}\)