## Section2.3Basic 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\text{.}$$ What is $$y'\text{?}$$ Without limits, recognize that linear functions are characterized by being functions with a constant rate of change (the slope). The derivative, $$y'\text{,}$$ gives the instantaneous rate of change; with a linear function, this is constant, $$m\text{.}$$ Thus $$y'=m\text{.}$$

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

\begin{align*} \fp(x) \amp = \lim_{h\to 0}\frac{a(x+h)^2+b(x+h)+c-(ax^2+bx+c)}{h}\\ \amp = \lim_{h\to 0}\frac{ax^2+2ahx+ah^2+bx+bh+c-ax^2-bx-c)}{h}\\ \amp = \lim_{h\to 0} \frac{ah^2+2ahx+bh}{h}\\ \amp = \lim_{h\to 0} ah+2ax+b\\ \amp = 2ax+b\text{.} \end{align*}

So if $$y = 6x^2+11x-13\text{,}$$ we can immediately compute $$y' = 12x+11\text{.}$$

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.

This theorem starts by stating an intuitive fact: constant functions have zero rate of change as they are constant. Therefore their derivative is $$0$$ (they change at the rate of $$0$$). The theorem then states some fairly amazing things. The Power Rule states that the derivatives of Power Functions (of the form $$y=x^n$$) are very straightforward: multiply by the power, then subtract $$1$$ from the power. We see something incredible about the function $$y=e^x\text{:}$$ it is its own derivative. We also see a new connection between the sine and cosine functions.

One special case of the Power Rule is when $$n=1\text{,}$$ i.e., when $$f(x) = x\text{.}$$ What is $$\fp(x)\text{?}$$ According to the Power Rule,

\begin{equation*} \fp(x) = \lzoo{x}{x} = \lzoo{x}{x^1} = 1\cdot x^0 = 1\text{.} \end{equation*}

In words, we are asking “At what rate does $$f$$ change with respect to $$x\text{?}$$” Since $$f$$ is $$x\text{,}$$ we are asking “At what rate does $$x$$ change with respect to $$x\text{?}$$” The answer is: $$1\text{.}$$ They change at the same rate. We can also interpret the derivative as the slope of the tangent line to the function at a point $$(c,f(c))\text{.}$$ Since $$f(x)=x$$ is a linear function with constant slope $$1\text{,}$$ we can say that the derivative of $$f(x)=x$$ is $$\fp(x)=1\text{.}$$

Let's practice using this theorem.

###### Example2.3.4.Using common derivative rules to find, and use, derivatives.

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

1. Find $$\fp(x)\text{.}$$

2. Find the equation of the line tangent to the graph of $$f$$ at $$x=-1\text{.}$$

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

4. Sketch $$f\text{,}$$ $$\fp$$ and the tangent line from Item 2 on the same axis.

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

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

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

\begin{equation*} (-1.1)^3 \approx 3(-1.1)+2 = -1.3\text{.} \end{equation*}

We can easily find the actual value: $$(-1.1)^3 = -1.331\text{.}$$

4. See Figure 2.3.5.

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\text{,}$$ but it does not tell how to compute the derivative of $$y=2x^3\text{,}$$ $$y=x^3+\sin(x)$$ nor $$y=x^3\sin(x)\text{.}$$ The following theorem helps with the first two of these examples (the third is answered in the next section).

Theorem 2.3.6 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.22 that we found, using the limit definition, the derivative of $$f(x) = 3x^2+5x-7\text{.}$$ We can now find its derivative without expressly using limits:

\begin{align*} \lzoo{x}{3x^2+5x-7} \amp = 3\lzoo{x}{x^2} + 5\lzoo{x}{x} - \lzoo{x}{7}\\ \amp = 3\cdot 2x+5\cdot 1- 0\\ \amp = 6x+5\text{.} \end{align*}

We were a bit pedantic here, showing every step. Normally we would do all the arithmetic and steps in our head and readily find $$\lzoo{x}{3x^2+5x+7}= 6x+5\text{.}$$

###### Example2.3.9.Using the tangent line to approximate a function value.

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

