Educerie

Educerie · AP · Calculus AB and BC

AP Calculus AB and BC 2.7

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

How do we find the rate of change at one instant, and how do we compute it quickly for any function?

What you will learn

  • Understand the four standard derivatives and why they are believable from graphs
  • Know that the cosine derivative carries a minus sign
  • Understand how to recognize the derivative definition inside a limit
  • Know that the formulas hold for radians only

You must be able to

  1. Differentiate combinations of sine, cosine, e to the x and ln x
  2. Write tangent lines using exact values
  3. Evaluate a limit by naming f and a
  4. Check that the subtracted term is f of a
  5. Keep e and pi exact in a no-calculator answer

In the exam. Section I multiple choice, no calculator: a sum of sin⁡x\sin x, cos⁡x\cos x, exe^x and ln⁡x\ln x differentiated and evaluated at a friendly angle or at 1, or a limit that you must recognize as f′(a)f'(a). Section II free response: these functions appear as models and in tables, and their derivatives are needed for tangent lines, rates and later in Units 4 to 6. There is no formula sheet, so you must know all four.

1The four derivatives

FunctionDerivativeDomain note
sin⁡x\sin xcos⁡x\cos xall real xx
cos⁡x\cos x−sin⁡x-\sin xall real xx
exe^xexe^xall real xx
ln⁡x\ln x1x\dfrac{1}{x}x>0x > 0 only

Why they are believable. Figure 1 shows the sine graph and its tangents.

Figure 1. Left: the graph of sin x with tangent lines at x = 0, pi/2 and pi, whose slopes are 1, 0 and -1. Right: the graph of cos x, whose height at each of those x is the slope of sin x there y = sin x x slope 1 slope 0 slope -1 Figure 1. Left: the graph of sin x with tangent lines at x = 0, pi/2 and pi, whose slopes are 1, 0 and -1. Right: the graph of cos x, whose height at each of those x is the slope of sin x there y = cos x x 1 0 -1
Figure 1 · The graph of sin x with tangent lines at x = 0, π ÷ 2 and π, beside the graph of cos x. The heights of cos x at those x are the slopes of sin x.

At x=0x = 0 the sine curve rises with slope 1, at π2\frac{\pi}{2} it is level, and at π\pi it falls with slope −1-1. Those slopes, 1,0,−11, 0, -1, are exactly the heights of cos⁡x\cos x at the same xx-values. That is what "the derivative of sin⁡x\sin x is cos⁡x\cos x" says.

For exe^x, the idea is that the number ee is chosen so that the curve y=exy = e^x has slope 1 at x=0x = 0, and then the slope at any point equals the height at that point. The graph is as steep as it is high.

For ln⁡x\ln x, the slope is large near 00 where the curve climbs steeply, and small far to the right where it flattens. 1x\frac{1}{x} behaves that way.

The sign trap. The "co" function, cosine, has a negative derivative. Sine does not. A way to remember: the slope of cosine is negative just after x=0x = 0, where the cosine graph starts to fall.

2Differentiating combinations

Use the rules from 2.6 around these four derivatives.

Example (invented): f(x)=3sin⁡x−2cos⁡xf(x) = 3\sin x - 2\cos x.

f′(x)=3cos⁡x−2(−sin⁡x)=3cos⁡x+2sin⁡x f'(x) = 3\cos x - 2(-\sin x) = 3\cos x + 2\sin x

The minus in front of 2cos⁡x2\cos x and the minus in ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x combine into a plus. At x=π2x = \frac{\pi}{2}: f′(π2)=3(0)+2(1)=2f'(\frac{\pi}{2}) = 3(0) + 2(1) = 2.

Example (invented): g(x)=5ex−4ln⁡xg(x) = 5e^x - 4\ln x.

g′(x)=5ex−4xg′(1)=5e−4 g'(x) = 5e^x - \frac{4}{x} \qquad g'(1) = 5e - 4

An exact answer keeps ee. Do not replace it with 2.718 in a Part A question.

Example (invented): h(x)=x2+exh(x) = x^2 + e^x. h′(x)=2x+exh'(x) = 2x + e^x, so h′(0)=0+1=1h'(0) = 0 + 1 = 1.

Constants stay constants. ddx(e2)=0\frac{d}{dx}(e^2) = 0, because e2e^2 is a number. And ddx(ln⁡5)=0\frac{d}{dx}(\ln 5) = 0 for the same reason.

3Tangent lines

