Tutorials › AP Calculus › Local Extrema at Nondifferentiable Points

Monotonicity and Local Extrema · Tutorial 352 of 999

Local Extrema at Nondifferentiable Points

Use the first derivative test at corners and cusps, and distinguish a genuine local extremum from a nondifferentiable point that is not an extremum.

Intermediate 9 min read

What You'll Learn

  • Define local extrema relative to a function’s domain.
  • Identify interior domain points where the derivative does not exist.
  • Apply the first derivative test on the two sides of a nondifferentiable point.
  • Classify corner points and cusps as local minima or maxima.
  • Recognize when a nondifferentiable point is not a local extremum.
  • Avoid incorrectly requiring the derivative to equal zero at every local extremum.

Why Nondifferentiable Points Need Attention

A derivative-based search for local extrema often begins by solving \(f'(x)=0\). But that equation does not find every possible extremum. A function can have a local minimum or maximum at a point where its derivative does not exist, provided the function itself is defined there.

At such a point, the graph may have a sharp corner or a cusp. The derivative is unavailable at the point, but its signs on either side can still show how the function behaves as it approaches and leaves that point. The first derivative test uses those signs to classify the point.

Key idea: A local extremum can occur where the derivative is zero or where the derivative does not exist. For a nondifferentiable point, check the function’s derivative signs immediately to the left and right.

Local Extrema and Critical Numbers

Let \(f\) be defined on a domain \(D\), and let \(c\) be an interior point of \(D\). The function has a local minimum at \(c\) if there is an interval around \(c\) such that \(f(c)\leq f(x)\) for every \(x\in D\) in that interval. It has a local maximum at \(c\) if \(f(c)\geq f(x)\) for every such \(x\). The inequalities are strict for a strict local extremum when they hold strictly for nearby \(x\neq c\).

A point must belong to the function’s domain to be a local extremum. In particular, a hole in a graph cannot itself be a local maximum or minimum. This tutorial focuses on interior domain points; a domain endpoint has only one side of the domain nearby and requires separate one-sided reasoning.

Definition: An interior point \(c\) of the domain of \(f\) is a critical number if \(f'(c)=0\) or \(f'(c)\) does not exist. A critical number is a candidate for a local extremum, not a guarantee that one occurs.

Fermat’s theorem says that if \(f\) has a local extremum at an interior point \(c\) and is differentiable at \(c\), then \(f'(c)=0\). The differentiability condition matters: when the derivative does not exist, the conclusion \(f'(c)=0\) is not available. Thus, a complete search for interior extrema considers both stationary points and points where the function is defined but not differentiable.

The First Derivative Test at a Nondifferentiable Point

Suppose \(f\) is continuous at \(c\), is differentiable on each side of \(c\) sufficiently nearby, and \(c\) is an interior point of its domain. Determine whether \(f'(x)\) is positive or negative immediately to the left and right of \(c\). A positive derivative indicates that the function is increasing on that interval; a negative derivative indicates that it is decreasing.

Sign of \(f'\) to the leftSign of \(f'\) to the rightConclusion at \(c\)
NegativePositiveLocal minimum
PositiveNegativeLocal maximum
PositivePositiveNo extremum from this sign pattern
NegativeNegativeNo extremum from this sign pattern

The first two rows describe a change in direction: decreasing then increasing produces a valley, while increasing then decreasing produces a peak. If the derivative has the same strict sign on both sides, the function continues in the same direction through \(c\), so there is no local extremum there.

Theorem: First derivative test at a nondifferentiable point. Suppose \(f\) is continuous at an interior domain point \(c\), is differentiable on intervals immediately to the left and right of \(c\), and has a strict derivative sign on each of those intervals. If \(f'<0\) to the left and \(f'>0\) to the right, then \(f\) has a strict local minimum at \(c\). If \(f'>0\) to the left and \(f'<0\) to the right, then \(f\) has a strict local maximum at \(c\). If the signs are the same, there is no local extremum at \(c\).

Why the Sign Test Works

The justification comes from the Mean Value Theorem, which says that if \(f\) is continuous on a closed interval and differentiable in its interior, then some point in the interior has derivative equal to the secant slope across the interval. In particular, a strictly negative derivative throughout an interval makes the function strictly decreasing there, and a strictly positive derivative makes it strictly increasing.

For the minimum case, choose a nearby \(x<c\). Since \(f'<0\) between \(x\) and \(c\), the function decreases as the input moves from \(x\) to \(c\), so \(f(x)>f(c)\). For a nearby \(x>c\), \(f'>0\) between \(c\) and \(x\), so \(f(x)>f(c)\) again. Thus \(f(c)\) is less than the values on both sides. The maximum case reverses both inequalities.

1
Confirm the point is eligible.
Check that \(c\) is in the domain and is an interior point. Verify that the function is defined at \(c\), even if its derivative is not.
2
Find the derivative signs nearby.
Differentiate on each side where the derivative exists, then determine its sign immediately to the left and right of \(c\).
3
Classify the change.
Negative to positive gives a local minimum; positive to negative gives a local maximum. The same strict sign on both sides gives no local extremum.
4
State the function value and verify.
Evaluate \(f(c)\), then check that the nearby function values lie above or below it as the classification requires.

Worked Examples

Worked Example: A Corner That Is a Local Minimum

Classify the point \(x=2\) for \(f(x)=|x-2|+1\).

The function is defined at \(x=2\), and \(f(2)=|0|+1=1\). For \(x<2\), \(|x-2|=2-x\), so \(f(x)=3-x\) and \(f'(x)=-1\). For \(x>2\), \(|x-2|=x-2\), so \(f(x)=x-1\) and \(f'(x)=1\).

$$ f'(x)= \begin{cases} -1, & x<2,\\ 1, & x>2. \end{cases} $$

The derivative is negative on the left and positive on the right. The derivative at \(2\) does not exist: the left-hand slope is \(-1\), while the right-hand slope is \(1\). Therefore, the first derivative test gives a strict local minimum at \(x=2\), with value \(f(2)=1\).

Check directly: if \(x\neq 2\), then \(|x-2|>0\), so \(f(x)=|x-2|+1>1=f(2)\). This confirms the minimum.

Worked Example: A Corner That Is a Local Maximum

Classify the point \(x=-1\) for \(g(x)=3-|x+1|\).

At the point, \(g(-1)=3-|0|=3\). For \(x<-1\), \(|x+1|=-(x+1)\), so \(g(x)=3+(x+1)=x+4\), with derivative \(g'(x)=1\). For \(x>-1\), \(|x+1|=x+1\), so \(g(x)=3-(x+1)=2-x\), with derivative \(g'(x)=-1\).

$$ g'(x)= \begin{cases} 1, & x<-1,\\ -1, & x>-1. \end{cases} $$

The function is increasing to the left and decreasing to the right, so the sign changes from positive to negative. The derivative does not exist at \(-1\), because the left and right slopes differ. Thus \(g\) has a strict local maximum at \(-1\), with value \(3\).

Check: for \(x\neq -1\), \(|x+1|>0\), and hence \(g(x)=3-|x+1|<3=g(-1)\). The nearby values are indeed lower.

Worked Example: A Cusp That Is a Local Minimum

Classify \(x=1\) for \(h(x)=(x-1)^{2/3}\), using the real-valued interpretation of this power.

The function is defined at \(1\), and \(h(1)=0\). For \(x\neq 1\), the power rule gives \(h'(x)=\frac{2}{3}(x-1)^{-1/3}\). If \(x<1\), then \((x-1)^{1/3}<0\), so \(h'(x)<0\). If \(x>1\), then \((x-1)^{1/3}>0\), so \(h'(x)>0\).

$$ h'(x)=\frac{2}{3(x-1)^{1/3}}\quad (x\neq 1), \qquad h'(x)<0\ (x<1), \qquad h'(x)>0\ (x>1). $$

The derivative does not exist as a finite number at \(1\). In the difference quotient, setting the input change to \(t\neq 0\) gives \(\frac{h(1+t)-h(1)}{t}=\frac{t^{2/3}}{t}=t^{-1/3}\), which is unbounded as \(t\) approaches zero. Since the derivative signs change from negative to positive, \(h\) has a strict local minimum at \(1\).

Check: for \(x\neq 1\), \((x-1)^{2/3}=(\sqrt[3]{x-1})^2>0=h(1)\). This confirms the minimum.

Worked Example: A Nondifferentiable Point That Is Not an Extremum

Determine whether \(x=0\) is a local extremum of \(p(x)=\sqrt[3]{x}\).

The function is defined at zero and \(p(0)=0\). For \(x\neq 0\), \(p'(x)=\frac{1}{3x^{2/3}}>0\), on both sides of zero. The derivative at zero does not exist as a finite number: the difference quotient is \(\frac{\sqrt[3]{t}-0}{t}=t^{-2/3}\), which grows without bound as \(t\) approaches zero.

There is no change in derivative sign. More directly, if \(x<0\), then \(\sqrt[3]{x}<0=p(0)\), and if \(x>0\), then \(\sqrt[3]{x}>0=p(0)\). Values occur both below and above \(p(0)\) arbitrarily close to zero, so zero is neither a local minimum nor a local maximum.

A Common Mistake

A common error is to assume that every local extremum must satisfy \(f'(c)=0\). For example, someone might write, “For \(f(x)=|x|\), the minimum occurs at \(x=0\); therefore \(f'(0)=0\).” The first part is correct, but the conclusion is not: \(f'(0)\) does not exist. The left-hand derivative is \(-1\), and the right-hand derivative is \(1\).

Correction: At an interior local extremum, differentiability implies \(f'(c)=0\); without differentiability, Fermat’s theorem does not apply. Include points where \(f\) is defined but \(f'\) does not exist, then use the behavior on both sides to classify them.

Another possible error is to label every nondifferentiable point as an extremum. The cube-root example shows why that fails: the derivative is positive on both sides, and the function keeps increasing through the nondifferentiable point. A point’s nondifferentiability makes it a candidate, not a conclusion.

Check Your Understanding

For each question, use the function’s domain and the behavior on both sides of the indicated point.

  1. For \(f(x)=|x-4|\), what is \(f(4)\), and is \(x=4\) a local minimum, a local maximum, or neither?
  2. For \(g(x)=-|x-3|\), determine the derivative signs on either side of \(3\), and classify the point.
  3. For \(h(x)=(x+2)^{2/3}\), identify the derivative sign on each side of \(-2\) and state the local-extremum conclusion.
  4. Why does \(p(x)=\sqrt[3]{x}\) have no local extremum at zero even though its derivative does not exist there?
  5. State the differentiability condition in Fermat’s theorem that prevents it from ruling out extrema at corners or cusps.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon