Paul's Online Notes
Paul's Online Notes
Home / Calculus I / Derivatives / Higher Order Derivatives
Show Mobile Notice Show All Notes Hide All Notes
Mobile Notice
You appear to be on a device with a "narrow" screen width (i.e. you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best viewed in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (you should be able to scroll/swipe to see them) and some of the menu items will be cut off due to the narrow screen width.

Section 3.12 : Higher Order Derivatives

Let’s start this section with the following function.

\[f\left( x \right) = 5{x^3} - 3{x^2} + 10x - 5\]

By this point we should be able to differentiate this function without any problems. Doing this we get,

\[f'\left( x \right) = 15{x^2} - 6x + 10\]

Now, this is a function and so it can be differentiated. Here is the notation that we’ll use for that, as well as the derivative.

\[f''\left( x \right) = {\left( {f'\left( x \right)} \right)^\prime } = 30x - 6\]

This is called the second derivative and \(f'\left( x \right)\) is now called the first derivative.

Again, this is a function, so we can differentiate it again. This will be called the third derivative. Here is that derivative as well as the notation for the third derivative.

\[f'''\left( x \right) = {\left( {f''\left( x \right)} \right)^\prime } = 30\]

Continuing, we can differentiate again. This is called, oddly enough, the fourth derivative. We’re also going to be changing notation at this point. We can keep adding on primes, but that will get cumbersome after a while.

\[{f^{(4)}}\left( x \right) = {\left( {f'''\left( x \right)} \right)^\prime } = 0\]

This process can continue but notice that we will get zero for all derivatives after this point. This set of derivatives leads us to the following fact about the differentiation of polynomials.

Fact

If \(p\left( x \right)\) is a polynomial of degree \(n\) (i.e. the largest exponent in the polynomial) then,

\[{p^{\left( k \right)}}\left( x \right) = 0\hspace{0.25in}\hspace{0.25in}{\mbox{for }}k \ge n + 1\]

We will need to be careful with the “non-prime” notation for derivatives. Consider each of the following.

\[\begin{align*}{f^{\left( 2 \right)}}\left( x \right) & = f''\left( x \right)\\ {f^2}\left( x \right) & = {\left[ {f\left( x \right)} \right]^2}\end{align*}\]

The presence of parenthesis in the exponent denotes differentiation while the absence of parenthesis denotes exponentiation.

Collectively the second, third, fourth, etc. derivatives are called higher order derivatives.

Let’s take a look at some examples of higher order derivatives.

Example 1 Find the first four derivatives for each of the following.
  1. \(R\left( t \right) = 3{t^2} + 8{t^{\frac{1}{2}}} + {{\bf{e}}^t}\)
  2. \(y = \cos x\)
  3. \(f\left( y \right) = \sin \left( {3y} \right) + {{\bf{e}}^{ - 2y}} + \ln \left( {7y} \right)\)
Show All Solutions Hide All Solutions
a \(R\left( t \right) = 3{t^2} + 8{t^{\frac{1}{2}}} + {{\bf{e}}^t}\) Show Solution

There really isn’t a lot to do here other than do the derivatives.

\[\begin{align*}R'\left( t \right) & = 6t + 4{t^{ - \,\frac{1}{2}}} + {{\bf{e}}^t}\\ R''\left( t \right) & = 6 - 2{t^{ - \,\frac{3}{2}}} + {{\bf{e}}^t}\\ R'''\left( t \right) & = 3{t^{ - \,\frac{5}{2}}} + {{\bf{e}}^t}\\ {R^{(4)}}\left( t \right) & = - \frac{{15}}{2}{t^{ - \,\frac{7}{2}}} + {{\bf{e}}^t}\end{align*}\]

Notice that differentiating an exponential function is very simple. It doesn’t change with each differentiation.


b \(y = \cos x\) Show Solution

Again, let’s just do some derivatives.

\[\begin{align*}y & = \cos x\\ y' & = - \sin x\\ y'' & = - \cos x\\ y''' & = \sin x\\ {y^{\left( 4 \right)}} & = \cos x\end{align*}\]

Note that cosine (and sine) will repeat every four derivatives. The other four trig functions will not exhibit this behavior. You might want to take a few derivatives to convince yourself of this.


c \(f\left( y \right) = \sin \left( {3y} \right) + {{\bf{e}}^{ - 2y}} + \ln \left( {7y} \right)\) Show Solution

In the previous two examples we saw some patterns in the differentiation of exponential functions, cosines and sines. We need to be careful however since they only work if there is just a \(t\) or an \(x\) in the argument. This is the point of this example. In this example we will need to use the chain rule on each derivative.

\[\begin{align*}f'\left( y \right) & = 3\cos \left( {3y} \right) - 2{{\bf{e}}^{ - 2y}} + \frac{1}{y} = 3\cos \left( {3y} \right) - 2{{\bf{e}}^{ - 2y}} + {y^{ - 1}}\\ f''\left( y \right) & = - 9\sin \left( {3y} \right) + 4{{\bf{e}}^{ - 2y}} - {y^{ - 2}}\\ f'''\left( y \right) & = - 27\cos \left( {3y} \right) - 8{{\bf{e}}^{ - 2y}} + 2{y^{ - 3}}\\ {f^{\left( 4 \right)}}\left( y \right) & = 81\sin \left( {3y} \right) + 16{{\bf{e}}^{ - 2y}} - 6{y^{ - 4}}\end{align*}\]

So, we can see with slightly more complicated arguments the patterns that we saw for exponential functions, sines and cosines no longer completely hold.

Let’s do a couple more examples to make a couple of points.

Example 2 Find the second derivative for each of the following functions.
  1. \(Q\left( t \right) = \sec \left( {5t} \right)\)
  2. \(g\left( w \right) = {{\bf{e}}^{1 - 2{w^3}}}\)
  3. \(f\left( t \right) = \ln \left( {1 + {t^2}} \right)\)
Show All Solutions Hide All Solutions
a \(Q\left( t \right) = \sec \left( {5t} \right)\) Show Solution

Here’s the first derivative.

\[Q'\left( t \right) = 5\sec \left( {5t} \right)\tan \left( {5t} \right)\]

Notice that the second derivative will now require the product rule.

\[\begin{align*}Q''\left( t \right) & = 25\sec \left( {5t} \right)\tan \left( {5t} \right)\tan \left( {5t} \right) + 25\sec \left( {5t} \right){\sec ^2}\left( {5t} \right)\\ & = 25\sec \left( {5t} \right){\tan ^2}\left( {5t} \right) + 25{\sec ^3}\left( {5t} \right)\end{align*}\]

Notice that each successive derivative will require a product and/or chain rule and that as noted above this will not end up returning back to just a secant after four (or another other number for that matter) derivatives as sine and cosine will.


b \(g\left( w \right) = {{\bf{e}}^{1 - 2{w^3}}}\) Show Solution

Again, let’s start with the first derivative.

\[g'\left( w \right) = - 6{w^2}{{\bf{e}}^{1 - 2{w^3}}}\]

As with the first example we will need the product rule for the second derivative.

\[\begin{align*}g''\left( w \right) & = - 12w{{\bf{e}}^{1 - 2{w^3}}} - 6{w^2}\left( { - 6{w^2}} \right){{\bf{e}}^{1 - 2{w^3}}}\\ & = - 12w{{\bf{e}}^{1 - 2{w^3}}} + 36{w^4}{{\bf{e}}^{1 - 2{w^3}}}\end{align*}\]

c \(f\left( t \right) = \ln \left( {1 + {t^2}} \right)\) Show Solution

Same thing here.

\[f'\left( t \right) = \frac{{2t}}{{1 + {t^2}}}\]

The second derivative this time will require the quotient rule.

\[\begin{align*}f''\left( t \right) & = \frac{{2\left( {1 + {t^2}} \right) - \left( {2t} \right)\left( {2t} \right)}}{{{{\left( {1 + {t^2}} \right)}^2}}}\\ & = \frac{{2 - 2{t^2}}}{{{{\left( {1 + {t^2}} \right)}^2}}}\end{align*}\]

As we saw in this last set of examples we will often need to use the product or quotient rule for the higher order derivatives, even when the first derivative didn’t require these rules.

Let’s work one more example that will illustrate how to use implicit differentiation to find higher order derivatives.

Example 3 Find \(y''\) for \[{x^2} + {y^4} = 10\]
Show Solution

Okay, we know that in order to get the second derivative we need the first derivative and in order to get that we’ll need to do implicit differentiation. Here is the work for that.

\[\begin{align*}2x + 4{y^3}y' & = 0\\ y' & = - \frac{x}{{2{y^3}}}\end{align*}\]

Now, this is the first derivative. We get the second derivative by differentiating this, which will require implicit differentiation again.

\[\begin{align*}y'' & = {\left( { - \frac{x}{{2{y^3}}}} \right)^\prime }\\ & = - \frac{{2{y^3} - x\left( {6{y^2}y'} \right)}}{{{{\left( {2{y^3}} \right)}^2}}}\\ & = - \frac{{2{y^3} - 6x{y^2}y'}}{{4{y^6}}}\\ & = - \frac{{y - 3xy'}}{{2{y^4}}}\end{align*}\]

This is fine as far as it goes. However, we would like there to be no derivatives in the answer. We don’t, generally, mind having \(x\)’s and/or \(y\)’s in the answer when doing implicit differentiation, but we really don’t like derivatives in the answer. We can get rid of the derivative however by acknowledging that we know what the first derivative is and substituting this into the second derivative equation. Doing this gives,

\[\begin{align*}y'' & = - \frac{{y - 3xy'}}{{2{y^4}}}\\ & = - \frac{{y - 3x\left( { - \frac{x}{{2{y^3}}}} \right)}}{{2{y^4}}}\\ & = - \frac{{y + \frac{3}{2}{x^2}{y^{ - 3}}}}{{2{y^4}}}\end{align*}\]

Now that we’ve found some higher order derivatives we should probably talk about an interpretation of the second derivative.

If the position of an object is given by \(s\left( t \right)\) we know that the velocity is the first derivative of the position.

\[v\left( t \right) = s'\left( t \right)\]

The acceleration of the object is the first derivative of the velocity, but since this is the first derivative of the position function we can also think of the acceleration as the second derivative of the position function.

\[a\left( t \right) = v'\left( t \right) = s''\left( t \right)\]

Alternate Notation

There is some alternate notation for higher order derivatives as well. Recall that there was a fractional notation for the first derivative.

\[f'\left( x \right) = \frac{{df}}{{dx}}\]

We can extend this to higher order derivatives.

\[f''\left( x \right) = \frac{{{d^2}f}}{{d{x^2}}}\hspace{0.25in}\hspace{0.25in}f'''\left( x \right) = \frac{{{d^3}f}}{{d{x^3}}}\hspace{0.25in}\hspace{0.25in}etc.\]