## Section 8.5 Differentiation

¶The most important application of limit rules is to develop rules for derivatives. Every time we need a derivative, we currently must use the definition and compute the limit

and then go through the algebra and simplification to find the resulting formula. Finding the formula for \(f'(x)\) from the formula for \(f(x)\) is a process called differentiation. The rules for derivatives will provide us with a methodical way to differentiate algebraic formulas.

Differentiation is a process of taking a function and using it to determine another function. In a sense, we are using a function as an input and creating a new function as the output. Can you see that this is something like a function of functions instead of a function of numbers. We call such a process an operator and most commonly use the differential operator \(\displaystyle \frac{d}{dx}\) where \(x\) is the independent variable for the function. (The variable changes depending on the relevant independent variable.)

### Subsection 8.5.1 Derivative Rules

Derivative rules are theorems that take as a hypothesis that one or two functions have known derivatives and the conclusion tells how to find the derivative of some combination of those functions. We start by stating the basic rules together for convenience in finding them.

###### Theorem 8.5.2 Differentiation Rules

This theorem is a collection of multiple theorems. The hypothesis for any statement that involves \(f(x)\) or \(g(x)\) is that \(\displaystyle \frac{d}{dx}[f(x)] = f'(x)\) or that \(\displaystyle \frac{d}{dx}[g(x)] = g'(x)\text{.}\) Further, \(k\) is assumed to be a constant.

\(\displaystyle \frac{d}{dx}[k \cdot f(x)] = k \cdot f'(x)\) | Constant Multiple Rule |

\(\displaystyle \frac{d}{dx}[f(x)+g(x)] = f'(x)+g'(x)\) | Sum Rule |

\(\displaystyle \frac{d}{dx}[f(x)-g(x)] = f'(x)-g'(x)\) | Difference Rule |

\(\displaystyle \frac{d}{dx}[\frac{1}{g(x)}] = \frac{-g'(x)}{(g(x))^2}\) | Reciprocal Rule |

\(\displaystyle \frac{d}{dx}[f(x) \cdot g(x)] = f'(x) g(x) +f(x) g'(x)\) | Product Rule |

\(\displaystyle \frac{d}{dx}[\frac{f(x)}{g(x)}] = \frac{g(x)f'(x)-f(x)g'(x)}{(g(x))^2}\) | Quotient Rule |

\(\displaystyle \frac{d}{dx}[f\Big(g(x)\Big)] = f'\Big(g(x)\Big) \cdot g'(x)\) | Chain Rule |

One of these differentiation rules, the chain rule, will require its own discussion. That rule is focused on how to differentiate compositions of functions. The other rules focus on arithmetic combinations of functions and are the primary focus of this section. The chain rule was included for completeness in the listing of differentiation rules.

The proofs for these differentiation rules are based on applying the definition of a derivative to the formula in question while knowing that the limits that define the derivatives in the hypothesis are valid. To illustrate, we will look at four of the differentiation rules in detail. Before doing this, we will also need the following theorem, that a function must be continuous wherever the derivative is defined.

###### Theorem 8.5.3

If \(f'(c)\) is defined, then \(f\) is continuous at \(c\text{,}\) which means that###### Proof

Because \(f'(c)\) is defined, the limit defining it is

We know that \(\displaystyle \lim_{x \to c} x-c = c-c = 0\) using the Limit of a Linear Function. Because

we can compute the limit

The value \(f(c)\) is a constant, so the Limit of a Constant Rule implies

Since \(f(x)=(f(x)-f(c)) + f(c)\text{,}\) the Limit of a Sum Rule implies

Therefore, \(f\) is continuous at \(c\text{.}\)

### Subsection 8.5.2 Proofs of Differentiation Rules

#### Subsubsection 8.5.2.1 Proof of Constant Multiple Rule

By hypothesis, \(\displaystyle \frac{d}{dx}[f(x)] = f'(x)\text{.}\) This means that \(f'(x)\) is defined by its limit

The rule is interested in finding the rate of change of a new function \(k \cdot f(x)\text{.}\) We will use that function to compute the derivative.

Now notice that the formula is a product of the constant \(k\) and the average rate of change of \(f\text{.}\) Because we already know that the limit of the average rate of change of \(f\) is equal to \(f'(x)\text{,}\) we can use the Limit Rule for a Constant Multiple.

#### Subsubsection 8.5.2.2 Proof of Reciprocal Rule

By hypothesis, \(\displaystyle \frac{d}{dx}[g(x)] = g'(x)\text{.}\) This means that \(g'(x)\) is defined by its limit

The rule is interested in finding the rate of change of a new function \(1/g(x)\text{.}\) We will use that function to compute the derivative using the definition, which will require finding a common denominator.

Since the limit involves \(h \to 0\text{,}\) \(g(x)\) is a constant and \(g(x+h) \to g(x)\) (by continuity) so that

Using the Limit Rule of a Product, we have

#### Subsubsection 8.5.2.3 Proof of Sum Rule

By hypothesis, \(\displaystyle \frac{d}{dx}[f(x)] = f'(x)\) and \(\displaystyle \frac{d}{dx}[g(x)] = g'(x)\text{.}\) This means that

The sum rule is interested in finding the rate of change of a new function \(f(x)+g(x)\text{.}\) We will use that function to compute the derivative using the definition:

using the Limit Rule of a Sum.

#### Subsubsection 8.5.2.4 Proof of Product Rule

By hypothesis, \(\displaystyle \frac{d}{dx}[f(x)] = f'(x)\) and \(\displaystyle \frac{d}{dx}[g(x)] = g'(x)\text{.}\) This means that

The product rule is interested in finding the rate of change of a new function \(f(x)g(x)\text{.}\) In the course of this calculation, we will also need the following substitutions,

When \(f'(x)\) and \(g'(x)\) both exist, \(f\) and \(g\) are both continuous so that

The derivative in question is defined by

using the Limit Rule of a Sum and the Limit Rule of a Product.

### Subsection 8.5.3 Using the Derivative Rules

A traditional development of calculus begins applying these rules to find formulas to derivatives. We will instead begin applying the rules by interpreting some specific applied applications involving rates of change.

###### Example 8.5.4

A tank is being filled with water two supply hoses. If the first hose is pumping water at a rate of 20 gal/min and the second hose is pumping water at a rate of 30 gal/min, what is the total rate of change for the tank?

We know the intuitive solution to the problem is 50 gal/min. This is actually a consequence of the sum rule of derivatives.

We can think of the water in the tank as having two components: \(W_1\text{,}\) the volume of water (gal) that was pumped by hose 1, and \(W_2\text{,}\) the volume of water (gal) that was pumped by hose 2. These two variables are functions of time \(t\) (min), and the rates of water flowing from the hoses correspond to derivatives:

The total volume of water in the tank at a given time \(t\) is the sum \(W(t)=W_1(t) + W_2(t)\text{.}\) So by the sum rule of derivatives,

The sum rule for derivatives feels very intuitive. If a quantity is the sum of parts, then the total rate of change for the quantity is the sum of the rates of change for each of the parts. The product rule is less intuitive because we don't get to multiply rates of change when a quantity is a product. To illustrate this example, we focus on a geometric example on the area of a rectangle when the lengths of the sides are changing.

###### Example 8.5.5

A city is in the shape of a rectangle with sides aligned with North-South and East-West lines. Suppose that the city is currently 5 miles east-to-west and 3 miles north-to-south and plans to expand to a size 8 miles east-to-west by 5 miles north-to-south over the next 10 years. What is the average rate of change of the total area in the city over the 10 years? If the borders were to move at a constant rate over those 10 years, what is the instantaneous rate of change of the total area of the city at the beginning and at the end of the 10 years?

We start with the question of average rate of change of total area, which we can solve intuitively. The city originally has a total area of \(5 \times 3 = 15 \: \hbox{mi}^2\text{.}\) After 10 years, the city has a total area of \(8 \times 5 = 40 \: \hbox{mi}^2\text{.}\) So the change in area is \(25 \: \hbox{mi}^2\) over 10 years so the average rate of change of area is \(\frac{25}{10} = 2.5\: \hbox{mi}^2/\hbox{yr}\text{.}\)

To connect our intuition with functions and to prepare for the next calculations, let us introduce some variables. The state of the city can be characterized by four variables: the time \(t\) (yr) at which the state is observed, the distance east-to-west, which we'll call the width \(W\) (mi), the distance north-to-south, which we'll call the height \(H\) (mi), and the enclosed total area \(A\) (\(\hbox{mi}^2\)). We think of \(W\text{,}\) \(H\) and \(A\) as being functions of time \(t\) with the area being equal to the product of \(W\) and \(H\text{:}\)

Then the average rate of change for \(A\) on the interval \(t \in [0,10]\) is given by

To find the instantaneous rates of change, we need to know how fast the width and height measurements are changing in time. Because the problem stated that these changed at a constant rate, we can use the average rates of change to compute the instantaneous rates:

Since the area \(A\) is the product of \(W\) and \(H\text{,}\) the product rule for derivatives will provide the instantaneous rate of change for area:

When \(t=0\) we have \(W(0)=5\) and \(H(0)=3\) so that

That is, at the beginning, the city is expanding at a rate of \(1.9 \: \hbox{mi}^2/\hbox{yr}\text{.}\) After 10 years, \(t=10\text{,}\) we have \(W(10)=8\) and \(H(10)=5\) so that

At the end of the 10 years, the city is expanding at a rate of \(3.1 \: \hbox{mi}^2/\hbox{yr}\text{.}\)

The picture of expanding area helps provide some intuition for why the product rule is the appropriate technique. If we consider the city after 6 months (\(t=0.5\)), both the width and the height have changed by a small amount, as shown in the figure below. The total change in area has two primary contributions, corresponding to long, skinny rectangles with areas \(W(0) \cdot \Delta H\) and \(\Delta W \cdot H(0)\text{,}\) and a very small rectangle with area \(\Delta W \cdot \Delta H\text{.}\) The product rule corresponds to the rate of change coming from the two primary contributions while the small rectangle leads to a term that has a limit of zero in the calculation of the derivative.

Quotients often appear when working with densities, concentrations, or other ratios.

###### Example 8.5.6

A salt-water solution is being formulated. At a particular instant, the solution consists of 10 L of water with 5 kg of salt. At that instant, water is being added at a rate of 0.5 L/s while salt is being added at a rate of 0.2 kg/s. What is the instantaneous rate of change of the concentration?

We start by identifying the variables that define the state of our system. The variables include the time \(t\text{,}\) measured in seconds (s), the total volume of water \(V\text{,}\) measured in liters (L), the total amount of salt in the water \(S\text{,}\) measured in kilograms (kg), and the concentration of salt water \(C\text{,}\) measured in kilograms per liter (kg/L). The variables \(V\text{,}\) \(S\) and \(C\) are functions of time \(t\) with an equation relating them by

The instantaneous rate of change is computed using the quotient rule for derivatives,

The values at the instant in question are given by

Using these values in the quotient rule for derivatives, we have

That is, the concentration is changing at a rate of -0.005 kg salt per liter water per second. Alternatively, we could say that the concentration is decreasing at a rate of 0.005 kg/L/s.

### Subsection 8.5.4 Derivative Building Blocks

In order to apply the differentiation rules for formulas, we need to have some elementary rules to get started. Just as with the limit rules, we begin with the basics. The justification of the derivatives of the elementary derivatives must be based on the definition of the derivative. The derivatives of more complex functions can then be justified using the derivative rules.

###### Theorem 8.5.7 Derivative of a Constant

If \(k\) is a real number, then###### Proof

Let \(f(x)=k\) be the constant function. Since \(f(x+h)=k\text{,}\) we have

where the last step used the limit rule for a constant.

###### Theorem 8.5.8 Derivative of the Identity Function

###### Proof

Let \(f(x)=x\) be the identity function. Since \(f(x+h)=x+h\text{,}\) we have

Although the derivatives of other functions can be found using the limit definition of the derivative, these two elementary derivatives along with the the rules of differentiation allow us to find other derivatives.

###### Example 8.5.9

Find \(f'(x)\) for \(f(x) = 3x-5\text{,}\) citing the differentiation rules you used.We will use the differentiation operator \(\frac{d}{dx}\text{.}\) Recall that this operator behaves something like a function, but with a function as its input and the derivative of that function as an output. The rules of differentiation allow us to find a derivative by breaking the function down into its elementary components.

In this example, \(f(x)\) is a sum of \(3x\) and -5. The subformula \(3x\) is a constant multiple (3) of the identity \(x\) and the number -5 is a constant. Once you recognize these facts, you apply the rules.

Thus, \(f'(x) = 3\text{.}\)

The rules of derivatives can also allow us to create new differentiation rules. The following theorem uses the same steps as the previous example but with arbitrary constants.

###### Theorem 8.5.10

If \(a\) and \(b\) are real numbers, then###### Proof

Integer powers correspond to repeated multiplication, so the product rule of differentiation will lead to a rule for the derivative of a power. The following examples lead to a natural pattern called the power rule for derivatives.

###### Example 8.5.11

Use the product rule of derivatives to show thatThe work will involve rewriting the powers as products,

We already know

It is useful to remember the product rule using dependent variables, say \(u=f(x)\) and \(v=g(x)\text{,}\) as

because this will guide our use of the differentiation operator.

With that setup, we can compute the derivatives using differentiation rules.

For the next calculation, we will use both of our previously found derivatives.

The pattern should be apparent for the next derivative.

We can continue to find more derivatives using these results.