Solution.

This 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\text{,}$$ where the real problem spot is $$\sin(3)\text{.}$$ What is $$\sin(3)\text{?}$$

Since $$3$$ is close to $$\pi\text{,}$$ we can assume $$\sin(3) \approx \sin(\pi) = 0\text{.}$$ Thus one guess is $$f(3) \approx 7\text{.}$$ 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\text{.}$$

Using Theorem 2.3.1 we find $$\fp(x) = \cos(x) + 2\text{.}$$ The slope of the tangent line is thus $$\fp(\pi) = \cos(\pi) + 2 =1\text{.}$$ Also, $$f(\pi) = 2\pi+1 \approx 7.28\text{.}$$ 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\text{.}$$ Evaluated at $$x=3\text{,}$$ our tangent line gives $$y=3+4.14 = 7.14\text{.}$$ Using the tangent line, our final approximation is that $$f(3) \approx 7.14\text{.}$$

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

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.

The graphs in Figure 2.3.10 shows the graph of the function $$f(x)$$ along with the tangent line constructed at $$x=\pi\text{.}$$ The graph in Figure 2.3.10 shows the same tangent line and function. Once zoomed in, you can barely distinguish the tangent line from the function. This indicates that the tangent line is a good a approximation of the function so long as we are near the point of tangency.

### Subsection2.3.1Higher 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.

###### Definition2.3.12.Higher Order Derivatives.

Let $$y=f(x)$$ be a differentiable function on $$I\text{.}$$ The following are defined, provided the corresponding limits exist.

1. The second derivative of $$f$$ is:

\begin{equation*} \fp'(x) = \lzoo{x}{\fp(x)} = \lzoo{x}{\lz{y}{x}} = \lzn{2}{y}{x}=y''\text{.} \end{equation*}
2. The third derivative of $$f$$ is:

