Dove's LibraryDove's Library

3.6 - Calculating Higher-Order Derivatives

What Are Higher Order Derivatives?

So far we’ve only dealt with first derivatives. But we can keep taking derivatives of derivatives, which gives us higher order derivatives.
  • First derivative f′(x)f'(x): tells us about rate of change and slope
  • Second derivative f′′(x)f''(x): tells us about concavity and acceleration
  • Third derivative f′′′(x)f'''(x): and so on
These are essential for analyzing function behavior in depth, especially the first and second.

Notation

Prime notation
f′(x)=first derivativef'(x) = \text{first derivative}f′′(x)=second derivativef''(x) = \text{second derivative}f′′′(x)=third derivativef'''(x) = \text{third derivative}f(n)(x)=nth derivativef^{(n)}(x) = \text{nth derivative}
For higher orders (like the 12th derivative), writing twelve prime marks is ridiculous, so we use f(12)(x)f^{(12)}(x).
Leibniz notation
dydx=first derivative\frac{dy}{dx} = \text{first derivative}d2ydx2=second derivative\frac{d^2y}{dx^2} = \text{second derivative}d3ydx3=third derivative\frac{d^3y}{dx^3} = \text{third derivative}dnydxn=nth derivative\frac{d^n y}{dx^n} = \text{nth derivative}
Prime notation on yy
When a function is written as y=f(x)y = f(x), you can put the primes right on yy:
y′y′′y′′′y(n)y' \qquad y'' \qquad y''' \qquad y^{(n)}
So d2ydx2\frac{d^2y}{dx^2}, f′′(x)f''(x), and y′′y'' all mean the same thing: the second derivative. Use whichever notation the problem uses.

Higher Order Derivatives of Polynomials

The process is simple: take the derivative of the previous derivative.
Example 1
Find the first four derivatives of f(x)=2x4−3x3+5x2−7x+4f(x) = 2x^4 - 3x^3 + 5x^2 - 7x + 4.
f′(x)=8x3−9x2+10x−7f'(x) = 8x^3 - 9x^2 + 10x - 7f′′(x)=24x2−18x+10f''(x) = 24x^2 - 18x + 10f′′′(x)=48x−18f'''(x) = 48x - 18f(4)(x)=48f^{(4)}(x) = 48f(5)(x)=0f^{(5)}(x) = 0
Important pattern: for polynomials, if you take enough successive derivatives you’ll eventually hit zero. That’s because polynomials have finite degree, and each derivative drops the degree by 1 until you’re left with a constant, whose derivative is zero.
Example 2
Find g′′′(x)g'''(x) for g(x)=x5+4x3−6x+9g(x) = x^5 + 4x^3 - 6x + 9.
g′(x)=5x4+12x2−6g'(x) = 5x^4 + 12x^2 - 6g′′(x)=20x3+24xg''(x) = 20x^3 + 24xg′′′(x)=60x2+24g'''(x) = 60x^2 + 24

Fractional and Negative Exponents

For non-polynomial functions, rewriting with exponent rules makes life much easier.
Example 3: radicals and fractions
Find the second derivative of h(x)=x+1x3h(x) = \sqrt{x} + \frac{1}{x^3}.
Rewrite using exponents:
h(x)=x1/2+x−3h(x) = x^{1/2} + x^{-3}
First derivative:
h′(x)=12x−1/2−3x−4h'(x) = \frac{1}{2}x^{-1/2} - 3x^{-4}
Second derivative, applying the power rule again:
h′′(x)=12⋅(−12)x−3/2−3(−4)x−5=−14x−3/2+12x−5h''(x) = \frac{1}{2} \cdot \left(-\frac{1}{2}\right)x^{-3/2} - 3(-4)x^{-5} = -\frac{1}{4}x^{-3/2} + 12x^{-5}
Rewriting in standard form (optional):
h′′(x)=−14x3/2+12x5=−14xx+12x5h''(x) = -\frac{1}{4x^{3/2}} + \frac{12}{x^5} = -\frac{1}{4x\sqrt{x}} + \frac{12}{x^5}
Note: keep things in exponent form while you’re taking successive derivatives so you don’t drown in fraction manipulation. Convert to standard form only at the very end if you need to.
Example 4: mixed function
Find d2ydx2\frac{d^2y}{dx^2} for y=3x−1+2x1/3y = 3x^{-1} + 2x^{1/3}.
dydx=−3x−2+23x−2/3\frac{dy}{dx} = -3x^{-2} + \frac{2}{3}x^{-2/3}d2ydx2=6x−3−49x−5/3=6x3−49x5/3\frac{d^2y}{dx^2} = 6x^{-3} - \frac{4}{9}x^{-5/3} = \frac{6}{x^3} - \frac{4}{9x^{5/3}}
Heads up: each higher order derivative only exists where the one before it can be differentiated. Take f(x)=x4/3f(x) = x^{4/3}:
f′(x)=43x1/3f′′(x)=49x−2/3=49x23f'(x) = \frac{4}{3}x^{1/3} \qquad f''(x) = \frac{4}{9}x^{-2/3} = \frac{4}{9\sqrt[3]{x^2}}
f′(0)=0f'(0) = 0 exists, but f′′(0)f''(0) would mean dividing by zero. So ff has a first derivative at x=0x = 0 but no second derivative there.

