3.4 Maxima and Minima
Where a function peaks and bottoms out, where it rises and falls, and which way it bends — all read from $f^\prime$ and $f^{\prime\prime}$.
Given a function, we often want its largest and smallest values. They matter for accurate graphs and for optimization: maximizing profit, minimizing the aluminium in a can, finding the maximum height of a rocket. Here we use derivatives to find them.
Absolute Extrema
Consider $f(x)=x^2+1$ over $(-\infty,\infty)$. As $x\to\pm\infty$, $f(x)\to\infty$, so there is no largest value. But $x^2+1\ge1$ for all $x$, with equality at $x=0$, so $f$ has a smallest value, $1$, at $x=0$.
"Absolute" here has nothing to do with absolute value — an extremum may be positive, negative or zero. The extremum is the value $f(c)$; the number $c$ is where it occurs.
Local Extrema and Critical Points
Picture a graph shaped like two mountains with a valley between them. The absolute maximum is at the higher peak, but the lower peak is interesting too: its value is larger than all nearby values. That is a local maximum; the bottom of the valley is a local minimum.
- Evaluate $f$ at the endpoints $x=a$ and $x=b$.
- Find all critical points of $f$ in $(a,b)$ and evaluate $f$ there.
- Compare all the values. The largest is the absolute maximum; the smallest is the absolute minimum.
- a $f(x)=-x^2+3x-2$ over $[1,3]$
- b $f(x)=x^2-3x^{2/3}$ over $[0,2]$
Derivatives and the Shape of a Graph
A local extremum must occur at a critical point, but a critical point need not give an extremum: $f(x)=x^3$ has $f^\prime(0)=0$ but no extremum at $0$. The sign of $f^\prime$ tells us which is which. If $f^\prime>0$ on an interval, $f$ is increasing there; if $f^\prime<0$, it is decreasing. A continuous function has a local maximum at $c$ exactly when it switches from increasing to decreasing there, and a local minimum when it switches from decreasing to increasing.
- If $f^\prime$ changes from positive to negative at $c$, then $f(c)$ is a local maximum.
- If $f^\prime$ changes from negative to positive at $c$, then $f(c)$ is a local minimum.
- If $f^\prime$ has the same sign on both sides of $c$, then $f(c)$ is neither.
- Find all critical points and use them to split $I$ into subintervals.
- Pick a test point in each subinterval and find the sign of $f^\prime$ there; this tells you where $f$ increases and decreases.
- Apply the first derivative test at each critical point.
Concavity and Points of Inflection
If the slope of the tangent increases as $x$ increases, the graph curves upward: $f$ is concave up. If the slope decreases, $f$ is concave down.
| sign of $f^\prime$ | $f$ is | sign of $f^{\prime\prime}$ | concavity |
|---|---|---|---|
| + | increasing | + | concave up |
| + | increasing | − | concave down |
| − | decreasing | + | concave up |
| − | decreasing | − | concave down |
The Second Derivative Test
Exercises
- 1 $y=4x^3-3x$
- 2 $y=4\sqrt x-x^2$
- 3 $y=\dfrac{1}{x-1}$
- 4 $y=\ln(x-2)$
- 5 $y=\sqrt{4-x^2}$
- 6 $y=x+\dfrac1x$
- 1 $f(x)=x^2+3$ over $[-1,4]$
- 2 $y=x^2+\dfrac2x$ over $[1,4]$
- 3 $y=\sqrt{9-x}$ over $[1,9]$
- 4 $y=\dfrac{x}{1+x}$ over $[0,100]$
- 5 $y=\sqrt x-\sqrt{x^3}$ over $[0,4]$
V. For the same $f$, find all intervals where $f$ is concave up and concave down.
VI. The points $c=3,\,-2$ satisfy $f^\prime(c)=0$. Use the second derivative test to decide whether $f$ has a local maximum or minimum there.
- 1 $f(x)=x^3-4x^2+x+2$
- 2 $f(x)=x^2-6x$
- 3 $f(x)=x^3-6x^2$
- 4 $f(x)=x^4-6x^3$
- 5 $f(x)=x+x^2-x^3$
- 6 $f(x)=x^2+x+1$
- 7 $f(x)=x^3+x^4$
- 1 $f(x)=x^{2/3}(x-5)$
- 2 $f(x)=\left|x^2-4\right|$
- 3 $g(t)=t\sqrt{4-t}$
- 4 $f(x)=x+2\cos x$ on $(0,2\pi)$
- 1 $f(x)=x^3-12x+1$ over $[-3,5]$
- 2 $f(x)=x+2\cos x$ over $[0,\pi]$
- 3 $f(x)=x^2e^{-x}$ over $[-1,3]$
- 4 $f(x)=3x^{2/3}-2x$ over $[-1,8]$
- 5 $f(x)=x-2\ln x$ over $[1,e]$
- 1 Find the local extrema of $f(x)=xe^{-x}$.
- 2 Find the local extrema of $f(x)=x-2\sin x$ on $(0,2\pi)$.
- 3 Find the local extrema of $f(x)=x^{4/3}-4x^{1/3}$.
- 4 Find the local extrema of $f(x)=x^2\ln x$, $x>0$.
- 5 The concentration of a drug in the bloodstream $t$ hours after an injection is $C(t)=\dfrac{20t}{t^2+4}$ mg/L for $0\le t\le6$. When is the concentration greatest, and what is it?
- 6 True or false? Explain. (a) If $f^\prime(c)=0$, then $f$ has a local extremum at $c$. (b) A function can have a local extremum at a point where $f^\prime$ does not exist.
Research question. On which day of the year is Nizwa hottest, according to a model and according to data?
Why it matters. Climate scientists fit periodic models to temperature data to study seasons and warming trends; energy companies use them to predict peak electricity demand for air conditioning.
What to do.
- Use this sample model for daily maximum temperature: $T(d)=34+9\sin\left(\frac{2\pi(d-105)}{365}\right)$ °C, $d$ = day of the year.
- Find $T'(d)$ and solve $T'(d)=0$ to find the hottest and coolest days.
- Find real monthly average maximum temperatures for Nizwa from a weather website or the Oman Meteorology site.
- Plot the real data with the model in Desmos. Does the hottest month agree?
Tools: Desmos, weather website
Hand in: A half-page note: the hottest day from the model, the hottest month from the data, and one reason they may differ.
Going further. Anywhere: fit the same model to your own city's temperatures.
🧪 Self-check quiz
Q1. A critical point of $f$ is an interior point $c$ where:
Q2. The Extreme Value Theorem guarantees absolute extrema for a function that is:
Q3. If $f^\prime(c)=0$ and $f^{\prime\prime}(c)<0$, then at $c$:
Q4. For $f(x)=x^3$, the point $x=0$ is:
Q5. $f(x)=x^3-6x^2+9x+30$ has an inflection point at: