3.1 Differentiation Rules

Coming Concepts

  • •

    State the constant, constant multiple, and power rules.

  • •

    Apply the sum and difference rules to combine derivatives.

  • •

    Combine the differentiation rules to find the derivative of a polynomial or rational function.

Finding derivatives of functions by using the definition of the derivative can be a lengthy and, for certain functions, a rather challenging process. For example, previously we found that dd⁢x⁢(x)=12⁢x by using a process that involved multiplying an expression by a conjugate prior to evaluating a limit. The process that we could use to evaluate dd⁢x⁢(x3) using the definition, while similar, is more complicated. In this section, we develop rules for finding derivatives that allow us to bypass this process. We begin with the basics.

3.1.1 The Basic Rules

The functions f⁢(x)=c and g⁢(x)=xn where n is a positive integer are the building blocks from which all polynomials and rational functions are constructed. To find derivatives of polynomials and rational functions efficiently without resorting to the limit definition of the derivative, we must first develop formulas for differentiating these basic functions.

3.1.2 The Constant Rule

We first apply the limit definition of the derivative to find the derivative of the constant function, f⁢(x)=c. For this function, both f⁢(x)=c and f⁢(x+h)=c, so we obtain the following result:

f′⁢(x) =limh→0f⁢(x+h)−f⁢(x)h
=limh→0c−ch
=limh→00h
=limh→00=0.

The rule for differentiating constant functions is called the constant rule. It states that the derivative of a constant function is zero; that is, since a constant function is a horizontal line, the slope, or the rate of change, of a constant function is 0. We restate this rule in the following theorem.

Theorem 3.1 (The Constant Rule).

Let c be a constant.

If f⁢(x)=c, then f′⁢(x)=0.

Alternatively, we may express this rule as

dd⁢x⁢(c)=0.
Example 3.1.1 (Applying the Constant Rule).


Find the derivative of f⁢(x)=8.

Solution: This is just a one-step application of the rule:

f′⁢(x)=0.
Checkpoint 3.1.1.

Find the derivative of g⁢(x)=−3.

Hint: Use the preceding example as a guide.

3.1.3 The Power Rule

We have shown that

dd⁢x⁢(x2)=2⁢xanddd⁢x⁢(x1/2)=12⁢x−1/2.

At this point, you might see a pattern beginning to develop for derivatives of the form dd⁢x⁢(xn). We continue our examination of derivative formulas by differentiating power functions of the form f⁢(x)=xn where n is a positive integer. We develop formulas for derivatives of this type of function in stages, beginning with positive integer powers. Before stating and proving the general rule for derivatives of functions of this form, we take a look at a specific case, dd⁢x⁢(x3). As we go through this derivation, note that the technique used in this case is essentially the same as the technique used to prove the general case.

Example 3.1.2 (Differentiating x3).


Find dd⁢x⁢(x3).

Solution:

dd⁢x⁢(x3) =limh→0(x+h)3−x3h
=limh→0x3+3⁢x2⁢h+3⁢x⁢h2+h3−x3h Expand (x+h)3
=limh→03⁢x2⁢h+3⁢x⁢h2+h3h

Cancel x3 and −x3

=limh→0h⁢(3⁢x2+3⁢x⁢h+h2)h Factor out h
=limh→0(3⁢x2+3⁢x⁢h+h2) Cancel h
=3⁢x2 Let h go to 0.
Checkpoint 3.1.2.

Find dd⁢x⁢(x4).

Hint: Use (x+h)4=x4+4⁢x3⁢h+6⁢x2⁢h2+4⁢x⁢h3+h4 and follow the procedure outlined in the preceding example.

As we shall see, the procedure for finding the derivative of the general form f⁢(x)=xn is very similar. Although it is often unwise to draw general conclusions from specific examples, we note that when we differentiate f⁢(x)=x3, the exponent on x becomes the coefficient of x2 in the derivative and the power on x in the derivative decreases by 1. The following theorem states that the power rule holds for all positive integer powers of x. We will eventually extend this result to negative integer powers. Later, we will see that this rule may also be extended first to rational powers of x and then to arbitrary powers of x. Be aware, however, that this rule does not apply to functions in which a constant is raised to a variable power, such as f⁢(x)=3x.

Theorem 3.2 (The Power Rule).

Let n be a positive integer. If f⁢(x)=xn, then

f′⁢(x)=n⁢xn−1.

Alternatively, we may express this rule as

dd⁢x⁢xn=n⁢xn−1.
Proof.

For f⁢(x)=xn where n is a positive integer, we have

f′⁢(x)=limh→0(x+h)n−xnh.

By the Binomial Theorem we have

(x+h)n=xn+n⁢xn−1⁢h+(n2)⁢xn−2⁢h2+(n3)⁢xn−3⁢h3+…+n⁢x⁢hn−1+hn,

