impera Open Impera

AP Calculus BC · Differentiation: definition and fundamental properties

Derivatives of trigonometric, exponential and logarithmic functions

1Sine and cosine

With $x$ in radians:

$$\frac{d}{dx}[\sin x] = \cos x \qquad \frac{d}{dx}[\cos x] = -\sin x$$

These come from the limit definition and the key limits $\lim_{h \to 0} \frac{\sin h}{h} = 1$ and $\lim_{h \to 0} \frac{\cos h - 1}{h} = 0$.

You can see the first rule on the graphs: where $\sin x$ peaks (at $\frac{\pi}{2}$), its slope is 0, and $\cos\frac{\pi}{2} = 0$. Where $\sin x$ crosses zero going up (at $0$), its slope is 1, and $\cos 0 = 1$.

The slope of sin x at each point is the value of cos x

Check yourself

What is the derivative of cos x?

  • −sin x

  • −cos x

  • cos x

  • sin x

Show the answer

−sin x

Watch the minus sign.

2The other trig functions

Using the quotient rule on $\tan x = \frac{\sin x}{\cos x}$:

$$\frac{d}{dx}[\tan x] = \frac{\cos x \cos x - \sin x(-\sin x)}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x$$

The full set to memorise:

  • $\frac{d}{dx}[\tan x] = \sec^2 x$
  • $\frac{d}{dx}[\cot x] = -\csc^2 x$
  • $\frac{d}{dx}[\sec x] = \sec x \tan x$
  • $\frac{d}{dx}[\csc x] = -\csc x \cot x$

Pattern: the "co-" functions (cos, cot, csc) all have a minus sign.

Check yourself

d/dx [sec x] =

  • sec² x

  • sec x tan x

  • −csc x cot x

  • tan² x

Show the answer

sec x tan x

Derived from (cos x)⁻¹.

3Exponential functions

The number $e \approx 2.71828$ is special because $e^x$ is its own derivative:

$$\frac{d}{dx}[e^x] = e^x$$

So the slope of $y = e^x$ at any point equals its height.

For other bases $a > 0$:

$$\frac{d}{dx}[a^x] = a^x \ln a$$

Example

$\frac{d}{dx}[2^x] = 2^x \ln 2$. Since $\ln e = 1$, the rule for $e^x$ is a special case.

Check yourself

d/dx [5eˣ] =

  • eˣ

  • 5eˣ

  • 5xeˣ⁻¹

  • 5eˣ ln 5

Show the answer

5eˣ

eˣ is its own derivative.

4Logarithmic functions

The natural logarithm $\ln x$ is the inverse of $e^x$:

$$\frac{d}{dx}[\ln x] = \frac{1}{x}, \quad x > 0$$

More generally, $\frac{d}{dx}[\ln|x|] = \frac{1}{x}$ for $x \neq 0$.

For other bases: $\frac{d}{dx}[\log_a x] = \frac{1}{x \ln a}$.

Using log laws first can save work. Example: $y = \ln(x^3) = 3\ln x$, so $y' = \frac{3}{x}$.

Check yourself

d/dx [ln x] =

  • 1/x

  • ln x

  • x

  • eˣ

Show the answer

1/x

Defined for x > 0.

5Combining the rules

These new derivatives combine with the product and quotient rules.

Worked example

$y = x^2 \sin x$

  1. Product rule: $y' = 2x \sin x + x^2 \cos x$.
Worked example

$y = \frac{e^x}{x}$

  1. Quotient rule: $y' = \frac{e^x \cdot x - e^x \cdot 1}{x^2} = \frac{e^x(x - 1)}{x^2}$.
Worked example

tangent to $y = x \ln x$ at $x = e$

  1. Point: $y = e \ln e = e$, so $(e, e)$.
  2. $y' = 1 \cdot \ln x + x \cdot \frac{1}{x} = \ln x + 1$; at $x = e$, $y' = 2$.
  3. Tangent: $y - e = 2(x - e)$.
Check yourself

d/dx [eˣ sin x] =

  • eˣ sin x

  • eˣ cos x

  • −eˣ cos x

  • eˣ sin x + eˣ cos x

Show the answer

eˣ sin x + eˣ cos x

Product rule.

6Going deeper: the full list, and using it fluently

Trigonometric

  • $(\sin x)' = \cos x$; $(\cos x)' = -\sin x$.
  • $(\tan x)' = \sec^2x$; $(\cot x)' = -\csc^2x$.
  • $(\sec x)' = \sec x\tan x$; $(\csc x)' = -\csc x\cot x$.

