Topic · Calculus

Applications of Derivatives

The derivative measures how a function changes. Once you can compute it, four problems open up: finding the peaks and valleys of a curve, optimizing real quantities under constraints, tracking how two changing things change together, and replacing a complicated function locally with a much simpler line.

What you'll leave with

  • How to locate a function's local maxima and minima by solving $f'(x) = 0$ — and how to tell which is which.
  • What the sign of $f''(x)$ tells you about a curve's shape, and how to use it as a fast extremum test.
  • A repeatable recipe for optimization word problems — set up the quantity, eliminate the constraint, differentiate.
  • How to relate two changing quantities through implicit differentiation in time (related rates).
  • The linear approximation $f(x) \approx f(a) + f'(a)(x - a)$ and why it's the seed of Taylor series.

1. Critical points and extrema

At a local maximum, the function rises, levels off, and then falls. At a local minimum, it does the reverse: falls, levels off, rises. The "levels off" moment is geometric — the tangent line is horizontal — and that translates immediately into algebra: $f'(x) = 0$.

Critical point

A number $c$ in the domain of $f$ where either $f'(c) = 0$ or $f'(c)$ does not exist. Every local maximum or minimum of a differentiable function occurs at a critical point — but not every critical point is an extremum.

The plan, then, is to collect candidates by solving $f'(x) = 0$, then classify each one. The cheapest classifier is the first derivative test.

The first derivative test

Walk across the critical point $c$ and watch the sign of $f'$:

Behavior of $f'$ near $c$Meaning at $c$
$f' > 0$ on the left, $f' < 0$ on the rightLocal maximum (rising then falling)
$f' < 0$ on the left, $f' > 0$ on the rightLocal minimum (falling then rising)
Same sign on both sidesNot an extremum — the curve flattens but keeps going

Concretely: pick a test point just left of $c$ and just right of $c$, evaluate $f'$ at each, look at the signs.

local max f'(−2) = 0 local min f'(2) = 0 y = f(x) tangent is horizontal where f'(x) = 0 x y −4 −2 2 4 2 −2