we see that

(x+h)n−xn=n⁢xn−1⁢h+(n2)⁢xn−2⁢h2+(n3)⁢xn−3⁢h3+…+n⁢x⁢hn−1+hn,

Next, divide both sides by h:

(x+h)n−xnh=n⁢xn−1⁢h+(n2)⁢xn−2⁢h2+(n3)⁢xn−3⁢h3+…+n⁢x⁢hn−1+hnh.

Note that each term on top of the fraction has h in it. Thus we can factor this h out and cancel it with the one on the bottom to get

(x+h)n−xnh=n⁢xn−1+(n2)⁢xn−2⁢h+(n3)⁢xn−3⁢h2+…+n⁢x⁢hn−2+hn−1.

Finally,

f′⁢(x) =limh→0(n⁢xn−1+(n2)⁢xn−2⁢h+(n3)⁢xn−3⁢h2+…+n⁢x⁢hn−2+hn−1)
=n⁢xn−1

∎

Example 3.1.3 (Applying the Power Rule).


Find the derivative of the function f⁢(x)=x10 by applying the power rule.

Solution: Using the power rule with n=10, we obtain

f′⁢(x)=10⁢x10−1=10⁢x9.
Checkpoint 3.1.3.

Find the derivative of f⁢(x)=x7.

Hint: Use the power rule with n=7.

3.1.4 The Sum, Difference, and Constant Multiple Rules

We find our next differentiation rules by looking at derivatives of sums, differences, and constant multiples of functions. Just as when we work with functions, there are rules that make it easier to find derivatives of functions that we add, subtract, or multiply by a constant. These rules are summarized in the following theorem.

Theorem 3.3 (Sum, Difference, and Constant Multiple Rules).

Let f⁢(x) and g⁢(x) be differentiable functions and k be a constant. Then each of the following equations holds.

Sum Rule. The derivative of the sum of a function f and a function g is the same as the sum of the derivative of f and the derivative of g.

dd⁢x⁢(f⁢(x)+g⁢(x))=dd⁢x⁢(f⁢(x))+dd⁢x⁢(g⁢(x));

that is,

if ⁢j⁢(x)=f⁢(x)+g⁢(x),then ⁢j′⁢(x)=f′⁢(x)+g′⁢(x).

Difference Rule. The derivative of the difference of a function f and a function g is the same as the difference of the derivative of f and the derivative of g:

dd⁢x⁢(f⁢(x)−g⁢(x))=dd⁢x⁢(f⁢(x))−dd⁢x⁢(g⁢(x));

that is,

if ⁢j⁢(x)=f⁢(x)−g⁢(x),then ⁢j′⁢(x)=f′⁢(x)−g′⁢(x).

Constant Multiple Rule. The derivative of a constant k multiplied by a function f is the same as the constant multiplied by the derivative:

dd⁢x⁢(k⁢f⁢(x))=k⁢dd⁢x⁢(f⁢(x));

that is,

if ⁢j⁢(x)=k⁢f⁢(x),then ⁢j′⁢(x)=k⁢f′⁢(x).
Proof.

We provide only the proof of the sum rule here. The rest follow in a similar manner.

For differentiable functions f⁢(x) and g⁢(x), we set j⁢(x)=f⁢(x)+g⁢(x). Using the limit definition of the derivative we have

j′⁢(x)=limh→0j⁢(x+h)−j⁢(x)h.

By substituting j⁢(x+h)=f⁢(x+h)+g⁢(x+h) and j⁢(x)=f⁢(x)+g⁢(x), we obtain

j′⁢(x)=limh→0(f⁢(x+h)+g⁢(x+h))−(f⁢(x)+g⁢(x))h.

Rearranging and regrouping the terms, we have

j′⁢(x)=limh→0(f⁢(x+h)−f⁢(x)h+g⁢(x+h)−g⁢(x)h).

We now apply the sum law for limits and the definition of the derivative to obtain

j′⁢(x)=limh→0(f⁢(x+h)−f⁢(x)h)+limh→0(g⁢(x+h)−g⁢(x)h)=f′⁢(x)+g′⁢(x).

∎

Example 3.1.4 (Applying the Constant Multiple Rule).


Find the derivative of g⁢(x)=3⁢x2 and compare it to the derivative of f⁢(x)=x2.

Solution: We use the power rule directly:

g′⁢(x)=dd⁢x⁢(3⁢x2)=3⁢dd⁢x⁢(x2)=3⁢(2⁢x)=6⁢x.

Since f⁢(x)=x2 has derivative f′⁢(x)=2⁢x, we see that the derivative of g⁢(x) is 3 times the derivative of f⁢(x). This relationship is illustrated in Figure 3.2.

Figure 3.2:
−0.50.511.5224681012g⁢(x)=3⁢x2f⁢(x)=x2
−0.50.511.52510g′⁢(x)=6⁢xf′⁢(x)=2⁢x
Example 3.1.5 (Applying Basic Derivative Rules).