Memory aid: the derivatives of the "co-" functions carry a minus sign.

Exponential

  • $(e^x)' = e^x$.
  • $(a^x)' = a^x\ln a$.

Logarithmic

  • $(\ln x)' = \frac{1}{x}$.
  • $(\log_a x)' = \frac{1}{x\ln a}$.
Worked example

$y = 3^x + \log_2 x - \cot x$.

  1. $y' = 3^x\ln 3 + \frac{1}{x\ln 2} + \csc^2x$.
Worked example

$y = 5e^x - 2\ln x + 4\sin x$ at x = 1.

  1. $y' = 5e^x - \frac{2}{x} + 4\cos x$.
  2. At x = 1: 5e − 2 + 4 cos 1 = 13.59 − 2 + 2.16 = 13.75.

Simplify logarithms before differentiating

  • $\ln(x^3) = 3\ln x$: derivative $\frac{3}{x}$.
  • $\ln(5x) = \ln 5 + \ln x$: derivative $\frac{1}{x}$ (the constant disappears).
  • $\ln\left(\frac{x}{x + 1}\right) = \ln x - \ln(x + 1)$: derivative $\frac{1}{x} - \frac{1}{x + 1}$.

Tangent lines

Worked example

$y = e^x$ at x = 0.

  1. Point (0, 1); slope $e^0 = 1$.
  2. y = x + 1.
Worked example

$y = \ln x$ at x = e.

  1. Point (e, 1); slope $\frac{1}{e}$.
  2. $y - 1 = \frac{1}{e}(x - e)$, that is, $y = \frac{x}{e}$: the tangent passes through the origin.
Worked example

$y = \sin x$ at $x = \frac{\pi}{3}$.

  1. Point $\left(\frac{\pi}{3}, \frac{\sqrt{3}}{2}\right)$; slope $\cos\frac{\pi}{3} = \frac{1}{2}$.
  2. $y - \frac{\sqrt{3}}{2} = \frac{1}{2}\left(x - \frac{\pi}{3}\right)$.

With the product and quotient rules

  • $(x\ln x)' = \ln x + 1$.
  • $(e^x\sin x)' = e^x\sin x + e^x\cos x$.
  • $\left(\frac{\ln x}{x}\right)' = \frac{1 - \ln x}{x^2}$: zero at x = e.

Why e is special: $e^x$ is the only exponential function equal to its own derivative: at every point, its slope equals its height. For $2^x$ the slope is $(\ln 2)(2^x)$, about 0.693 times the height.

Where the limits come from: $(\sin x)' = \cos x$ rests on $\lim_{h \to 0}\frac{\sin h}{h} = 1$, which requires radians. In degrees the formulas would carry a factor of $\frac{\pi}{180}$.

Rates in context: a population is modeled by $P = 500 \cdot 1.03^t$. Then $P' = 500(1.03^t)\ln 1.03$; at t = 0 the population is growing at about 14.8 per unit of time.

Common mistakes

  • $(e^x)' = xe^{x-1}$ (the power rule does not apply to a variable exponent).
  • $(\cos x)' = \sin x$ (missing minus).
  • $(\ln 5x)' = \frac{1}{5x}$ (it is $\frac{1}{x}$).
  • $(a^x)' = a^x$ without the ln a.
  • Treating $e^2$ or ln 3 as variables.
  • Calculator in degree mode.
Check yourself

What is the derivative of f(x) = 4ˣ?

  • 4ˣ ln 4

  • 4ˣ ÷ ln 4

  • x · 4ˣ⁻¹

  • 4ˣ

Show the answer

4ˣ ln 4

For a constant base a, the derivative of aˣ is aˣ ln a.

7For top marks

  • Calculus uses radians; set your calculator accordingly.
  • Memorise all six trig derivatives, $e^x$, $a^x$, $\ln x$ and $\log_a x$.
  • Simplify with log laws before differentiating where possible.
  • Know key exact values: $\sin\frac{\pi}{6} = \frac{1}{2}$, $\cos\frac{\pi}{3} = \frac{1}{2}$, $\sin\frac{\pi}{4} = \cos\frac{\pi}{4} = \frac{\sqrt{2}}{2}$, $\tan\frac{\pi}{4} = 1$.
Example

"$f'(x) = \sec^2 x$, so $f'\left(\frac{\pi}{4}\right) = \frac{1}{\cos^2(\pi/4)} = \frac{1}{1/2} = 2$."

Check yourself

What is the slope of y = sin x at x = π?

  • 0

  • −1

  • π

  • 1

Show the answer

−1

cos π = −1.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera