# 2.3 Basic Differentiation Rules

The derivative is a powerful tool but is admittedly awkward given its reliance on limits. Fortunately, one thing mathematicians are good at is abstraction. For instance, instead of continually finding derivatives at a point, we abstracted and found the derivative function.

Let’s practice abstraction on linear functions, $y=mx+b$. What is $y\mkern 1.35mu ^{\prime}$? Without limits, recognize that linear functions are characterized by being functions with a constant rate of change (the slope). The derivative, $y\mkern 1.35mu ^{\prime}$, gives the instantaneous rate of change; with a linear function, this is constant, $m$. Thus $y\mkern 1.35mu ^{\prime}=m$.

Let’s abstract once more. Let’s find the derivative of the general quadratic function, $f(x)=ax^{2}+bx+c$. Using the definition of the derivative, we have:

 $\displaystyle f\,^{\prime}(x)$ $\displaystyle=\lim_{h\to 0}\frac{a(x+h)^{2}+b(x+h)+c-(ax^{2}+bx+c)}{h}$ $\displaystyle=\lim_{h\to 0}\frac{ah^{2}+2ahx+bh}{h}$ $\displaystyle=\lim_{h\to 0}(ah+2ax+b)$ $\displaystyle=2ax+b.$

So if $y=6x^{2}+11x-13$, we can immediately compute $y\mkern 1.35mu ^{\prime}=12x+11$.

In this section (and in some sections to follow) we will learn some of what mathematicians have already discovered about the derivatives of certain functions and how derivatives interact with arithmetic operations. We start with a theorem.

###### Theorem 2.3.1 Derivatives of Common Functions
 1.  Constant Rule: $\dfrac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}c\bigr{)}=0$, 2.  Power Rule: $\dfrac{\operatorname{d}\!}{\operatorname{d}\!x}\left(x^{n}\right)=nx^{n-1}$, where $c$ is a constant. where $n$ is any real number. 3.  $\dfrac{\operatorname{d}\!}{\operatorname{d}\!x}(\sin x)=\cos x$ 4.  $\dfrac{\operatorname{d}\!}{\operatorname{d}\!x}(\cos x)=-\sin x$ 5.  $\dfrac{\operatorname{d}\!}{\operatorname{d}\!x}\left(e^{x}\right)=e^{x}$ 6.  $\dfrac{\operatorname{d}\!}{\operatorname{d}\!x}(\ln x)=\dfrac{1}{x}$

This theorem starts by stating an intuitive fact: constant functions have a rate of change of zero, as they are constant. Therefore their derivative is 0. The proof is left as an exercise.

The theorem then states some fairly amazing things.

In Part 2, the Power Rule states that the derivatives of functions of the form $y=x^{n}$ where $\mathbf{n}$ is ANY real number are very straightforward: multiply by the power, then subtract 1 from the power. This allows us to differentiate Power Functions, Root Functions, and functions with irrational exponents. The work we have done so far only allows us to prove the Power Rule when $n$ is a non-negative integer, which is presented here. We will provide proofs for other values of $n$ as we add the necessary tools to our knowledge of calculus.

• Proof of Differentiation Power Rule when $n$ is a non-negative integer

If $n=0$, then $f(x)=x^{0}=1$ (except when $x=0$, when the expression is indeterminate). This means that

 $f\,^{\prime}(x)=\lim_{h\to 0}\frac{1-1}{h}=\lim_{h\to 0}\frac{0}{h}=0=0x^{0-1}$

