Calculus3Differentiation Rules9 of 9
Differentiation Rules · 9

Higher-Order Derivatives

1

The derivative of a derivative

The derivative f′(x)\bl{f'(x)} is a function in its own right, so we can take its derivative too. To see what that derivative tells us, let's throw a ball straight up at 64 ft/s\bl{64}\text{ ft/s}. Its height after tt seconds is h(t)\pk{h(t)}, in feet, and as the ball rises and falls, its velocity keeps changing. How fast does the velocity change?

h(t)\displaystyle \pk{h(t)} =−16t2+64t\displaystyle = \pk{-16t^2 + 64t}
Find the rate of change of velocity for a ball thrown straight up
64 ft/s\htmlClass{lc-blue}{64}\ \text{ft/s}
h(t)=−16t2+64t\htmlClass{lc-pink}{h(t) = -16t^2 + 64t}
h (ft)h\ (\text{ft})
t (s)t\ (\text{s})
00
11
22
33
44
Text solution
Velocity is h′(t)\bl{h'(t)}Velocity is the derivative of position. Plugging in t=0,1,2,3t = 0, 1, 2, 3 shows it falling by 32 ft/s\gr{32}\text{ ft/s} every second.
v(t)\displaystyle \bl{v(t)} =h′(t)\displaystyle = \bl{h'(t)} =−32t+64\displaystyle = \bl{-32t + 64}
v(0)\displaystyle \bl{v(0)} =64\displaystyle = \bl{64}
v(1)\displaystyle \bl{v(1)} =32\displaystyle = \bl{32}
v(2)\displaystyle \bl{v(2)} =0\displaystyle = \bl{0}
v(3)\displaystyle \bl{v(3)} =−32\displaystyle = \bl{-32}
Acceleration is the derivative of v\bl{v}The rate of change of velocity is the acceleration, −32 ft/s2\gr{-32}\text{ ft/s}^2, the pull of gravity.
a(t)\displaystyle \gr{a(t)} =v′(t)\displaystyle = \gr{v'(t)} =h′′(t)\displaystyle = \gr{h''(t)} =−32\displaystyle = \gr{-32}
At the top, differentiate firstAt t=2t = 2 the velocity is 0\bl{0}, but the acceleration isn't. We differentiate v(t)\bl{v(t)} and then plug in 22. Plugging in first would differentiate the single number 0\bl{0} and wrongly give 00.
v′(t)\displaystyle \gr{v'(t)} =−32  →  a(2)\displaystyle = \gr{-32} \;\to\; \gr{a(2)} =−32\displaystyle = \gr{-32}
v(2)\displaystyle \bl{v(2)} =0  →  (0)′\displaystyle = \bl{0} \;\to\; (0)' =0\displaystyle = 0

The rate of change of velocity is acceleration. Velocity is already h′(t)\bl{h'(t)}, so acceleration is the derivative of the derivative of h\pk{h}. We call this the second derivative of h\pk{h}, and we write it with two prime marks as h′′(t)\gr{h''(t)}. In general, if position is s(t)\pk{s(t)}, velocity is its first derivative and acceleration is its second derivative.

v(t)\displaystyle \bl{v(t)} =s′(t),a(t)\displaystyle = \bl{s'(t)}, \qquad \gr{a(t)} =v′(t)\displaystyle = \gr{v'(t)} =s′′(t)\displaystyle = \gr{s''(t)}
6464
6464
3232
−32-32
−64-64
hh
vv
tt
tt
00
11
22
33
44
11
−32\htmlClass{lc-green}{-32}
64\htmlClass{lc-blue}{64}
32\htmlClass{lc-blue}{32}
0\htmlClass{lc-blue}{0}
−32\htmlClass{lc-blue}{-32}
h(t)\htmlClass{lc-pink}{h(t)}
v(t)\htmlClass{lc-blue}{v(t)}

The slope of the height graph at time tt gives the velocity v(t)\bl{v(t)}. The slope of the velocity graph gives the acceleration, which is −32\gr{-32} at every point. Just as f′\bl{f'} gives the slope of the graph of f\pk{f}, the second derivative f′′\gr{f''} gives the slope of the graph of f′\bl{f'}.

Leibniz notation and units

In Leibniz notation, the second derivative means applying ddt\frac{\vi{d}}{\og{dt}} to dhdt\frac{\vi{d}\pk{h}}{\og{dt}}. To remember the notation, think of d⋅d⋅h\vi{d \cdot d} \cdot \pk{h} on top, written as d2h\vi{d^2}\pk{h}, and dt⋅dt\og{dt \cdot dt} on the bottom, written as dt2\og{dt^2}. For a function y=f(x)y = \pk{f(x)}, we write the second derivative as d2ydx2\gr{\frac{d^2y}{dx^2}}.

h′′(t)\displaystyle \gr{h''(t)} =ddt(dhdt)\displaystyle = \frac{\vi{d}}{\og{dt}}\Big(\frac{\vi{d}\pk{h}}{\og{dt}}\Big) =d2hdt2\displaystyle = \frac{\vi{d^2}\pk{h}}{\og{dt^2}}
y′′\displaystyle \gr{y''} =d2ydx2\displaystyle = \gr{\frac{d^2y}{dx^2}}

The units come straight from this notation. Feet divided by seconds, and then by seconds again, gives ft/s2\text{ft/s}^2.

d2hdt2:fts⋅s\displaystyle \frac{\vi{d^2}\pk{h}}{\og{dt^2}}:\quad \frac{\text{ft}}{\og{\text{s}\cdot\text{s}}} =ft/s2\displaystyle = \text{ft/}\og{\text{s}^2}

So d2hdt2\gr{\frac{d^2h}{dt^2}} is not (dhdt)2\left(\bl{\frac{dh}{dt}}\right)^2. Squaring the derivative gives the velocity squared, in ft2/s2\text{ft}^2/\text{s}^2, and at t=0t = 0 it's 40964096, while the second derivative is −32\gr{-32}.

(dhdt)2:ft2/s2\displaystyle {\Big(\bl{\frac{dh}{dt}}\Big)^2:\quad \text{ft}^2/\text{s}^2}
t\displaystyle t =0:(dhdt)2\displaystyle = 0:\quad \Big(\bl{\frac{dh}{dt}}\Big)^2 =642\displaystyle = \bl{64}^2 =4096,d2hdt2\displaystyle = 4096, \qquad \gr{\frac{d^2h}{dt^2}} =−32\displaystyle = \gr{-32}
t=0:(dhdt)2=642=4096,d2hdt2=−32\displaystyle \begin{aligned}&t = 0:\quad \Big(\bl{\frac{dh}{dt}}\Big)^2 = \bl{64}^2 = 4096,\\[6pt] &\gr{\frac{d^2h}{dt^2}} = \gr{-32}\end{aligned}
2

Higher derivatives of a power

We already know how to find the second derivative by differentiating twice. For f(x)=x4f(x) = \pk{x}^{\og{4}}, the first derivative is 4x3\og{4}x^{\og{3}} and the second derivative is 12x2\og{12}x^{\og{2}}. What happens if we keep differentiating?

Each time we use the power rule, we multiply the coefficient by the exponent and subtract 11 from the exponent. Differentiating 12x2\og{12}x^{\og{2}} gives the third derivative, written with three primes as f′′′(x)=24xf'''(x) = \og{24}x. Differentiating again gives the fourth derivative. Writing four primes gets hard to read, so we write f(4)(x)f^{\vi{(4)}}(x) with the 4\vi{4} in parentheses.

f(x)\displaystyle f(x) =x4\displaystyle = \pk{x}^{\og{4}}
f′(x)\displaystyle f'(x) =4x3\displaystyle = \og{4}x^{\og{3}}
f′′(x)\displaystyle f''(x) =12x2\displaystyle = \og{12}x^{\og{2}}
f′′′(x)\displaystyle f'''(x) =24x\displaystyle = \og{24}x
f(4)(x)\displaystyle f^{\vi{(4)}}(x) =24\displaystyle = \og{24}
f(5)(x)\displaystyle f^{\vi{(5)}}(x) =0\displaystyle = 0

The parentheses matter because f4(x)f^4(x) means taking f(x)f(x) to the fourth power, not differentiating four times.

f(4)(x)\displaystyle f^{\vi{(4)}}(x) =24\displaystyle = \og{24}
f4(x)\displaystyle f^4(x) =(f(x))4\displaystyle = \big(f(x)\big)^4 =(x4)4\displaystyle = (\pk{x^4})^4 =x16\displaystyle = x^{16}

Notice where the coefficient 24\og{24} came from. Differentiating x4\pk{x}^{\og{4}} four times brings down 4\og{4}, then 3\og{3}, then 2\og{2}, then 1\og{1}, so 24\og{24} is 4⋅3⋅2⋅1\og{4 \cdot 3 \cdot 2 \cdot 1}. We write this product as 4!\og{4!}, read "four factorial". In general, n!n! means the product of all whole numbers from 11 up to nn.

f(4)(x)\displaystyle f^{\vi{(4)}}(x) =24\displaystyle = \og{24} =4⋅3⋅2⋅1\displaystyle = \og{4\cdot 3\cdot 2\cdot 1} =4!\displaystyle = \og{4!}

After four derivatives, the exponent on xx reaches 0\og{0}, and we're left with the constant 24\og{24}. The derivative of any constant is 00, so the fifth derivative is 00, and every derivative after that is 00 as well.

The derivatives of the lower-degree terms in a polynomial become 00 even sooner. In x4−5x3+2x\pk{x^4 - 5x^3 + 2x}, the −5x3\pk{-5x^3} term becomes 00 by the fourth derivative, and the 2x\pk{2x} term becomes 00 by the second. So the fourth derivative is still just 24\og{24}, and the fifth is 00.

(x4−5x3+2x)(4)\displaystyle (\pk{x^4 - 5x^3 + 2x})^{\vi{(4)}} =24,(x4−5x3+2x)(5)\displaystyle = \og{24}, \qquad (\pk{x^4 - 5x^3 + 2x})^{\vi{(5)}} =0\displaystyle = 0
(x4−5x3+2x)(4)=24,(x4−5x3+2x)(5)=0\displaystyle \begin{aligned}(\pk{x^4 - 5x^3 + 2x})^{\vi{(4)}} &= \og{24},\\ (\pk{x^4 - 5x^3 + 2x})^{\vi{(5)}} &= 0\end{aligned}

In Leibniz notation, we write the number of derivatives as a power on the dd on top and on the dxdx on the bottom, just like d2ydx2\gr{\frac{d^2y}{dx^2}}. For the n\vi{n}th derivative, that gives dnydxn\frac{d^{\vi{n}}y}{dx^{\vi{n}}}, which is f(n)f^{\vi{(n)}} in prime notation.

Second derivative
f′′\displaystyle \gr{f''} =d2ydx2\displaystyle = \gr{\frac{d^2y}{dx^2}}
Third derivative
f′′′\displaystyle f''' =d3ydx3\displaystyle = \frac{d^{\vi{3}}y}{dx^{\vi{3}}}
Fourth derivative
f(4)\displaystyle f^{\vi{(4)}} =d4ydx4\displaystyle = \frac{d^{\vi{4}}y}{dx^{\vi{4}}}
nth derivative
f(n)\displaystyle f^{\vi{(n)}} =dnydxn\displaystyle = \frac{d^{\vi{n}}y}{dx^{\vi{n}}}
3

Finding higher derivatives from a pattern

What if we want to find the 27\vi{27}th derivative of sin⁡x\pk{\sin x}? Differentiating 27\vi{27} times by hand would take forever, so let's look for a pattern.

d27dx27sin⁡x\displaystyle \frac{d^{\vi{27}}}{dx^{\vi{27}}}\pk{\sin x} =  ?\displaystyle = \;?

Remember, the derivative of sin⁡x\pk{\sin x} is cos⁡x\cos x, which is just sin⁡(x+π2)\sin\left(x + \frac{\pi}{2}\right). Each derivative shifts the graph by π2\frac{\pi}{2} to the left. Differentiating four times shifts the graph by 2π2\pi, a full period, and brings us right back to sin⁡x\pk{\sin x}.

sin⁡x\htmlClass{lc-pink}{\sin x}
ddx\dfrac{d}{dx}
cos⁡x\cos x
ddx\dfrac{d}{dx}
−sin⁡x-\sin x
ddx\dfrac{d}{dx}
−cos⁡x-\cos x
ddx\dfrac{d}{dx}
sin⁡x\htmlClass{lc-pink}{\sin x}
−3π2-\dfrac{3\pi}{2}
−π-\pi
−π2-\dfrac{\pi}{2}
00
π2\dfrac{\pi}{2}
π\pi

So the derivatives of sin⁡x\pk{\sin x} repeat in a cycle of four.

sin⁡x  →  cos⁡x  →  −sin⁡x  →  −cos⁡x  →  sin⁡x\displaystyle \pk{\sin x} \;\to\; \cos x \;\to\; -\sin x \;\to\; -\cos x \;\to\; \pk{\sin x}
sin⁡x  →  cos⁡x  →  −sin⁡x  →  −cos⁡x  →  sin⁡x\displaystyle \begin{aligned}&\pk{\sin x} \;\to\; \cos x \;\to\; -\sin x\\ &\;\to\; -\cos x \;\to\; \pk{\sin x}\end{aligned}

Writing out the first few derivatives and watching what repeats or builds is how we find any n\vi{n}th derivative. Let's use it on the 27\vi{27}th derivative of sin⁡x\pk{\sin x}, and then on e2x\pk{e^{2x}}, sin⁡3x\pk{\sin 3x}, and 1x\pk{\frac1x}.

Find higher derivatives of x4\pk{x}^{\og{4}}, sin⁡x\pk{\sin x}, e2x\pk{e^{2x}}, sin⁡3x\pk{\sin 3x}, and 1x\pk{\frac1x}
f\htmlClass{lc-pink}{f}
d/dxd/dx
f′\htmlClass{lc-blue}{f'}
1\htmlClass{lc-violet}{1}
d/dxd/dx
f′′\htmlClass{lc-green}{f''}
2\htmlClass{lc-violet}{2}
d/dxd/dx
??
3\htmlClass{lc-violet}{3}
d/dxd/dx
??
4\htmlClass{lc-violet}{4}
⋅ ⋅ ⋅\cdot\,\cdot\,\cdot
??
27\htmlClass{lc-violet}{27}
Text solution
Use the remainderThe 24\vi{24}th derivative is six full cycles, back at sin⁡x\pk{\sin x}. The remainder 3\vi{3} takes three more steps around the cycle.
27\displaystyle \vi{27} =4⋅6+3\displaystyle = 4\cdot 6 + \vi{3}
d27dx27sin⁡x\displaystyle \frac{d^{\vi{27}}}{dx^{\vi{27}}}\pk{\sin x} =−cos⁡x\displaystyle = -\cos x
Each derivative multiplies by 2\og{2}The chain rule brings out the derivative of 2x2x every time.
dndxne2x\displaystyle \frac{d^{\vi{n}}}{dx^{\vi{n}}}\pk{e^{2x}} =2ne2x\displaystyle = \og{2}^{\vi{n}} \pk{e^{2x}}
A cycle with a factor of 3\og{3}For sin⁡3x\pk{\sin 3x}, each derivative moves one step along the trig cycle and brings out a 3\og{3}. After four, we're back at sine with 34\og{3}^{\vi{4}} in front.
d4dx4sin⁡3x\displaystyle \frac{d^{\vi{4}}}{dx^{\vi{4}}}\pk{\sin 3x} =81sin⁡3x\displaystyle = \og{81}\pk{\sin 3x} =34sin⁡3x\displaystyle = \og{3}^{\vi{4}}\pk{\sin 3x}
Leave the coefficients as productsWriting 1x=x−1\pk{\frac1x} = \pk{x}^{\og{-1}}, each derivative brings down the next negative integer. Four of them make four minus signs and 4!\og{4!}.
f(4)(x)\displaystyle f^{\vi{(4)}}(x) =(−1)(−2)(−3)(−4)x−5\displaystyle = \og{(-1)(-2)(-3)(-4)}x^{\og{-5}}
(−1)(−2)(−3)(−4)\displaystyle \og{(-1)(-2)(-3)(-4)} =(−1)4 4!\displaystyle = (-1)^{\vi{4}}\,\og{4!}
The n\vi{n}th derivativeAfter n\vi{n} derivatives, there are n\vi{n} minus signs, the factors make n!\vi{n}!, and the power of xx is −(n+1)-(\vi{n} + 1). Checking n=1\vi{n} = \vi{1} gives −1x2-\frac{1}{x^2}, the first derivative.
f(n)(x)\displaystyle f^{\vi{(n)}}(x) =(−1)n n!xn+1\displaystyle = \frac{(-1)^{\vi{n}}\,\vi{n}!}{x^{\vi{n}+1}}

Multiplied out, those coefficients are −1,2,−6,24\og{-1}, \og{2}, \og{-6}, \og{24}, and the factorial would be hidden. Notice also that the powers of xx go −2,−3,−4\og{-2}, \og{-3}, \og{-4}, more negative each time. They never reach 00, so no derivative of 1x\pk{\frac1x} is ever 00. That's different from x4\pk{x}^{\og{4}}, where every derivative after the fourth is 00.

Why do the derivatives of x to the fourth become zero, while those of 1 over x do not?

4

Choosing the rule for a second derivative

To find a second derivative, we differentiate the first derivative. That means the rule we choose for y′′\gr{y''} depends on what y′\bl{y'} looks like, not what y\pk{y} looked like. Compare the first derivative of ex2\pk{e^{x^2}} with that of e2x\pk{e^{2x}}.

y=ex2:y′\displaystyle \pk{y = e^{x^2}}:\quad \bl{y'} =2x⋅ex2\displaystyle = \og{2x}\cdot \pk{e^{x^2}}
y=e2x:y′\displaystyle \pk{y = e^{2x}}:\quad \bl{y'} =2⋅e2x\displaystyle = \og{2}\cdot \pk{e^{2x}}

For e2x\pk{e^{2x}}, the 2\og{2} in front is a constant, so the chain rule again was all we needed. For ex2\pk{e^{x^2}}, the 2x\og{2x} in front is a function of xx, so y′\bl{y'} is a product of two functions of xx. Let's see what that does to y′′\gr{y''}, and then find the second derivative of xx+1\pk{\frac{x}{x+1}}, where y′\bl{y'} turns out simpler than y\pk{y}.

Find the second derivative of ex2\pk{e^{x^2}} and xx+1\pk{\frac{x}{x+1}}
d2dx2 ex2=  ?d2dx2 xx+1=  ?\displaystyle \begin{aligned}\htmlClass{lc-green}{\frac{d^2}{dx^2}}\,\htmlClass{lc-pink}{e^{x^2}} &= \;?\\ \htmlClass{lc-green}{\frac{d^2}{dx^2}}\,\htmlClass{lc-pink}{\frac{x}{x+1}} &= \;?\end{aligned}
Text solution
y′\bl{y'} is a product, so use the product ruleThe derivative of 2x\og{2x} is 2\og{2}, and the derivative of ex2\pk{e^{x^2}} is 2x ex2\og{2x}\,\pk{e^{x^2}} again.
y′′\displaystyle \gr{y''} =(2x)′⋅ex2+2x⋅(ex2)′\displaystyle = (\og{2x})'\cdot \pk{e^{x^2}} + \og{2x}\cdot\big(\pk{e^{x^2}}\big)'
=2ex2+2x⋅2x ex2\displaystyle = \og{2}\pk{e^{x^2}} + \og{2x}\cdot \og{2x}\,\pk{e^{x^2}} =(2+4x2) ex2\displaystyle = (2 + 4x^2)\,\pk{e^{x^2}}
The chain rule alone isn't enoughIt would give only 4x2ex24x^2 \pk{e^{x^2}}, and miss the 2ex2\og{2}\pk{e^{x^2}} that comes from differentiating 2x\og{2x}.
y′\bl{y'} is a powerFor xx+1\pk{\frac{x}{x+1}}, the quotient rule leaves only 11 on top. Writing y′\bl{y'} with a negative exponent lets the power rule and chain rule finish it, with no second quotient rule.
y′\displaystyle \bl{y'} =(x+1)−x(x+1)2\displaystyle = \frac{(x+1) - x}{(x+1)^2} =1(x+1)2\displaystyle = \frac{1}{(x+1)^2} =(x+1)−2\displaystyle = (x+1)^{\og{-2}}
y′′\displaystyle \gr{y''} =−2(x+1)−3\displaystyle = \og{-2}(x+1)^{\og{-3}} =−2(x+1)3\displaystyle = -\frac{2}{(x+1)^3}
5

Finding y′′\gr{y''} implicitly

For the circle x2+y2=25\pk{x^2 + y^2 = 25}, there's no single formula y=…y = \dots to differentiate twice. We can still find its second derivative by differentiating implicitly, starting from the first derivative.

2x+2y y′\displaystyle 2x + 2y\,\bl{y'} =0  →  y′\displaystyle = 0 \;\to\; \bl{y'} =−xy\displaystyle = \bl{-\frac{x}{y}}
Find y′′\gr{y''} for x2+y2=25\pk{x^2 + y^2 = 25} in terms of xx and yy, and at (3,4)(3, 4)
x2+y2=25y′′=  ?y′′ at (3, 4)=  ?\displaystyle \begin{aligned}\htmlClass{lc-pink}{x^2 + y^2} &\mathrel{\htmlClass{lc-pink}{=}} \htmlClass{lc-pink}{25}\\ \htmlClass{lc-green}{y''} &= \;?\\ \htmlClass{lc-green}{y''}\ \text{at}\ (3,\,4) &= \;?\end{aligned}
Text solution
Quotient rule on y′\bl{y'}The derivative of xx is 11, but yy is a function of xx, so its derivative is y′\bl{y'}, not 11.
y′′\displaystyle \gr{y''} =−1⋅y−x⋅y′y2\displaystyle = -\frac{1\cdot y - x\cdot \bl{y'}}{y^2}
Replace y′\bl{y'}, then use the circlePlug in −xy\bl{-\frac{x}{y}} for y′\bl{y'} and multiply top and bottom by yy. On the circle, the top y2+x2\pk{y^2 + x^2} is 25\pk{25}.
y′′\displaystyle \gr{y''} =−y−x⋅(−xy)y2\displaystyle = -\frac{y - x\cdot\big(\bl{-\frac{x}{y}}\big)}{y^2} =−y2+x2y3\displaystyle = -\frac{\pk{y^2 + x^2}}{y^3} =−25y3\displaystyle = -\frac{\pk{25}}{y^3}
At (3,4)(3, 4)Plug in y=4y = 4. The unsimplified formula, with x=3x = 3, y=4y = 4 and y′=−34\bl{y'} = \bl{-\frac34}, gives the same number.
−2543\displaystyle -\frac{\pk{25}}{4^3} =−2564\displaystyle = -\frac{25}{64}
Differentiate before plugging inPlugging (3,4)(3, 4) into y′\bl{y'} first gives the constant −34\bl{-\frac34}, and its derivative is 00. That's the same slip as differentiating v(2)=0\bl{v(2)} = \bl{0} at the top of the ball's flight.
y′\displaystyle \bl{y'} =−34  →  (−34)′\displaystyle = \bl{-\frac34} \;\to\; \Big(-\frac34\Big)' =0≠−2564\displaystyle = 0 \ne -\frac{25}{64}

How do we write y double prime in terms of x and y only?

Summary

The second derivative
Definition
f′′(x)\displaystyle \gr{f''(x)} =(f′(x))′\displaystyle = \big(\bl{f'(x)}\big)'
Plug in after differentiating
v(t)\displaystyle \bl{v(t)} =−32t+64:v′(t)\displaystyle = \bl{-32t + 64}:\quad \gr{v'(t)} =−32  →  a(2)\displaystyle = \gr{-32} \;\to\; \gr{a(2)} =−32\displaystyle = \gr{-32}

The second derivative f′′\gr{f''} is the derivative of f′\bl{f'}. It measures how fast f′\bl{f'} is changing, which is the slope of the graph of f′\bl{f'}.

To evaluate a second derivative at x=ax = a, differentiate twice to find the formula for f′′(x)\gr{f''(x)} first, then plug in aa. If you plug in aa before differentiating, you take the derivative of a single number, which gives 00.

Acceleration as a second derivative
a(t)\displaystyle \gr{a(t)} =v′(t)\displaystyle = \gr{v'(t)} =s′′(t)\displaystyle = \gr{s''(t)}

For position s(t)\pk{s(t)}, velocity is the first derivative and acceleration is the second derivative. When position is in feet and time is in seconds, acceleration has units of ft/s2\text{ft/s}^2.

Acceleration gives the slope of the velocity graph, not its height. When a ball thrown upward reaches its highest point, its velocity is 00, but its acceleration is still −32 ft/s2\gr{-32}\text{ ft/s}^2 because the velocity is steadily changing.

Notation for higher derivatives
Prime notation
f′′,f′′′,f(4),f(n)\displaystyle \gr{f''},\quad f''',\quad f^{\vi{(4)}},\quad f^{\vi{(n)}}
Leibniz notation
d2ydx2\displaystyle \gr{\frac{d^2y}{dx^2}} =ddx(dydx)≠(dydx)2\displaystyle = \frac{d}{dx}\Big(\bl{\frac{dy}{dx}}\Big) \ne \Big(\bl{\frac{dy}{dx}}\Big)^2

To write derivatives past the third, put the number of derivatives in parentheses, as in f(4)f^{\vi{(4)}}. Without parentheses, f4f^4 means multiplying f(x)f(x) by itself four times.

In Leibniz notation, d2ydx2\gr{\frac{d^2y}{dx^2}} means differentiating dydx\bl{\frac{dy}{dx}} with respect to xx. It's not the square of the first derivative.

Higher derivatives of a polynomial
(x4−5x3+2x)(4)\displaystyle (\pk{x^4 - 5x^3 + 2x})^{\vi{(4)}} =24,(x4−5x3+2x)(5)\displaystyle = \og{24}, \qquad (\pk{x^4 - 5x^3 + 2x})^{\vi{(5)}} =0\displaystyle = 0
(x4−5x3+2x)(4)=24,(x4−5x3+2x)(5)=0\displaystyle \begin{aligned}(\pk{x^4 - 5x^3 + 2x})^{\vi{(4)}} &= \og{24},\\ (\pk{x^4 - 5x^3 + 2x})^{\vi{(5)}} &= 0\end{aligned}

When we differentiate a power, we multiply by the exponent and subtract 11 from the exponent. For a polynomial of degree nn, the nth\vi{n}\text{th} derivative is a constant, and every derivative after that is 00.

Lower-degree terms reach 00 sooner, so only the highest-degree term matters for the nth\vi{n}\text{th} derivative. For x4−5x3+2x\pk{x^4 - 5x^3 + 2x}, the fourth derivative is 4!=24\og{4! = 24}, and the fifth derivative is 00.

Finding nth\vi{n}\text{th} derivatives from patterns
Cycle of four
27=4⋅6+3  →  d27dx27sin⁡x\displaystyle {\vi{27} = 4\cdot 6 + \vi{3}} \;\to\; \frac{d^{\vi{27}}}{dx^{\vi{27}}}\pk{\sin x} =−cos⁡x\displaystyle = -\cos x
Constant multiple inside
dndxne2x\displaystyle \frac{d^{\vi{n}}}{dx^{\vi{n}}}\pk{e^{2x}} =2ne2x\displaystyle = \og{2}^{\vi{n}} \pk{e^{2x}}
Factorial pattern
dndxn 1x\displaystyle \frac{d^{\vi{n}}}{dx^{\vi{n}}}\,\pk{\frac1x} =(−1)n n!xn+1\displaystyle = \frac{(-1)^{\vi{n}}\,\vi{n}!}{x^{\vi{n}+1}}

To find an nth\vi{n}\text{th} derivative, write out the first few derivatives, leave the coefficients as products, and look for what repeats or builds.

The derivatives of sin⁡x\pk{\sin x} and cos⁡x\pk{\cos x} repeat in a cycle of four, so divide n\vi{n} by 44 and use the remainder. For ekx\pk{e^{kx}}, sin⁡kx\pk{\sin kx}, and cos⁡kx\pk{\cos kx}, each derivative multiplies by another factor of k\og{k}, so n\vi{n} derivatives give kn\og{k}^{\vi{n}} in front. For 1x=x−1\pk{\frac1x} = \pk{x}^{\og{-1}}, the signs give (−1)n(-1)^{\vi{n}}, the absolute values of the factors multiply to n!\vi{n}!, and no derivative is ever 00.

Choosing the rule for y′′\gr{y''}
Non-linear inside function
y=ex2:y′\displaystyle \pk{y = e^{x^2}}:\quad \bl{y'} =2x⋅ex2\displaystyle = \og{2x}\cdot \pk{e^{x^2}}
Constant numerator
y′\displaystyle \bl{y'} =1(x+1)2\displaystyle = \frac{1}{(x+1)^2} =(x+1)−2\displaystyle = (x+1)^{\og{-2}}

The rule you need for y′′\gr{y''} depends on what y′\bl{y'} looks like. When the inside function of a composite isn't linear, its derivative is a function of xx. That makes y′\bl{y'} a product, so finding y′′\gr{y''} needs the product rule.

If y′\bl{y'} is a fraction with only a constant on top, rewrite it with a negative exponent to use the power rule instead of the quotient rule.

Implicit second derivatives
In terms of x and y
x2+y2=25:y′′\displaystyle \pk{x^2 + y^2 = 25}:\quad \gr{y''} =−y−x⋅y′y2\displaystyle = -\frac{y - x\cdot \bl{y'}}{y^2} =−x2+y2y3\displaystyle = -\frac{\pk{x^2 + y^2}}{y^3} =−25y3\displaystyle = -\frac{\pk{25}}{y^3}
At a point
(3,4):y′\displaystyle (3, 4):\quad \bl{y'} =−34,y′′\displaystyle = \bl{-\frac34}, \qquad \gr{y''} =−2564\displaystyle = -\frac{25}{64}

To find y′′\gr{y''} implicitly, differentiate y′\bl{y'} with respect to xx. When y′\bl{y'} is a fraction like −xy\bl{-\frac{x}{y}}, use the quotient rule, and remember that the derivative of yy is y′\bl{y'}, not 11.

To write y′′\gr{y''} in terms of xx and yy only, replace every y′\bl{y'} with its formula, and use the original curve's equation to simplify. On the circle x2+y2=25\pk{x^2 + y^2 = 25}, replacing x2+y2\pk{x^2 + y^2} with 25\pk{25} simplifies y′′\gr{y''} to −25y3-\frac{\pk{25}}{y^3}.

To find y′′\gr{y''} at a point, differentiate twice first, then plug in the coordinates and y′\bl{y'}.

6

Practice

Enter exact values unless asked otherwise.

1
A particle's position is s(t)=t3−6t2+9ts(t) = t^3 - 6t^2 + 9t metres at time tt seconds. Find its acceleration at each time when its velocity is 0.

Velocity is s′(t)s'(t). At what times is s′(t)=0s'(t) = 0?

Acceleration is the derivative of velocity, a(t)=s′′(t)a(t) = s''(t). What is s′′(t)s''(t)?

Find when velocity is 0Velocity is the derivative of position, so set s′(t)=0\bl{s'(t)} = 0 and factor.
v(t)\displaystyle \bl{v(t)} =s′(t)\displaystyle = \bl{s'(t)} =3t2−12t+9\displaystyle = \bl{3t^2 - 12t + 9} =3(t−1)(t−3)\displaystyle = \bl{3(t-1)(t-3)} =0  →  t\displaystyle = 0 \;\to\; t =1, t\displaystyle = 1,\ t =3\displaystyle = 3
Find the acceleration functionAcceleration is the derivative of velocity, which is the second derivative of position.
a(t)\displaystyle \gr{a(t)} =s′′(t)\displaystyle = \gr{s''(t)} =6t−12\displaystyle = \gr{6t - 12}
Evaluate at each timePlug t=1t = 1 and t=3t = 3 into a(t)\gr{a(t)}.
a(1)\displaystyle \gr{a(1)} =−6 m/s2,a(3)\displaystyle = -6\ \text{m/s}^2, \qquad \gr{a(3)} =6 m/s2\displaystyle = 6\ \text{m/s}^2
2
A particle's velocity v(t)v(t), in m/s, is graphed for 0≤t≤80 \le t \le 8 seconds. The graph is made of straight segments joining (0,0)(0, 0), (2,6)(2, 6), (6,−2)(6, -2) and (8,−2)(8, -2). Find the acceleration a(5)a(5).

Acceleration is v′(5)v'(5), which is the slope of the velocity graph at t=5t = 5. Which segment is t=5t = 5 on?

Since t=5t = 5 lies between 22 and 66, it's on the line segment connecting (2,6)(2, 6) and (6,−2)(6, -2).
2<5<6:segment from (2,6) to (6,−2)\displaystyle 2 < 5 < 6:\quad \text{segment from } (2, 6) \text{ to } (6, -2)
Because the segment is a straight line, its slope is constant and gives the acceleration at t=5t = 5.
a(5)\displaystyle \gr{a(5)} =v′(5)\displaystyle = \gr{v'(5)} =−2−66−2\displaystyle = \frac{-2 - 6}{6 - 2} =−2 m/s2\displaystyle = -2\ \text{m/s}^2
3
Let y=sin⁡(x2)y = \sin(x^2). Find y′′y''.

The chain rule gives y′=2xcos⁡(x2)y' = 2x\cos(x^2). Which rule do we need to differentiate this product of 2x2x and cos⁡(x2)\cos(x^2)?

If you got −4x2sin⁡(x2)-4x^2\sin(x^2) You differentiated only the cosine part with the chain rule. Because y′=2xcos⁡(x2)y' = 2x\cos(x^2) is a product of 2x2x and cos⁡(x2)\cos(x^2), you also need the product rule.

Use the chain rule on sin⁡(x2)\pk{\sin(x^2)}.
y′\displaystyle \bl{y'} =2x⋅cos⁡(x2)\displaystyle = \og{2x}\cdot\pk{\cos(x^2)}
Because y′\bl{y'} is a product of 2x\og{2x} and cos⁡(x2)\pk{\cos(x^2)}, use the product rule to find y′′\gr{y''}.
y′′\displaystyle \gr{y''} =(2x)′⋅cos⁡(x2)+2x⋅(cos⁡(x2))′\displaystyle = (\og{2x})'\cdot\pk{\cos(x^2)} + \og{2x}\cdot\big(\pk{\cos(x^2)}\big)' =2cos⁡(x2)+2x⋅(−2xsin⁡(x2))\displaystyle = \og{2}\pk{\cos(x^2)} + \og{2x}\cdot\big(-\og{2x}\sin(x^2)\big) =2cos⁡(x2)−4x2sin⁡(x2)\displaystyle = 2\cos(x^2) - 4x^2\sin(x^2)
4
Find d50dx50cos⁡2x\dfrac{d^{50}}{dx^{50}}\cos 2x.
d50dx50cos⁡2x=\dfrac{d^{50}}{dx^{50}}\cos 2x =

How many full cycles of 4 derivatives fit into 50, and what is the remainder?

Each time we differentiate cos⁡2x\cos 2x, what constant factor comes out from the chain rule?

If you got −cos⁡2x-\cos 2x Each derivative of cos⁡2x\cos 2x brings out a factor of 22 from the inside, so 50 derivatives bring out 2502^{50}.

If you got −250sin⁡2x-2^{50}\sin 2x Trace the cycle starting from cos⁡2x\cos 2x, not sin⁡2x\sin 2x. The cycle goes cos⁡→−sin⁡→−cos⁡\cos \to -\sin \to -\cos.

Find the patternDifferentiate repeatedly to find the power of 2\og{2} and the cycle of the trig functions.
cos⁡2x  →  −2sin⁡2x  →  −4cos⁡2x  →  8sin⁡2x  →  16cos⁡2x\displaystyle \pk{\cos 2x} \;\to\; -\og{2}\sin 2x \;\to\; -\og{4}\cos 2x \;\to\; \og{8}\sin 2x \;\to\; \og{16}\pk{\cos 2x} =24cos⁡2x\displaystyle = \og{2}^{\vi{4}}\pk{\cos 2x}
Evaluate the 50th derivativeSince 50=4⋅12+2\vi{50} = 4\cdot 12 + \vi{2}, the 50th derivative is 2 steps past a full cycle, with a factor of 250\og{2}^{\vi{50}}.
50\displaystyle \vi{50} =4⋅12+2  →  d50dx50cos⁡2x\displaystyle = 4\cdot 12 + \vi{2} \;\to\; \frac{d^{\vi{50}}}{dx^{\vi{50}}}\pk{\cos 2x} =250⋅(−cos⁡2x)\displaystyle = \og{2}^{\vi{50}}\cdot(-\cos 2x) =−250cos⁡2x\displaystyle = -2^{50}\cos 2x
5
Let f(x)=ln⁡xf(x) = \ln x. Find a formula for f(n)(x)f^{(n)}(x).
f(n)(x)=f^{(n)}(x) =

Since f′(x)=1xf'(x) = \frac1x, how many more derivatives of 1x\frac1x do we need to reach f(n)(x)f^{(n)}(x)?

If you got (−1)n n!xn+1\dfrac{(-1)^n\,n!}{x^{n+1}} That's the formula for the nnth derivative of 1x\frac1x. For ln⁡x\ln x, the first derivative is already 1x\frac1x, so you only differentiate 1x\frac1x another n−1n-1 times.

Take the first derivative of ln⁡x\pk{\ln x}.
f′(x)\displaystyle \bl{f'(x)} =1x\displaystyle = \bl{\frac1x}
The n\vi{n}th derivative of f(x)\pk{f(x)} is 1x\bl{\frac1x} differentiated n−1\vi{n - 1} more times, so replace n\vi{n} with n−1\vi{n - 1} in the pattern for 1x\bl{\frac1x}.
f(n)(x)\displaystyle f^{\vi{(n)}}(x) =1x differentiated n−1 times\displaystyle = \bl{\frac1x} \text{ differentiated } \vi{n - 1} \text{ times} =(−1)n−1 (n−1)!xn\displaystyle = \frac{(-1)^{\vi{n-1}}\,(\vi{n-1})!}{x^{\vi{n}}}
Test n=1\vi{n} = \vi{1} and n=2\vi{n} = \vi{2} to make sure the formula matches f′(x)\bl{f'(x)} and f′′(x)\gr{f''(x)}.
n\displaystyle \vi{n} =1:(−1)0 0!x\displaystyle = \vi{1}:\quad \frac{(-1)^{\vi{0}}\,\vi{0}!}{x} =1x,n\displaystyle = \bl{\frac1x}, \qquad \vi{n} =2:(−1)1 1!x2\displaystyle = \vi{2}:\quad \frac{(-1)^{\vi{1}}\,\vi{1}!}{x^{\vi{2}}} =−1x2\displaystyle = -\frac{1}{x^2}
6
Let h(x)=f(g(x))h(x) = f(g(x)). Use the table to find h′′(1)h''(1).
xff′f′′gg′g′′13−2623−120451−27\displaystyle \def\arraystretch{1.4}\begin{array}{c|rrrrrr}x&f&f\prime&f\prime\prime&g&g\prime&g\prime\prime\\\hline1&3&-2&6&2&3&-1\\2&0&4&5&1&-2&7\end{array}

Differentiating h(x)=f(g(x))h(x) = f(g(x)) gives h′(x)=f′(g(x))⋅g′(x)h'(x) = f'(g(x))\cdot g'(x). Which rule gives h′′(x)h''(x)?

In f′′(g(1))f''(g(1)) and f′(g(1))f'(g(1)), what is the inside value g(1)g(1)?

Find the first derivativeUse the chain rule on f(g(x))\pk{f(g(x))}.
h′(x)\displaystyle \bl{h'(x)} =f′(g(x))⋅g′(x)\displaystyle = \pk{f'(g(x))}\cdot \og{g'(x)}
Find the second derivativeUse the product rule on h′(x)\bl{h'(x)}, and use the chain rule to differentiate f′(g(x))\pk{f'(g(x))}.
h′′(x)\displaystyle \gr{h''(x)} =f′′(g(x))⋅[g′(x)]2+f′(g(x))⋅g′′(x)\displaystyle = \pk{f''(g(x))}\cdot\og{\big[g'(x)\big]^2} + \pk{f'(g(x))}\cdot \og{g''(x)}
Plug in values from the tableSince g(1)=2g(1) = 2, read f′′\pk{f''} and f′\pk{f'} at 22, and read g′\og{g'} and g′′\og{g''} at 11.
g(1)\displaystyle g(1) =2:h′′(1)\displaystyle = 2:\quad \gr{h''(1)} =f′′(2)⋅32+f′(2)⋅(−1)\displaystyle = \pk{f''(2)}\cdot \og{3^2} + \pk{f'(2)}\cdot\og{(-1)} =5⋅9+4⋅(−1)\displaystyle = \pk{5}\cdot \og{9} + \pk{4}\cdot\og{(-1)} =45−4\displaystyle = 45 - 4 =41\displaystyle = 41
7
The curve xy+y2=2xy + y^2 = 2 passes through the point (1,1)(1, 1). Find d2ydx2\dfrac{d^2y}{dx^2} at (1,1)(1, 1).

Differentiate xyxy with the product rule, remembering that yy is a function of xx. What is (xy)′(xy)'?

When differentiating x+2yx + 2y with respect to xx, what is the derivative of 2y2y?

Find y′\bl{y'} implicitlyDifferentiate both sides implicitly with respect to xx, solve for y′\bl{y'}, and plug in (1,1)(1, 1).
y+x y′+2y y′\displaystyle y + x\,\bl{y'} + 2y\,\bl{y'} =0  →  y′\displaystyle = 0 \;\to\; \bl{y'} =−yx+2y\displaystyle = \bl{-\frac{y}{x + 2y}}
(1,1):y′\displaystyle (1, 1):\quad \bl{y'} =−13\displaystyle = \bl{-\frac13}
Differentiate to find y′′\gr{y''}Differentiate y′\bl{y'} with the quotient rule, remembering that (x+2y)′=1+2y′(x + 2y)' = 1 + 2\bl{y'}.
y′′\displaystyle \gr{y''} =−y′ (x+2y)−y (1+2y′)(x+2y)2\displaystyle = -\frac{\bl{y'}\,(x + 2y) - y\,(1 + 2\bl{y'})}{(x + 2y)^2}
Evaluate at the pointPlug in x=1x = 1, y=1y = 1, and y′=−13\bl{y'} = \bl{-\frac13}.
y′′\displaystyle \gr{y''} =−(−13)⋅3−1⋅(1−23)32\displaystyle = -\frac{\big(\bl{-\frac13}\big)\cdot 3 - 1\cdot\big(1 - \frac23\big)}{3^2} =−−1−139\displaystyle = -\frac{-1 - \frac13}{9} =427\displaystyle = \frac{4}{27}