Search

Extreme values and critical numbers

“Nature is thrifty in all its actions.”

— Pierre-Louis Moreau de Maupertuis

Largest compared with what?

The top of a small hill is higher than nearby ground, but it need not be the highest point in a landscape. Calculus makes the same distinction between a local comparison and an absolute one. The domain is part of the question: restricting the landscape can change its highest and lowest points.

Definition

Local and absolute extrema

A function \(f\) has an absolute maximum at \(c\) on its stated domain \(D\) if \(f(x)\le f(c)\) for every \(x\in D\). Reverse the inequality for an absolute minimum.

It has a local maximum at an interior input \(c\) if the same comparison holds for all domain inputs sufficiently close to \(c\). Reverse the inequality for a local minimum. Together, maxima and minima are called extrema.

We use the interior-point convention for local extrema in this course. Endpoints still matter for absolute extrema. The input \(c\) is the location; \(f(c)\) is the extremum value.

The cubic x cubed minus three x on minus two to three has a local maximum below the right endpoint. Amber points labelled minus two, minus two and one, minus two share a dashed horizontal guide at height minus two; both attain the absolute minimum.
On \([-2,3]\), the local maximum is below the right endpoint. Both amber points lie on \(y=-2\) and attain the absolute minimum.

Theorem

Extreme-value theorem

If \(f\) is continuous on a closed bounded interval \([a,b]\), then \(f\) attains both an absolute maximum and an absolute minimum there.

The theorem guarantees that both values are achieved. It does not say they are unique, that they occur in the interior, or how to locate them. We state this existence theorem without proof.

Each hypothesis matters. Choose a case below to see how the conclusion can fail.

The line y equals x on the open interval zero to one has open circles at both endpoints. Neither zero nor one is attained.
The interval is not closed. On \((0,1)\), \(f(x)=x\) approaches \(0\) and \(1\) without reaching either. There is no absolute minimum or maximum.
The line y equals x on the interval zero to infinity has a filled point at the origin and an arrow indicating continued growth.
The interval is unbounded. On \([0,\infty)\), \(f(x)=x\) attains its minimum \(0\) at \(x=0\), but has no absolute maximum.
On the closed interval zero to one, a filled point gives f of zero equal to zero, while the reciprocal curve for positive inputs rises without bound toward zero.
Continuity fails. The domain \([0,1]\) is closed and bounded, but \(f(0)=0\) and \(f(x)=1/x\) for \(0\lt x\le1\) give a discontinuity at \(0\). The outputs are unbounded above, so no absolute maximum exists.
Choose an extreme-value theorem hypothesis to remove

Why an interior smooth extremum has zero slope

At a smooth local peak, the graph rises toward the point and falls away. We can make the horizontal-tangent conclusion precise directly from the derivative definition.

Theorem

Fermat's theorem

If \(f\) has a local extremum at an interior input \(c\) and is differentiable there, then \(f^{\prime}(c)=0\).

Proof (optional)

At a local maximum, \(f(c+h)-f(c)\le0\) for sufficiently small \(h\). For positive \(h\) the difference quotient is nonpositive; for negative \(h\) it is nonnegative. If the common derivative limit exists, it must be both nonpositive and nonnegative, hence zero. At a local minimum the inequalities reverse and yield the same conclusion.

There are three ways a candidate can escape the horizontal-tangent picture: it can be an endpoint, a point where the derivative does not exist, or a horizontal tangent that is not an extremum at all.

Definition

Critical numbers

An interior input \(c\) in the domain of \(f\) is a critical number if \(f^{\prime}(c)=0\) or \(f^{\prime}(c)\) does not exist as a finite number. The point \((c,f(c))\) is a critical point of the graph.

A missing domain input is not a critical number. Every interior local extremum is critical, but the converse need not hold.

Example 1

Three horizontal or sharp behaviours

The function \(x^2\) has derivative zero and a local minimum at zero. The function \(x^3\) also has derivative zero there, but takes smaller values to the left and larger values to the right: no local extremum occurs. The function \(\lvert x\rvert\) has no derivative at zero, yet has a minimum there.

\(f(x)=x^2\) Tangent \(y=0\)
The parabola x squared stays above its horizontal amber tangent at the origin, where it has a local minimum.
A local minimum with \(f^{\prime}(0)=0\).
\(f(x)=x^3\) Tangent \(y=0\)
The curve x cubed crosses its horizontal amber tangent at the origin, so the origin is not a local extremum.
No local extremum, although \(f^{\prime}(0)=0\).
\(f(x)=\lvert x\rvert\)
The absolute value of x has a sharp corner and a local minimum at the origin, where the derivative does not exist.
A local minimum where \(f^{\prime}(0)\) does not exist.

So “solve \(f^{\prime}=0\)” is only part of a search. It misses corners and cannot classify the solutions on its own.

Find absolute extrema on a closed interval

If \(f\) is continuous on \([a,b]\), existence is guaranteed. Fermat’s theorem says that every interior extremum is a critical number. Therefore:

  1. Find the critical numbers in \((a,b)\), including points with no finite derivative.
  2. Evaluate \(f\) at those inputs and at both endpoints.
  3. Compare the function values, and report all inputs where the largest and smallest values occur.

The derivative locates candidates. The original function decides their heights.

Example 2

An interior peak and a larger endpoint

Find the absolute extrema of \(f(x)=x^3-3x\) on \([-2,3]\). The function is continuous. Its derivative is

\[\begin{aligned} f^{\prime}(x)&=3(x^2-1)\\ &=3(x-1)(x+1). \end{aligned}\]

The interior critical numbers are \(-1\) and \(1\). Compare all four candidates:

Input \(x\) \(-2\) \(-1\) \(1\) \(3\)
Value \(f(x)\) \(-2\) \(2\) \(-2\) \(18\)

The absolute maximum value is \(18\) at \(x=3\). The absolute minimum value is \(-2\) at both \(x=-2\) and \(x=1\). The interior peak at \(x=-1\) is only local.

Example 3

A candidate where differentiation fails

Find the absolute extrema of \(f(x)=\lvert x-1\rvert\) on \([-1,4]\). It is continuous. Its derivative is \(-1\) for \(x<1\) and \(1\) for \(x>1\); no derivative exists at \(1\).

The candidates are \(-1,1,4\), with values \(2,0,3\). Thus the absolute minimum is \(0\) at \(1\) and the absolute maximum is \(3\) at \(4\). There were no solutions to \(f^{\prime}(x)=0\), but there was an interior minimum.

\(f(x)=\lvert x-1\rvert\) Absolute extrema
The graph of the absolute value of x minus one on minus one to four has an absolute minimum at the corner one, zero and an absolute maximum at the right endpoint four, three. These two points are amber; the left endpoint minus one, two is green.
The minimum value \(0\) occurs at the corner \((1,0)\); the maximum value \(3\) occurs at the endpoint \((4,3)\). Both candidates must be checked even though neither comes from solving \(f^{\prime}(x)=0\).

Attention

When the domain changes

For \(f(x)=x^2\) on \((0,2]\), the maximum \(4\) is attained at \(2\), but there is no minimum: zero is approached and never reached. A boundary limit is not an attained extremum. On an open or unbounded domain, inspect what happens toward its boundaries instead of invoking the extreme-value theorem automatically.

Quiz

Calculus for Engineers and Scientists

Find a post, puzzle, or idea.