The picture above traces a typical cubic shape. At each of the two marked points the tangent (the dashed green segment) is horizontal: the slope $f'$ has just dropped to zero. To the left of the left point the curve is rising ($f' > 0$); to the right it falls ($f' < 0$). That's a local maximum. The right-hand point is the reverse — a local minimum.

2. The second derivative

The second derivative is the derivative of the derivative: $f''(x) = \tfrac{d}{dx}\big(f'(x)\big)$. If $f'$ tells you how $f$ changes, $f''$ tells you how $f'$ changes — and that bends $f$.

Concavity

A function is concave up on an interval where $f'' > 0$ — the curve opens upward, like a cup. It is concave down where $f'' < 0$ — the curve opens downward, like a frown. A point where concavity switches is an inflection point.

Two interpretations are worth holding side by side:

  • Geometric. $f'' > 0$ means the slope is increasing — even if the function is going down, it's "decelerating downward" and curving back up. $f'' < 0$ means the slope is decreasing.
  • Physical. If $f(t)$ is position, $f'(t)$ is velocity and $f''(t)$ is acceleration. Positive acceleration means speeding up in the positive direction (or slowing down in the negative direction).

The second derivative test

This gives a fast classifier for critical points when it applies. Suppose $f'(c) = 0$. Then:

$$ \begin{aligned} f''(c) > 0 &\;\Longrightarrow\; \text{local minimum at } c \\ f''(c) < 0 &\;\Longrightarrow\; \text{local maximum at } c \\ f''(c) &= 0 &\;\Longrightarrow\; \text{inconclusive — fall back to the first derivative test} \end{aligned} $$

The intuition is direct. A horizontal tangent inside a concave-up bowl must be the bottom of the bowl. A horizontal tangent on top of a concave-down arch must be the peak. When $f''(c) = 0$, the test reveals nothing — you might have a max, a min, or an inflection point with a horizontal tangent (like $f(x) = x^3$ at $x = 0$).

Which test to reach for

If $f''$ is easy to compute and clearly nonzero at the critical point, the second derivative test is one line of algebra. If $f''$ is messy, or if it's zero at the critical point, the first derivative test (signs of $f'$ on either side) is more reliable.

3. Optimization

Most real problems aren't "find the extrema of this specific function" — they're "given some constraints in the world, maximize or minimize this quantity." The translation step is the hard part. The calculus, once you have a single-variable function, is the easy part.

A recipe that works on almost every textbook problem:

  1. Name the quantity to optimize. Call it $Q$. Write it as a function of whatever variables describe the situation.
  2. Use the constraints to eliminate variables until $Q$ depends on just one.
  3. Identify the domain. Real geometric quantities are typically nonnegative; some have an upper bound from the constraint.
  4. Find critical points by solving $Q'(x) = 0$ in the interior of the domain.
  5. Check the endpoints too. On a closed interval, the global max or min may sit at a boundary point even when no critical point does.
  6. Classify the winner with the first or second derivative test.

Worked setup: minimum-surface can

Design a closed cylindrical can holding a fixed volume $V$, using as little metal as possible. Let $r$ be the radius and $h$ the height. Then

$$ V = \pi r^2 h \quad\text{(constraint)}, \qquad S = 2\pi r^2 + 2\pi r h \quad\text{(surface area to minimize)}. $$

Solve the constraint for $h$ to eliminate it from $S$:

$$ h = \frac{V}{\pi r^2} \;\;\Longrightarrow\;\; S(r) = 2\pi r^2 + 2\pi r \cdot \frac{V}{\pi r^2} = 2\pi r^2 + \frac{2V}{r}. $$

Differentiate and set $S'(r) = 0$:

$$ S'(r) = 4\pi r - \frac{2V}{r^2} = 0 \;\;\Longrightarrow\;\; 4\pi r^3 = 2V \;\;\Longrightarrow\;\; r^3 = \frac{V}{2\pi}. $$

Substituting back gives $h = 2r$ — the optimal can is as tall as it is wide (height equals diameter). A second derivative check, $S''(r) = 4\pi + 4V/r^3 > 0$, confirms this is a minimum.

Note

Real soda cans aren't proportioned this way, and the reason is informative: the optimization above ignores that the top and bottom of a can are thicker than the side wall, ignores manufacturing constraints, and ignores how the can will be held. Whenever a calculus answer disagrees with the world, the model — not the math — is what to interrogate.

5. Linear approximation

Zoom in on a smooth curve far enough and it stops looking curved — it looks like its tangent line. That's the whole content of differentiability, restated. Turn it into a formula by taking the tangent line at $x = a$ and using it to estimate $f$ at nearby inputs:

$$ f(x) \approx f(a) + f'(a)(x - a) \qquad \text{(for } x \text{ near } a\text{)}. $$

The right-hand side is called the linearization of $f$ at $a$, often written $L(x)$.

a = 4, f(a) = 2 √4.1 ≈ L(4.1) = 2.025 (true value: 2.0248…) y = √x L(x) = 2 + ¼(x − 4) x y 0 2 4 6 8 10 12 1 2 3

The accuracy of the approximation deteriorates as $x$ wanders away from $a$. The error is governed by $f''$: the bigger the curvature, the faster the tangent line drifts from the curve. (Make that quantitative and you've discovered Taylor's theorem.)

Linearization is the gateway to a much bigger idea: if a single line is a decent local model, a parabola fit to the same point is even better, and a polynomial that matches $f, f', f'', \dots$ at $a$ is better still. That's the Taylor series, and every infinite series for $\sin x$, $e^x$, and $\ln(1+x)$ in your future descends from this one move.

6. Mean value theorem, Rolle's theorem, and Newton's method

A few classical results round out the toolkit. The first two formalize the picture of "slopes must do something specific in between two points"; the third is a numerical algorithm that uses derivatives to chase roots.

Mean value theorem (MVT)

If $f$ is continuous on $[a, b]$ and differentiable on $(a, b)$, then there exists at least one $c$ in $(a, b)$ with

$$ f'(c) = \frac{f(b) - f(a)}{b - a}. $$

Somewhere between the endpoints, the instantaneous slope equals the average slope across the interval.

Rolle's theorem is the special case $f(a) = f(b)$: under the same continuity and differentiability hypotheses, there is some $c \in (a, b)$ with $f'(c) = 0$. Geometrically, a smooth curve that starts and ends at the same height must level off somewhere in between.

Why these matter

Rolle's theorem is the engine behind many uniqueness arguments — if two solutions existed, $f'$ would have to vanish between them. The MVT is the engine behind error bounds for linear approximation and the proof that "derivative zero everywhere $\Rightarrow$ function is constant."

Curve sketching, in one breath

Stitching together the first and second derivatives produces a complete qualitative picture of a function. The checklist:

  1. Domain and intercepts — where is $f$ defined, where does it hit the axes.
  2. Asymptotes — vertical (where the denominator vanishes), horizontal (limit as $x \to \pm\infty$).
  3. $f'$ sign chart — where the function rises and falls; critical points become local maxes and mins.
  4. $f''$ sign chart — where the curve is concave up vs down; sign changes mark inflection points.
  5. Plot the skeleton — extrema, inflection points, intercepts, asymptotes — then connect with the right concavity.

Newton's method

To solve $f(x) = 0$ when no algebraic shortcut works, start from a guess $x_0$ and iteratively replace it by the x-intercept of the tangent line at the current guess:

$$ x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}. $$

