Math Core

Lesson 3.5 · Composite, Implicit and Inverse Functions

Higher-order derivatives

The derivative of a function is itself a function, so you can differentiate it again. The result, the second derivative, tells you how the slope is changing. It measures acceleration in motion problems and, in Unit 5, the bending (concavity) of a graph. This lesson is about computing second and higher derivatives quickly and accurately, including for curves defined implicitly.

Notation

Start with y=f(x)y = f(x). Differentiating repeatedly gives:

derivativeprime notationLeibniz notation
firstf′(x)f'(x) or y′y'dydx\dfrac{dy}{dx}
secondf′′(x)f''(x) or y′′y''d2ydx2\dfrac{d^2y}{dx^2}
thirdf′′′(x)f'''(x) or y′′′y'''d3ydx3\dfrac{d^3y}{dx^3}
nnthf(n)(x)f^{(n)}(x)dnydxn\dfrac{d^ny}{dx^n}

After three primes, switch to a number in parentheses: f(4)(x)f^{(4)}(x) is the fourth derivative. The parentheses matter, since f4(x)f^4(x) could be read as a power.

The Leibniz symbol d2ydx2\dfrac{d^2y}{dx^2} comes from applying ddx\dfrac{d}{dx} twice: ddx(dydx)\dfrac{d}{dx}\left(\dfrac{dy}{dx}\right).

Definition

Second derivative

The second derivative of ff is the derivative of f′f':

f′′(x)=ddx(f′(x)).f''(x) = \frac{d}{dx}\big(f'(x)\big).

It gives the instantaneous rate of change of the slope of ff.

Seeing the three graphs together

For f(x)=x3−3xf(x) = x^3 - 3x, the first derivative is f′(x)=3x2−3f'(x) = 3x^2 - 3 and the second is f′′(x)=6xf''(x) = 6x. In the graph below, notice that f′f' is zero exactly where ff has a horizontal tangent (x=±1x = \pm 1), and f′′f'' is zero where the slope of ff stops decreasing and starts increasing (x=0x = 0).

f(x) = x³ − 3x, its first derivative 3x² − 3, and its second derivative 6x.Open in grapher →

Computing higher derivatives

There's nothing new to learn: apply your rules again, simplifying between steps so the next derivative is easier.

Worked example: Polynomials and powers

Find f′′(x)f''(x) and f′′′(x)f'''(x) for f(x)=2x4−5x3+x−8f(x) = 2x^4 - 5x^3 + x - 8.

Solution.

f′(x)=8x3−15x2+1f′′(x)=24x2−30xf′′′(x)=48x−30.\begin{aligned} f'(x) &= 8x^3 - 15x^2 + 1 \\ f''(x) &= 24x^2 - 30x \\ f'''(x) &= 48x - 30. \end{aligned}

Each derivative lowers the degree of a polynomial by one, so f(5)(x)=0f^{(5)}(x) = 0 for this degree-4 polynomial.

Worked example: Chain rule, twice

Find d2ydx2\dfrac{d^2y}{dx^2} if y=sin⁡(3x)y = \sin(3x).

Solution. dydx=3cos⁡(3x)\dfrac{dy}{dx} = 3\cos(3x). Differentiate again, using the chain rule again:

d2ydx2=3⋅(−sin⁡(3x))⋅3=−9sin⁡(3x).\frac{d^2y}{dx^2} = 3 \cdot \big(-\sin(3x)\big) \cdot 3 = -9\sin(3x).

Notice that d2ydx2=−9y\dfrac{d^2y}{dx^2} = -9y. Each derivative brings out another factor of 3.

Worked example: Finding a pattern

Find f(35)(x)f^{(35)}(x) for f(x)=cos⁡xf(x) = \cos x.

Solution. The derivatives of cosine cycle with period 4:

cos⁡x  →  −sin⁡x  →  −cos⁡x  →  sin⁡x  →  cos⁡x  →  ⋯\cos x \;\to\; -\sin x \;\to\; -\cos x \;\to\; \sin x \;\to\; \cos x \;\to\; \cdots

Since 35=4⋅8+335 = 4 \cdot 8 + 3, the 35th derivative matches the 3rd: f(35)(x)=sin⁡xf^{(35)}(x) = \sin x.

Second derivatives of implicit curves

For an implicitly defined curve, dydx\dfrac{dy}{dx} usually contains yy. When you differentiate it again, every yy produces another dydx\dfrac{dy}{dx}, which you then replace with the expression you already found. This is a classic AP free-response task.

Implicit second derivatives

  1. Find dydx\dfrac{dy}{dx} by implicit differentiation.
  2. Differentiate dydx\dfrac{dy}{dx} with respect to xx (usually with the quotient rule), writing dydx\dfrac{dy}{dx} wherever a yy is differentiated.
  3. Substitute your expression for dydx\dfrac{dy}{dx} and simplify. Use the original equation if it helps.

If you only need a value at a point, you can plug in numbers right after step 2.

Worked example: Second derivative on a circle

For x2+y2=25x^2 + y^2 = 25, find d2ydx2\dfrac{d^2y}{dx^2} in terms of yy, then evaluate it at (3,4)(3, 4).

Solution. From the implicit differentiation lesson, dydx=−xy\dfrac{dy}{dx} = -\dfrac{x}{y}. Use the quotient rule:

d2ydx2=−y⋅1−xdydxy2=−y−x(−xy)y2=−y+x2yy2=−y2+x2y3=−25y3.\begin{aligned} \frac{d^2y}{dx^2} &= -\frac{y \cdot 1 - x\dfrac{dy}{dx}}{y^2} = -\frac{y - x\left(-\dfrac{x}{y}\right)}{y^2} \\ &= -\frac{y + \dfrac{x^2}{y}}{y^2} = -\frac{y^2 + x^2}{y^3} = -\frac{25}{y^3}. \end{aligned}

The last step used the original equation, x2+y2=25x^2 + y^2 = 25. At (3,4)(3, 4): d2ydx2=−2564\dfrac{d^2y}{dx^2} = -\dfrac{25}{64}.

Common mistake

When differentiating −xy-\dfrac{x}{y}, don't treat yy as a constant. The derivative of yy with respect to xx is dydx\dfrac{dy}{dx}, not 0. Also, d2ydx2\dfrac{d^2y}{dx^2} is not (dydx)2\left(\dfrac{dy}{dx}\right)^2.

Tip

To check an implicit second derivative, pick a point where you can also solve for yy explicitly. On the upper half of the circle, y=25−x2y = \sqrt{25 - x^2}; differentiating twice and plugging in x=3x = 3 gives −2564-\dfrac{25}{64} too.

Practice

Practice 1

Find f′′(x)f''(x) for f(x)=4x3−5x2+7xf(x) = 4x^3 - 5x^2 + 7x.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 2

Let f(x)=xf(x) = \sqrt{x}. Find f′′(4)f''(4).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

Find d2ydx2\dfrac{d^2y}{dx^2} if y=e−3xy = e^{-3x}.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 4

Find d3ydx3\dfrac{d^3y}{dx^3} if y=ln⁡xy = \ln x.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 5

(AP-style) If f(x)=xexf(x) = xe^x, then f′′(x)=f''(x) =

Practice 6

(AP-style) If f(x)=sin⁡xf(x) = \sin x, what is f(27)(x)f^{(27)}(x)?

Practice 7

The point (5,4)(5, 4) lies on the curve x2−y2=9x^2 - y^2 = 9. Find the value of d2ydx2\dfrac{d^2y}{dx^2} at (5,4)(5, 4).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.