as claimed. Now let $f(x)=x^{n}$, where $n\in\mathbb{Z}^{+}$. By the definition of derivative,

 $\displaystyle f\,^{\prime}(x)$ $\displaystyle=\lim_{h\to 0}\dfrac{(x+h)^{n}-x^{n}}{h}$ $\displaystyle=\lim_{h\to 0}\dfrac{(x+h)^{n}-x^{n}}{h}\qquad\text{\small use % the Binomial Theorem to expand (x+h)^{n}}$ $\displaystyle=\lim_{h\to 0}\dfrac{\binom{n}{0}x^{n}+\binom{n}{1}hx^{n-1}+% \binom{n}{2}h^{2}x^{n-2}+\dotsb+\binom{n}{n-1}h^{n-1}x+\binom{n}{n}h^{n}-x^{n}% }{h}$ $\displaystyle=\lim_{h\to 0}\dfrac{\binom{n}{1}hx^{n-1}+\binom{n}{2}h^{2}x^{n-2% }+\dotsb+\binom{n}{n-1}h^{n-1}x+\binom{n}{n}h^{n}}{h}$ $\displaystyle=\lim_{h\to 0}\dfrac{h\left[\binom{n}{1}x^{n-1}+\binom{n}{2}hx^{n% -2}+\dotsb+\binom{n}{n-1}h^{n-2}x+\binom{n}{n}h^{n-1}\right]}{h},\text{\small% \leavevmode\nobreak\ divide h}$ $\displaystyle=\lim_{h\to 0}\left[\dbinom{n}{1}x^{n-1}+\dbinom{n}{2}hx^{n-2}+% \dotsb+\dbinom{n}{n-1}h^{n-2}x+\dbinom{n}{n}h^{n-1}\right],$ $\displaystyle=nx^{n-1}\qquad\text{\small since }\dbinom{n}{1}=n\qed$

We proved Theorem 2.3.1 part 3 in Section 2.1 and part 4 is left as an exercise. In parts 5 and 6 we see something incredible about the functions $y=e^{x}$ and $y=\ln x$. We will use these rules freely, unfortunately their proofs will have to wait until we know a few more calculus techniques.

Let’s practice using this theorem.

###### Example 2.3.1 Using Theorem 2.3.1 to find, and use, derivatives

Let $f(x)=x^{3}$.

1. (a)

Find $f\,^{\prime}(x)$.

2. (b)

Find the equation of the line tangent to the graph of $f$ at $x=-1$.

3. (c)

Use the tangent line to approximate $(-1.1)^{3}$.

4. (d)

Sketch $f$, $f\,^{\prime}$ and the found tangent line on the same axis.

Solution

1. (a)

The Power Rule states that if $f(x)=x^{3}$, then $f\,^{\prime}(x)=3x^{2}$.

2. (b)

To find the equation of the line tangent to the graph of $f$ at $x=-1$, we need a point and the slope. The point is $(-1,f(-1))=(-1,-1)$. The slope is $f\,^{\prime}(-1)=3$. Thus the tangent line has equation $y=3(x-(-1))+(-1)=3x+2$.

margin: Figure 2.3.1: A graph of $f(x)=x^{3}$, along with its derivative $f\,^{\prime}(x)=3x^{2}$ and its tangent line at $x=-1$. Λ
3. (c)

We can use the tangent line to approximate $(-1.1)^{3}$ as $-1.1$ is close to $-1$. We have

 $(-1.1)^{3}\approx(-1)^{3}+3(-1.1-(-1))=-1+3(-.1)=-1.3.$

We can easily find the actual answer; $(-1.1)^{3}=-1.331$.

4. (d)

Theorem 2.3.1 gives useful information, but we will need much more. For instance, using the theorem, we can easily find the derivative of $y=x^{3}$, but it does not tell how to compute the derivative of $y=2x^{3}$, $y=x^{3}+\sin x$, nor $y=x^{3}\sin x$. The following theorem helps with the first two of these examples (the third is answered in the next section).

###### Theorem 2.3.2 Properties of the Derivative

Let $f$ and $g$ be differentiable on an open interval $I$ and let $c$ be a real number. Then:

1. (a)

Sum/Difference Rule:
$\displaystyle\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}f(x)\pm g(x% )\Bigr{)}=\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}f(x)\Bigr{)}% \pm\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}g(x)\Bigr{)}=f\,^{% \prime}(x)\pm g\mkern 1.35mu ^{\prime}(x)$

2. (b)

Constant Multiple Rule:
$\displaystyle\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}c\cdot f(x)% \Bigr{)}=c\cdot\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}f(x)\Bigr% {)}=c\cdot f\,^{\prime}(x)$.