Find the derivative of f⁢(x)=2⁢x5+7.

Solution: We begin by applying the rule for differentiating the sum of two functions, followed by the rules for differentiating constant multiples of functions and the rule for differentiating powers. To better understand the sequence in which the differentiation rules are applied, we use Leibniz notation throughout the solution:

f′⁢(x) =dd⁢x⁢(2⁢x5+7)
=dd⁢x⁢(2⁢x5)+dd⁢x⁢(7) Apply the sum rule.
=2⁢dd⁢x⁢(x5)+dd⁢x⁢(7) Apply the constant multiple rule.
=2⁢(5⁢x4)+0 Apply the power rule and the constant rule.
=10⁢x4. Simplify.
Checkpoint 3.1.4.

Find the derivative of f⁢(x)=2⁢x3−6⁢x2+3.

Hint: Use the preceding example as a guide.

Example 3.1.6 (Finding the Equation of a Tangent Line).


Find the equation of the line tangent to the graph of f⁢(x)=x2−4⁢x+6 at x=1.

Solution: To find the equation of the tangent line, we need a point and a slope. To find the point, compute

f⁢(1)=12−4⁢(1)+6=3.

This gives us the point (1,3). Since the slope of the tangent line at 1 is f′⁢(1), we must first find f′⁢(x). Using the definition of a derivative, we have

f′⁢(x)=2⁢x−4

so the slope of the tangent line is f′⁢(1)=−2. Using the point-slope formula, we see that the equation of the tangent line is

y−3=−2⁢(x−1).

Putting the equation of the line in slope-intercept form, we obtain

y=−2⁢x+5.
Checkpoint 3.1.5.

Find the equation of the line tangent to the graph of f⁢(x)=3⁢x2−11 at x=2. Use the point-slope form.

Hint: Use the preceding example as a guide.

3.1.5 Derivative of the Exponential Function

Just as when we found the derivatives of other functions, we can find the derivatives of exponential and logarithmic functions using formulas. As we develop these formulas, we need to make certain basic assumptions. The proofs that these assumptions hold are beyond the scope of this course.

First of all, we begin with the assumption that the function B⁢(x)=bx,b>0, is defined for every real number and is continuous. In previous courses, the values of exponential functions for all rational numbers were defined—beginning with the definition of bn, where n is a positive integer—as the product of b multiplied by itself n times. Later, we defined b0=1,b−n=1bn, for a positive integer n, and bs/t=(bt)s for positive integers s and t. These definitions leave open the question of the value of br where r is an arbitrary real number. By assuming the continuity of B⁢(x)=bx,b>0, we may interpret br as limx→rbx where the values of x as we take the limit are rational. For example, we may view 4π as the number satisfying

43<4π<44,43.1<4π<43.2,43.14<4π<43.15,
43.141<4π<43.142,43.1415<4π<43.1416,….

As we see in the following table, 4π≈77.88.

Table 3.1: Approximating a Value of 4π
x4xx4x436443.14159377.880271048643.173.516694719843.141677.881026807143.1477.708472601343.14277.924225194443.14177.816274123743.1578.793242454143.141577.870230952643.284.448506289543.1415977.879947154344256

We also assume that for B⁢(x)=bx,b>0, the value B′⁢(0) of the derivative exists. In this section, we show that by making this one additional assumption, it is possible to prove that the function B⁢(x) is differentiable everywhere.

We make one final assumption: that there is a unique value of b>0 for which B′⁢(0)=1. We define e to be this unique value, as we did in Section 1.4. Figure 3.3 provides graphs of the functions y=2x,y=3x,y=2.7x, and y=2.8x. A visual estimate of the slopes of the tangent lines to these functions at 0 provides evidence that the value of e lies somewhere between 2.7 and 2.8. The function E⁢(x)=ex is called the natural exponential function. Its inverse, L⁢(x)=loge⁡x=ln⁡x is called the natural logarithmic function.

−0.20.20.40.811.21.43x2.8x2.7x2x
Figure 3.3: The graph of E⁢(x)=ex is between y=2x and y=3x.

For a better estimate of e, we may construct a table of estimates of B′⁢(0) for functions of the form B⁢(x)=bx. Before doing this, recall that

B′⁢(0)=limx→0bx−b0x−0=limx→0bx−1x≈bx−1x

for values of x very close to zero. For our estimates, we choose x=0.00001 and x=−0.00001 to obtain the estimate

b−0.00001−1−0.00001<B′⁢(0)<b0.00001−10.00001.

See the following table.

