Kim’s Math NotesCourse index

Calculating Higher-Order Derivatives

How do I calculate and interpret a higher-order derivative?

Find second and higher derivatives from formulas, curves given implicitly, and graphs of f'.

y is not a constant

Common mistake ddx(−x4y)=−14y.

Correction y depends on x: the quotient rule, with dydx put in.

Problem 1

Example one, multiple choice. f of x is x times e to the two x. Find f double prime of zero. Find f prime first, then f double prime, then plug in x equals zero. The product rule gives one times e to the two x, plus x times two e to the two x.

Factor out e to the two x, so the next step is cleaner: e to the two x times one plus two x. The product rule, again?

Watch this part of the concept lesson

Read the rest of this scene

Yep. Two e to the two x times one plus two x, plus e to the two x times two. At zero, e to the zero is one: two plus two, which is four. That's C. Second derivatives of products are in the workbook.

Problem 2

Example two. We get only the graph of f prime, made of two line segments. g of x is f of x squared. Find g double prime of one. Get g prime by the chain rule, then use the product rule, then plug in x equals one, where we read a height and a slope. Outside f, inside x squared: g prime of x is f prime of x squared times two x.

That's a product, and the first factor still has an inside.

Watch this part of the concept lesson

Read the rest of this scene

Its derivative is f double prime of x squared times two x. By the product rule, that times the other factor, two x, plus f prime of x squared times two. There are two two x's: the first just came from the inside, and the second was already in g prime. At one, x squared is one: g double prime of one is four f double prime of one plus two f prime of one. On the graph at x equals one, the height is three, so f prime of one is three.

The slope of that segment: over one, up two, so f double prime of one is two. Four times two plus two times three is fourteen. That's D. An f prime graph problem waits in the workbook. One more kind: a curve. x squared minus y squared equals nine gives d y d x equals x over y.

Differentiate x over y with the quotient rule: y times one, minus x times the derivative of y, over y squared. Wait, why is there a y prime in there? Because y depends on x, its derivative is d y d x. And we already know it: x over y. Plug it in. Multiply top and bottom by y: y squared minus x squared, over y cubed.

The curve says y squared minus x squared is negative nine. That's three moves: differentiate, plug in d y d x, then use the curve.

Problem 3

Example three. The curve x squared plus four y squared equals eight. Part a, show that d y d x is negative x over four y. Part b, find d two y, d x squared at two, one. Part a. Differentiate both sides: two x plus eight y d y d x equals zero. Move two x over and divide by eight y: negative two x over eight y, which is negative x over four y.

Part b. Find the slope at two, one first, then differentiate again, then plug in x equals two, y equals one, and the slope.

Watch this part of the concept lesson

Read the rest of this scene

At two, one, d y d x is negative two over four, negative one half. Keep the minus sign in front. Quotient rule on x over four y: four y times one, minus x times four d y d x, over four y squared. Don't simplify yet. Plug in two, one, and negative one half: four minus two times four times negative one half, over sixteen.

Four plus four is eight, so negative eight over sixteen, negative one half. Curves like this are in the workbook. Here's the slip. Treat the four y like a constant, and the derivative of negative x over four y looks like negative one over four y. Put in y equals one, and you get negative one fourth. But y moves along the curve.

y is not a constant, so four y gives four d y d x, and the answer is negative one half. This kind of part shows up on the AP exam. In 2015, a free-response part asked for one second derivative at one point on an implicit curve, and it was worth four points. So, what comes out when we differentiate the derivative? The second derivative, written f double prime or d two y, d x squared.

Look at f prime with fresh eyes, because the second step is often a product. On a curve, you differentiate, plug in d y d x, then use the curve. And y is never a constant. f double prime comes back in unit four, with motion, and in unit five, with the shape of a graph. Try the workbook next, and leave questions in the comments.

Next up: unit four, the meaning of the derivative in context. See you there.

Worked examples

Example 1

If f(x)=xe2x, then f′′(0) =
  1. 1
  2. 2
  3. 4
  4. 12
Hint

Find f′ first, then differentiate f′.

Answer and solution

Answer C. 4

  1. f′(x)=e2x+2xe2x=e2x(1+2x)
  2. f′′(x)=2e2x(1+2x)+2e2x=e2x(4+4x),f′′(0)=4
  3. Answer C.

Example 2

The graph of f′, made of line segments, is shown. Let g(x)=f(x2). Then g′′(1) =
xy12312345y=f'(x)
Graph
  1. 4
  2. 6
  3. 8
  4. 14
Hint

g′ by the chain rule, then the product rule.

Answer and solution

Answer D. 14

  1. g′(x)=f′(x2)⋅2x,g′′(x)=f′′(x2)⋅2x⋅2x+f′(x2)⋅2
  2. g′′(1)=4f′′(1)+2f′(1)=4(2)+2(3)=14
  3. The height of the graph at 1 is f'(1) = 3; its slope there is f''(1) = 2. Answer D.

Example 3

Consider the curve x2+4y2=8.
(a) Show that dydx=−x4y.
(b) Find d2ydx2 at (2,1).
Hint

Implicit twice; put in dydx, then the point.

Answer and solution
  1. shown
  2. −12
  1. 2x+8ydydx=0→dydx=−x4y;at (2,1):dydx=−12
  2. d2ydx2=−4y⋅1−x⋅4dydx(4y)2=−4−(2)(4)(−12)16=−816=−12
  3. y is not a constant: its derivative is dy/dx.

Workbook

Problem 1

Find each second derivative. (a) If f(x)=x, find f′′(4). (b) If y=tanx, find d2ydx2 at x=π4.
Hint

Differentiate twice. (secx)′=secxtanx.

Answer and solution
  1. −132
  2. 4
  1. f′(x)=12x−12,f′′(x)=−14x−32,f′′(4)=−14⋅18=−132
  2. (b) y' = sec^2 x = (sec x)^2, so y'' = 2 sec x * sec x tan x = 2 sec^2 x tan x. At pi/4: 2(2)(1) = 4.

Common mistake Stopping at f'(4), or a sign slip in the second derivative.

Watch the worked solution to Problem 1

Problem 2

Find each higher-order derivative.
(a) d23ydx23 for y=cosx
(b) y′′′ for y=e−3x
Hint

Look for the pattern: cosx repeats every 4; e−3x gains a factor −3 each time.

Answer and solution
  1. sinx
  2. −27e−3x
  1. cos x -> -sin x -> -cos x -> sin x -> cos x: back after four. 23 = 4(5) + 3, so the 23rd is the 3rd: sin x.
  2. (b) Each step brings a factor -3: y'''= (-3)^3 e^{-3x} = -27e^{-3x}.

Common mistake Missing the 4-step cycle of cos x; losing a factor -3.

Watch the worked solution to Problem 2

Problem 3

If f(x)=cos(πx), then f′′(13)=
  1. −π2
  2. −π22
  3. π22
  4. −3π22
Hint

Each derivative brings out one factor π.

Answer and solution

Answer B. −π22

  1. f′(x)=−πsin(πx),f′′(x)=−π2cos(πx)
  2. f′′(13)=−π2⋅12=−π22
  3. Answer B.

Common mistake Bringing out only one factor π.

Watch the worked solution to Problem 3

Problem 4

If y=xlnx, what is the value of d2ydx2 at x=2?
  1. ln2+1
  2. 12
  3. 1
  4. 0
Hint

y′=lnx+1. Differentiate it again.

Answer and solution

Answer B. 12

  1. dydx=1⋅lnx+x⋅1x=lnx+1
  2. d2ydx2=1x,at x=2:12
  3. Answer B.

Common mistake Stopping at y' = ln x + 1, or one product-rule term only.

Watch the worked solution to Problem 4

Problem 5

If y2=x and y≠0, then d2ydx2=
  1. −12y2
  2. 12y
  3. −14y3
  4. 0
Hint

Differentiate 12y again; y is not a constant. Then put in dydx=12y.

Answer and solution

Answer C. −14y3

  1. 2ydydx=1,dydx=12y
  2. d2ydx2=2y⋅0−1⋅2dydx(2y)2=−2⋅12y4y2=−14y3
  3. Answer C.

Common mistake Treating y as a constant in 1/(2y): answer 0, or dropping its dy/dx.

Watch the worked solution to Problem 5

Problem 6

Consider the curve given by y2−x2=3.
  1. Show that dydx=xy.
  2. Find d2ydx2 in terms of x and y. Then use the equation of the curve to write it in terms of y only.
  3. Find the value of d2ydx2 at the point (1,2).
Hint

Quotient rule on xy, put in dydx=xy, then use the curve.

Answer and solution
  1. xy
  2. d2ydx2=y2−x2y3=3y3
  3. 38
  1. 2ydydx−2x=0,dydx=xy
  2. d2ydx2=y⋅1−xdydxy2=y−x2yy2=y2−x2y3=3y3
  3. (c) At (1, 2): 3/2^3 = 3/8.

Common mistake Not putting dy/dx = x/y back in, or skipping the curve y^2 - x^2 = 3.

Watch the worked solution to Problem 6

Problem 7

The table gives values of a twice-differentiable function f and its first two derivatives.
x02
f(x)05
f′(x)23
f′′(x)-3-1
  1. Let h(x)=xf(x). Find h′′(2).
  2. Let k(x)=ef(x). Find k′′(0).
Hint

Write h′′ and k′′ with the rules before you use the table.

Answer and solution
  1. h′′(2)=2f′(2)+2f′′(2)=6−2=4
  2. k′′(0)=ef(0)[f′(0)]2+ef(0)f′′(0)=4−3=1
  1. h′(x)=f(x)+xf′(x),h′′(x)=2f′(x)+xf′′(x),h′′(2)=2(3)+2(−1)=4
  2. k′(x)=ef(x)f′(x),k′′(x)=ef(x)[f′(x)]2+ef(x)f′′(x)
  3. (b) At 0: e^0(2)^2 + e^0(-3) = 4 - 3 = 1.

Common mistake Using f instead of f' or f'' from the table; writing k'' = e^{f} f''.

Watch the worked solution to Problem 7

Problem 8

The graph of f′, made of line segments, is shown, and f(1)=2. Let h(x)=[f(x)]2. Then h′′(1)=
xy12312345y=f'(x)
Graph
  1. 10
  2. 14
  3. 18
  4. 26
Hint

h′=2ff′, so h′′=2(f′)2+2ff′′. f′′ is the slope of the graph of f′.

Answer and solution

Answer A. 10

  1. h′(x)=2f(x)⋅f′(x),h′′(x)=2[f′(x)]2+2f(x)⋅f′′(x)
  2. h′′(1)=2(3)2+2(2)(−2)=18−8=10
  3. The height of the graph at 1 is f'(1) = 3; its slope there is f''(1) = -2. Answer A.

Common mistake Reading f'(1) from the graph as f(1), or forgetting the term 2(f')^2.

Watch the worked solution to Problem 8