• Proof of Sum Rule for Differentiation

Let $f$ and $g$ be differentiable on an open interval $I$ and let $c$ be a real number,

 $\displaystyle\frac{\operatorname{d}\!}{\operatorname{d}\!x}(f(x)+g(x))$ $\displaystyle=\lim_{h\to 0}\frac{[f(x+h)+g(x+h)]-[f(x)+g(x)]}{h}$ $\displaystyle=\lim_{h\to 0}\frac{[f(x+h)-f(x)]+[g(x+h)-g(x)]}{h}$ $\displaystyle=\lim_{h\to 0}\frac{[f(x+h)-f(x)]}{h}+\lim_{h\to 0}\frac{g(x+h)-g% (x)}{h}$ $\displaystyle=f\,^{\prime}(x)+g^{\prime}(x)\qed$

Theorem 2.3.2 allows us to find the derivatives of a wide variety of functions. It can be used in conjunction with the Power Rule to find the derivatives of any polynomial. Recall in Example 2.1.4 that we found, using the limit definition, the derivative of $f(x)=3x^{2}+5x-7$. We can now find its derivative without expressly using limits:

 $\displaystyle\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}3x^{2}+5x+7% \Bigr{)}$ $\displaystyle=3\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}x^{2}% \Bigr{)}+5\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}x\Bigr{)}+% \frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}7\Bigr{)}$ $\displaystyle=3\cdot 2x+5\cdot 1+0$ $\displaystyle=6x+5.$

We were a bit pedantic here, showing every step. Normally we would do all the arithmetic and steps in our head and readily find $\displaystyle\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}3x^{2}+5x+7% \Bigr{)}=6x+5$.

###### Example 2.3.2 Using Theorems 2.3.1 and 2.3.2 to find derivatives

Use Theorems 2.3.1 and 2.3.2 to differentiate

 $\text{1. }g(x)=(x^{2}+1)^{3}\qquad\qquad\text{2. }f(x)=\ln\frac{\sqrt{x}}{8}$

SolutionGiven the differentiation rules we have thus far, our only option for finding $g^{\prime}(x)$ is to first multiply $g(x)$ out and then apply the sum and power rules. We see that

 $g(x)=x^{6}+3x^{4}+3x^{2}+1$

thus,

 $g^{\prime}(x)=6x^{5}+12x^{3}+6x.$

To differentiate $f(x)$ we will first need to use the Laws of Logarithms to expand $f$ as

 $\displaystyle f(x)$ $\displaystyle=\ln\frac{\sqrt{x}}{8}$ $\displaystyle=\ln x^{\frac{1}{2}}-\ln 8$ $\displaystyle=\frac{1}{2}\ln x-\ln 8$

so that,

 $f\,^{\prime}(x)=\frac{1}{2}\cdot\frac{1}{x}-0=\frac{1}{2}x.$
###### Example 2.3.3 Using the tangent line to approximate a function value

Let $f(x)=\sin x+2x+1$. Approximate $f(3)$ using an appropriate tangent line.

SolutionThis problem is intentionally ambiguous; we are to approximate using an appropriate tangent line. How good of an approximation are we seeking? What does appropriate mean?

In the “real world,” people solving problems deal with these issues all time. One must make a judgment using whatever seems reasonable. In this example, the actual answer is $f(3)=\sin 3+7$, where the real problem spot is $\sin 3$. What is $\sin 3$?

Since $3$ is close to $\pi$, we can assume $\sin 3\approx\sin\pi=0$. Thus one guess is $f(3)\approx 7$. Can we do better? Let’s use a tangent line as instructed and examine the results; it seems best to find the tangent line at $x=\pi$.

Using Theorem 2.3.1 we find $f\,^{\prime}(x)=\cos x+2$. The slope of the tangent line is thus $f\,^{\prime}(\pi)=\cos\pi+2=1$. Also, $f(\pi)=2\pi+1\approx 7.28$. So the tangent line to the graph of $f$ at $x=\pi$ is $y=1(x-\pi)+2\pi+1=x+\pi+1\approx x+4.14$. Evaluated at $x=3$, our tangent line gives $y=3+4.14=7.14$. Using the tangent line, our final approximation is that $f(3)\approx 7.14$.

