Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Find Higher-Order Derivatives

Differentiate again, and again: the second derivative is the derivative of the first, the nnth is the derivative of the (n−1)(n-1)th. For polynomials, exponentials and sine or cosine a pattern appears after two or three steps, and the pattern gives the nnth derivative without doing nn steps.

Recognize the task

The question asks for f′′f'', f′′′f''', f(4)f^{(4)}, d2ydx2\frac{d^2y}{dx^2}, "the nnth derivative", the acceleration from a position function, or the concavity of a graph. Test: a derivative of a derivative.
Definition and notation are in the higher-order derivatives lesson; the second derivative has its own section there.

Two ways to do it

Differentiate repeatedlyusual choice
f(n)(x)=ddx f(n−1)(x)f^{(n)}(x) = \frac{d}{dx}\,f^{(n-1)}(x)
One derivative per line, each result simplified before the next step. Fine for orders up to three or four.
Find the patternfor the nth derivative
dndxnekx=knekx,dndxnsin⁡x=sin⁡ ⁣(x+nπ2)\frac{d^n}{dx^n}e^{kx} = k^n e^{kx}, \qquad \frac{d^n}{dx^n}\sin x = \sin\!\left(x + \tfrac{n\pi}{2}\right)
Compute the first three or four derivatives, write the general term, and check it for n=1n = 1. The standard patterns are collected under patterns in repeated differentiation.

Steps

StepOn f(x)=x4−2x3+5xf(x) = x^4 - 2x^3 + 5x
1Simplify before you start. Expand brackets, write roots and fractions as powers. Each later step is then a plain sum of powers.f(x)=x4−2x3+5xf(x) = x^4 - 2x^3 + 5x, already a sum of powers
2Differentiate once and simplify fully. The power rule term by term. Collect like terms before going on.Power rule ↗f′(x)=4x3−6x2+5f'(x) = 4x^3 - 6x^2 + 5
3Differentiate the result; repeat to the order required. Each line is the derivative of the line above. Label them f′′f'', f′′′f''', f(4)f^{(4)} so the order is never lost.f′′(x)=12x2−12x,f′′′(x)=24x−12,f(4)(x)=24,f(5)(x)=0f''(x) = 12x^2 - 12x,\quad f'''(x) = 24x - 12,\quad f^{(4)}(x) = 24,\quad f^{(5)}(x) = 0
4For the nth derivative, write the general term from the pattern and test it for n=1n = 1 and n=2n = 2. A polynomial of degree dd has f(n)=0f^{(n)} = 0 for every n>dn > d.degree drops by one each step; f(n)(x)=0f^{(n)}(x) = 0 for n≥5n \ge 5

Worked examples

Example 1 · polynomial to the fourth derivative

repeated
f(x)=x4−2x3+5xf(x) = x^4 - 2x^3 + 5x
find f(4)f^{(4)}
f′=4x3−6x2+5,f′′=12x2−12xf' = 4x^3 - 6x^2 + 5,\quad f'' = 12x^2 - 12x
power rule twice
f′′′=24x−12,f(4)=24f''' = 24x - 12,\quad f^{(4)} = 24
twice more

Example 2 · nth derivative of an exponential

pattern
f(x)=e3xf(x) = e^{3x}
find f(n)f^{(n)}
f′=3e3x,f′′=9e3x,f′′′=27e3xf' = 3e^{3x},\quad f'' = 9e^{3x},\quad f''' = 27e^{3x}
each step multiplies by 33
f(n)(x)=3ne3xf^{(n)}(x) = 3^n e^{3x}
check: n=1n = 1 gives 3e3x3e^{3x}

Example 3 · nth derivative of 1/x

alternating pattern
f(x)=x−1f(x) = x^{-1}
rewrite as a power first
f′=−x−2,f′′=2x−3,f′′′=−6x−4f' = -x^{-2},\quad f'' = 2x^{-3},\quad f''' = -6x^{-4}
signs alternate; 1,2,61, 2, 6 are factorials
f(n)(x)=(−1)n n! x−(n+1)f^{(n)}(x) = (-1)^n\, n!\, x^{-(n+1)}
check: n=1n = 1 gives −x−2-x^{-2}

See it happen

Each differentiation lowers the degree of a polynomial by one, so a degree-4 polynomial is flattened to a constant after four steps and to zero after five. An exponential never flattens: each step only multiplies it by kk. Sine and cosine cycle with period four: sin⁡→cos⁡→−sin⁡→−cos⁡→sin⁡\sin \to \cos \to -\sin \to -\cos \to \sin.

Common mistakes

Not simplifying before the next step

✗ differentiating y′=2x(x+1)−x2y' = 2x(x + 1) - x^2 with the product rule again
✓ simplify to y′=x2+2xy' = x^2 + 2x first, then y′′=2x+2y'' = 2x + 2

Reading the superscript as a power

✗ f(4)(x)=(f(x))4f^{(4)}(x) = (f(x))^4
✓ parentheses in the superscript mean the fourth derivative

Losing the alternating sign

✗ dndxn1x=n! x−(n+1)\frac{d^n}{dx^n}\frac{1}{x} = n!\,x^{-(n+1)}
✓ (−1)n n! x−(n+1)(-1)^n\, n!\, x^{-(n+1)}; the check at n=1n = 1 shows the minus sign