Table 3.2: Estimating a Value of e
bb−0.00001−1−0.00001<B′⁢(0)<b0.00001−10.00001bb−0.00001−1−0.00001<B′⁢(0)<b0.00001−10.0000120.693145<B′⁢(0)<0.693152.71831.000002<B′⁢(0)<1.0000122.70.993247<B′⁢(0)<0.9932572.7191.000259<B′⁢(0)<1.0002692.710.996944<B′⁢(0)<0.9969542.721.000627<B′⁢(0)<1.0006372.7180.999891<B′⁢(0)<0.9999012.81.029614<B′⁢(0)<1.0296252.71820.999965<B′⁢(0)<0.99997531.098606<B′⁢(0)<1.098618

The evidence from the table suggests that 2.7182<e<2.7183.

The graph of E⁢(x)=ex together with the line y=x+1 are shown in Figure 3.4. This line is tangent to the graph of E⁢(x)=ex at x=0.

Figure 3.4: The tangent line to E⁢(x)=ex at x=0 has slope 1.
−1−0.50.510.511.522.5exx+1

Now that we have laid out our basic assumptions, we begin our investigation by exploring the derivative of B⁢(x)=bx,b>0. Recall that we have assumed that B′⁢(0) exists. By applying the limit definition to the derivative we conclude that

B′⁢(0)=limh→0b0+h−b0h=limh→0bh−1h. (3.1)

Turning to B′⁢(x), we obtain the following.

B′⁢(x) =limh→0bx+h−bxh Apply the limit definition of the derivative.
=limh→0bx⁢bh−bxh Note that⁢bx+h=bx⁢bh.
=limh→0bx⁢(bh−1)h Factor out⁢bx.
=bx⁢limh→0bh−1h Apply a limit law.
=bx⁢B′⁢(0) Use ⁢B′⁢(0)=limh→0b0+h−b0h=limh→0bh−1h.

We see that on the basis of the assumption that B⁢(x)=bx is differentiable at 0,B⁢(x) is not only differentiable everywhere, but its derivative is

B′⁢(x)=bx⁢B′⁢(0). (3.2)

For E⁢(x)=ex,E′⁢(0)=1. Thus, we have E′⁢(x)=ex. (The value of B′⁢(0) for an arbitrary function of the form B⁢(x)=bx,b>0, will be derived later.)

Theorem 3.4 (Derivative of the Natural Exponential Function).

Let E⁢(x)=ex be the natural exponential function. Then

E′⁢(x)=ex.
Example 3.1.7 (Derivative involving natural exponential).


Find the equation of the tangent line at x=0 where f⁢(x)=3⁢x3/2−5⁢ex.

Solution:

y =m⁢(x−x0)+y0
x0 =0
y0 =f⁢(0)=3⁢(0)−5⁢e0=−5
f′⁢(x) =3⋅32⁢x1/2−5⁢ex=92⁢x−5⁢ex
m =f′⁢(0)=0−5=−5
y =−5⁢x−5

Glossary

constant multiple rule

the derivative of a constant c multiplied by a function f is the same as the constant multiplied by the derivative: dd⁢x⁢(c⁢f⁢(x))=c⁢f′⁢(x)

constant rule

the derivative of a constant function is zero: dd⁢x⁢(c)=0, where c is a constant

difference rule

the derivative of the difference of a function f and a function g is the same as the difference of the derivative of f and the derivative of g: dd⁢x⁢(f⁢(x)−g⁢(x))=f′⁢(x)−g′⁢(x)

power rule

the derivative of a power function is a function in which the power on x becomes the coefficient of the term and the power on x in the derivative decreases by 1: If n is an integer, then dd⁢x⁢xn=n⁢xn−1

product rule

the derivative of a product of two functions is the derivative of the first function times the second function plus the derivative of the second function times the first function: dd⁢x⁢(f⁢(x)⁢g⁢(x))=f′⁢(x)⁢g⁢(x)+g′⁢(x)⁢f⁢(x)

quotient rule

the derivative of the quotient of two functions is the derivative of the first function times the second function minus the derivative of the second function times the first function, all divided by the square of the second function: dd⁢x⁢(f⁢(x)g⁢(x))=f′⁢(x)⁢g⁢(x)−g′⁢(x)⁢f⁢(x)(g⁢(x))2

sum rule

the derivative of the sum of a function f and a function g is the same as the sum of the derivative of f and the derivative of g: dd⁢x⁢(f⁢(x)+g⁢(x))=f′⁢(x)+g′⁢(x)

Key Concepts

  • •

    The derivative of a constant function is zero.

  • •

    The derivative of a power function is a function in which the power on x becomes the coefficient of the term and the power on x in the derivative decreases by 1.

  • •

    The derivative of a constant c multiplied by a function f is the same as the constant multiplied by the derivative.

  • •

    The derivative of the sum of a function f and a function g is the same as the sum of the derivative of f and the derivative of g.

  • •

    The derivative of the difference of a function f and a function g is the same as the difference of the derivative of f and the derivative of g.