<< Hide Menu

📚

 > 

♾️ 

 > 

🤙🏽

3.6 Calculating Higher-Order Derivatives

1 min readjune 18, 2024

3.6 Calculating Higher-Order Derivatives

Welcome back to AP Calculus with Fiveable! You’re on the last key topic of unit 3, pat yourself on the back. 🥳

✏️ Higher-Order Derivatives

The term “higher-order derivative” may seem intimidating at first, don’t you think?

Fear not! This simply means that we can take the first derivative, second derivative, third derivative, and so on of a function. This is useful because graphically and analytically, first and second derivatives can provide us with all sorts of helpful information. 〽️

🔄 The first derivative of a function tells us where f(x) has a relative minimum or maximum, because the slope, f’(x), is equal to zero.

🔀 The second derivative of a function provides us with information about the concavity of a function by allowing us to find points of inflection, the location where f(x) changes from concave up to concave down and vice versa.

We can denote the second-order derivative using any of the following notation below:

f(x),y,d2ydx2f''(x),y'', \frac{d^2y}{dx^2}

Similarly, we can denote higher-order derivatives using the following notation:

fn(x),dnydxnf^n(x), \frac{d^ny}{dx^n}

Now that we know what they are, how exactly do we calculate higher-order derivatives (we’ll call them HODs from this point onwards for convenience)?

🧮 Calculating Higher-Order Derivatives: A Step-by-Step Guide

🌶️ Key Takeaway: Calculating second, third, fourth, and nth derivatives down the road follows the same process as taking the first derivative of f(x)! With the second derivative, however, we’ll take the derivative of f’(x). With the third derivative, we’ll take the derivative of f’’(x). Notice the pattern?

Let’s work through an example! Say, we’re looking at a function f(x) below:

f(x)=23x3+4x2+3x1f(x)=\frac{2}{3}x^3+4x^2+3x-1

Using the Power Rule, our handy dandy best friend from Unit 2 when we started learning differentiation, we find the first derivative—f’(x)—of our function f(x):

f(x)=2x2+8x+3f'(x)=2x^2+8x+3

As mentioned earlier, the second derivative of f(x) is the same thing as the derivative of f’(x)! That means we can use the Power Rule on f’(x)…

f(x)=4x+8f''(x)=4x+8

And if we keep going: third derivative = derivative of f’’(x) = second derivative of f’(x), whichever makes more sense to understand:

