Download 4.5 Product, Quotient and Other Trigonometric Rules

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Trigonometric functions wikipedia , lookup

Transcript
368
CHAPTER 4. THE DERIVATIVE
4.5
Product, Quotient and Other Trigonometric Rules
In this section we first introduce the rule for the differentiation of a product of two functions.
From that and the chain rule, we will derive a rule for differentiating a quotient of two functions.
With a quotient rule we will be able to use the rules for sin x and cos x to derive rules for tan x
and cot x. For completeness we will also compute the rules for sec x and csc x and thus finish
our rules for the six basic trigonometric functions.
The rules for calculating the derivative of a product or a quotient are not as simple as for a
sum or difference. However they are straightforward when applied correctly.
4.5.1
Product Rule Stated and First Applied
We begin with the statement and some discussion of the product rule, followed by several examples demonstrating its mechanics. The actual proof we leave until the next subsection.
Theorem 4.5.1 (Product Rule) At each x for which
d
derivative dx
(f (x) · g(x)) exist, and it is given by
d
dx f (x)
and
d
d
d
[f (x) · g(x)] = f (x) g(x) + g(x) f (x).
dx
dx
dx
d
dx g(x)
exist, so does the
(4.46)
Though we defer the proof, we can make a couple of observations.
ˆ This is not simply the product of the two derivatives. (See for example Exercise 2 in
Section 4.2, page 323.)
d
d
(Cf (x)) = C dx
f (x).
ˆ Recall that multiplicative constants are preserved in the derivative: dx
One could say that the constant “amplifies” the function f (x) by the factor C, causing
the same amplification factor the rate of change, or derivative, of the new function Cf (x).
(For example, C = 2 doubles the function, and thus doubles the rate of change.)
Next notice that the first term of (4.46) treats f (x) as though it were a constant
amplifying the change in (i.e., derivative of) g(x), while the second term treats g(x) as
though it were a constant amplifying the change in f (x). In this way the product rule
accounts for the changes in each function, as amplified by the other. A close scrutiny of
the proof shows how this emerges.
Our first example shows how the product rule gives us what we expect for a very simple case.
Example 4.5.1 Let f (x) = x5 . Then f ′ (x) = 5x4 from the power rule. But we can also write
f (x) = x3 · x2 , from which the product rule gives
d 3 2
d 2
d 3
x · x = x3 ·
(x ) + x2 ·
(x ) = x3 · 2x + x2 · 3x2 = 2x4 + 3x4 = 5x4 .
dx
dx
dx
Of course the product rule will be of much more use than proving things we already knew. The
next example requires the product rule (or some very clever tricks with difference quotients!):
Example 4.5.2 Suppose f (x) = x2 sin x. This is a product of two differentiable46 functions.
Its derivative is given by
d sin x
d(x2 )
d(x2 sin x)
= x2 ·
+ sin x ·
= x2 cos x + sin x · 2x = x(x cos x + 2 sin x)
dx
dx
dx
The last step was just an algebraic one, factoring the final answer as much as possible.
f ′ (x) =
46 If the functions are not differentiable, this fact appears as we take the derivatives on the right-hand side of
the product rule statement (4.46). Thus we usually just apply the rule—instead of checking differentiability first.
4.5. PRODUCT, QUOTIENT AND OTHER TRIGONOMETRIC RULES
369
Now we list several simple examples to illustrate the basic mechanics of the product rule.
d 2
ˆ
(3x + 5x − 9)(5x3 + 7x2 + 27x − 4)
dx
d
d
= (3x2 + 5x − 9) (5x3 + 7x2 + 27x − 4) + (5x3 + 7x2 + 27x − 4) (3x2 + 5x − 9)
dx
dx
= (3x2 + 5x − 9)(15x2 + 14x + 27) + (5x3 + 7x2 + 27x − 4)(6x + 5).
ˆ
d
d
d
(x cos x) = x ·
cos x + cos x ·
x = x(− sin x) + cos x · 1 = −x sin x + cos x.
dx
dx
dx
dV
dP
d
[P V ] = P ·
+V ·
.
dt
dt
dt
One of the interesting aspects of the calculus is the various ways that the consistency of
differentiation (derivative-taking) rules can be seen by using different strategies for particular
d
derivatives. Earlier we showed how to use the product rule to compute dx
(x2 · x3 ) = · · · = 5x4 ,
d
(x5 ) = 5x4 . We can also see how the product
which we can also compute with the power rule dx
rule gives us the behavior of multiplicative constants in derivative computations. For example,
d
d
(2 sin x) = 2 dx
sin x = 2 cos x, we can consider 2 sin x to be the product of
instead of writing dx
two functions, and compute the derivative using the product rule if we care to:
ˆ
d
d
d
(2 sin x) = 2 ·
sin x + sin x ·
(2) = 2 cos x + sin x · 0 = 2 cos x + 0 = 2 cos x,
dx
dx
dx
as before. Of course the rule on multiplicative constants (page 310) is faster.
Because the product rule calls for the computation of derivatives of the factors, it often
“calls” upon other rules to compute these component derivatives. Conversely, other rules may
call upon the product rule. As we saw with the chain rule, it is crucial that we look at the overall
structure of a function to see which rule to apply first, and then work our way in towards the
inner structures as the differentiation rules require in their turns; we compute derivatives “from
the outside to the inside.” The next two examples are product rules first, which then call the
chain rule.
Example 4.5.3 Suppose f (x) = sin x2 cos x3 . This is foremost a product of two functions, so
we need the product rule first.47
d sin x2 cos x3
dx
d
d
= sin x2 ·
cos x3 + cos x3 ·
sin x2
dx
dx
d 2
d 3
3
2
2
3
x + cos x · cos x ·
x
= sin x · − sin x ·
dx
dx
(Product Rule)
= −3x2 sin x2 sin x3 + 2x cos x3 cos x2 .
(Rearrangement)
f ′ (x) =
= (sin x2 )(− sin x3 )(3x2 ) + cos x3 cos x2 · 2x
(Chain Rule, twice)
Thus, when we took the derivatives called for by the product rule, these required the chain rule.
(We could have factored the final computation but it is not necessary.)
47 Note that sin x2 cos x3 is taken to be a product. Indeed, it is understood that the sine and cosine functions
here are separate factors. Also note that x2 is the input of the sine, and x3 the input of the cosine. The convention
is to understand this function, as written, in the following way:
ˆ
˜ˆ
˜
sin x2 cos x3 = (sin x2 )(cos x3 ) = sin(x2 ) cos(x3 ) .
370
CHAPTER 4. THE DERIVATIVE
For a polynomial example, consider the following:
Example 4.5.4 f (x) = (x2 + 2x + 3)2 (x2 + 1)3 . Without the product rule we would be forced
to carry out the multiplications, but since this is written as a product of two functions, we can
instead use the product rule. (The calculus is finished in four lines; the rest is algebra, which is
optional.)
d 2
(x + 2x + 3)2 (x2 + 1)3
dx
d 2
d 2
(x + 1)3 + (x2 + 1)3 ·
(x + 2x + 3)2
= (x2 + 2x + 3)2 ·
dx
dx
d 2
d
= (x2 + 2x + 3)2 · 3(x2 + 1)2 ·
(x + 1) + (x2 + 1)3 · 2(x2 + 2x + 3)1 (x2 + 2x + 3)
dx
dx
= (x2 + 2x + 3)2 · 3(x2 + 1)2 (2x) + (x2 + 1)3 · 2(x2 + 2x + 3)(2x + 2)
f ′ (x) =
= 6x(x2 + 2x + 3)2 (x2 + 1)2 + (4x + 4)(x2 + 1)3 (x2 + 2x + 3)
= (x2 + 2x + 3)(x2 + 1)2 6x(x2 + 2x + 3) + (4x + 4)(x2 + 1)
= (x2 + 2x + 3)(x2 + 1)2 6x3 + 12x2 + 18x + 4x3 + 4x + 4x2 + 4
= (x2 + 2x + 3)(x2 + 1)2 10x3 + 16x2 + 22x + 4 .
Again, the statement of the product rule here called for derivatives of the factors, and each of
those required a chain rule. Note how one factor of (x2 + 2x + 3) and two factors of (x2 + 1)
could be factored from each term. Such algebraic manipulations are useful, for instance, if a sign
chart for the derivative is desired.
It is also possible that a product rule can occur within a chain rule, as in the following.
√
Example 4.5.5 Suppose f (x) = sin x cos x. Then
f ′ (x) =
=
=
=
=
d √
sin x cos x
dx
1
d
√
(sin x cos x)
·
dx
2 sin x cos x
1
d
d
√
· sin x cos x + cos x sin x
dx
dx
2 sin x cos x
1
√
· [sin x(− sin x) + cos x cos x]
2 sin x cos x
− sin2 x + cos2 x
√
.
2 sin x cos x
This is not the only method for solving this problem, but it is perhaps the most straightforward.48
We can also use these product rule-derived derivatives to help graph functions.
48 Actually, with trigonometry we can rewrite the problem and the answer, using sin 2θ = 2 sin θ cos θ and
cos 2θ = cos2 θ − sin2 θ. Below, “ =⇒ ” represents another chain rule problem (calling yet another chain rule).
r
1
cos 2x
sin 2x
=⇒
f ′ (x) = · · · = q
.
f (x) =
2
2 1 sin 2x
2
4.5. PRODUCT, QUOTIENT AND OTHER TRIGONOMETRIC RULES
371
√
Example 4.5.6 f (x) = x 1 − x2 . This function we will differentiate and then graph.
p
d p
d
1 − x2 + 1 − x2 ·
(x)
dx
dx
p
d
1
·
(1 − x2 ) + 1 − x2 · 1
=x· √
2 1 − x2 dx
p
1
=x· √
· (−2x) + 1 − x2
2
2 1−x
p
−x2
=√
+ 1 − x2 .
2
1−x
f ′ (x) = x ·
To graph this function we would like to know where it is increasing and where it is decreasing
and thus locate local extrema. But even before delving into the derivative, we can first notice the
domain of f (x) is −1 ≤ x ≤ 1, and the function (height) itself is zero at x = 0, ±1 (x-intercepts).
Next we proceed to see where f ′ > 0 and f ′ < 0. For such a task, it is best if the derivative
is written as a single fraction:
√
√
√
p
1 − x2
−x2 + 1 − x2
1 − 2x2 Optional (1 − 2x)(1 + 2x)
−x2
′
2
√
+ 1−x ·√
= √
= √
.
f (x) = √
1 − x2
1 − x2
1 − x2
1 − x2
1 − x2
Now we see that this is undefined (f ′ DNE) except for −1 < x < 1. The fraction which is f ′ is
zero exactly where the numerator is zero and the denominator is not. Thus
f ′ (x) = 0 ⇐⇒ 1 − 2x2 = 0 ⇐⇒ 1 = 2x2 ⇐⇒
1
1
= x2 ⇐⇒ x = ± √ ≈ ±0.7071.
2
2
From this we can make a sign chart for f ′ to see where f is increasing/decreasing.
1 − 2x2
f ′ (x) = √
1 − x2
Test
x =
Factors f ′ (x):
Sign f ′ (x): −1
Behavior of f (x):
−0.9
⊖/⊕
⊖
DEC
ց
0
⊕/⊕
− √12
⊕
INC
ր
0.9
⊖/⊕
√1
2
⊖
1
DEC
ց
√
√
We see a local minimum at x = −1/ 2, and a local maximum at x = 1/ 2. The actual
points are
1
1
1 p
1
1
√
√
√
√
= −
,f −
,−
· 1/2 ≈ −0.7071, −
−
,
2
2
2
2
2
1
1
1 p
1
1
√ ,f √
≈ 0.7071,
= √ , √ · 1/2
.
2
2
2
2
2
All this behavior leads us to the graph, which is given in Figure 4.18. Notice the (computer
1 − 2x2
−→ −∞ as x → −1+ or x → 1− .
generated) graph there also reflects that f ′ (x) = √
1 − x2
372
CHAPTER 4. THE DERIVATIVE
0.5
−1
√1
2
−1
√
2
1
−0.5
√
√
Figure 4.18: Complete graph of f (x) = x 1 − x2 , with local extrema marked at x = ±1/ 2.
4.5.2
Product Rule Proof
For completeness we include here a proof of the product rule.
The proof of the product rule is not accomplished so much by “brute force,” but instead
utilizes some clever rewriting.
It is normal for questions of why one thinks of the “trick” used to make it work, but these
should not immediately distract from the fact that it does. Many of the proofs used today have
been condensed over the decades, or even centuries since the first proofs, and are therefore quite
short because revisits to earlier proofs naturally lead us to shortcuts. As a result, proofs often
look less like the natural paths of discovery and more like terse explanations. Nonetheless there
is knowledge to be gained from even these short proofs—for instance, the “trick” may be useful
in another context—and so they are worth reading and understanding, though again we will
almost always just quote the results—without reference to their proofs—when solving problems.
The proof of the product rule depends upon another theorem which is intuitive, is important
in its own right, and has its own short, somewhat clever proof. In sum, the theorem says that
to have a well-defined slope at x = a, a function must also be continuous there.
Theorem 4.5.2 (f ′ (a) exists) =⇒ (f (x) is continuous at x = a).
Proof: Recall that
f ′ (a) exists
⇐⇒
f ′ (a) = lim
∆x→0
f (a + ∆x) − f (a)
∈ R,
∆x
i.e., the limit exists as a (finite) real number. We need to show that this implies
f (x) is continuous at x = a, which is equivalent to lim f (x) = f (a) (Theorem 3.4.2,
x→a
page 211). First we re-write this limit using the substitution x = a + ∆x, which
gives x → a ⇐⇒ ∆x → 0 properly. Then we perform an algebraic expansion of the
argument of the limit by subtracting and adding f (a) (which exists and is real or the
4.5. PRODUCT, QUOTIENT AND OTHER TRIGONOMETRIC RULES
373
above limit could not exist and be finite), and divide and multiply by ∆x, to get
lim f (x) = lim f (a + ∆x)
x→a
∆x→0
= lim [f (a + ∆x) − f (a) + f (a)]
∆x→0
f (a + ∆x) − f (a)
= lim
· ∆x + f (a)
∆x→0
∆x
= f ′ (a) · 0 + f (a) = f (a),
q.e.d.
Note that the last line of the proof used the fact that the difference quotient approached the
finite number f ′ (a), and so the limit form was “f ′ (a) · 0 + f (a),” yielding f (a).
This theorem is sometimes described as “differentiability implies continuity.” In fact differentiability is a stronger criterion than continuity.49 This result is also interesting in its contrapositive form (recall P → Q ⇐⇒ (∼ Q) → (∼ P )):
f (x) discontinuous at x = a
=⇒
f ′ (x) DNE at x = a.
To paraphrase, at the point x = a, to have a tangent line the function must be continuous,
and equivalently, a function which is discontinuous can not have a tangent line. Now we use
Theorem 4.5.2 and some algebraic tricks to prove the product rule.
Proof: (Product Rule) Suppose f (x) and g(x) are both differentiable at a given
x, i.e., f ′ (x) and g ′ (x) both exist. Then f and g are both continuous at x, and
d
f (x + ∆x)g(x + ∆x) − f (x)g(x)
f (x)g(x) = lim
∆x→0
dx
∆x
f (x + ∆x) g(x + ∆x) − g(x) + g(x) f (x + ∆x) − f (x)
= lim
∆x→0
∆x
f (x + ∆x) − f (x)
g(x + ∆x) − g(x)
+ g(x) ·
= lim f (x + ∆x) ·
∆x→0
∆x
∆x
= f (x)g ′ (x) + g(x)f ′ (x),
q.e.d.
The last line of the proof follows because as ∆x → 0, by continuity (which the previous theorem
gives us from the differentiability) we have f (x + ∆x) → f (x), and the two difference quotients
approach f ′ (x) and g ′ (x) respectively, while g(x) is constant in the limit (which is in ∆x, not x).
The middle two lines were simply algebra, with the “clever trick” in the second line using the fact
that AB−CD = A(B−D)+D(A−C), except here it was with f (x + ∆x) g(x + ∆x) − f (x) g(x).
| {z } | {z } |{z} |{z}
A
B
C
D
49 It is quite possible to have the left and right limits in the definition of the derivative be different, making the
derivative nonexistent, while the function can still be continuous. An example is f (x) = |x| at x = 0. From the
left, the difference quotients are all −1, while from the right they are all 1. This was explained in Subsection 4.2.6,
beginning on page 320. It is also possible for the limit in the derivative
√ definition to be infinite (thus the derivative
does not exist) and the function still continuous, as with f (x) = 3 x, with f ′ (x) = 1/(3x2/3 ) −→ ∞ as x → 0.
374
4.5.3
CHAPTER 4. THE DERIVATIVE
Quotient Rule
We often need to find derivatives of functions of the form h(x) = f (x)/g(x). We can rewrite
these as h(x) = f (x) (g(x))−1 , and use the product rule, which will then call the chain rule, to
get
d f (x)(g(x))−1
dx
d
d (g(x))−1 + (g(x))−1 f (x)
= f (x)
dx
dx
d
−2 d
= f (x) (−1)(g(x))
g(x) + (g(x))−1 f (x)
dx
dx
h′ (x) =
=
d
d
−f (x) dx
g(x)
dx f (x)
+
(g(x))2
g(x)
=
d
d
−f (x) dx
g(x) g(x) dx
f (x)
+
.
2
(g(x))
(g(x))2
Combining the two fractions and putting the term with the negative sign (−) second, we can
write:
Theorem 4.5.3 If f and g are differentiable at x, and g(x) 6= 0, then
d
d
g(x) dx
f (x) − f (x) dx
g(x)
d f (x)
=
.
2
dx g(x)
(g(x))
(4.47)
As noted in the derivation, this rule is actually redundant given the availability of the product
and quotient rules. However, it is useful especially because the resulting derivative emerges as
an already combined fraction.
sin x
Example 4.5.7 Find f ′ (x) if f (x) =
.
x
Solution: Using the quotient rule we have
f ′ (x) =
d
d
sin x − sin x dx
(x)
x dx
x cos x − sin x
=
.
(x)2
x2
The quotient rule is especially useful for rational functions, i.e., ratios of polynomials.
Example 4.5.8 Suppose f (x) =
x3 − 8
. Then
x2 − 9
d
d
(x2 − 9) dx
(x3 − 8) − (x3 − 8) dx
(x2 − 9)
(x2 − 9)2
2
2
(x − 9)(3x ) − (x3 − 8)(2x)
=
(x2 − 9)2
4
3x − 27x2 − 2x4 + 16x
=
(x2 − 9)2
4
x − 27x2 + 16x
=
.
(x2 − 9)2
f ′ (x) =
4.5. PRODUCT, QUOTIENT AND OTHER TRIGONOMETRIC RULES
375
As with the product rule, the quotient rule can be embedded within a chain or product rule,
or vice-versa. The following uses a rule derived in the Exercise 26a, page 367, namely that
d
dx sec x = sec x tan x.
Example 4.5.9 Suppose f (x) = sec
x
. Then
x−1
d
x
sec
dx
x−1
d
x
x
x
tan
·
= sec
x−1
x−1
dx x − 1
d
(x) − x ·
(x − 1) · dx
x
x
= sec
tan
·
x−1
x−1
(x − 1)2
(x − 1)(1) − (x)(1)
x
x
tan
·
= sec
x−1
x−1
(x − 1)2
x
x−1−x
x
= sec
tan
·
x−1
x−1
(x − 1)2
x
x
−1
tan
.
sec
=
(x − 1)2
x−1
x−1
f ′ (x) =
d
dx (x
− 1)
!
In fact the quotient rule computation
for this particular
problem could have been avoided through
x
d
1
d
long division, giving dx
=
1
+
,
making
for a simple power/chain rule, but the
x−1
dx
x−1
quotient rule was straightforward, and left that factor as a single fraction.
For an example of
d √
d 1/2
chain√rules inside a quotient rule, consider the next example. Recall dx
x = dx
x
= 21 x−1/2 =
1/ (2 x).
cos 2x
Example 4.5.10 Suppose f (x) = √
. Then
x2 − 1
√
√
d
d
cos 2x − cos 2x · dx
x2 − 1 dx
x2 − 1
f (x) =
√
2
x2 − 1
√
d 2
1
d
·
(x − 1)
(2x) − cos 2x · √
x2 − 1 · − sin 2x · dx
2
2 x − 1 dx
=
x2 − 1
√
cos 2x· 6 2x
√
x2 − 1 · (sin 2x · (−2)) − √
x2 − 1
6 2 x2 − 1
=
·√
2
x −1
x2 − 1
| {z }
′
To Simplify
−2(x2 − 1) sin 2x − x cos 2x
=
.
(x2 − 1)3/2
It is an interesting exercise in both calculus and algebraic simplification to derive the same
conclusion using f (x) = cos 2x · (x2 − 1)−1/2 and the product rule (which would also call the
chain rule twice).
376
CHAPTER 4. THE DERIVATIVE
4.5.4
Tangent, Cotangent, Secant and Cosecant Rules
The following are derivative rules for the remaining trigonometric functions. These rules are
given in both simple (“matching variable”) and chain rule versions.
d tan x
dx
d cot x
dx
d sec x
dx
d csc x
dx
d tan u
dx
d cot u
dx
d sec u
dx
d csc u
dx
= sec2 x,
= − csc2 x,
= sec x tan x,
= − csc x cot x,
du
.
dx
du
= − csc2 u ·
.
dx
du
= sec u tan u ·
.
dx
du
= − csc u cot u ·
.
dx
= sec2 u ·
(4.48)
(4.49)
(4.50)
(4.51)
These should all be memorized. It may help to notice patterns when comparing the derivatives
of tangent and cotangent, secant and cosecant, and how these are similar to the comparison of
sine and cosine derivatives. In short, these formulas come in function/cofunction pairs.
We will prove the derivative of tan x is sec2 x and leave the rest as exercises. The chain rule
versions then follow. To see the formula for the tangent, we rewrite it as the quotient of sine
and cosine, and use the quotient rule.
d sin x
d
tan x =
dx
dx cos x
d sin x
dx
x
− sin x · d cos
dx
(cos x)2
cos x cos x − (sin x)(− sin x)
=
cos2 x
2
cos x + sin2 x
1
=
=
= sec2 x,
cos2 x
cos2 x
=
Chain Rule Version:
cos x ·
d
du
du
d
tan u =
tan u ·
= sec2 u ·
.
dx
du
dx
dx
The fourth line above used some trigonometric identities (sin2 θ + cos2 θ = 1, 1/ cos θ = sec θ).
x
= sec2 x was already proved. With
The last line was our usual chain rule argument, given d tan
dx
(4.48)–(4.51), and derivatives of sine and cosine from earlier((4.18), (4.19), page 317), we finally
have derivatives of all six trigonometric functions.
Every student of calculus should memorize the derivatives of the trigonometric functions,
and be able to derive these new ones from knowing the derivatives of sin x and cos x.
Now we can apply these. First we look at some of the simpler examples.
Example 4.5.11
ˆ
d 9
d
sec x9 = sec x9 tan x9 ·
(x ) = sec x9 tan x9 · 9x8 = 9x8 sec x9 tan x9 .
dx
dx
d
d 2
d 2
x tan x = x2 ·
tan x + tan x ·
(x ) = x2 sec2 x + 2x tan x.
dx
dx
dx
d
d
d
d h x i
(x cot x) = x ·
(cot x) + cot x ·
(x) = (x)(− csc2 x) + cot x
ˆ
=
dx tan x
dx
dx
dx
= −x csc2 x + cot x.
ˆ
4.5. PRODUCT, QUOTIENT AND OTHER TRIGONOMETRIC RULES
π
−π
QI
QII
377
QIII
QIV
QI
QII
QIII
QIV
Figure 4.19: Partial graph of y = tan x. Since y = sin x/ cos x, there are vertical asymptotes
at each x-value where cos x = 0 (and sin θ = ±1). Recall that tan x is positive if x represents
an angle in the first or third quadrants, and negative in the second and fourth quadrants, so
d
tan x = sec2 x
the quadrants represented by the x-values are labeled QI–QIV. Note that dx
which is positive where defined (coinciding with where tan x is defined), and thus tan x is an
increasing function where defined.
Note that we turned a quotient rule into a product rule for the last derivative problem.
Before continuing with more complicated examples, we should briefly consider why it makes
d
sense graphically that dx
tan x = sec2 x. The graph of f (x) = tan x is given in Figure 4.19,
and so we can consider its derivative formula in light of that graph. Now that derivative is
always positive where defined; sec2 x > 0, and in fact sec2 x = 1/ cos2 x ≥ 1. Thus tan x is
always increasing in any interval on which it is defined. Furthermore sec2 x → ∞ as x →
5π
± π2 , ± 3π
2 , ± 2 , etc., and that has implications for the graph. Of course tan x = sin x/ cos x has
vertical
asymptotes
at each of1those x-values (where cos x = 0 and sin x = ±1). Finally, note that
d tan x 2 =
sec
x
= cos2 0 = 1, for instance, so the slope through the (0, tan 0) = (0, 0) is
dx
x=0
x=0
1. That slope repeats every π in both directions, due to the π-periodic nature of the tangent.
Example 4.5.12 Here is a typical chain rule problem involving the tangent.
p
p
p
d p 2
1
d
d(x2 − 1)
x − 1 = sec2 x2 − 1 · √
tan x2 − 1 = sec2 x2 − 1 ·
·
dx
dx
dx
2 x2 − 1
√
√
2
2
2
2
x sec x − 1
sec x − 1
√
√
· 2x =
.
=
2 x2 − 1
x2 − 1
Note that, tempting as it may be, the radicals above cannot be combined or canceled in any of
the steps; one is outside the secant-squared function, and the other is safely
√ quarantined inside.
Note also that squaring the secant function does not alter its argument x2 − 1.
Example 4.5.13 Another chain rule problem is the following. Note cot3 x = (cot x)3 .
d
d
cot3 x = 3(cot x)2
cot x = 3 cot2 x(− csc2 x) = −3 cot2 x csc2 x.
dx
dx
378
CHAPTER 4. THE DERIVATIVE
Example 4.5.14 One product rule problem is the following:
d
d
d
(sec x tan x) = sec x ·
tan x + tan x sec x
dx
dx
dx
= sec x sec2 x + tan x sec x tan x
= sec3 x + sec x tan2 x.
There is so much algebraic structure built into the trigonometric functions that such an answer
can be rewritten many different ways. For instance, since tan2 x + 1 = sec2 x our final answer
can be written
sec x(sec2 x + tan2 x) = sec x(sec2 x + sec2 x − 1) = sec x(2 sec2 x − 1),
for instance. Another alternative is sec x(tan2 x + 1 + tan2 x) = sec x(2 tan2 x + 1). When we
study integration particularly, it is important to consider such options.
4.5.5
Putting Rules Together—Carefully
This subsection is just a reminder that, when computing the derivative of a complicated function
it is quite possible to use several of the previous differentiation rules. In such cases we need to
recognize which rules apply, and then exactly how to invoke them.
It is easy to lapse into intellectual laziness by skipping steps, but this is an error-prone habit
which does not save any time in the long run. Some steps can be combined into other steps
with little risk, especially with practice (the sum and additive and multiplicative constant rules
come to mind). However, the quotient, product, power, trigonometric, and all forms of the chain
rule should be written out in their own steps before we compute the derivatives internal to these
rules. For instance, it is tempting to compute all at once:
d 3
(x + 9x2 + sin 2x)(tan x5 )
dx
= (x3 + 9x2 + sin 2x)(sec2 x5 · 5x4 ) + tan x5 · (3x2 + 18x + cos 2x · 2).
However, this approach has a couple of disadvantages which become more important as functions
become increasingly complicated. First, we have to keep track of what rule applies where, without
the benefit of breaking it into steps. Second, if we would like to check our work we can try to
re-read what we wrote, but we find ourselves again performing the same mental gymnastics we
did the first time, and likely repeating any mistakes we made that first time. We can go a long
way towards avoiding these difficulties by writing out all the steps. Since each step invokes a
single differentiation rule (though we may apply different rules to different terms in the same
“step”), much of our work is recopying the line above, which takes very little time. Care in
“bookkeeping” will translate into clearer thinking and less error (and easier error correction!).
Consider the following approach to the problem above:
d 3
(x + 9x2 + sin x)(tan x5 )
dx
d
d
= x3 + 9x2 + sin 2x
tan x5 + tan x5 ·
x3 + 9x2 + sin 2x
dx
dx
5
d(2x)
d
x
5
2
3
2
2 5
+ tan x · 3x + 18x + cos 2x ·
= x + 9x + sin 2x sec x ·
dx
dx
= (x3 + 9x2 + sin 2x)(sec2 x5 · 5x4 ) + tan x5 · (3x2 + 18x + cos 2x · 2)
= 5x4 (x3 + 9x2 + sin 2x) sec2 x5 + (3x2 + 18x + 2 cos 2x) tan x5 .
4.5. PRODUCT, QUOTIENT AND OTHER TRIGONOMETRIC RULES
379
Ultimately this given function is a product, so the first step was exactly the statement of the
product rule. In the next line, we begin to take the derivatives demanded within the product
rule, and find some power rules (with the multiplicative constants along for the ride—i.e., with
the rule that multiplicative constants are preserved), and a couple of chain rules which we write
out exactly. Next we compute the derivatives of the “inside” functions demanded by the chain
rule, and finally we do some algebra to make the result more presentable. Note how we can
re-read this with great assurance that it is correct, since each step follows differentiation rules
in obvious (though the terms themselves may be complicated) ways.
In the examples which follow we will continue to write out all the steps, while being careful to
invoke them in the proper order. In effect, we work from the outside (large-structure) inwards.
p
Example 4.5.15 Find f ′ (x) if f (x) = 2 sin3 5x + csc x2 + 1
This is first a sum, and then there are several chain rules which come into play.
d p 2
d
csc x + 1
2 sin3 5x +
dx
dx
!
√
p
p
2+1
x
d
d
3
= 2 sin 5x + − csc x2 + 1 cot x2 + 1 ·
dx
dx
p
p
d(x2 + 1)
d sin 5x
1
= 2 · 3 sin2 5x ·
− csc x2 + 1 cot x2 + 1 · √
2
dx
dx
2 x +1
√
√
2
2
d(5x) csc x + 1 cot x + 1
√
= 6 sin2 5x cos 5x ·
· 2x
−
dx
2 x2 + 1
√
√
x csc x2 + 1 cot x2 + 1
2
√
= 6 sin 5x cos 5x · 5 −
x2 + 1
√
√
x csc x2 + 1 cot x2 + 1
2
√
= 30 sin 5x cos 5x −
.
x2 + 1
Example 4.5.16 Find f ′ (x) if f (x) = sin3 x2 tan x .
3
This is first a power and chain rule problem, since f (x) = sin x2 tan x . After a second,
trigonometric chain rule we will have a product rule. It is not necessary to notice all this
structure from the beginning; it all becomes apparent as we dissect the function, applying the
appropriate differentiation rules as we go:
f ′ (x) =
2 d sin x2 tan x
f ′ (x) = 3 sin x2 tan x
·
dx
d
= 3 sin2 x2 tan x · cos(x2 tan x) ·
x2 tan x
dx
d x2
d tan x
+ tan x ·
= 3 sin2 x2 tan x cos(x2 tan x) · x2
dx
dx
2
2
2
2
2
= 3 sin x tan x cos x tan x · x sec x + tan x · 2x
= 3 x2 sec2 x + 2x tan x sin2 x2 tan x cos x2 tan x .
(Now Rearrange)
In some cases it is best to simplify algebraically before applying differentiation rules. For an
obvious illustration of this, consider the following.
380
CHAPTER 4. THE DERIVATIVE
d
Example 4.5.17 Compute dx
(cos x sec x).
Solution: We have two methods that come to mind immediately:
ˆ
d sec x
d cos x
d(cos x sec x)
= cos x ·
+ sec x ·
= cos x sec x tan x + sec x(− sin x)
dx
dx
dx
= 1 · tan x − tan x = 0.
ˆ
d
d(cos x sec x)
=
(1) = 0.
dx
dx
As mentioned before, there is sometimes more than one “natural” method of computing a
derivative. The rules are consistent, and if correctly applied different methods will yield the same
result. Of course in the above example, the second method is much faster. The next example is
perhaps not so obvious.

