AP Calculus AB · Differentiation: composite, implicit and inverse functions
Higher-order derivatives
1Derivatives of derivatives
The derivative $f'$ is itself a function, so we can differentiate it again. This gives the second derivative $f''$, then the third derivative $f'''$, and so on.
Notation:
- Second derivative: $f''(x)$, $y''$, $\frac{d^2y}{dx^2}$
- Third derivative: $f'''(x)$, $y'''$, $\frac{d^3y}{dx^3}$
- $n$th derivative: $f^{(n)}(x)$, $\frac{d^ny}{dx^n}$
$f(x) = x^4 - 3x^2 + 5x$.
- $f'(x) = 4x^3 - 6x + 5$
- $f''(x) = 12x^2 - 6$
- $f'''(x) = 24x$
- $f^{(4)}(x) = 24$, and every derivative after that is $0$.
Check yourself
If f(x) = x³, what is f″(x)?
Show the answer
6x
f′ = 3x², then f″ = 6x.
2What the second derivative means
The second derivative is the rate of change of the rate of change.
- In motion: if $s(t)$ is position, then $v(t) = s'(t)$ is velocity and $a(t) = v'(t) = s''(t)$ is acceleration.
- In graphs: $f''$ tells how the slope of $f$ is changing. If $f'' > 0$, slopes are increasing and the graph is concave up (bends upward like a cup). If $f'' < 0$, the graph is concave down (like a cap).
if $s(t) = t^3 - 6t^2$ metres, then $v(t) = 3t^2 - 12t$ and $a(t) = 6t - 12$. At $t = 1$, $a = -6$ m/s²: the velocity is decreasing at 6 m/s per second.
Velocity is the first derivative of position and acceleration is the second
Check yourself
If s(t) is position, then s″(t) is:
Show the answer
Acceleration
The derivative of velocity.
3Second derivatives with the rules
Use the same rules again, carefully.
$y = xe^{2x}$
- $y' = e^{2x} + 2xe^{2x} = e^{2x}(1 + 2x)$.
- $y'' = 2e^{2x}(1 + 2x) + e^{2x}(2) = e^{2x}(4 + 4x)$.
$y = \sin(3x)$
- $y' = 3\cos(3x)$.
- $y'' = -9\sin(3x)$.
Notice that $y'' = -9y$. Equations linking a function to its derivatives are differential equations, a later topic.
Check yourself
If y = e^(−x), then y″ =
Show the answer
e^(−x)
Two minus signs cancel.
4Patterns in repeated derivatives
Some functions repeat in a cycle:
- $\sin x \to \cos x \to -\sin x \to -\cos x \to \sin x$ (a cycle of 4)
- $e^{kx} \to ke^{kx} \to k^2e^{kx} \to \ldots$, so $\frac{d^n}{dx^n}[e^{kx}] = k^ne^{kx}$
find $\frac{d^{27}}{dx^{27}}[\sin x]$.
- The cycle has length 4. $27 = 4 \times 6 + 3$.
- So the 27th derivative equals the 3rd derivative: $-\cos x$.
Check yourself
What is the 10th derivative of cos x?
Show the answer
−cos x
10 = 4 × 2 + 2, and the second derivative of cos x is −cos x.
5Going deeper: patterns, meaning and second derivatives in context
The second derivative is the derivative of the first: $f''(x)$, $\frac{d^2y}{dx^2}$, $y''$. The third is $f'''$; the n-th is $f^{(n)}(x)$ or $\frac{d^ny}{dx^n}$.
$f(x) = x^4 - 2x^3$.
- $f'(x) = 4x^3 - 6x^2$.
- $f''(x) = 12x^2 - 12x$.
- $f'''(x) = 24x - 12$; $f^{(4)}(x) = 24$; all later derivatives are 0.
Patterns
- Polynomials: each derivative lowers the degree; the n-th derivative of $x^n$ is n!.
- Sine and cosine cycle with period 4: sin x → cos x → −sin x → −cos x → sin x. So the 10th derivative of sin x is the 2nd: −sin x (since 10 = 8 + 2).
- $e^{kx}$: the n-th derivative is $k^ne^{kx}$.
- $\frac{1}{x} = x^{-1}$: −x⁻², 2x⁻³, −6x⁻⁴ …: the n-th is $(-1)^nn!\,x^{-(n+1)}$.
- ln x: $\frac{1}{x}$, $-\frac{1}{x^2}$, $\frac{2}{x^3}$ …
Worked example (product): $f(x) = xe^x$.
- $f' = e^x + xe^x = (x + 1)e^x$.
- $f'' = e^x + (x + 1)e^x = (x + 2)e^x$.
- Pattern: $f^{(n)} = (x + n)e^x$.
What the second derivative means
- $f''$ is the rate of change of the slope.
- $f'' > 0$: f′ is increasing: the graph is concave up.
- $f'' < 0$: f′ is decreasing: concave down.
- Where $f''$ changes sign: a point of inflection.
for $f(x) = x^4 - 2x^3$, $f'' = 12x(x - 1)$.
- Positive for x < 0 and x > 1 (concave up); negative on (0, 1) (concave down).
- Inflection points at x = 0 and x = 1.
Motion: position s(t); velocity v = s′; acceleration a = v′ = s″. The third derivative (rate of change of acceleration) is called jerk.
$s(t) = t^3 - 6t^2 + 9t$ (meters, seconds).
- $v = 3t^2 - 12t + 9$.
- $a = 6t - 12$.
- At t = 1: v = 0, a = −6 m/s².
Units: if f is in meters and x in seconds, f′ is in m/s and f″ in m/s². In general, the units of f″ are (units of f) ÷ (units of x)².
In context ("the rate is increasing but more slowly"): if P(t) is a population,
- P′ > 0 and P″ > 0: growing at an increasing rate.
- P′ > 0 and P″ < 0: growing, but the growth is slowing.
- P′ < 0 and P″ > 0: declining, with the decline slowing.
Worked example (interpretation): "The rate of inflation is falling." Prices P are still rising (P′ > 0); the inflation rate is decreasing, so P″ < 0.
Second derivative from a table: estimate f′ on neighboring intervals, then the rate of change of those estimates.
Second derivative implicitly: differentiate $\frac{dy}{dx}$ and substitute for $\frac{dy}{dx}$ (as for the circle, giving $-\frac{25}{y^3}$).
Common mistakes
- Writing $\frac{d^2y}{dx^2}$ as $\left(\frac{dy}{dx}\right)^2$.
- Losing a sign in the sine–cosine cycle.
- Calling every zero of f″ an inflection point without checking for a sign change.
- Confusing "f is decreasing" with "f′ is decreasing."
- Wrong units for a second derivative.
Check yourself
What is the second derivative of f(x) = e^(3x)?
Show the answer
9e^(3x)
Each differentiation brings down a factor of 3.
6For top marks
- Simplify $f'$ before differentiating again; it reduces errors.
- Interpret $f''$ in context with units: acceleration in m/s², or "the rate of change is increasing."
- Use $f''$ to describe concavity: positive means concave up, negative means concave down.
- For implicit second derivatives, substitute $\frac{dy}{dx}$ back in.
"$v'(3) = a(3) = 6 > 0$, so at $t = 3$ the particle's velocity is increasing at 6 m/s per second."
Check yourself
f″(4) = −2 means that at x = 4:
Show the answer
The slope of f is decreasing and f is concave down
f″ describes how f′ changes.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera