Educerie

Educerie · AP · Calculus

AP Calculus AB and BC 3.6

Calculating Higher-Order Derivatives

How do you differentiate a function that is not written in a simple, ready-made form, one that is nested, defined implicitly, or defined as an inverse?

What you will learn

  • Understand the second derivative as the derivative of f prime and as a rate of a rate
  • Know the notations and that d squared y over dx squared is not the square of dy over dx
  • Understand that a second derivative of a product or composite needs the rules again
  • Know that the sign of f double prime gives concavity

You must be able to

  1. Differentiate twice, including products and chains
  2. Find the second derivative of an implicit curve and simplify with the curve equation
  3. Find a second derivative of a composite from values
  4. State acceleration with units
  5. Say what the sign of the second derivative means

In the exam. Section I multiple choice: f′′(x)f''(x) of a function that needs the product or chain rule, a second derivative at a point, d2ydx2\dfrac{d^{2}y}{dx^{2}} of an implicit curve, and a table where the second derivative of a composite is built from given values. Section II uses f′′f'' for concavity, for acceleration and for second-derivative tests in Units 4 and 5, so the calculation here is where those points start. Dropping the chain rule or the product rule in a second derivative is a regular loss.

1Notation

For y=f(x)y = f(x), the second derivative is written in three ways.

d2ydx2=f′′(x)=y′′\frac{d^{2}y}{dx^{2}} = f''(x) = y''
  • The first form comes from ddx(dydx)\dfrac{d}{dx}\left(\dfrac{dy}{dx}\right). It is read "d squared y by dx squared".
  • d2ydx2\dfrac{d^{2}y}{dx^{2}} is not (dydx)2\left(\dfrac{dy}{dx}\right)^{2}. The two are different things.
  • The third derivative is d3ydx3\dfrac{d^{3}y}{dx^{3}}, f′′′(x)f'''(x) or y′′′y'''.
  • The nnth derivative is dnydxn\dfrac{d^{n}y}{dx^{n}}. It can also be written f(n)(x)f^{(n)}(x), with the number in brackets, because a plain fnf^{n} would look like a power.

2Differentiating again

Take the derivative once, write it as a clean function, and differentiate again.

A polynomial. f(x)=x4−3x2f(x) = x^{4} - 3x^{2}.