z+1
1
+
d 
z − 1  . A method of brute force would be to
Example 4.5.18 Here we compute

z+1
dz
1−
z−1
perform the quotient rule and continue
from there:
z+1
z+1
z+1
z+1
d
d
1 − z−1
1
+
−
1
+
1
−
dz
z−1
z−1 dz
z−1
=
,
2
z+1
1 − z−1
from which we need to compute two more quotient rules. However, if we instead simplify the
function from the beginning, our work is greatly simplified too:


z+1
d 
z − 1 · z − 1  = d z − 1 + (z + 1) = d 2z = d (−z) = −1.
=


z+1 z−1
dz
dz z − 1 − (z + 1)
dz −2
dz
1−
z−1
1+
In applications especially, we are often led to complicated expressions for functions, for which
we then need to compute the derivatives. It is always better to look out for such cases in which
algebraic simplification from the beginning will simplify our calculus tasks, as well as give us
a look at a simpler form of the original function. As complicated as the above function first
appeared, it was simply the function −z (where both original and simplified are both defined,
which for this problem means z 6= 1). Note that even if we computed this derivative the longer
way, we might not recognize our answer to be simply −1.
4.5. PRODUCT, QUOTIENT AND OTHER TRIGONOMETRIC RULES
381
Exercises
For 1–8, compute the derivatives two different ways:
(a) by using the rule called upon by the way
the function is originally written; and
(b) by first simplifying the function, and
then computing the derivative of the simplified function in the obvious way (using
already established derivative formulas).
(c) Show that the answers are the same.
For instance, in 1, first use the prodd
(x4 ) with the
uct rule, and then compute dx
power rule, and finally show that the answers
are the same (e.g., both 4x3 for that case).
d 2 2
x ·x
dx
d x9
2.
dx x3
1.
3.
d
[cos x sec x]
dx
d
4.
[cos x tan x]
dx
1
d
5.
dx cos x
6.
d
[tan x cot x]
dx
d
[sin x sec x]
dx
d
1
8.
dx sin x
d
[x sin x cos x]
dx
d x3 − 7x + 5
13.
dx
x2 − 3
#
"
1
d 1 + x+1
14.
1
dx 1 − x−1
12.
15.
d 2
x cos x2
dx
d x4 + 3
17.
dx x − 1
16.
d 4 3
sec x + 2x
dx
d sin x + 3
19.
dx cos +2
18.
d
[sec 3x cot 5x]
dx
d
x
√
21.
dx
x2 + 1
d (x + 5)3
. Factor the numerator
22.
dx (x − 4)5
in your answer to simplify.
20.
7.
For 9–24, compute the given derivatives.
d 2 tan x
9.
dx
2
d
x +1
10.
dx sin x − 1
11.
d √
1 − csc 2x
dx
d 2
sin x cos3 x
dx
23.
24.
√
d 3 cot2 9x − cos 6x + 1
dx
d
[tan(x + tan(x + tan x))]
dx
d
25. Show that dx
[f (x)g(x)h(x)]
=
′
f (x)g(x)h (x) + f (x)g ′ (x)h(x) +
f ′ (x)g(x)h(x). What do you think will
be the derivative of f (x)g(x)h(x)i(x)?
(See notes on the intuition of the product rule, immediately following its introduction as Theorem 4.5.1 at the
start of this section.)
382
CHAPTER 4. THE DERIVATIVE
26. A simple, Earth-bound pendulum of
length L in meters has a period of oscillation of T seconds. That is, every
T (seconds) the pendulum completes
one cycle. The period varies with
p the
length by the equation T = 2π L/g,
where g = 9.8m/sec2 . Find the rate
of change of T with respect to L when
T = 3sec.
27. If the cost to manufacture x items is
C(x), then we define the average cost
per item to be
C(x) =
C(x)
,
x
(4.52)
and from this define the marginal average cost by C ′ (x) Find the average cost
per item function, and the marginal average average cost function, if
C(x) =
x2 + 3x
+ 100.
x+4
How do you interpret marginal average
cost?
28. The intensity I of a 100 watt (100W)
light bulb is given by
I(x) =
7.92W
,
x2
where x is the distance in meters from
the bulb. (The W in the equation
above can be suppressed in actual computations.)
(a) What are the units of I?
(b) Find
dI
dx .
What are its units?
(c) At what distance (accurate to the
nearest cm=0.01m) will the rate
of change of intensity be equal to
−3W/m?
29. A variable resistance R is given in a
circuit and the voltage is found by the
formula
5R + 10
.
V =
R+3
Find the instantaneous rate of change
of V with respect to R when R = 6Ω.
(V will be measured in volts.)
30. A double convex converging lens will
focus an object p distance in front of
the lens to an image a distance q from
the lens on the opposite side of the lens.
The lens has a focal length of f . (Here
all distances are in cm.) A well-known
formula in optics gives
1
1 1
+ = .
p q
f
Find an equation which represents the
rate of change of q with respect to
p, assuming f is constant. (Hint:
Solve the given equation for q and
then differentiate—that is take its
derivative—while assuming that f is
constant. From this you can determine
dq/dp.)