Second Derivative with Implicit Differentiation

This one is trickier, because the first derivative usually contains dydx\frac{dy}{dx} terms that you have to substitute when finding the second derivative.
The process
  1. Find dydx\frac{dy}{dx} using implicit differentiation
  1. To get d2ydx2\frac{d^2y}{dx^2}, take the derivative of dydx\frac{dy}{dx}
  1. When dydx\frac{dy}{dx} shows up in your work, substitute the expression from Step 1
  1. Simplify
Example 5
Find d2ydx2\frac{d^2y}{dx^2} for sin⁡(y)=x+y\sin(y) = x + y.
Step 1: first derivative. Differentiate both sides with respect to xx:
cos⁡(y)⋅dydx=1+dydx\cos(y) \cdot \frac{dy}{dx} = 1 + \frac{dy}{dx}
Collect dydx\frac{dy}{dx} terms:
cos⁡(y)⋅dydx−dydx=1\cos(y) \cdot \frac{dy}{dx} - \frac{dy}{dx} = 1
Factor:
dydx[cos⁡(y)−1]=1\frac{dy}{dx}[\cos(y) - 1] = 1
Solve:
dydx=1cos⁡(y)−1\frac{dy}{dx} = \frac{1}{\cos(y) - 1}
Step 2: second derivative. Rewrite as:
dydx=[cos⁡(y)−1]−1\frac{dy}{dx} = [\cos(y) - 1]^{-1}
Differentiate with the chain rule:
d2ydx2=−1[cos⁡(y)−1]−2⋅ddx[cos⁡(y)−1]\frac{d^2y}{dx^2} = -1[\cos(y) - 1]^{-2} \cdot \frac{d}{dx}[\cos(y) - 1]
The derivative of cos⁡(y)−1\cos(y) - 1 needs the chain rule too:
ddx[cos⁡(y)−1]=−sin⁡(y)⋅dydx\frac{d}{dx}[\cos(y) - 1] = -\sin(y) \cdot \frac{dy}{dx}
So:
d2ydx2=−[cos⁡(y)−1]−2⋅(−sin⁡(y)⋅dydx)=sin⁡(y)[cos⁡(y)−1]2⋅dydx\frac{d^2y}{dx^2} = -[\cos(y) - 1]^{-2} \cdot \left(-\sin(y) \cdot \frac{dy}{dx}\right) = \frac{\sin(y)}{[\cos(y) - 1]^2} \cdot \frac{dy}{dx}
Step 3: substitute the first derivative. Replace dydx\frac{dy}{dx} with 1cos⁡(y)−1\frac{1}{\cos(y) - 1}:
d2ydx2=sin⁡(y)[cos⁡(y)−1]2⋅1cos⁡(y)−1\frac{d^2y}{dx^2} = \frac{\sin(y)}{[\cos(y) - 1]^2} \cdot \frac{1}{\cos(y) - 1}
Step 4: simplify
d2ydx2=sin⁡(y)[cos⁡(y)−1]3\frac{d^2y}{dx^2} = \frac{\sin(y)}{[\cos(y) - 1]^3}
Example 6
Find d2ydx2\frac{d^2y}{dx^2} for x2+y2=16x^2 + y^2 = 16.
Step 1: first derivative
2x+2ydydx=0⇒dydx=−xy2x + 2y\frac{dy}{dx} = 0 \quad \Rightarrow \quad \frac{dy}{dx} = -\frac{x}{y}
Step 2: second derivative. Use the quotient rule on −xy-\frac{x}{y}:
d2ydx2=−(1)(y)−(x)(dydx)y2\frac{d^2y}{dx^2} = -\frac{(1)(y) - (x)\left(\frac{dy}{dx}\right)}{y^2}
Step 3: substitute dydx=−xy\frac{dy}{dx} = -\frac{x}{y}
d2ydx2=−y−x(−xy)y2=−y+x2yy2\frac{d^2y}{dx^2} = -\frac{y - x\left(-\frac{x}{y}\right)}{y^2} = -\frac{y + \frac{x^2}{y}}{y^2}
Step 4: simplify. Multiply the numerator by yy\frac{y}{y}:
=−y2+x2y3= -\frac{y^2 + x^2}{y^3}
Since x2+y2=16x^2 + y^2 = 16:
d2ydx2=−16y3\frac{d^2y}{dx^2} = -\frac{16}{y^3}

Key Pattern for Implicit Second Derivatives

  1. You’ll always end up with dydx\frac{dy}{dx} terms in the second derivative calculation
  1. Substitute the expression you found for dydx\frac{dy}{dx}
  1. Simplify, often using the original equation

Higher Order Derivatives of Exponential and Trig Functions

Example 7
Find f′′(x)f''(x) for f(x)=ex2f(x) = e^{x^2}.
Step 1: first derivative. Chain rule:
f′(x)=2xex2f'(x) = 2xe^{x^2}
Step 2: second derivative. Now f′(x)f'(x) is a product, so use the product rule (and the chain rule again on ex2e^{x^2}):
f′′(x)=2⋅ex2+2x⋅2xex2=(2+4x2)ex2f''(x) = 2 \cdot e^{x^2} + 2x \cdot 2xe^{x^2} = (2 + 4x^2)e^{x^2}
Common mistake: treating 2xex22xe^{x^2} like it’s just ex2e^{x^2} and skipping the product rule. Once the chain rule puts a factor out front, the next derivative almost always needs the product rule.
Example 8
Find d27dx27[sin⁡x]\frac{d^{27}}{dx^{27}}[\sin x].
Derivatives of sine repeat every four steps:
ddx[sin⁡x]=cos⁡xd2dx2[sin⁡x]=−sin⁡xd3dx3[sin⁡x]=−cos⁡xd4dx4[sin⁡x]=sin⁡x\frac{d}{dx}[\sin x] = \cos x \qquad \frac{d^2}{dx^2}[\sin x] = -\sin x \qquad \frac{d^3}{dx^3}[\sin x] = -\cos x \qquad \frac{d^4}{dx^4}[\sin x] = \sin x
Since 27=4(6)+327 = 4(6) + 3, the 27th derivative lands in the same spot as the 3rd:
d27dx27[sin⁡x]=−cos⁡x\frac{d^{27}}{dx^{27}}[\sin x] = -\cos x
Example 9
Find a formula for y(n)y^{(n)} if y=e2xy = e^{2x}.
Each derivative brings down another factor of 2 from the chain rule:
y′=2e2xy′′=4e2xy′′′=8e2xy(n)=2ne2xy' = 2e^{2x} \qquad y'' = 4e^{2x} \qquad y''' = 8e^{2x} \qquad y^{(n)} = 2^n e^{2x}

Key Takeaways

  • Higher order derivatives: just keep taking derivatives of derivatives
  • Notation: f′′(x)f''(x) or d2ydx2\frac{d^2y}{dx^2} for the second derivative; f(n)(x)f^{(n)}(x) or dnydxn\frac{d^n y}{dx^n} for the nth
  • More notation: for y=f(x)y = f(x), y′′y'' also means the second derivative, and y(n)y^{(n)} means the nth
  • Polynomial pattern: successive derivatives of polynomials eventually hit zero
  • Other patterns: derivatives of sin⁡x\sin x and cos⁡x\cos x repeat every four steps, and each derivative of ekxe^{kx} brings out another factor of kk
  • Existence: f′′f'' only exists where f′f' is differentiable (for example, x4/3x^{4/3} has no second derivative at x=0x = 0)
  • Keep exponent form: while taking multiple derivatives, leave things as xnx^n instead of converting to fractions and radicals
  • Implicit differentiation requires substitution: when finding d2ydx2\frac{d^2y}{dx^2} implicitly, substitute the expression for dydx\frac{dy}{dx} wherever it shows up
  • Chain rule applies: differentiating anything with yy in it creates more dydx\frac{dy}{dx} terms
  • The original equation helps: use it to simplify your final answer when you can

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.