Unit 5 · Topic 5.4

Classify turning points with signs

Builds on critical points and where a function increases or decreases. 12 minutes.

  1. Example 1Identify candidates for local extrema
  2. Example 2Test the derivative on both sides
  3. Example 3Classify a candidate using the sign change
  4. Example 4Report the requested location or point

A function \(f\) has a local maximum at \(c\) if \(f(c)\ge f(x)\) for every \(x\) in some open interval around \(c\). It has a local minimum at \(c\) if \(f(c)\le f(x)\) for every such \(x\) (topic 5.2). Both are local extrema, which AP problems call relative extrema.

This topic finds where a local extremum can occur, tests each such input, and reports the result in the form a question asks for.

Where a local extremum can occur

The graph of a function f, with no numbers, green where it rises and red where it falls. It rises to a smooth top at c1, falls to a sharp corner at c2, rises to a flat point at c3, where the tangent is horizontal but the curve keeps rising, and rises to the right end. Labels read local maximum above the top, local minimum below the corner and neither below and to the right of the flat point. An orange point with its orange tangent can be dragged along the curve; at the corner two orange half-lines replace the tangent. Below, the graph of f′ crosses the axis at c1, jumps from below the axis to above it at c2, and touches the axis at c3, and an orange bar runs from the axis to f′ at the point. Under it, a sign chart marks the sign of f′ on each stretch: plus, minus, plus, plus, with an arrow up or down. A button raises the part of the curve left of c1, so that f jumps at c1: an open ring ends the left part, a filled dot below it marks f(c1), and the label there reads neither.