Using a calculator, we get an answer accurate to 4 places after the decimal: $f(3)=7.1411$. Our initial guess was $7$; our tangent line approximation was more accurate, at $7.14$.

The point is not “Here’s a cool way to do some math without a calculator.” Sure, that might be handy sometime, but your phone could probably give you the answer. Rather, the point is to say that tangent lines are a good way of approximating, and many scientists, engineers and mathematicians often face problems too hard to solve directly. So they approximate.

## Higher Order Derivatives

The derivative of a function $f$ is itself a function, therefore we can take its derivative. The following definition gives a name to this concept and introduces its notation.

###### Definition 2.3.1 Higher Order Derivatives

Let $y=f(x)$ be a differentiable function on $I$.

1. (a)

The second derivative of $f$ is:

 $f\,^{\prime\prime}(x)=\frac{\operatorname{d}\!}{\operatorname{d}\!x}\Bigl{(}f% \,^{\prime}(x)\Bigr{)}=\frac{\operatorname{d}\!}{\operatorname{d}\!x}\left(% \frac{\operatorname{d}\!y}{\operatorname{d}\!x}\right)=\frac{\operatorname{d}% \!^{2}y}{\operatorname{d}\!x^{2}}=y\mkern 1.35mu ^{\prime\prime}.$
2. (b)

The third derivative of $f$ is:

 $f\,^{\prime\prime\prime}(x)=\frac{\operatorname{d}\!}{\operatorname{d}\!x}% \Bigl{(}f\,^{\prime\prime}(x)\Bigr{)}=\frac{\operatorname{d}\!}{\operatorname{% d}\!x}\left(\frac{\operatorname{d}\!^{2}y}{\operatorname{d}\!x^{2}}\right)=% \frac{\operatorname{d}\!^{3}y}{\operatorname{d}\!x^{3}}=y\mkern 1.35mu ^{% \prime\prime\prime}.$
3. (c)

The nth derivative of $f$ is:

 $f\,^{(n)}(x)=\frac{\operatorname{d}\!}{\operatorname{d}\!x}\left(f\,^{(n-1)}(x% )\right)=\frac{\operatorname{d}\!}{\operatorname{d}\!x}\left(\frac{% \operatorname{d}\!^{n-1}y}{\operatorname{d}\!x^{n-1}}\right)=\frac{% \operatorname{d}\!^{n}y}{\operatorname{d}\!x^{n}}=y^{(n)}.$
margin: Note: Definition 2.3.1 comes with the caveat “Where the corresponding limits exist.” With $f$ differentiable on $I$, it is possible that $f\,^{\prime}$ is not differentiable on all of $I$, and so on. Λ

In general, when finding the fourth derivative and on, we resort to the $f\,^{(4)}(x)$ notation, not $f\,^{\prime\prime\prime\prime}(x)$; after a while, too many ticks is too confusing.

Let’s practice using this new concept.

###### Example 2.3.4 Finding higher order derivatives

Find the first four derivatives of the following functions:

 $1.\ f(x)=4x^{2}\qquad 2.\ f(x)=\sin x\qquad 3.\ f(x)=5e^{x}$

Solution

1. (a)

Using the Power and Constant Multiple Rules, we have: $f\,^{\prime}(x)=8x$. Continuing on, we have

 $f\,^{\prime\prime}(x)=\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}8x% \bigr{)}=8;\qquad f\,^{\prime\prime\prime}(x)=0;\qquad f\,^{(4)}(x)=0.$

Notice how all successive derivatives will also be 0.

2. (b)

We employ Theorem 2.3.1 repeatedly.

 $f\,^{\prime}(x)=\cos x;\quad f\,^{\prime\prime}(x)=-\sin x;\quad f\,^{\prime% \prime\prime}(x)=-\cos x;\quad f\,^{(4)}(x)=\sin x.$