Each step assumes the function is well-approximated by its tangent line near $x_n$ — exactly the linearization idea from §5, applied iteratively. When the method converges, it does so quadratically: the number of correct digits roughly doubles per step. When it fails — flat derivative, oscillation, divergence — the failure is loud and easy to spot.

When Newton's method misbehaves

If $f'(x_n) = 0$ the update divides by zero. If the starting guess is far from a root, iterates can leap to a different root or fail to converge at all. Sketch the function first; pick $x_0$ where the tangent points toward the root.

7. Common pitfalls

A critical point isn't always an extremum

$f'(c) = 0$ is a necessary condition for a local max or min, not a sufficient one. The classic counterexample is $f(x) = x^3$ at $x = 0$: $f'(0) = 0$, but the function passes straight through — an inflection point with a horizontal tangent, not an extremum. Always classify with the first or second derivative test.

Don't forget the endpoints

On a closed interval $[a, b]$, the global maximum and minimum can sit at the boundary even when no interior critical point does. The Extreme Value Theorem promises that they exist on a continuous function over $[a, b]$ — but it locates them as either interior critical points or endpoints. Always evaluate $f$ at $a$ and $b$ before declaring a winner.

Read the sign of $f''$, not its magnitude

The second derivative test only consults the sign of $f''(c)$. A value like $f''(c) = 0.001$ still counts as positive — that's still a local minimum, just one inside a very gently curved bowl. Sign tells you which kind of extremum; magnitude tells you how sharply curved it is, which is a separate question.

Linear approximation lies far from $a$

The estimate $f(x) \approx f(a) + f'(a)(x - a)$ is only good when $x$ is genuinely close to $a$. Use it to approximate $\sqrt{4.1}$ from $\sqrt{4}$ and you're fine; try to approximate $\sqrt{16}$ from $\sqrt{4}$ and the answer will be badly wrong. If you need accuracy over a wider interval, you need a higher-order Taylor approximation, not a linear one.

8. Worked examples

Try each one before opening the solution. The goal is to recognize which tool fits which question — that's harder than running any individual computation.

Example 1 · Find the local extrema of $f(x) = x^3 - 3x$

Step 1. Differentiate:

$$ f'(x) = 3x^2 - 3 = 3(x^2 - 1). $$

Step 2. Solve $f'(x) = 0$: $x^2 = 1$, so $x = \pm 1$ are the two critical points.

Step 3. Classify with the second derivative test. $f''(x) = 6x$, so

$$ f''(-1) = -6 < 0 \;\;\Longrightarrow\;\; \text{local max at } x = -1, $$ $$ f''(1) = 6 > 0 \;\;\Longrightarrow\;\; \text{local min at } x = 1. $$