\begin{equation*} \fp''(x) = \lzoo{x}{\fp'(x)} = \lzoo{x}{\lzn{2}{y}{x}} = \lzn{3}{y}{x}=y'''\text{.} \end{equation*}
3. The $$n$$th derivative of $$f$$ is:

\begin{equation*} f^{(n)}(x) = \lzoo{x}{f^{(n-1)}(x)} = \lzoo{x}{\lzn{n-1}{y}{x}} = \lzn{n}{y}{x}=y^{(n)}\text{.} \end{equation*}

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

Let's practice using this new concept.

###### Example2.3.14.Finding higher order derivatives.

Find the first four derivatives of the following functions:

1. $$\displaystyle f(x) = 4x^2$$

2. $$\displaystyle f(x) = \sin(x)$$

3. $$\displaystyle f(x) = 5e^x$$

Solution.
1. Using the Power and Constant Multiple Rules, we have: $$\fp(x) = 8x\text{.}$$ Continuing on, we have

\begin{align*} \fp'(x)\amp=\lzoo{x}{8x}=8\amp\fp''(x)\amp=0\amp f^{(4)}(x)\amp=0\text{.} \end{align*}

Notice how all successive derivatives will also be $$0\text{.}$$

2. We employ Theorem 2.3.1 repeatedly.

\begin{align*} \fp(x)\amp=\cos(x)\amp \fp''(x)\amp= -\cos(x)\\ \fp'(x)\amp= -\sin(x)\amp f^{(4)}(x)\amp = \sin(x) \end{align*}

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

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

\begin{equation*} \fp(x) = \fp'(x) = \fp''(x) = f^{(4)}(x) = 5e^x\text{.} \end{equation*}

### Subsection2.3.2Interpreting 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\text{.}$$

One way to grasp this concept is to let $$f$$ describe a position function. Then, as stated in Key Idea 2.2.3, $$\fp$$ describes the rate of position change: velocity. We now consider $$\fp'\text{,}$$ 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\text{.}$$ It is easy to compute $$\fp(t)=-32t$$ ft/s and $$\fp'(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\text{.}$$”

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\text{.}$$” 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.

### Exercises2.3.3Exercises

###### 1.

What is the name of the rule which states that $$\lzoo{x}{x^n} = nx^{n-1}\text{,}$$ where $$n \gt 0$$ is an integer?

###### 2.

What is $$\lzoo{x}{\ln(x)}\text{?}$$

###### 3.

Give an example of a function $$f(x)$$ where $$\fp(x) = f(x)\text{.}$$

###### 4.

Give an example of a function $$f(x)$$ where $$\fp(x) = 0\text{.}$$

###### 5.

The derivative rules introduced in Section 2.3 explain how to compute the derivative of which of the following functions?

• $$\displaystyle \sin(x) \cos(x)$$

• $$\displaystyle e^{x^2}$$

• $$\displaystyle \sqrt{x}$$

• $$\displaystyle \frac{3}{x^2}$$

• $$\displaystyle 3x^2-x+17$$

• $$\displaystyle 5\ln(x)$$

###### 6.

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

###### 7.

Give an example of a function where $$\fp(x) \neq 0$$ and $$\fpp(x) = 0\text{.}$$

###### 8.

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

###### 9.

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

###### 10.

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

###### Problems

Compute the derivative of the given function.

###### 11.

$$f(x) = {-\left(4x^{2}+8x+2\right)}$$

###### 12.

$$g(x) = {16x^{2}-4x^{3}+24x+28}$$

###### 13.

$$m(t) = {3t^{5}-\left({\textstyle\frac{1}{2}}\right)t^{3}-4t+5}$$

###### 14.

$$f(\theta) = {8\sin\!\left(\theta\right)-17\cos\!\left(\theta\right)}$$

###### 15.

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

###### 16.

$$g(t) = {16t^{3}+\cos\!\left(t\right)+7\sin\!\left(t\right)}$$

###### 17.

$$f(x) = {-\left(9\ln\!\left(x\right)+9x\right)}$$

###### 18.

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

###### 19.

$$h(t) = {\cos\!\left(t\right)-\left(e^{t}+\sin\!\left(t\right)\right)}$$

###### 20.

$$f(x) = {\ln\!\left(-3x^{9}\right)}$$

###### 21.

$$f(t) = {\ln\!\left(10\right)+e^{7}+\cos\!\left(\frac{\pi }{3}\right)}$$

###### 22.

$$g(t) = {\left(6+3t\right)^{2}}$$

###### 23.

$$g(x) = {\left(3x+4\right)^{3}}$$

###### 24.

$$f(x) = {\left(4+x\right)^{3}}$$

###### 25.

$$f(x) = {\left(9+3x\right)^{2}}$$

###### 26.

A property of logarithms is that $$\log_a(x) = \frac{\log_b(x)}{\log_b(a)}\text{,}$$ for all bases $$a,b \gt 0,\neq 1\text{.}$$

1. Rewrite this identity when $$b=e\text{,}$$ i.e., using $$\log_e(x) =\ln(x)\text{,}$$ with $$a=10\text{.}$$

2. Use part (a) to find the derivative of $$y=\log_{10}(x)\text{.}$$

3. Find the derivative of $$y=\log_a(x)$$ for any $$a\gt0,\neq1\text{.}$$

Compute the first four derivatives of the given function.

###### 27.

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

###### 28.

$$g(x) = {-5\sin\!\left(x\right)}$$

###### 29.

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

###### 30.

$$p(\theta) = {\theta^{6}-\theta^{5}}$$

###### 31.

$$f(\theta) = {\sin\!\left(\theta\right)-\cos\!\left(\theta\right)}$$

###### 32.

$$f(x) = {1342}$$

Find the equations of the tangent and normal lines to the graph of the function at the given point.

###### 33.

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

###### 34.

$$f(t)={e^{t}-7}$$ at $$t=3$$

###### 35.

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

###### 36.

$$f(x)={-2\cos\!\left(x\right)}$$ at $$x=\pi/2$$

###### 37.

$$f(x)={-8\sin\!\left(x\right)}$$ at $$x=\pi/2$$

###### 38.

$$f(x)={4x+5}$$ at $$x=-3$$

###### 39.

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

###### 40.

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