The derivative 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. Its height after t seconds is h(t), in feet, and as the ball rises and falls, its velocity keeps changing. How fast does the velocity change?
h(t)=−16t2+64t
Find the rate of change of velocity for a ball thrown straight up
Text solution
Velocity is h′(t)Velocity is the derivative of position. Plugging in t=0,1,2,3 shows it falling by 32 ft/s every second.
v(t)=h′(t)=−32t+64
v(0)=64
v(1)=32
v(2)=0
v(3)=−32
Acceleration is the derivative of vThe rate of change of velocity is the acceleration, −32 ft/s2, the pull of gravity.
a(t)=v′(t)=h′′(t)=−32
At the top, differentiate firstAt t=2 the velocity is 0, but the acceleration isn't. We differentiate v(t) and then plug in 2. Plugging in first would differentiate the single number 0 and wrongly give 0.
v′(t)=−32→a(2)=−32
v(2)=0→(0)′=0
The rate of change of velocity is acceleration. Velocity is already h′(t), so acceleration is the derivative of the derivative of h. We call this the second derivative of h, and we write it with two prime marks as h′′(t). In general, if position is s(t), velocity is its first derivative and acceleration is its second derivative.
v(t)=s′(t),a(t)=v′(t)=s′′(t)
The slope of the height graph at time t gives the velocity v(t). The slope of the velocity graph gives the acceleration, which is −32 at every point. Just as f′ gives the slope of the graph of f, the second derivative f′′ gives the slope of the graph of f′.
Leibniz notation and units
In Leibniz notation, the second derivative means applying dtd to dtdh. To remember the notation, think of d⋅d⋅h on top, written as d2h, and dt⋅dt on the bottom, written as dt2. For a function y=f(x), we write the second derivative as dx2d2y.
h′′(t)=dtd(dtdh)=dt2d2h
y′′=dx2d2y
The units come straight from this notation. Feet divided by seconds, and then by seconds again, gives ft/s2.
dt2d2h:s⋅sft=ft/s2
So dt2d2h is not (dtdh)2. Squaring the derivative gives the velocity squared, in ft2/s2, and at t=0 it's 4096, while the second derivative is −32.
(dtdh)2:ft2/s2
t=0:(dtdh)2=642=4096,dt2d2h=−32
t=0:(dtdh)2=642=4096,dt2d2h=−32
2
Higher derivatives of a power
We already know how to find the second derivative by differentiating twice. For f(x)=x4, the first derivative is 4x3 and the second derivative is 12x2. What happens if we keep differentiating?
Each time we use the power rule, we multiply the coefficient by the exponent and subtract 1 from the exponent. Differentiating 12x2 gives the third derivative, written with three primes as f′′′(x)=24x. Differentiating again gives the fourth derivative. Writing four primes gets hard to read, so we write f(4)(x) with the 4 in parentheses.
f(x)=x4
f′(x)=4x3
f′′(x)=12x2
f′′′(x)=24x
f(4)(x)=24
f(5)(x)=0
The parentheses matter because f4(x) means taking f(x) to the fourth power, not differentiating four times.
f(4)(x)=24
f4(x)=(f(x))4=(x4)4=x16
Notice where the coefficient 24 came from. Differentiating x4 four times brings down 4, then 3, then 2, then 1, so 24 is 4⋅3⋅2⋅1. We write this product as 4!, read "four factorial". In general, n! means the product of all whole numbers from 1 up to n.
f(4)(x)=24=4⋅3⋅2⋅1=4!
After four derivatives, the exponent on x reaches 0, and we're left with the constant 24. The derivative of any constant is 0, so the fifth derivative is 0, and every derivative after that is 0 as well.
The derivatives of the lower-degree terms in a polynomial become 0 even sooner. In x4−5x3+2x, the −5x3 term becomes 0 by the fourth derivative, and the 2x term becomes 0 by the second. So the fourth derivative is still just 24, and the fifth is 0.
(x4−5x3+2x)(4)=24,(x4−5x3+2x)(5)=0
(x4−5x3+2x)(4)(x4−5x3+2x)(5)=24,=0
In Leibniz notation, we write the number of derivatives as a power on the d on top and on the dx on the bottom, just like dx2d2y. For the nth derivative, that gives dxndny, which is f(n) in prime notation.
Second derivative
f′′=dx2d2y
Third derivative
f′′′=dx3d3y
Fourth derivative
f(4)=dx4d4y
nth derivative
f(n)=dxndny
3
Finding higher derivatives from a pattern
What if we want to find the 27th derivative of sinx? Differentiating 27 times by hand would take forever, so let's look for a pattern.
dx27d27sinx=?
Remember, the derivative of sinx is cosx, which is just sin(x+2π). Each derivative shifts the graph by 2π to the left. Differentiating four times shifts the graph by 2π, a full period, and brings us right back to sinx.
So the derivatives of sinx repeat in a cycle of four.
sinx→cosx→−sinx→−cosx→sinx
sinx→cosx→−sinx→−cosx→sinx
Writing out the first few derivatives and watching what repeats or builds is how we find any nth derivative. Let's use it on the 27th derivative of sinx, and then on e2x,sin3x, and x1.
Find higher derivatives of x4,sinx,e2x,sin3x, and x1
Text solution
Use the remainderThe 24th derivative is six full cycles, back at sinx. The remainder 3 takes three more steps around the cycle.
27=4⋅6+3
dx27d27sinx=−cosx
Each derivative multiplies by 2The chain rule brings out the derivative of 2x every time.
dxndne2x=2ne2x
A cycle with a factor of 3For sin3x, each derivative moves one step along the trig cycle and brings out a 3. After four, we're back at sine with 34 in front.
dx4d4sin3x=81sin3x=34sin3x
Leave the coefficients as productsWriting x1=x−1, each derivative brings down the next negative integer. Four of them make four minus signs and 4!.
f(4)(x)=(−1)(−2)(−3)(−4)x−5
(−1)(−2)(−3)(−4)=(−1)44!
The nth derivativeAfter n derivatives, there are n minus signs, the factors make n!, and the power of x is −(n+1). Checking n=1 gives −x21, the first derivative.
f(n)(x)=xn+1(−1)nn!
Multiplied out, those coefficients are −1,2,−6,24, and the factorial would be hidden. Notice also that the powers of x go −2,−3,−4, more negative each time. They never reach 0, so no derivative of x1 is ever 0. That's different from x4, where every derivative after the fourth is 0.
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′′ depends on what y′ looks like, not what y looked like. Compare the first derivative of ex2 with that of e2x.
y=ex2:y′=2x⋅ex2
y=e2x:y′=2⋅e2x
For e2x, the 2 in front is a constant, so the chain rule again was all we needed. For ex2, the 2x in front is a function of x, so y′ is a product of two functions of x. Let's see what that does to y′′, and then find the second derivative of x+1x, where y′ turns out simpler than y.
Find the second derivative of ex2 and x+1x
dx2d2ex2dx2d2x+1x=?=?
Text solution
y′ is a product, so use the product ruleThe derivative of 2x is 2, and the derivative of ex2 is 2xex2 again.
y′′=(2x)′⋅ex2+2x⋅(ex2)′
=2ex2+2x⋅2xex2=(2+4x2)ex2
The chain rule alone isn't enoughIt would give only 4x2ex2, and miss the 2ex2 that comes from differentiating 2x.
y′ is a powerFor x+1x, the quotient rule leaves only 1 on top. Writing y′ with a negative exponent lets the power rule and chain rule finish it, with no second quotient rule.
y′=(x+1)2(x+1)−x=(x+1)21=(x+1)−2
y′′=−2(x+1)−3=−(x+1)32
5
Finding y′′ implicitly
For the circle x2+y2=25, there's no single formula y=… to differentiate twice. We can still find its second derivative by differentiating implicitly, starting from the first derivative.
2x+2yy′=0→y′=−yx
Find y′′ for x2+y2=25 in terms of x and y, and at (3,4)
x2+y2y′′y′′at(3,4)=25=?=?
Text solution
Quotient rule on y′The derivative of x is 1, but y is a function of x, so its derivative is y′, not 1.
y′′=−y21⋅y−x⋅y′
Replace y′, then use the circlePlug in −yx for y′ and multiply top and bottom by y. On the circle, the top y2+x2 is 25.
y′′=−y2y−x⋅(−yx)=−y3y2+x2=−y325
At (3,4)Plug in y=4. The unsimplified formula, with x=3,y=4 and y′=−43, gives the same number.
−4325=−6425
Differentiate before plugging inPlugging (3,4) into y′ first gives the constant −43, and its derivative is 0. That's the same slip as differentiating v(2)=0 at the top of the ball's flight.
y′=−43→(−43)′=0=−6425
How do we write y double prime in terms of x and y only?
Summary
The second derivative
Definition
f′′(x)=(f′(x))′
Plug in after differentiating
v(t)=−32t+64:v′(t)=−32→a(2)=−32
The second derivative f′′ is the derivative of f′. It measures how fast f′ is changing, which is the slope of the graph of f′.
To evaluate a second derivative at x=a, differentiate twice to find the formula for f′′(x) first, then plug in a. If you plug in a before differentiating, you take the derivative of a single number, which gives 0.
Acceleration as a second derivative
a(t)=v′(t)=s′′(t)
For position 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.
Acceleration gives the slope of the velocity graph, not its height. When a ball thrown upward reaches its highest point, its velocity is 0, but its acceleration is still −32 ft/s2 because the velocity is steadily changing.
Notation for higher derivatives
Prime notation
f′′,f′′′,f(4),f(n)
Leibniz notation
dx2d2y=dxd(dxdy)=(dxdy)2
To write derivatives past the third, put the number of derivatives in parentheses, as in f(4). Without parentheses, f4 means multiplying f(x) by itself four times.
In Leibniz notation, dx2d2y means differentiating dxdy with respect to x. It's not the square of the first derivative.
Higher derivatives of a polynomial
(x4−5x3+2x)(4)=24,(x4−5x3+2x)(5)=0
(x4−5x3+2x)(4)(x4−5x3+2x)(5)=24,=0
When we differentiate a power, we multiply by the exponent and subtract 1 from the exponent. For a polynomial of degree n, the nth derivative is a constant, and every derivative after that is 0.
Lower-degree terms reach 0 sooner, so only the highest-degree term matters for the nth derivative. For x4−5x3+2x, the fourth derivative is 4!=24, and the fifth derivative is 0.
Finding nth derivatives from patterns
Cycle of four
27=4⋅6+3→dx27d27sinx=−cosx
Constant multiple inside
dxndne2x=2ne2x
Factorial pattern
dxndnx1=xn+1(−1)nn!
To find an nth derivative, write out the first few derivatives, leave the coefficients as products, and look for what repeats or builds.
The derivatives of sinx and cosx repeat in a cycle of four, so divide n by 4 and use the remainder. For ekx,sinkx, and coskx, each derivative multiplies by another factor of k, so n derivatives give kn in front. For x1=x−1, the signs give (−1)n, the absolute values of the factors multiply to n!, and no derivative is ever 0.
Choosing the rule for y′′
Non-linear inside function
y=ex2:y′=2x⋅ex2
Constant numerator
y′=(x+1)21=(x+1)−2
The rule you need for y′′ depends on what y′ looks like. When the inside function of a composite isn't linear, its derivative is a function of x. That makes y′ a product, so finding y′′ needs the product rule.
If 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′′=−y2y−x⋅y′=−y3x2+y2=−y325
At a point
(3,4):y′=−43,y′′=−6425
To find y′′ implicitly, differentiate y′ with respect to x. When y′ is a fraction like −yx, use the quotient rule, and remember that the derivative of y is y′, not 1.
To write y′′ in terms of x and y only, replace every y′ with its formula, and use the original curve's equation to simplify. On the circle x2+y2=25, replacing x2+y2 with 25 simplifies y′′ to −y325.
To find y′′ at a point, differentiate twice first, then plug in the coordinates and y′.
6
Practice
Enter exact values unless asked otherwise.
1
A particle's position is s(t)=t3−6t2+9t metres at time t seconds. Find its acceleration at each time when its velocity is 0.
Velocity is s′(t). At what times is s′(t)=0?
Acceleration is the derivative of velocity, a(t)=s′′(t). What is s′′(t)?
If you got 0 Velocity being 0 means the particle momentarily stops, not that its acceleration is 0. Find a(t)=s′′(t) and plug in the times where v(t)=0.If you got t=2 That's where acceleration is 0, not velocity. Solve s′(t)=0 to find the times first.
Find when velocity is 0Velocity is the derivative of position, so set s′(t)=0 and factor.
v(t)=s′(t)=3t2−12t+9=3(t−1)(t−3)=0→t=1,t=3
Find the acceleration functionAcceleration is the derivative of velocity, which is the second derivative of position.
a(t)=s′′(t)=6t−12
Evaluate at each timePlug t=1 and t=3 into a(t).
a(1)=−6m/s2,a(3)=6m/s2
2
A particle's velocity v(t), in m/s, is graphed for 0≤t≤8 seconds. The graph is made of straight segments joining (0,0),(2,6),(6,−2) and (8,−2). Find the acceleration a(5).
Acceleration is v′(5), which is the slope of the velocity graph at t=5. Which segment is t=5 on?
If you got 0 That's the velocity v(5), where the graph crosses the axis. Acceleration is the slope of the velocity graph, not its height.
Since t=5 lies between 2 and 6, it's on the line segment connecting (2,6) and (6,−2).
2<5<6:segment from (2,6) to (6,−2)
Because the segment is a straight line, its slope is constant and gives the acceleration at t=5.
a(5)=v′(5)=6−2−2−6=−2m/s2
3
Let y=sin(x2). Find y′′.
The chain rule gives y′=2xcos(x2). Which rule do we need to differentiate this product of 2x and cos(x2)?
If you got −4x2sin(x2) You differentiated only the cosine part with the chain rule. Because y′=2xcos(x2) is a product of 2x and cos(x2), you also need the product rule.
Use the chain rule on sin(x2).
y′=2x⋅cos(x2)
Because y′ is a product of 2x and cos(x2), use the product rule to find y′′.
How many full cycles of 4 derivatives fit into 50, and what is the remainder?
Each time we differentiate cos2x, what constant factor comes out from the chain rule?
If you got −cos2x Each derivative of cos2x brings out a factor of 2 from the inside, so 50 derivatives bring out 250.
If you got −250sin2x Trace the cycle starting from cos2x, not sin2x. The cycle goes cos→−sin→−cos.
Find the patternDifferentiate repeatedly to find the power of 2 and the cycle of the trig functions.
cos2x→−2sin2x→−4cos2x→8sin2x→16cos2x=24cos2x
Evaluate the 50th derivativeSince 50=4⋅12+2, the 50th derivative is 2 steps past a full cycle, with a factor of 250.
50=4⋅12+2→dx50d50cos2x=250⋅(−cos2x)=−250cos2x
5
Let f(x)=lnx. Find a formula for f(n)(x).
f(n)(x)=
Since f′(x)=x1, how many more derivatives of x1 do we need to reach f(n)(x)?
If you got xn+1(−1)nn! That's the formula for the nth derivative of x1. For lnx, the first derivative is already x1, so you only differentiate x1 another n−1 times.
Take the first derivative of lnx.
f′(x)=x1
The nth derivative of f(x) is x1 differentiated n−1 more times, so replace n with n−1 in the pattern for x1.
Test n=1 and n=2 to make sure the formula matches f′(x) and f′′(x).
n=1:x(−1)00!=x1,n=2:x2(−1)11!=−x21
6
Let h(x)=f(g(x)). Use the table to find h′′(1).
x12f30f′−24f′′65g21g′3−2g′′−17
Differentiating h(x)=f(g(x)) gives h′(x)=f′(g(x))⋅g′(x). Which rule gives h′′(x)?
In f′′(g(1)) and f′(g(1)), what is the inside value g(1)?
If you got 45 That's only f′′(g(1))⋅[g′(1)]2. The product rule also has a second term, f′(g(1))⋅g′′(1).If you got −5 You multiplied f′′(g(1)) by g′′(1) instead of applying the product rule to h′(x)=f′(g(x))⋅g′(x).If you got 11 The first term of h′′(x) has [g′(x)]2 from the chain rule, so square g′(1)=3.If you got 56 Check where f′′ and f′ are evaluated. The input is g(1)=2, not 1, so read their values from the row x=2.
Find the first derivativeUse the chain rule on f(g(x)).
h′(x)=f′(g(x))⋅g′(x)
Find the second derivativeUse the product rule on h′(x), and use the chain rule to differentiate f′(g(x)).
h′′(x)=f′′(g(x))⋅[g′(x)]2+f′(g(x))⋅g′′(x)
Plug in values from the tableSince g(1)=2, read f′′ and f′ at 2, and read g′ and g′′ at 1.