AP Calculus AB · Study guide

Calculating Higher-Order Derivatives

AP® Calculus AB · Unit 3 · Differentiation: Composite, Implicit, and Inverse Functions

Higher-Order Derivatives

The derivative of a derivative tells you how a rate of change is itself changing. This guide covers the notation, computing second and higher derivatives, and what they mean for motion.

The idea in one paragraph

Differentiating \(f'\) gives the second derivative \(f''\), and continuing gives \(f'''\), \(f^{(4)}\) and so on. The second derivative measures how fast the slope is changing. For an object in motion, position \(s\) gives velocity \(s'\), and velocity gives acceleration \(s''\). For an implicit equation, the second derivative contains \(\frac{dy}{dx}\), which you replace with the first-derivative formula.

1Derivatives of derivatives

OrderPrime notationLeibniz notation
first\(f'(x)\), \(y'\)\(\dfrac{dy}{dx}\)
second\(f''(x)\), \(y''\)\(\dfrac{d^2y}{dx^2}\)
third\(f'''(x)\), \(y'''\)\(\dfrac{d^3y}{dx^3}\)
nth\(f^{(n)}(x)\)\(\dfrac{d^ny}{dx^n}\)
Reading the notation

\(\dfrac{d^2y}{dx^2}\) means “apply \(\dfrac{d}{dx}\) twice to \(y\).” The 2s are not exponents on \(y\) or \(x\). And \(f^{(4)}\) is the 4th derivative, while \(f^4\) is \(f\) raised to the 4th power.

2Computing them

Worked Example 1 Keep differentiating

\(f(x) = x^4 - 3x^3 + 2x\)

  1. 1
    \(f'(x) = 4x^3 - 9x^2 + 2\).
  2. 2
    \(f''(x) = 12x^2 - 18x\).
  3. 3
    \(f'''(x) = 24x - 18\), \(f^{(4)}(x) = 24\), and every derivative after that is 0.
Answer: \(f''(x) = 12x^2 - 18x\). A degree-4 polynomial has a constant 4th derivative and a zero 5th derivative.
Worked Example 2 Product rule twice

\(y = xe^x\); find \(y''\)

  1. 1
    \(y' = e^x + xe^x\) (product rule).
  2. 2
    \(y'' = e^x + (e^x + xe^x) = 2e^x + xe^x\).
Answer: \(y'' = e^x(x + 2)\)
Worked Example 3 Spot the pattern

The 5th derivative of \(e^{2x}\)

  1. 1
    Each derivative multiplies by 2 (chain rule): \(2e^{2x}\), \(4e^{2x}\), \(8e^{2x}\), …
  2. 2
    The \(n\)th derivative is \(2^n e^{2x}\).
Answer: \(32e^{2x}\)
Common Mistake 1 · Differentiating once and squaring

\(f''(x)\) is not \([f'(x)]^2\). For \(x^3\): \(f'(x) = 3x^2\), \(f''(x) = 6x\), but \([f'(x)]^2 = 9x^4\).

3What the second derivative means

The first derivative is a rate of change. The second derivative is the rate of change of that rate. If \(f''\) is positive, the slope of \(f\) is increasing; if negative, the slope is decreasing. In motion, that is the difference between speeding up in the positive direction and slowing down.

Figure 1. Each graph is the slope graph of the one above it. Where s peaks and bottoms out (t = 1, 3), v crosses 0. Where v bottoms out (t = 2), a crosses 0. The second derivative of position is acceleration.
Worked Example 4 Motion

\(s(t) = t^3 - 6t^2 + 9t\) meters

Find the velocity and acceleration at \(t = 1\) and \(t = 3\) seconds.

  1. 1
    Velocity \(v(t) = s'(t) = 3t^2 - 12t + 9\). Acceleration \(a(t) = s''(t) = 6t - 12\).
  2. 2
    At \(t = 1\): \(v = 3 - 12 + 9 = 0\) m/s and \(a = -6\) m/s². Momentarily stopped, with velocity about to become negative.
  3. 3
    At \(t = 3\): \(v = 27 - 36 + 9 = 0\) and \(a = 6\) m/s². Stopped again, with velocity about to become positive.
Answer: \(v(1) = 0\), \(a(1) = -6\) m/s²; \(v(3) = 0\), \(a(3) = 6\) m/s². Units of acceleration: meters per second per second.
Write it like this

“\(a(1) = s''(1) = -6\): at \(t = 1\) second, the velocity of the object is decreasing at 6 meters per second per second.”

Common Mistake 2 · Mixing up the units

Velocity is in meters per second; acceleration is in meters per second per second (m/s²), because it is a rate of change of velocity.

4Implicit second derivatives

Worked Example 5 Implicit second derivative

\(x^2 + y^2 = 25\); find \(\dfrac{d^2y}{dx^2}\)

  1. 1
    First derivative (implicit): \(\dfrac{dy}{dx} = -\dfrac{x}{y}\).
  2. 2
    Differentiate again with the quotient rule, remembering that \(y\) depends on \(x\): \(\dfrac{d^2y}{dx^2} = -\dfrac{y - x\frac{dy}{dx}}{y^2}\).
  3. 3
    Substitute \(\dfrac{dy}{dx} = -\dfrac{x}{y}\): \(-\dfrac{y + \frac{x^2}{y}}{y^2} = -\dfrac{y^2 + x^2}{y^3}\).
  4. 4
    Use the original equation, \(x^2 + y^2 = 25\): \(-\dfrac{25}{y^3}\).
Answer: \(\dfrac{d^2y}{dx^2} = -\dfrac{25}{y^3}\). At \((3, 4)\) it is \(-\dfrac{25}{64}\).
Common Mistake 3 · Forgetting that y depends on x the second time

When you differentiate \(-\dfrac{x}{y}\), the \(y\) on the bottom still needs the chain rule. Treating it as a constant gives \(-\dfrac{1}{y}\), which leaves out the \(x\dfrac{dy}{dx}\) term.

Quick reference

QuantityMeaning
\(f''(x) \gt 0\)Slope of \(f\) is increasing
\(f''(x) \lt 0\)Slope of \(f\) is decreasing
\(s'(t)\), \(s''(t)\)Velocity, acceleration
Implicit y″Differentiate y′ again, then substitute y′ and simplify with the original equation
Polynomial of degree nThe (n + 1)th derivative is 0