Values. $f(-1) = -1 + 3 = 2$ and $f(1) = 1 - 3 = -2$. So the local max is $(-1, 2)$ and the local min is $(1, -2)$.

Example 2 · Concavity of $f(x) = x^4 - 6x^2$

Step 1. Compute the second derivative:

$$ f'(x) = 4x^3 - 12x, \qquad f''(x) = 12x^2 - 12 = 12(x^2 - 1). $$

Step 2. Find where $f''(x) = 0$: at $x = \pm 1$.

Step 3. Test the sign of $f''$ in each region:

  • For $x < -1$ (try $x = -2$): $f''(-2) = 12(4 - 1) = 36 > 0$ — concave up.
  • For $-1 < x < 1$ (try $x = 0$): $f''(0) = -12 < 0$ — concave down.
  • For $x > 1$ (try $x = 2$): $f''(2) = 36 > 0$ — concave up.

So the curve has inflection points at $x = -1$ and $x = 1$ — concavity switches at each.

Example 3 · Largest rectangle with perimeter 40

Let the rectangle have sides $x$ and $y$. The perimeter constraint is $2x + 2y = 40$, so $y = 20 - x$. The area is

$$ A(x) = x(20 - x) = 20x - x^2, \qquad 0 \le x \le 20. $$

Step 1. Differentiate and find critical points: $A'(x) = 20 - 2x = 0 \;\Rightarrow\; x = 10$.

Step 2. Classify: $A''(x) = -2 < 0$ everywhere, so this is a maximum.

Step 3. Check endpoints: $A(0) = 0$ and $A(20) = 0$, both worse than the interior critical point.

Answer. $x = 10$, $y = 10$. The optimal rectangle is a square, with area $100$. (A general fact: among all rectangles of fixed perimeter, the square wins.)

Example 4 · Filling a conical tank (related rates)

Water flows into an inverted cone at a rate of $2$ cubic meters per minute. The cone is $4$ m tall and has a top radius of $2$ m. How fast is the water level rising when the water is $3$ m deep?

Step 1. Volume of water in the cone, with water depth $h$ and water-surface radius $r$:

$$ V = \tfrac{1}{3}\pi r^2 h. $$

Step 2. By similar triangles, $r/h = 2/4$, so $r = h/2$. Substitute to eliminate $r$:

$$ V = \tfrac{1}{3}\pi \left(\tfrac{h}{2}\right)^{\!2} h = \tfrac{\pi}{12} h^3. $$

Step 3. Differentiate with respect to time:

$$ \frac{dV}{dt} = \frac{\pi}{4} h^2 \frac{dh}{dt}. $$

Step 4. Plug in $\tfrac{dV}{dt} = 2$ and $h = 3$:

$$ 2 = \frac{\pi}{4}(9)\frac{dh}{dt} \;\;\Longrightarrow\;\; \frac{dh}{dt} = \frac{8}{9\pi} \approx 0.283 \text{ m/min}. $$
Example 5 · Estimate $\sqrt{4.1}$ using a linear approximation

Take $f(x) = \sqrt{x}$ and anchor at $a = 4$, where the value and derivative are easy:

$$ f(4) = 2, \qquad f'(x) = \frac{1}{2\sqrt{x}} \;\;\Longrightarrow\;\; f'(4) = \frac{1}{4}. $$

The linearization is

$$ L(x) = 2 + \tfrac{1}{4}(x - 4). $$

At $x = 4.1$:

$$ \sqrt{4.1} \approx L(4.1) = 2 + \tfrac{1}{4}(0.1) = 2.025. $$

Sanity check. The true value is $2.02485\dots$, so the linear approximation is off by about $0.00015$ — accurate to four decimal places after one line of arithmetic. The smaller the perturbation from the anchor, the better the estimate.

Test your understanding

A quiz that builds from easy to hard. Pick an answer to get instant feedback and a worked explanation. Your progress is saved in this browser — come back anytime to continue.

Question 1 of 23
0 correct

Sources & further reading

Each application above is treated in much more depth in standard calculus references. If a step here was compressed, these are where to find the longer treatment.