f(x)=4f'''(x)=4
f4(x)=0f^4(x)=0

Since f’’’(x) is a constant, the fourth derivative onwards of f(x) will be 0. In a classroom setting, you will typically be asked to find the first, second, or even third derivatives of a given function.

Now that we’ve walked through the general process of finding HODs, let’s go through some practice questions! 😌


💭 Higher-Order Derivatives: Let’s Practice!

Prompt: For each of the following functions f(x), find the second derivative f’’(x)!

1️⃣ Set 1: Quick Power Rules and Trig

Example 1:****

f(x)=6x42x2+5x+1f(x)=6x^4−2x^2+5x+1

First, solving for first derivative via Power Rule where 6 * 4 = 24, -2 * 2 = -4, and 5 * 1 = 5:

f(x)=24x34x+5f'(x)=24x^3-4x+5

Rinsing and repeating the Power Rule, this time for f’(x), for the second derivative where 24 * 3 = 72 and -4 * 1 = -4:

f(x)=72x24f''(x)=72x^2-4

…and we’re done! Example 2:****

f(x)=sin(x)f(x)=sin(x)

Trigonometric functions are among the handful of functions in which you just have to know their respective derivatives. When in doubt, feel free to check out our study guide on Trig Function Derivatives as a refresher. 💫

In our case, sin(x) and cos(x) happen to alternate with each other! Whenever you change from cosine to sine, don’t forget to change the sign, so if we’re deriving cos(x), we’ll get -sin(x), and if we’re deriving -cos(x), we’ll get sin(x).

On the other hand, we’ll keep the sign the same whenever we derive sin(x)—which is the case for our first derivative:

f(x)=cos(x)f'(x)=cos(x)

As briefly mentioned already, deriving cos(x) means that we’ll have to change signs. Right now, we have a positive term, which then makes the derivative term a negative one! 👌

f(x)=sin(x)f''(x)=-sin(x)

Example 3:****

f(x)=cos(2x)f(x)=cos(2x)

In this example, we’re still working with trigonometric functions, but we also have a composite function here! As a refresher, composite functions are functions inside of other functions. This is where we see “inner” and “outer” functions (sometimes notated as f(g(x)), but we’ll write as O(I(x)) to avoid confusing the Fs).

Here, our outer function (O(x)) is cos(x), and our inner function (I(x)) is 2x. When working with composite functions, we’ll have to use the Chain Rule: ⛓️

ddx[O(I(x))]=O(I(x))I(x)\frac{d}{dx}[O(I(x))]=O'(I(x)) *I'(x)

To set things up:

O(x)=cos(x)O(x)=sin(x)O(x)=cos(x) → O'(x)=-sin(x)
I(x)=2xI(x)=2I(x)=2x→I'(x)=2

Plugging this above:

f(x)=ddx[O(I(x))]=sin(2x)2=2sin(2x)f'(x)=\frac{d}{dx}[O(I(x))]=-sin(2x)*2=-2sin(2x)

We’ll repeat this process to find the second derivative. This time, our O(x) = -2sin(x) and I(x) = 2x.

O(x)=2cos(x),I(x)=2O'(x)=-2cos(x) , I'(x)=2

Again:

f(x)=ddx[O(I(x))]=2cos(2x)2=4cos(2x)f''(x)=\frac{d}{dx}[O(I(x))]=-2cos(2x)*2=-4cos(2x)

2️⃣ Set 2: Chain and Product Rule Galore

Need more practice with the Chain Rule? Worry not—here’s some more problems to work with! 🧠 Example 4:****

f(x)=(5x4+2x23x+9)2f(x)=(5x^4+2x^2-3x+9)^2

Our outer function, O(x), will be x²; our inner function, I(x), will be the four terms inside the parenthesis.

f(x)=ddx[O(I(x))]=O(I(x))I(x)f'(x)=\frac{d}{dx}[O(I(x))]=O'(I(x)) *I'(x)

Using Power Rule for O(x) and I(x):

O(x)=x2O(x)=2xO(x) = x^2 →O'(x)=2x
I(x)=5x4+2x23x+9I(x)=20x3+4x3I(x)=5x^4+2x^2-3x+9→I'(x)=20x^3+4x-3

Then plugging back into the Chain Rule recipe:

f(x)=2(5x4+2x23x+9)(20x3+4x3)=f'(x)=2(5x^4+2x^2-3x+9) *(20x^3+4x-3)=
f(x)=(10x4+4x26x+18)(20x3+4x3)f'(x)=(10x^4+4x^2-6x+18)*(20x^3+4x-3)

This sounds like a lot of work, don’t you think? Instead of multiplying out every single term, we can use the Product Rule, treating the two parenthesis terms (we’ll call them L(x) and R(x) to represent “left” and “right” terms, respectively) separately, to make our lives easier!

(L(x)R(x))=L(x)R(x)+L(x)R(x)(L(x) * R(x))' = L'(x) * R(x) + L(x) * R'(x)
L(x)=10x4+4x26x+18L(x)=40x3+8x6L(x) = 10x^4+4x^2-6x+18→L'(x)=40x^3+8x-6
R(x)=20x3+4x3R(x)=60x2+4R(x)=20x^3+4x-3→R'(x)=60x^2+4

Putting them all together:

f(x)=(40x3+8x6)(20x3+4x3)+(10x4+4x26x+18)(60x2+4)f''(x)=(40x^3+8x-6)(20x^3+4x-3)+(10x^4+4x^2-6x+18)(60x^2+4)

Quite honestly, you can keep the terms as is, but if you want to expand them for fun and practice, you’ll get the following answer:

f(x)=1400x6+600x4600x3+1128x272x+90f''(x)=1400x^6+600x^4-600x^3+1128x^2-72x+90

Phew! 🔥 Example 5:****

f(x)=5x3+81x2f(x)=\sqrt{5x^3+81x^2}

Don’t let the square root over the whole expression fool you! We can rewrite f(x) as:

f(x)=(5x3+81x2)12f(x)=(5x^3+81x^2)^\frac{1}{2}

Now that f(x) looks more familiar and approachable, we can do the usual Chain Rule shenanigans:

O(x)=x12O(x)=12x12O(x)=x^\frac{1}{2}→O'(x)=\frac{1}{2}x^\frac{-1}{2}
I(x)=5x3+81x2I(x)=15x2+162xI(x)=5x^3+81x^2→I'(x)=15x^2+162x
f(x)=12(5x3+81x2)12(15x2+162x)f'(x)=\frac{1}{2}\left(5x^3+81x^2\right)^{-\frac{1}{2}}\cdot \left(15x^2+162x\right)

Let’s now use Product Rule! To derive the left term, we’ll repeat the Chain Rule process above. The right term is more straightforward as we’ll only do classic ol’ Power Rule. Try this out on your own, and you should get the following:

L(x)=12(5x3+81x2)12L(x)=14(5x3+81x2)32(15x2+162)L(x)=\frac{1}{2}(5x^3+81x^2)^\frac{-1}{2}→L'(x)=\frac{-1}{4}(5x^3+81x^2)^\frac{-3}{2}*(15x^2+162)
R(x)=15x2+162xR(x)=30x+162R(x)=15x^2+162x → R'(x)=30x+162

Tying it all together:

f(x)=(L(x)R(x))=L(x)R(x)+L(x)R(x)f''(x)=(L(x) * R(x))' = L'(x) * R(x) + L(x) * R'(x)
f(x)=15(5x+108)4(5x+81)32f''(x)=\frac{15(5x+108)}{4(5x+81)^\frac{3}{2}}

Again, feel free to leave your answer in unsimplified form; what matters most when working through these examples is that you’re aware of which rules to apply depending on the type of function we’re working with! ⭐

3️⃣ Set 3: Rational Functions and Natural Logs

Example 6:****

f(x)=tan(3x)+ln(x)f(x)=tan(3x)+ln(x)

The derivative of tan(x) is sec²(x), while the derivative of ln(x) is 1/x. Adjusting due to Chain Rule for our first term gives us the following first derivative:

f(x)=(sec2(3x)3)+1x=3sec2(3x)+1xf'(x)=(sec^2(3x)*3)+\frac{1}{x}=3sec^2(3x)+\frac{1}{x}

This time, we can write the equation as follows to make the problem more Chain Rule-friendly in our brains:

f(x)=3sec(3x)2+x1f'(x)=3sec(3x)^2+x^{-1}

The derivative of sec(x) is sec(x)tan(x). Let’s apply Chain and/or Power Rule to the rest of the terms to get our final answer:

f(x)=18sec3(3x)tan(3x)1x2f''(x)=18sec^3(3x)tan(3x)-\frac{1}{x^2}

Example 7:****

f(x)=x2x+1f(x)=\frac{x^2}{x+1}

Since we’re working with the quotient of two functions, we can use the Quotient Rule:

ddx[N(x)D(x)]=D(x)N(x)N(x)D(x)(D(x))2\frac{d}{dx}[\frac{N(x)}{D(x)}]=\frac{D(x)N'(x)-N(x)D'(x)}{(D(x))^2}
f(x)=2x(x+1)1x2(x+1)2=x2+2x(x+1)2f'(x)=\frac{2x(x+1)-1*x^2}{(x+1)^2}=\frac{x^2+2x}{(x+1)^2}

Use the Quotient Rule again (and the Chain Rule when deriving the denominator):

f(x)=(2x+2)(x+1)22(x+1)(x2+2x)((x+1)2)2=2(x+1)3f''(x)=\frac{(2x+2)(x+1)^2-2(x+1)(x^2+2x)}{((x+1)^2)^2}=\frac{2}{(x+1)^3}

And that’s a wrap - hopefully, this helps you feel more confident calculating higher-order derivatives! While you may find that some of the examples took more work to solve, higher-order derivative problems provide much more practice in differentiation as a whole. 🥂