Note how we have come right back to $f(x)$ again. (Can you quickly figure what $f\,^{(23)}(x)$ is?)

3. (c)

Employing Theorem 2.3.1 and the Constant Multiple Rule, we can see that

 $f\,^{\prime}(x)=f\,^{\prime\prime}(x)=f\,^{\prime\prime\prime}(x)=f\,^{(4)}(x)% =5e^{x}.$

## Interpreting Higher Order Derivatives

What do higher order derivatives mean? What is the practical interpretation?

Our first answer is a bit wordy, but is technically correct and beneficial to understand. That is,

The second derivative of a function $f$ is the rate of change of the rate of change of $f$.

One way to grasp this concept is to let $f$ describe a position function. Then, as stated in Key Idea 2.2.1, $f\,^{\prime}$ describes the rate of position change: velocity. We now consider $f\,^{\prime\prime}$, which describes the rate of velocity change. Sports car enthusiasts talk of how fast a car can go from 0 to 60 mph; they are bragging about the acceleration of the car.

We started this chapter with amusement-park riders free-falling with position function $f(t)=-16t^{2}+150$. It is easy to compute $f\,^{\prime}(t)=-32t$ ft/s and $f\,^{\prime\prime}(t)=-32$ (ft/s)/s. We may recognize this latter constant; it is the acceleration due to gravity. In keeping with the unit notation introduced in the previous section, we say the units are “feet per second per second.” This is usually shortened to “feet per second squared,” written as “ft/s${}^{2}$.”

It can be difficult to consider the meaning of the third, and higher order, derivatives. The third derivative is “the rate of change of the rate of change of the rate of change of $f$.” That is essentially meaningless to the uninitiated. In the context of our position/velocity/acceleration example, the third derivative is the “rate of change of acceleration,” commonly referred to as “jerk.”

Make no mistake: higher order derivatives have great importance even if their practical interpretations are hard (or “impossible”) to understand. The mathematical topic of series makes extensive use of higher order derivatives.

## Exercises 2.3

### Terms and Concepts

1. 1.

What is the name of the rule which states that $\displaystyle\frac{\operatorname{d}\!}{\operatorname{d}\!x}\big{(}x^{n}\big{)}% =nx^{n-1}$, where $n>0$ is an integer?

2. 2.

What is $\displaystyle\frac{\operatorname{d}\!}{\operatorname{d}\!x}\big{(}\ln x\big{)}$?

3. 3.

Give an example of a function $f(x)$ where $f\,^{\prime}(x)=f(x)$.

4. 4.

Give an example of a function $f(x)$ where $f\,^{\prime}(x)=0$.

5. 5.

The derivative rules introduced in this section explain how to compute the derivative of which of the following functions?

• $\displaystyle f(x)=\frac{3}{x^{2}}$

• $g(x)=3x^{2}-x+17$

• $h(x)=5\ln x$

• $j(x)=\sin x\cos x$

• $k(x)=e^{x^{2}}$

• $m(x)=\sqrt{x}$

6. 6.

Explain in your own words how to find the third derivative of a function $f(x)$.

7. 7.

Give an example of a function where $f\,^{\prime}(x)\neq 0$ and $f\,^{\prime\prime}(x)=0$.

8. 8.

Explain in your own words what the second derivative “means.”

9. 9.

If $f(x)$ describes a position function, then $f\,^{\prime}(x)$ describes what kind of function? What kind of function is $f\,^{\prime\prime}(x)$?

10. 10.

Let $f(x)$ be a function measured in pounds, where $x$ is measured in feet. What are the units of $f\,^{\prime\prime}(x)$?

### Problems

In Exercises 11–28., compute the derivative of the given function.

1. 11.

$f(x)=7x^{2}-5x+7$

2. 12.

$g(x)=14x^{3}+7x^{2}+11x-29$

3. 13.

$m(t)=9t^{5}-\frac{1}{8}t^{3}+3t-8$

4. 14.

$f(\theta)=9\sin\theta+10\cos\theta$

5. 15.

$f(r)=6e^{r}$

