← Return to lesson

Class materials · 2.7a

Derivatives of sin x, cos x, eˣ, ln x, and aˣ

Lecture transcript

0:00

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. Let's go get that five. We go back to the definition, one more time. Start with sine.

0:30

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.

1:02

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.

1:37

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 works the same way. Its identity: cosine of x plus h is cosine x cosine h, minus sine x sine h.

2:07

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.

2:41

Here's rule two. The derivative of cosine x is negative sine x. That minus came straight from the identity. 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.

3:14

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.

3:44

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. 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.

4:19

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. Now the natural log. 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.

4:53

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. 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. So it's three e to the x, plus two sine x.

5:27

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.

5:58

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.

6:30

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.

7:01

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. Example two. This is the graph of f prime, not f.

7:33

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. In part a, go term by term. g prime of x is f prime of x, minus four times one over x.

8:05

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.

8:35

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. We started with one question: where the slope comes from when there's no power of x. For sine, the definition split into two Unit 1 limits, and those only work in radians.

9:09

For cosine, the identity carried a minus all the way to negative sine x. For e to the x, e is the base with slope one at zero, so slope equals height. And the natural log of x has slope one over x, only where x is positive. Rules for a to the x, mixed sums, and tangent lines are in your workbook, with solutions on video. Questions go in the comments. Next up, still two point seven: a limit that is secretly a derivative. See you there.