Example (invented): y=exy = e^x at x=0x = 0. The point is (0,1)(0, 1) and the slope is e0=1e^0 = 1. The line is y−1=1(x−0)y - 1 = 1(x - 0), which is y=x+1y = x + 1.

Example (invented): y=ln⁡xy = \ln x at x=1x = 1. The point is (1,0)(1, 0) and the slope is 11=1\frac{1}{1} = 1. The line is y=x−1y = x - 1.

Example (invented): y=sin⁡xy = \sin x at x=π2x = \frac{\pi}{2}. The point is (π2,1)(\frac{\pi}{2}, 1) and the slope is cos⁡π2=0\cos\frac{\pi}{2} = 0. The line is the horizontal line y=1y = 1.

4A limit that is a derivative

The CED includes a second idea: recognizing the definition of the derivative inside a limit.

lim⁡h→0f(a+h)−f(a)h=f′(a)lim⁡x→af(x)−f(a)x−a=f′(a) \lim_{h \to 0} \frac{f(a + h) - f(a)}{h} = f'(a) \qquad \lim_{x \to a} \frac{f(x) - f(a)}{x - a} = f'(a)

If you can name ff and aa, and you know f′f', the limit is just f′(a)f'(a). No algebra is needed.

Follow four steps.

  1. Look at the part with +h+h (or xx). That is f(a+h)f(a + h) (or f(x)f(x)). Name ff.
  2. Find aa: the number that hh is added to, or that xx approaches.
  3. Check that the subtracted term is f(a)f(a). If it is not, the limit is not a derivative.
  4. Calculate f′(a)f'(a).

Example (invented): lim⁡h→0sin⁡(π6+h)−12h\displaystyle \lim_{h \to 0} \frac{\sin\left(\frac{\pi}{6} + h\right) - \frac{1}{2}}{h}.

f(x)=sin⁡xf(x) = \sin x, a=π6a = \frac{\pi}{6}, and f(a)=12f(a) = \frac{1}{2}. So the limit is f′(π6)=cos⁡π6=32f'(\frac{\pi}{6}) = \cos\frac{\pi}{6} = \frac{\sqrt{3}}{2}.

Example (invented): lim⁡h→0e2+h−e2h\displaystyle \lim_{h \to 0} \frac{e^{2 + h} - e^2}{h}.

f(x)=exf(x) = e^x and a=2a = 2. The limit is f′(2)=e2f'(2) = e^2.

Example (invented): lim⁡x→1ln⁡xx−1\displaystyle \lim_{x \to 1} \frac{\ln x}{x - 1}.

f(x)=ln⁡xf(x) = \ln x, a=1a = 1, and f(1)=0f(1) = 0, so ln⁡x\ln x is f(x)−f(1)f(x) - f(1). The limit is f′(1)=1f'(1) = 1.

Example (invented): lim⁡x→π/2cos⁡xx−π2\displaystyle \lim_{x \to \pi/2} \frac{\cos x}{x - \frac{\pi}{2}}.

f(x)=cos⁡xf(x) = \cos x, a=π2a = \frac{\pi}{2}, f(a)=0f(a) = 0. The limit is f′(π2)=−sin⁡π2=−1f'(\frac{\pi}{2}) = -\sin\frac{\pi}{2} = -1.

Two limits worth knowing.

  • lim⁡h→0sin⁡hh=1\displaystyle \lim_{h \to 0} \frac{\sin h}{h} = 1, because f(x)=sin⁡xf(x) = \sin x, a=0a = 0, f(0)=0f(0) = 0, and f′(0)=cos⁡0=1f'(0) = \cos 0 = 1.
  • lim⁡h→0cos⁡h−1h=0\displaystyle \lim_{h \to 0} \frac{\cos h - 1}{h} = 0, because f(x)=cos⁡xf(x) = \cos x, a=0a = 0, f(0)=1f(0) = 1, and f′(0)=−sin⁡0=0f'(0) = -\sin 0 = 0.

You can also use known derivatives from earlier topics. lim⁡h→09+h−3h\displaystyle \lim_{h \to 0} \frac{\sqrt{9 + h} - 3}{h} is f′(9)f'(9) for f(x)=xf(x) = \sqrt{x}, which is 16\frac{1}{6}.

5Radians

All of these formulas hold only for angles in radians. If a calculator is in degree mode, a numerical derivative of sin⁡x\sin x will not equal cos⁡x\cos x. Before any Part B trig calculation, check that the calculator is in radian mode.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.