f′(x)=4x3−6xf'(x) = 4x^{3} - 6xf′′(x)=12x2−6f''(x) = 12x^{2} - 6f′′′(x)=24xf'''(x) = 24xf(4)(x)=24and every derivative after that is 0f^{(4)}(x) = 24 \qquad \textcolor{#838c91}{\text{and every derivative after that is 0}}

Sine and cosine repeat in a cycle of four.

ddxsin⁡x=cos⁡x,d2dx2sin⁡x=−sin⁡x,d3dx3sin⁡x=−cos⁡x,d4dx4sin⁡x=sin⁡x\frac{d}{dx}\sin x = \cos x,\quad \frac{d^{2}}{dx^{2}}\sin x = -\sin x,\quad \frac{d^{3}}{dx^{3}}\sin x = -\cos x,\quad \frac{d^{4}}{dx^{4}}\sin x = \sin x

An exponential with an inner factor. For y=e2xy = e^{2x}, each derivative brings a factor 2.

y′=2e2x,y′′=4e2x,y′′′=8e2xy' = 2e^{2x},\quad y'' = 4e^{2x},\quad y''' = 8e^{2x}

The natural log. y=ln⁡xy = \ln x.

y′=1x,y′′=−1x2,y′′′=2x3y' = \frac{1}{x},\quad y'' = -\frac{1}{x^{2}},\quad y''' = \frac{2}{x^{3}}

A product that repeats a pattern. f(x)=x exf(x) = x\,e^{x}.

f′(x)=ex+x ex=(x+1)exf'(x) = e^{x} + x\,e^{x} = (x + 1)e^{x}f′′(x)=ex+(x+1)ex=(x+2)exf''(x) = e^{x} + (x + 1)e^{x} = (x + 2)e^{x}
  • Each differentiation adds 1 to the bracket. The next one would give (x+3)ex(x + 3)e^{x}.
  • A pattern like this is a way to check your work, and it is also how you find a high-order derivative without doing every step.

3A second derivative that needs the product and chain rules

This is where marks are lost. Do the first derivative completely and tidy it before differentiating again. When the first derivative is a product, differentiate it as a product.

Product then product. f(x)=x2e3xf(x) = x^{2}e^{3x}.

f′(x)=2x e3x+3x2e3xproduct rule; chain rule on e3xf'(x) = 2x\,e^{3x} + 3x^{2}e^{3x} \qquad \textcolor{#838c91}{\text{product rule; chain rule on }e^{3x}}f′′(x)=(2e3x+6x e3x)+(6x e3x+9x2e3x)product rule on each term=e3x(9x2+12x+2)\begin{aligned}f''(x) &= \bigl(2e^{3x} + 6x\,e^{3x}\bigr) + \bigl(6x\,e^{3x} + 9x^{2}e^{3x}\bigr) && \textcolor{#838c91}{\text{product rule on each term}} \\[6pt] &= e^{3x}\bigl(9x^{2} + 12x + 2\bigr)\end{aligned}

Chain rule inside a product. y=sin⁡(2x2)y = \sin(2x^{2}).

y′=cos⁡(2x2)⋅4x=4xcos⁡(2x2)y' = \cos(2x^{2})\cdot 4x = 4x\cos(2x^{2})y′′=4cos⁡(2x2)+4x⋅(−sin⁡(2x2))⋅4x=4cos⁡(2x2)−16x2sin⁡(2x2)y'' = 4\cos(2x^{2}) + 4x\cdot\bigl(-\sin(2x^{2})\bigr)\cdot 4x = 4\cos(2x^{2}) - 16x^{2}\sin(2x^{2})

The first derivative is a product 4x4x times cos⁡(2x2)\cos(2x^{2}). The cosine needs its own chain rule.

A power and a log.

y=(2x+1)5  ⇒  y′=10(2x+1)4  ⇒  y′′=80(2x+1)3y = (2x + 1)^{5} \;\Rightarrow\; y' = 10(2x + 1)^{4} \;\Rightarrow\; y'' = 80(2x + 1)^{3}y=ln⁡(1+x2)  ⇒  y′=2x1+x2  ⇒  y′′=2(1+x2)−2x⋅2x(1+x2)2=2−2x2(1+x2)2y = \ln(1 + x^{2}) \;\Rightarrow\; y' = \frac{2x}{1 + x^{2}} \;\Rightarrow\; y'' = \frac{2(1 + x^{2}) - 2x\cdot 2x}{(1 + x^{2})^{2}} = \frac{2 - 2x^{2}}{(1 + x^{2})^{2}}y=arctan⁡2x  ⇒  y′=21+4x2  ⇒  y′′=−16x(1+4x2)2y = \arctan 2x \;\Rightarrow\; y' = \frac{2}{1 + 4x^{2}} \;\Rightarrow\; y'' = -\frac{16x}{(1 + 4x^{2})^{2}}
  • In the last line, write y′=2(1+4x2)−1y' = 2\bigl(1 + 4x^{2}\bigr)^{-1}, then differentiate with the chain rule.
  • A second derivative is a derivative, so the answer need not be simplified unless the question asks. But simplifying helps if you must find where y′′=0y'' = 0.

4A second derivative from tabulated values

Write the first derivative with the right rule, then differentiate it with the same rules.

For h(x)=f(g(x))h(x) = f(g(x)):

h′(x)=f′(g(x))⋅g′(x)h'(x) = f'(g(x))\cdot g'(x)h′′(x)=f′′(g(x))⋅[g′(x)]2+f′(g(x))⋅g′′(x)product rule on h’; chain rule on f’(g(x))h''(x) = f''(g(x))\cdot\bigl[g'(x)\bigr]^{2} + f'(g(x))\cdot g''(x) \qquad \textcolor{#838c91}{\text{product rule on h'; chain rule on f'(g(x))}}

Example (invented). g(1)=2g(1) = 2, g′(1)=3g'(1) = 3, g′′(1)=−1g''(1) = -1, f′(2)=4f'(2) = 4 and f′′(2)=5f''(2) = 5.

h′′(1)=f′′(g(1)) [g′(1)]2+f′(g(1)) g′′(1)=f′′(2)(3)2+f′(2)(−1)=5(9)−4=41h''(1) = f''(g(1))\,\bigl[g'(1)\bigr]^{2} + f'(g(1))\,g''(1) = f''(2)(3)^{2} + f'(2)(-1) = 5(9) - 4 = 41
  • The factor g′g' appears squared in the first term. The chain rule is applied twice: once in h′h', and again when f′(g(x))f'(g(x)) is differentiated.
  • Every piece is evaluated at the right place: f′′f'' and f′f' at g(1)=2g(1) = 2, and g′g' and g′′g'' at 1.

5Implicit curves: d2ydx2\dfrac{d^{2}y}{dx^{2}}

Differentiate implicitly once to get dydx\dfrac{dy}{dx}. Then differentiate that expression with respect to xx, keeping the chain factor on each yy. Finally, replace dydx\dfrac{dy}{dx} by its own expression.

Example: x2+4y2=20x^{2} + 4y^{2} = 20.

2x+8ydydx=0  ⇒  dydx=−x4y2x + 8y\frac{dy}{dx} = 0 \;\Rightarrow\; \frac{dy}{dx} = -\frac{x}{4y}d2ydx2=−4y⋅1−x⋅4dydx(4y)2quotient rule; the derivative of 4y is 4 dy/dx=−y−xdydx4y2=−y+x24y4y2replace dy/dx by -x/(4y)=−4y2+x216y3=−2016y3=−54y3x2+4y2=20 on the curve\begin{aligned}\frac{d^{2}y}{dx^{2}} &= -\frac{4y\cdot 1 - x\cdot 4\dfrac{dy}{dx}}{(4y)^{2}} && \textcolor{#838c91}{\text{quotient rule; the derivative of 4y is 4 dy/dx}} \\[6pt] &= -\frac{y - x\dfrac{dy}{dx}}{4y^{2}} \\[6pt] &= -\frac{y + \dfrac{x^{2}}{4y}}{4y^{2}} && \textcolor{#838c91}{\text{replace dy/dx by -x/(4y)}} \\[6pt] &= -\frac{4y^{2} + x^{2}}{16y^{3}} = -\frac{20}{16y^{3}} = -\frac{5}{4y^{3}} && \textcolor{#838c91}{x^{2} + 4y^{2} = 20\text{ on the curve}}\end{aligned}

At the point (2,2)(2, 2), which is on the curve since 4+16=204 + 16 = 20:

d2ydx2=−54(8)=−532\frac{d^{2}y}{dx^{2}} = -\frac{5}{4(8)} = -\frac{5}{32}
  • The last simplification uses the equation of the curve, which is allowed because every point you care about is on it.
  • The sign tells you the concavity at the point: −532-\dfrac{5}{32} is negative, so the curve is concave down there.

A shorter case: xy=6xy = 6.

y+xdydx=0  ⇒  dydx=−yxy + x\frac{dy}{dx} = 0 \;\Rightarrow\; \frac{dy}{dx} = -\frac{y}{x}d2ydx2=−xdydx−yx2=−−y−yx2=2yx2x dydx=−y\frac{d^{2}y}{dx^{2}} = -\frac{x\frac{dy}{dx} - y}{x^{2}} = -\frac{-y - y}{x^{2}} = \frac{2y}{x^{2}} \qquad \textcolor{#838c91}{x\,\dfrac{dy}{dx} = -y}

At (2,3)(2, 3) this gives 64=32\dfrac{6}{4} = \dfrac{3}{2}. Check by solving: y=6xy = \dfrac{6}{x}, y′′=12x3y'' = \dfrac{12}{x^{3}}, and at x=2x = 2 that is 32\dfrac{3}{2}.

6What the second derivative means

  • A rate of a rate. f′′f'' is the rate of change of f′f'.
    • If s(t)s(t) is a position in meters, s′(t)s'(t) is the velocity in meters per second and s′′(t)s''(t) is the acceleration in meters per second squared.
    • The unit of f′′f'' is the unit of ff divided by the unit of xx, twice.
  • Concavity. Figure 1 shows f(x)=x3−3x2+2f(x) = x^{3} - 3x^{2} + 2, where f′′(x)=6x−6f''(x) = 6x - 6.
    • For x<1x < 1, f′′<0f'' < 0: the slope is decreasing and the graph bends downwards (concave down).
    • For x>1x > 1, f′′>0f'' > 0: the slope is increasing and the graph bends upwards (concave up).
    • At x=1x = 1, f′′f'' changes sign and the concavity changes.
  • From the graph of f′f'. The second derivative is the slope of the graph of f′f'. If the graph of f′f' falls from left to right, f′′<0f'' < 0.
Graph of f(x) = x cubed minus 3 x squared plus 2. To the left of x = 1 the graph bends downwards, concave down, where f'' is negative. To the right it bends upwards, concave up, where f'' is positive. The bend changes at x = 1 2 3 −2 2 4 y x x = 1 f'' < 0 f'' > 0
Figure 1 · f(x) = x³ − 3x² + 2: f'' is negative where the graph bends down and positive where it bends up
  • Setting f′′(x)=0f''(x) = 0 only finds a candidate. A point of inflection needs a sign change in f′′f'' as well. Unit 5 uses this for justifications.
  • Example (invented): s(t)=t3−6t2+9ts(t) = t^{3} - 6t^{2} + 9t meters at tt seconds. Then s′(t)=3t2−12t+9s'(t) = 3t^{2} - 12t + 9 and s′′(t)=6t−12s''(t) = 6t - 12. At t=3t = 3, the acceleration is 66 meters per second squared.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.