The derivative f ′ ( x ) f'(x) f ′ ( x ) is a function too, so you can differentiate it again. The result, f ′ ′ ( x ) f''(x) f ′′ ( x ) , is the second derivative : it tells you how fast the slope itself is changing. Second derivatives describe acceleration, and they tell you which way a graph bends, which you’ll use a lot in the next units. Any trig on this page is in radians .
Each new derivative is the derivative of the one before it.
Derivative Prime notation Leibniz notation First f ′ ( x ) f'(x) f ′ ( x ) or y ′ y' y ′ d y d x \dfrac{dy}{dx} d x d y Second f ′ ′ ( x ) f''(x) f ′′ ( x ) or y ′ ′ y'' y ′′ d 2 y d x 2 \dfrac{d^2y}{dx^2} d x 2 d 2 y Third f ′ ′ ′ ( x ) f'''(x) f ′′′ ( x ) or y ′ ′ ′ y''' y ′′′ d 3 y d x 3 \dfrac{d^3y}{dx^3} d x 3 d 3 y Fourth f ( 4 ) ( x ) f^{(4)}(x) f ( 4 ) ( x ) or y ( 4 ) y^{(4)} y ( 4 ) d 4 y d x 4 \dfrac{d^4y}{dx^4} d x 4 d 4 y n n n thf ( n ) ( x ) f^{(n)}(x) f ( n ) ( x ) or y ( n ) y^{(n)} y ( n ) d n y d x n \dfrac{d^ny}{dx^n} d x n d n y
After three primes, switch to a number in brackets: f ( 4 ) f^{(4)} f ( 4 ) , not f ′ ′ ′ ′ f'''' f ′′′′ . The brackets matter, because f 4 f^4 f 4 would look like a power.
In Leibniz notation, d 2 y d x 2 \dfrac{d^2y}{dx^2} d x 2 d 2 y means d d x ( d y d x ) \dfrac{d}{dx}\left(\dfrac{dy}{dx}\right) d x d ( d x d y ) . The 2 2 2 goes on the d d d on top and on the x x x on the bottom.
f ( x ) f(x) f ( x ) gives the value .
f ′ ( x ) f'(x) f ′ ( x ) gives the slope , the rate of change of f f f .
f ′ ′ ( x ) f''(x) f ′′ ( x ) gives the rate of change of the slope .
If f ′ ′ ( x ) > 0 f''(x) \gt 0 f ′′ ( x ) > 0 , the slope is increasing, and the graph bends upward (concave up). If f ′ ′ ( x ) < 0 f''(x) \lt 0 f ′′ ( x ) < 0 , the slope is decreasing, and the graph bends downward (concave down). You’ll study this in concavity and the second derivative test .
For motion along a line, if s ( t ) s(t) s ( t ) is position, then s ′ ( t ) s'(t) s ′ ( t ) is velocity and s ′ ′ ( t ) s''(t) s ′′ ( t ) is acceleration . See straight-line motion .
Three stacked graphs. Top: f(x) = x cubed minus 3x, with a peak at (-1, 2) and a valley at (1, -2). Middle: f prime(x) = 3x squared minus 3, which is zero at x = -1 and x = 1. Bottom: f double prime(x) = 6x, a line through the origin that is zero at x = 0.
−2
−1
1
2
−2
2
f(x) = x³ - 3x
−2
−1
1
2
−2
2
f′(x) = 3x² - 3
−2
−1
1
2
−2
2
f″(x) = 6x
Each graph shows the slope of the one above it: f ′ f' f ′ is zero where f f f levels off, and f ′ ′ f'' f ′′ is zero where f ′ f' f ′ levels off.
A polynomial of degree n n n becomes a constant after n n n derivatives, and 0 0 0 after that.
Sine and cosine cycle every four derivatives : sin x → cos x → − sin x → − cos x → sin x \sin x \to \cos x \to -\sin x \to -\cos x \to \sin x sin x → cos x → − sin x → − cos x → sin x .
Each derivative of e k x e^{kx} e k x brings out another factor of k k k , so d n d x n e k x = k n e k x \dfrac{d^n}{dx^n}e^{kx} = k^n e^{kx} d x n d n e k x = k n e k x .
For a curve defined implicitly :
Find d y d x \dfrac{dy}{dx} d x d y as usual.
Differentiate d y d x \dfrac{dy}{dx} d x d y again with respect to x x x . Remember that y y y is still a function of x x x , so every y y y produces a d y d x \dfrac{dy}{dx} d x d y .
Substitute your expression for d y d x \dfrac{dy}{dx} d x d y from step 1.
Simplify, often using the original equation.
This kind of question shows up often on the no-calculator part of the AP exam.
Find all the nonzero derivatives of f ( x ) = 2 x 4 − 5 x 3 + x − 7 f(x) = 2x^4 - 5x^3 + x - 7 f ( x ) = 2 x 4 − 5 x 3 + x − 7 .
Solution. Differentiate one step at a time:
f ′ ( x ) = 8 x 3 − 15 x 2 + 1 f ′ ′ ( x ) = 24 x 2 − 30 x f ′ ′ ′ ( x ) = 48 x − 30 f ( 4 ) ( x ) = 48 \begin{aligned}
f'(x) &= 8x^3 - 15x^2 + 1 \\
f''(x) &= 24x^2 - 30x \\
f'''(x) &= 48x - 30 \\
f^{(4)}(x) &= 48
\end{aligned} f ′ ( x ) f ′′ ( x ) f ′′′ ( x ) f ( 4 ) ( x ) = 8 x 3 − 15 x 2 + 1 = 24 x 2 − 30 x = 48 x − 30 = 48
Every derivative after f ( 4 ) f^{(4)} f ( 4 ) is 0 0 0 .
Let y = sin ( 3 x ) y = \sin(3x) y = sin ( 3 x ) . Find d 2 y d x 2 \dfrac{d^2y}{dx^2} d x 2 d 2 y , and show that y ′ ′ + 9 y = 0 y'' + 9y = 0 y ′′ + 9 y = 0 .
Solution. Use the chain rule each time:
d y d x = 3 cos ( 3 x ) , d 2 y d x 2 = 3 ⋅ ( − sin ( 3 x ) ) ⋅ 3 = − 9 sin ( 3 x ) \frac{dy}{dx} = 3\cos(3x), \qquad \frac{d^2y}{dx^2} = 3 \cdot \big(-\sin(3x)\big) \cdot 3 = -9\sin(3x) d x d y = 3 cos ( 3 x ) , d x 2 d 2 y = 3 ⋅ ( − sin ( 3 x ) ) ⋅ 3 = − 9 sin ( 3 x )
Then y ′ ′ + 9 y = − 9 sin ( 3 x ) + 9 sin ( 3 x ) = 0 y'' + 9y = -9\sin(3x) + 9\sin(3x) = 0 y ′′ + 9 y = − 9 sin ( 3 x ) + 9 sin ( 3 x ) = 0 .
Let f ( x ) = x e 2 x f(x) = xe^{2x} f ( x ) = x e 2 x . Find f ′ ′ ( x ) f''(x) f ′′ ( x ) and f ′ ′ ( 0 ) f''(0) f ′′ ( 0 ) .
Solution. Product rule, with the chain rule on e 2 x e^{2x} e 2 x :
f ′ ( x ) = 1 ⋅ e 2 x + x ⋅ 2 e 2 x = e 2 x ( 1 + 2 x ) f'(x) = 1 \cdot e^{2x} + x \cdot 2e^{2x} = e^{2x}(1 + 2x) f ′ ( x ) = 1 ⋅ e 2 x + x ⋅ 2 e 2 x = e 2 x ( 1 + 2 x )
Differentiate f ′ ( x ) = e 2 x ( 1 + 2 x ) f'(x) = e^{2x}(1 + 2x) f ′ ( x ) = e 2 x ( 1 + 2 x ) with the product rule again:
f ′ ′ ( x ) = 2 e 2 x ( 1 + 2 x ) + e 2 x ⋅ 2 = e 2 x ( 4 + 4 x ) = 4 e 2 x ( 1 + x ) f''(x) = 2e^{2x}(1 + 2x) + e^{2x} \cdot 2 = e^{2x}(4 + 4x) = 4e^{2x}(1 + x) f ′′ ( x ) = 2 e 2 x ( 1 + 2 x ) + e 2 x ⋅ 2 = e 2 x ( 4 + 4 x ) = 4 e 2 x ( 1 + x )
So f ′ ′ ( 0 ) = 4 e 0 ( 1 ) = 4 f''(0) = 4e^0(1) = 4 f ′′ ( 0 ) = 4 e 0 ( 1 ) = 4 .
Simplifying f ′ ( x ) f'(x) f ′ ( x ) before differentiating again made the second step easier.
For x 2 + y 2 = 25 x^2 + y^2 = 25 x 2 + y 2 = 25 , find d 2 y d x 2 \dfrac{d^2y}{dx^2} d x 2 d 2 y in terms of y y y , and evaluate it at ( 3 , 4 ) (3, 4) ( 3 , 4 ) .
Solution. From implicit differentiation , d y d x = − x y \dfrac{dy}{dx} = -\dfrac{x}{y} d x d y = − y x .
Differentiate again with the quotient rule. The derivative of the top, x x x , is 1 1 1 ; the derivative of the bottom, y y y , is d y d x \dfrac{dy}{dx} d x d y :
d 2 y d x 2 = − y ⋅ 1 − x ⋅ d y d x y 2 \frac{d^2y}{dx^2} = -\frac{y \cdot 1 - x \cdot \dfrac{dy}{dx}}{y^2} d x 2 d 2 y = − y 2 y ⋅ 1 − x ⋅ d x d y
Substitute d y d x = − x y \dfrac{dy}{dx} = -\dfrac{x}{y} d x d y = − y x :
d 2 y d x 2 = − y + x 2 y y 2 = − y 2 + x 2 y 3 \frac{d^2y}{dx^2} = -\frac{y + \dfrac{x^2}{y}}{y^2} = -\frac{y^2 + x^2}{y^3} d x 2 d 2 y = − y 2 y + y x 2 = − y 3 y 2 + x 2
From the original equation, x 2 + y 2 = 25 x^2 + y^2 = 25 x 2 + y 2 = 25 , so
d 2 y d x 2 = − 25 y 3 \frac{d^2y}{dx^2} = -\frac{25}{y^3} d x 2 d 2 y = − y 3 25
At ( 3 , 4 ) (3, 4) ( 3 , 4 ) : d 2 y d x 2 = − 25 64 \dfrac{d^2y}{dx^2} = -\dfrac{25}{64} d x 2 d 2 y = − 64 25 . It’s negative, which makes sense: the top half of a circle bends downward.
Squaring the first derivative. f ′ ′ ( x ) f''(x) f ′′ ( x ) means “differentiate twice”, not ( f ′ ( x ) ) 2 \big(f'(x)\big)^2 ( f ′ ( x ) ) 2 . Likewise d 2 y d x 2 \dfrac{d^2y}{dx^2} d x 2 d 2 y is not ( d y d x ) 2 \left(\dfrac{dy}{dx}\right)^2 ( d x d y ) 2 .
Plugging in too early. To find f ′ ′ ( 2 ) f''(2) f ′′ ( 2 ) , find the formula for f ′ ′ ( x ) f''(x) f ′′ ( x ) first, then substitute. If you substitute x = 2 x = 2 x = 2 into f ′ ( x ) f'(x) f ′ ( x ) first, you get a number, and the derivative of a number is 0 0 0 .
Losing chain-rule factors. d 2 d x 2 sin ( 3 x ) = − 9 sin ( 3 x ) \dfrac{d^2}{dx^2}\sin(3x) = -9\sin(3x) d x 2 d 2 sin ( 3 x ) = − 9 sin ( 3 x ) , not − 3 sin ( 3 x ) -3\sin(3x) − 3 sin ( 3 x ) or − sin ( 3 x ) -\sin(3x) − sin ( 3 x ) . Each differentiation brings out another factor of 3 3 3 .
Treating y as a constant in implicit second derivatives. When you differentiate − x y -\dfrac{x}{y} − y x , the derivative of y y y is d y d x \dfrac{dy}{dx} d x d y , not 0 0 0 .
Not substituting dy/dx. An implicit second derivative should be written in terms of x x x and y y y only. Replace every d y d x \dfrac{dy}{dx} d x d y with its expression, then simplify.
Writing f⁽⁴⁾ without brackets. f 4 ( x ) f^4(x) f 4 ( x ) looks like f ( x ) f(x) f ( x ) to the fourth power. Use f ( 4 ) ( x ) f^{(4)}(x) f ( 4 ) ( x ) for the fourth derivative.
1. (Warm-up) Let f ( x ) = x 5 − 4 x 2 f(x) = x^5 - 4x^2 f ( x ) = x 5 − 4 x 2 . Find f ′ ′ ( x ) f''(x) f ′′ ( x ) and f ′ ′ ( 1 ) f''(1) f ′′ ( 1 ) .
Solution f ′ ( x ) = 5 x 4 − 8 x f'(x) = 5x^4 - 8x f ′ ( x ) = 5 x 4 − 8 x , so f ′ ′ ( x ) = 20 x 3 − 8 f''(x) = 20x^3 - 8 f ′′ ( x ) = 20 x 3 − 8 , and f ′ ′ ( 1 ) = 20 − 8 = 12 f''(1) = 20 - 8 = 12 f ′′ ( 1 ) = 20 − 8 = 12 .
2. (Warm-up) Let y = cos x y = \cos x y = cos x . Find y ′ ′ y'' y ′′ and y ( 4 ) y^{(4)} y ( 4 ) .
Solution y ′ = − sin x y' = -\sin x y ′ = − sin x , y ′ ′ = − cos x y'' = -\cos x y ′′ = − cos x , y ′ ′ ′ = sin x y''' = \sin x y ′′′ = sin x , y ( 4 ) = cos x y^{(4)} = \cos x y ( 4 ) = cos x .
So y ′ ′ = − cos x y'' = -\cos x y ′′ = − cos x and y ( 4 ) = cos x y^{(4)} = \cos x y ( 4 ) = cos x (back where we started).
3. (Warm-up) Let f ( x ) = x f(x) = \sqrt{x} f ( x ) = x . Find f ′ ′ ( 4 ) f''(4) f ′′ ( 4 ) .
Solution Write f ( x ) = x 1 / 2 f(x) = x^{1/2} f ( x ) = x 1/2 :
f ′ ( x ) = 1 2 x − 1 / 2 , f ′ ′ ( x ) = − 1 4 x − 3 / 2 f'(x) = \frac{1}{2}x^{-1/2}, \qquad f''(x) = -\frac{1}{4}x^{-3/2} f ′ ( x ) = 2 1 x − 1/2 , f ′′ ( x ) = − 4 1 x − 3/2 f ′ ′ ( 4 ) = − 1 4 ⋅ 1 4 3 / 2 = − 1 4 ⋅ 1 8 = − 1 32 f''(4) = -\frac{1}{4} \cdot \frac{1}{4^{3/2}} = -\frac{1}{4} \cdot \frac{1}{8} = -\frac{1}{32} f ′′ ( 4 ) = − 4 1 ⋅ 4 3/2 1 = − 4 1 ⋅ 8 1 = − 32 1
4. (Core) Let y = e − 3 x y = e^{-3x} y = e − 3 x . Find d 3 y d x 3 \dfrac{d^3y}{dx^3} d x 3 d 3 y , and give a formula for d n y d x n \dfrac{d^ny}{dx^n} d x n d n y .
Solution Each derivative multiplies by − 3 -3 − 3 :
d y d x = − 3 e − 3 x , d 2 y d x 2 = 9 e − 3 x , d 3 y d x 3 = − 27 e − 3 x \frac{dy}{dx} = -3e^{-3x}, \quad \frac{d^2y}{dx^2} = 9e^{-3x}, \quad \frac{d^3y}{dx^3} = -27e^{-3x} d x d y = − 3 e − 3 x , d x 2 d 2 y = 9 e − 3 x , d x 3 d 3 y = − 27 e − 3 x In general, d n y d x n = ( − 3 ) n e − 3 x \dfrac{d^ny}{dx^n} = (-3)^n e^{-3x} d x n d n y = ( − 3 ) n e − 3 x .
5. (Core) Let f ( x ) = ln ( x 2 + 1 ) f(x) = \ln(x^2 + 1) f ( x ) = ln ( x 2 + 1 ) . Find f ′ ′ ( x ) f''(x) f ′′ ( x ) , f ′ ′ ( 0 ) f''(0) f ′′ ( 0 ) , and the values of x x x where f ′ ′ ( x ) = 0 f''(x) = 0 f ′′ ( x ) = 0 .
Solution By the chain rule, f ′ ( x ) = 2 x x 2 + 1 f'(x) = \dfrac{2x}{x^2 + 1} f ′ ( x ) = x 2 + 1 2 x . By the quotient rule:
f ′ ′ ( x ) = 2 ( x 2 + 1 ) − 2 x ( 2 x ) ( x 2 + 1 ) 2 = 2 − 2 x 2 ( x 2 + 1 ) 2 f''(x) = \frac{2(x^2 + 1) - 2x(2x)}{(x^2 + 1)^2} = \frac{2 - 2x^2}{(x^2 + 1)^2} f ′′ ( x ) = ( x 2 + 1 ) 2 2 ( x 2 + 1 ) − 2 x ( 2 x ) = ( x 2 + 1 ) 2 2 − 2 x 2 f ′ ′ ( 0 ) = 2 1 = 2 f''(0) = \dfrac{2}{1} = 2 f ′′ ( 0 ) = 1 2 = 2 .
f ′ ′ ( x ) = 0 f''(x) = 0 f ′′ ( x ) = 0 when 2 − 2 x 2 = 0 2 - 2x^2 = 0 2 − 2 x 2 = 0 , so x = 1 x = 1 x = 1 or x = − 1 x = -1 x = − 1 .
6. (Core) A particle moves along a line so that its position is s ( t ) = t 3 − 6 t 2 + 9 t s(t) = t^3 - 6t^2 + 9t s ( t ) = t 3 − 6 t 2 + 9 t metres after t t t seconds. Find its velocity and acceleration at t = 1 t = 1 t = 1 .
Solution v ( t ) = s ′ ( t ) = 3 t 2 − 12 t + 9 , a ( t ) = s ′ ′ ( t ) = 6 t − 12 v(t) = s'(t) = 3t^2 - 12t + 9, \qquad a(t) = s''(t) = 6t - 12 v ( t ) = s ′ ( t ) = 3 t 2 − 12 t + 9 , a ( t ) = s ′′ ( t ) = 6 t − 12 v ( 1 ) = 3 − 12 + 9 = 0 v(1) = 3 - 12 + 9 = 0 v ( 1 ) = 3 − 12 + 9 = 0 m/s and a ( 1 ) = 6 − 12 = − 6 a(1) = 6 - 12 = -6 a ( 1 ) = 6 − 12 = − 6 m/s².
At t = 1 t = 1 t = 1 the particle is momentarily stopped, and its velocity is decreasing.
7. (Core) Let f ( x ) = x sin x f(x) = x\sin x f ( x ) = x sin x . Find f ′ ′ ( x ) f''(x) f ′′ ( x ) and f ′ ′ ( π ) f''(\pi) f ′′ ( π ) .
Solution f ′ ( x ) = sin x + x cos x f'(x) = \sin x + x\cos x f ′ ( x ) = sin x + x cos x f ′ ′ ( x ) = cos x + ( cos x − x sin x ) = 2 cos x − x sin x f''(x) = \cos x + \big(\cos x - x\sin x\big) = 2\cos x - x\sin x f ′′ ( x ) = cos x + ( cos x − x sin x ) = 2 cos x − x sin x f ′ ′ ( π ) = 2 cos π − π sin π = 2 ( − 1 ) − 0 = − 2 f''(\pi) = 2\cos\pi - \pi\sin\pi = 2(-1) - 0 = -2 f ′′ ( π ) = 2 cos π − π sin π = 2 ( − 1 ) − 0 = − 2 .
8. (Challenge) For the hyperbola x 2 − y 2 = 9 x^2 - y^2 = 9 x 2 − y 2 = 9 , find d 2 y d x 2 \dfrac{d^2y}{dx^2} d x 2 d 2 y in terms of y y y , and evaluate it at ( 5 , 4 ) (5, 4) ( 5 , 4 ) .
Solution First derivative:
2 x − 2 y d y d x = 0 ⇒ d y d x = x y 2x - 2y\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = \frac{x}{y} 2 x − 2 y d x d y = 0 ⇒ d x d y = y x Second derivative, by the quotient rule:
d 2 y d x 2 = y ⋅ 1 − x d y d x y 2 = y − x 2 y y 2 = y 2 − x 2 y 3 \frac{d^2y}{dx^2} = \frac{y \cdot 1 - x\dfrac{dy}{dx}}{y^2} = \frac{y - \dfrac{x^2}{y}}{y^2} = \frac{y^2 - x^2}{y^3} d x 2 d 2 y = y 2 y ⋅ 1 − x d x d y = y 2 y − y x 2 = y 3 y 2 − x 2 From the original equation, y 2 − x 2 = − 9 y^2 - x^2 = -9 y 2 − x 2 = − 9 , so
d 2 y d x 2 = − 9 y 3 \frac{d^2y}{dx^2} = -\frac{9}{y^3} d x 2 d 2 y = − y 3 9 Check ( 5 , 4 ) (5, 4) ( 5 , 4 ) : 25 − 16 = 9 25 - 16 = 9 25 − 16 = 9 . Then d 2 y d x 2 = − 9 64 \dfrac{d^2y}{dx^2} = -\dfrac{9}{64} d x 2 d 2 y = − 64 9 .
9. (Challenge) Let f ( x ) = sin ( 2 x ) f(x) = \sin(2x) f ( x ) = sin ( 2 x ) . Find f ( 50 ) ( x ) f^{(50)}(x) f ( 50 ) ( x ) .
Solution Look for the pattern:
f ′ ( x ) = 2 cos ( 2 x ) , f ′ ′ ( x ) = − 4 sin ( 2 x ) , f ′ ′ ′ ( x ) = − 8 cos ( 2 x ) , f ( 4 ) ( x ) = 16 sin ( 2 x ) f'(x) = 2\cos(2x), \quad f''(x) = -4\sin(2x), \quad f'''(x) = -8\cos(2x), \quad f^{(4)}(x) = 16\sin(2x) f ′ ( x ) = 2 cos ( 2 x ) , f ′′ ( x ) = − 4 sin ( 2 x ) , f ′′′ ( x ) = − 8 cos ( 2 x ) , f ( 4 ) ( x ) = 16 sin ( 2 x ) Each derivative brings out a factor of 2 2 2 , and the trig part cycles every 4 4 4 derivatives. Since 50 = 4 ⋅ 12 + 2 50 = 4 \cdot 12 + 2 50 = 4 ⋅ 12 + 2 , the 50 50 50 th derivative has the same trig part as f ′ ′ f'' f ′′ , which is − sin ( 2 x ) -\sin(2x) − sin ( 2 x ) :
f ( 50 ) ( x ) = − 2 50 sin ( 2 x ) f^{(50)}(x) = -2^{50}\sin(2x) f ( 50 ) ( x ) = − 2 50 sin ( 2 x )