6. 16.

$g(t)=10t^{4}-\cos t+7\sin t$

7. 17.

$f(x)=2\ln x-x$

8. 18.

$p(s)=\frac{1}{4}s^{4}+\frac{1}{3}s^{3}+\frac{1}{2}s^{2}+s+1$

9. 19.

$h(t)=e^{t}-\sin t-\cos t$

10. 20.

$f(x)=\ln(5x^{2})$

11. 21.

$f(t)=\ln(17)+e^{2}+\sin\pi/2$

12. 22.

$g(t)=(1+3t)^{2}$

13. 23.

$g(x)=(2x-5)^{3}$

14. 24.

$f(x)=(1-x)^{3}$

15. 25.

$f(x)=(2-3x)^{2}$

16. 26.

$h(x)=\dfrac{x^{5}-2x^{3}+x^{2}}{x^{2}}$

17. 27.

$f(x)=\dfrac{x^{2}+1}{\sqrt{x}}$

18. 28.

$g(\theta)=\dfrac{1-\sin^{2}\theta}{\cos\theta}$

1. 29.
A property of logarithms is that $\displaystyle\log_{a}x=\frac{\log_{b}x}{\log_{b}a}$, for all bases $a,b>0$ and $a,b\neq 1$. (a) Rewrite this identity when $b=e$, i.e., using $\log_{e}x=\ln x$. (b) Use part (a) to find the derivative of $y=\log_{a}x$. (c) Give the derivative of $y=\log_{10}x$.
2. 30.

Prove the Constant Rule: $\dfrac{\operatorname{d}\!}{\operatorname{d}\!x}(c)=0$, where $c$ is constant.

3. 31.
The figure shows the graphs of $f$, $f\,^{\prime}$, and $f\,^{\prime\prime}$. Identify each curve and explain your choices.
4. 32.
The figure shows the graphs of $f$, $f\,^{\prime}$, $f\,^{\prime\prime}$ and $f\,^{\prime\prime\prime}$. Identify each curve and explain your choices.

In Exercises 33–38., compute the first four derivatives of the given function.

1. 33.

$f(x)=x^{6}$

2. 34.

$g(x)=2\cos x$

3. 35.

$h(t)=t^{2}-e^{t}$

4. 36.

$p(\theta)=\theta^{4}-\theta^{3}$

5. 37.

$f(\theta)=\sin\theta-\cos\theta$

6. 38.

$f(x)=1{,}100$

1. 39.
The position of a object is described by $s(t)=t^{4}-4t^{2}$, $t\geq 0$, where $s$ is in feet and $t$ is in seconds. Find (a) the velocity and acceleration functions for the object, (b) the acceleration after 1.5 seconds, and (c) the time(s), in seconds, when the object is at rest.
2. 40.
The position of an object is described by $s(t)=5e^{t}-5t$, where $s$ is in inches and $t$ is in seconds. Find (a) the velocity and acceleration functions for the object, (b) the acceleration after 2 seconds, and (c) the acceleration when the object is at rest.

In Exercises 41–46., find the equations of the tangent line to the graph of the function at the given point.

1. 41.

$f(x)=x^{3}-x$ at $x=1$

2. 42.

$f(t)=e^{t}+3$ at $t=0$

3. 43.

$g(x)=\ln x$ at $x=1$

4. 44.

$f(x)=4\sin x$ at $x=\pi/2$

5. 45.

$f(x)=-2\cos x$ at $x=\pi/4$

6. 46.

$f(x)=2x+3$ at $x=5$

1. 47.

Find the two values of $n$ so that the function $y=x^{n}$ satisfies the differential equation $x^{2}y\mkern 1.35mu ^{\prime\prime}+2xy\mkern 1.35mu ^{\prime}-6y=0$.

### Review

1. 48.

Given that $e^{0}=1$, approximate the value of $e^{0.1}$ using the tangent line to $f(x)=e^{x}$ at $x=0$.

2. 49.

Approximate the value of $(3.01)^{4}$ using the tangent line to $f(x)=x^{4}$ at $x=3$. 