Figure 1The curve is green where \(f\) rises and red where it falls, and the orange line is the tangent at the orange point. The lower graph shows \(f'\), with an orange bar of height \(f'(x)\) under the point and open rings where \(f'\) has no value. A faint line joins the point to the bar. On the sign chart below, a green plus marks where \(f'>0\) and a red minus where \(f'<0\), with arrows for the direction of \(f\).

In Figure 1, the tangent at the orange point slopes up at the start. Nearby points of the curve are higher on the right of the point and lower on its left, so \(f\) has no local extremum there.

The same holds at every input \(c\) where \(f'(c)\) exists and is not 0, by Fermat's Theorem (topic 5.2). The theorem states that if \(f\) has a local extremum at \(c\) and \(f'(c)\) exists, then \(f'(c)=0\). An input inside the domain of \(f\) where \(f'\) is 0 or does not exist is a critical point (topic 5.2).

A local extremum compares \(f(c)\) with \(f(x)\) on an open interval around \(c\), so \(f\) needs values on both sides of \(c\). An endpoint of the domain can give an absolute extremum (topic 5.2), but not a local one. The candidates for a local extremum are therefore the critical points \(c\) where \(f\) is defined on some open interval around \(c\).

Figure 1 has three candidates, marked with dots on the curve and named on the sign chart. Drag the point to each of them. At \(c_1\) and \(c_3\) the tangent is horizontal, so \(f'\) is 0 there. At the corner \(c_2\), two orange half-lines with different slopes replace the tangent, so \(f'(c_2)\) does not exist. The curve rises on both sides of \(c_3\), so a candidate need not be a local extremum.

The First Derivative Test

If \(f\) is given by a formula, \(f'\) has one sign on any interval where it exists and is never 0 (topic 5.3). The inputs where \(f'\) is 0 or does not exist mark the ends of such intervals. On each one, the sign of \(f'\) at a single input, a test point, is its sign on the whole interval. Where \(f'>0\), \(f\) rises, and where \(f'<0\), it falls (topic 5.3). The sign chart in Figure 1 shows these signs.

Let \(f\) be continuous at a candidate \(c\), with \(f'>0\) on an interval \((a,c)\) and \(f'<0\) on an interval \((c,b)\). For \(x\) in \((a,c)\), \(f\) is differentiable on \((x,c)\). It is also continuous on \([x,c]\), because a differentiable function is continuous (topic 2.4) and \(f\) is continuous at \(c\). The Mean Value Theorem therefore gives a number \(t\) between \(x\) and \(c\) with

\[f(c)-f(x)=f'(t)\,(c-x)\]

Both factors on the right are positive, because \(t\) lies in \((a,c)\) and \(x<c\), so \(f(x)<f(c)\). For \(x\) in \((c,b)\), the theorem on \([c,x]\) gives a number \(t\) between \(c\) and \(x\) with \(f(x)-f(c)=f'(t)\,(x-c)<0\). Every \(x\ne c\) in \((a,b)\) therefore has \(f(x)<f(c)\), so \(f\) has a local maximum at \(c\).

With the two signs reversed, the same argument gives a local minimum. If \(f'\) has the same sign on both sides, the same argument shows that \(f(x)-f(c)\) changes sign at \(c\), so \(f\) has neither. This result is the First Derivative Test.

In Figure 1, \(f'\) changes from positive to negative at \(c_1\) and from negative to positive at \(c_2\), but keeps its sign at \(c_3\). The labels on the curve give each result. The value \(f'(c)\) decides nothing, because it is 0 or does not exist at every candidate.

The test needs \(f\) to be continuous at \(c\). Use the button under Figure 1 to put a jump in \(f\) at \(c_1\). The left part of the curve now ends at an open ring above the filled dot at \(f(c_1)\). Move the point onto the jump. The tangent and the bar disappear, because \(f'(c_1)\) no longer exists. The signs of \(f'\) on the two sides stay the same. Points near \(c_1\), however, are higher on its left and lower on its right, so the label reads neither. Without continuity at \(c_1\), the Mean Value Theorem does not apply on \([x,c_1]\).

Location, value and point

A question about a local extremum at \(c\) can ask for any of three answers. Its location, where it occurs, is the input \(c\) on the horizontal axis. Its value is the output \(f(c)\), the height of the graph there, which you find by substituting \(c\) into \(f\), not into \(f'\). The point is \(\big(c,f(c)\big)\) on the graph.

To justify a local extremum, name the sign change: \(f\) has a local maximum at \(c\) because \(f'\) changes from positive to negative there.

Example 1

Identify candidates for local extrema

Let \(g(x)=x\sqrt{4-x^2}\). Find all values of \(x\) at which \(g\) could have a local maximum or a local minimum.

Solution

The square root needs \(4-x^2\ge 0\), so the domain of \(g\) is \(-2\le x\le 2\). For \(-2<x<2\), the product rule and the chain rule give

\[\begin{aligned}g'(x)&=\sqrt{4-x^2}-\frac{x^2}{\sqrt{4-x^2}}\\&=\frac{4-2x^2}{\sqrt{4-x^2}}\end{aligned}\]

The numerator is 0 at \(x=\pm\sqrt2\), where the denominator is not, so these two inputs inside the domain are critical points. At the endpoints \(x=\pm 2\), \(g'\) does not exist, but \(g\) has values on only one side of each, so neither can be a local extremum.

The candidates are \(x=-\sqrt2\) and \(x=\sqrt2\).

Example 2

Test the derivative on both sides

Let \(q(x)=x-3\sqrt[3]{x}\). At each critical point of \(q\), does \(q'\) change from positive to negative, change from negative to positive, or keep its sign?

Solution

The domain of \(q\) is all real numbers, and for \(x\ne 0\) the power rule gives

\[q'(x)=1-x^{-2/3}=1-\frac{1}{\sqrt[3]{x^2}}\]

The derivative is 0 where \(\sqrt[3]{x^2}=1\), at \(x=\pm 1\). At \(x=0\), where \(q(0)=0\), the quotient \(\frac{q(x)-q(0)}{x}=1-\frac{3}{\sqrt[3]{x^2}}\) decreases without bound as \(x\) approaches 0, so \(q'(0)\) does not exist. These three critical points split the number line into four intervals, and one test point in each gives the sign there:

\[\begin{aligned}q'(-8)&=1-\tfrac14=\tfrac34\\q'\big(-\tfrac18\big)&=1-4=-3\\q'\big(\tfrac18\big)&=1-4=-3\\q'(8)&=1-\tfrac14=\tfrac34\end{aligned}\]

From left to right, the signs are positive, negative, negative and positive. At \(-1\), \(q'\) changes from positive to negative, and at 1 from negative to positive. At 0 it keeps its sign.

Example 3

Classify a candidate using the sign change

The graph of \(f'\), the derivative of a function \(f\), consists of line segments and is shown in Figure 2 for \(0\le x\le 9\). At which values of \(x\) in \(0<x<9\) does \(f\) have a local minimum or a local maximum? Justify your answers.

The graph of f′ for x from 0 to 9, made of line segments through (0, −1), (1, 0), (3, 2), (5, 0), (7, 2), (8, 0) and (9, −1). It lies below the x-axis from 0 to 1, above it from 1 to 8 except at x = 5, where it comes down to touch the axis, and below it from 8 to 9.

Figure 2The faint grid lines mark integers, and the segments of the graph meet at points with integer coordinates.

Solution

Since \(f'\) exists on the whole interval, \(f\) is differentiable and therefore continuous there (topic 2.4). Its candidates are the zeros of \(f'\), where the graph meets the \(x\)-axis: \(x=1\), \(x=5\) and \(x=8\).

At \(x=1\), the graph of \(f'\) crosses the axis from below to above. The derivative changes from negative to positive, so \(f\) has a local minimum at \(x=1\).

At \(x=8\), the graph crosses from above to below. The derivative changes from positive to negative, so \(f\) has a local maximum at \(x=8\).

At \(x=5\), the graph touches the axis and stays above it. The derivative keeps its sign, so \(f\) has neither.

Example 4

Report the requested location or point

Let \(p(x)=x^3-3x+4\). At what value of \(x\) does \(p\) have a local minimum? What is the local maximum value of \(p\), and at what point on the graph of \(p\) does it occur?

Solution

The polynomial \(p\) is differentiable everywhere, and

\[p'(x)=3x^2-3=3(x+1)(x-1)\]

The candidates are \(x=\pm 1\). For \(x<-1\), \(x+1\) and \(x-1\) are both negative; for \(-1<x<1\), only \(x-1\) is negative; for \(x>1\), neither is. Hence \(p'\) changes from positive to negative at \(-1\), where \(p\) has a local maximum. It changes from negative to positive at 1, where \(p\) has a local minimum.

The first question asks where, so its answer is the input \(x=1\). The local maximum value is the output \(p(-1)\), the height of the graph at \(x=-1\):

\[p(-1)=(-1)^3-3(-1)+4=6\]

The local maximum value is 6, and it occurs at the point \((-1,6)\).

Each example is one of the four skills of topic 5.4 in Which & Why: AP Calculus.