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

Sine and cosine

The derivative of sin⁡x\sin x comes from the definition and two limits from the squeeze theorem lesson, lim⁡h→0sin⁡hh=1\lim_{h \to 0} \frac{\sin h}{h} = 1 and lim⁡h→0cos⁡h−1h=0\lim_{h \to 0} \frac{\cos h - 1}{h} = 0. By the angle-addition formula,
sin⁡(x+h)−sin⁡xh=sin⁡xcos⁡h+cos⁡xsin⁡h−sin⁡xh=sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh.\begin{aligned} &\frac{\sin(x + h) - \sin x}{h} \\ &\qquad = \frac{\sin x \cos h + \cos x \sin h - \sin x}{h} \\ &\qquad = \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h}. \end{aligned}
As h→0h \to 0 this approaches sin⁡x⋅0+cos⁡x⋅1=cos⁡x\sin x \cdot 0 + \cos x \cdot 1 = \cos x. The same steps with cos⁡(x+h)=cos⁡xcos⁡h−sin⁡xsin⁡h\cos(x + h) = \cos x \cos h - \sin x \sin h give −sin⁡x-\sin x for the derivative of cos⁡x\cos x. Both limits need radians, so the rules do too.
y = sin x with its tangent lines at 0, π/2, π, 3π/2, 2π. Their slopes are 1, 0, −1, 0, 1.
y = cos x takes exactly those values at those points. Dashed: x = π/2 and 3π/2, where sin x has horizontal tangents and cos x = 0.

The natural exponential and logarithm

For f(x)=exf(x) = e^x, the difference quotient factors:
ex+h−exh=ex⋅eh−1h.\frac{e^{x + h} - e^x}{h} = e^x \cdot \frac{e^h - 1}{h}.
The second factor is the slope of a secant to y=exy = e^x from (0,1)(0, 1). One way to define ee is as the base bb for which bh−1h→1\frac{b^h - 1}{h} \to 1. With h=0.01h = 0.01 that quotient is about 0.700.70 for b=2b = 2 and 1.101.10 for b=3b = 3, and about 1.0051.005 for b=e≈2.718b = e \approx 2.718.
So the tangent to y=exy = e^x at (0,1)(0, 1) has slope 11, and the derivative of exe^x is ex⋅1=exe^x \cdot 1 = e^x. At every point of the graph, the slope equals the height.
Tangents to y = eˣ at x = −1, 0, 1 have slopes 1/e, 1, e, equal to their heights.
The same factoring works for any base a>0a > 0: ddx[ax]=ax⋅lim⁡h→0ah−1h\frac{d}{dx}\big[a^x\big] = a^x \cdot \lim_{h \to 0}\frac{a^h - 1}{h}. Writing ah=ehln⁡aa^h = e^{h \ln a} and k=hln⁡ak = h\ln a (for a≠1a \ne 1), the limit is ln⁡a⋅lim⁡k→0ek−1k=ln⁡a\ln a \cdot \lim_{k \to 0}\frac{e^k - 1}{k} = \ln a. So ddx[ax]=axln⁡a\frac{d}{dx}\big[a^x\big] = a^x \ln a.
The graph of y=ln⁡xy = \ln x is the reflection of y=exy = e^x across the line y=xy = x, because ln⁡x\ln x undoes exe^x. Reflecting a line across y=xy = x swaps its rise and run, so its slope becomes the reciprocal. The tangent to exe^x at (ln⁡a,a)(\ln a, a) has slope aa, so the tangent to ln⁡x\ln x at (a,ln⁡a)(a, \ln a) has slope 1a\frac{1}{a}.
The tangent to y = eˣ at (ln 2, 2) has slope 2. Its reflection, the tangent to y = ln x at (2, ln 2), has slope ½.

Using the rules

Limits that are derivatives