How are the derivatives of sine and cosine obtained?
Find derivatives that use , , , , and , know why the sine, cosine, and rules hold, and use them for tangent lines and rates with units.
. Why: with and the limits , , the difference quotient goes to .
. Note the minus: just right of , goes down while .
: the slope equals the height. The number is the base whose graph has slope at .
, for only: is defined only for .
For : (why: Unit 3). With , gives back . In the base is (power rule); in the exponent is .
is not a power of , so the power rule does not apply. Sums and constant multiples work as before: .
The minus sign of cosine
Common mistake
Correction . The “co” function gets the minus.
is not a power
Common mistake
Correction The variable is in the exponent, so the power rule does not apply: .
Stay in the domain of
Common mistake : at and .
Correction needs , so only .
Today's question
Last time I promised you four new functions. Here's the catch: the power rule only works on x to the n. Sine x, cosine x, e to the x, the natural log of x. None of these is a power of x. So where does the slope come from?
By the end, you'll have all four rules, plus a to the x.
Start with sine. We need an identity from precalculus: sine of x plus h is sine x cosine h, plus cosine x sine h. And we need two limits from Unit 1, too. As h goes to zero, sine h over h goes to one. And cosine h minus one, all over h, goes to zero.
Both of those are true only when h is measured in radians.
That's why calculus always uses radians. Now the slope of sine. The limit as h goes to zero, of sine of x plus h, minus sine x, all over h. Put the identity in, and park the two sine x terms next to each other. Sine x cosine h, minus sine x, plus cosine x sine h, all over h.
Pull sine x out of the first two terms. Why group the sine x terms like that? Because now the fraction splits into two pieces, and both pieces are the Unit 1 limits. As h goes to zero, this piece goes to zero, and this piece goes to one. Sine x times zero, plus cosine x times one.
Only cosine x is left. So that's rule one. The derivative of sine x is cosine x.
Cosine
Cosine works the same way. Its identity: cosine of x plus h is cosine x cosine h, minus sine x sine h. This identity brings a minus, and that minus rides all the way down. The limit as h goes to zero, of cosine of x plus h, minus cosine x, all over h. Put the identity in and group the cosine x terms, just like before.
Cosine x times cosine h minus one over h, minus sine x times sine h over h.
Same two pieces again, zero and one. Cosine x times zero, minus sine x times one. Here's rule two. The derivative of cosine x is negative sine x. That minus came straight from the identity.
e to the x
Now e to the x. Here's its difference quotient: e to the x plus h, minus e to the x, all over h. Split e to the x plus h into e to the x times e to the h, and pull e to the x out. Equals e to the x, times e to the h minus one, over h. Look at that last fraction.
Its limit is the slope of e to the x right at zero. And that's exactly what the number e is. e is the base whose tangent at zero has slope one. So the limit is one, and e to the x times one is e to the x. That's rule three.
The derivative of e to the x is e to the x. Slope equals height. Careful with one look-alike. x to the e: here x is the base, and e is just a number up top. So the power rule works: e, times x to the e minus one.
Now turn it around. In e to the x, x sits in the exponent. That's not a power of x, so no power rule. It stays e to the x.
a^x and ln x
What if the base isn't e? Take a to the x, where a is positive. So the rule is: a to the x, times the natural log of a. For example, the derivative of two to the x is two to the x, times the natural log of two. And if a is e, the natural log of e is one, so we're back to e to the x.
We'll prove this rule in Unit 3; today we use it. The derivative of the natural log of x is one over x, for x greater than zero. Why insist on x greater than zero? Plug in negative two: one over x gives negative one half. But the natural log of negative two isn't defined.
No curve there, so no slope there. Hold on to that; it comes back in Example one.
Combining derivative rules
These new rules mix with the old ones. Sums and constant multiples work the same way. Try three e to the x, minus two cosine x. Three e to the x, minus two times negative sine x. Two minuses meet.
Example one. f of x is four times the natural log of x, minus x squared, for x greater than zero. In part a, find f prime. In part b, find the tangent line at x equals one. In part c, where is the tangent line horizontal? The plan: go term by term, then the point and the slope, then set f prime to zero, and stay inside the domain.
Part a. f prime of x is four times one over x, minus two x.
That's four over x, minus two x. In part b, find the point first. f of one is four times the natural log of one, minus one squared. The natural log of one is zero, so f of one is negative one. Now the slope. f prime of one is four over one, minus two, which is two.
Point and slope go into the line. y equals negative one, plus two times x minus one. Part c. Horizontal means slope zero. So set f prime equal to zero. Multiply through by x.
Four minus two x squared equals zero, so x squared is two. So x is plus or minus root two. But look back at the function. The natural log of x needs x greater than zero. So only root two counts.
On the graph, that's the one flat spot at the top. There's one like it in your workbook. Here's the slip: plus or minus root two, so two horizontal tangents. But f is only defined where x is positive. Negative root two is outside the domain.
No curve there, no tangent there.
Problem 2
Example two. This is the graph of f prime, not f. There's no formula for f, and that's fine. g of x is f of x, minus four times the natural log of x. Find g prime, then g prime of one, and decide whether g has a horizontal tangent at x equals four. The plan: write the structure first, then read f prime off the graph.
g prime of x is f prime of x, minus four times one over x. Part b. g prime of one is f prime of one, minus four over one. Read f prime of one off the graph. It's the height at one, not the slope. The height at one is two.
So g prime of one is two minus four, negative two. Part c. A horizontal tangent means g prime of four is zero. g prime of four is f prime of four, minus four over four. Again, it's a height. The height at four is one.
So it's one minus one, which is zero. g prime of four is zero, so yes: the tangent to g is horizontal at x equals four. One more like this is in your workbook.
Worked examples
Example 1
Let for . (a) Find . (b) Write an equation of the tangent line at . (c) Where is the tangent line horizontal?
Hint
lives only where .
Answer and solution
(not : needs )
Type: tangent lines and a horizontal tangent. Method: f'(x) term by term; point and slope at x = 1; solve f'(x) = 0 inside the domain.
(b) f(1) = 4 ln 1 - 1 = -1 and f'(1) = 4 - 2 = 2, so y = -1 + 2(x - 1).
(c) x = sqrt(2) or x = -sqrt(2), but ln x is defined only for x > 0, so x = sqrt(2).
Example 2
The graph of , the derivative of , is shown for . Let . (a) Write in terms of . (b) Find . (c) Is the tangent line to the graph of horizontal at ? Justify.
Let for . (a) Find all values of where the line tangent to the graph of is horizontal. (b) Write an equation of the tangent line at the smaller of these values.
Hint
Solve on the interval: has two solutions.
Answer and solution
and
f'(x) = 1 - 2 sin x. Horizontal tangent: 1 - 2 sin x = 0, so sin x = 1/2.
(a) In [0, 2pi]: x = pi/6 and x = 5pi/6.
(b) f(pi/6) = pi/6 + 2(sqrt(3)/2) = pi/6 + sqrt(3). The slope is 0, so the line is y = pi/6 + sqrt(3).
Common mistake Finding only one solution of sin x = 1/2 on [0, 2π].
The graph of is shown, with four points marked. At which of these values of is the slope of the line tangent to the graph the greatest?
xy123456-11Graph of f(x)Hint
The slope of is . Compare at the four points.
Answer and solution
Answer C.
The slope of the tangent line is f'(x) = cos x, not the height sin x.
The greatest slope is at pi/6 (C). (A) is the highest point, and (D) the lowest: there the slope is 0. (B) is the steepest drop, but its slope is -1, the least.
Common mistake Choosing the highest point π/2: height is not slope.
The height of a buoy above the sea floor is meters, where is the time in seconds. Which of the following is true at ?
The buoy is falling at 1 meter per second.
The buoy is rising at 1 meter per second.
The buoy is rising at meters per second.
The buoy is rising at meters per second.
Hint
Rising or falling depends on the sign of .
Answer and solution
Answer B. The buoy is rising at 1 meter per second.
The rate is H'(t) = 2 cos t meters per second.
Positive, so the buoy is rising at 1 meter per second: (B). (A) takes the derivative of sin t as -cos t. (C) takes it as sin t. (D) is the height H(pi/3), not the rate.
Common mistake Using sin instead of cos: √3 instead of 1.