Calculus 1 · Module 06 / 10 · Derivatives of Special Functions
06 Mechanics Module

Special Functions

Trig, exponentials, logs, and inverse trig — the derivative formulas you memorize cold, and the chain-rule patterns that use them.

sin peaks → cos = 0
sin x cos x = (sin x)′
Tutorial · ~1000 words

01Sine and cosine

The two special limits from Module 02 — $\lim_{h\to 0}\frac{\sin h}{h} = 1$ and $\lim_{h\to 0}\frac{1-\cos h}{h} = 0$ — plug into the limit definition to give the cleanest derivative pair in mathematics:

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

The hero graph shows why this is believable: wherever $\sin$ peaks or bottoms out (slope zero), $\cos$ crosses zero; wherever $\sin$ climbs steepest, $\cos$ is at its maximum. Keep the sign straight: cosine's derivative carries the minus. These formulas are the reason radians are mandatory — in degrees, an ugly factor of $\pi/180$ contaminates everything.

02The other four trig functions

The remaining four follow from the quotient rule applied to $\sin$ and $\cos$ — derive them once, then memorize:

Memory pattern: every "co-" function ($\cos$, $\cot$, $\csc$) gets a negative sign, and each co-derivative is the mirror of its partner with every function swapped for its co-version.

03The exponential function

The number $e \approx 2.71828$ is defined so that this works:

$$\frac{d}{dx}\,e^x = e^x$$

The exponential function is its own derivative — its height is its slope at every point. That self-similarity is why $e^x$ governs everything that grows in proportion to its size: populations, compound interest, radioactive decay. For other bases, a correction factor appears:

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

so $\frac{d}{dx}2^x = 2^x\ln 2$. (Check the consistency: when $a = e$, $\ln e = 1$ and the factor vanishes.)

04The natural logarithm

$$\frac{d}{dx}\,\ln x = \frac{1}{x} \qquad (x > 0) \qquad\qquad \frac{d}{dx}\,\log_a x = \frac{1}{x \ln a}$$

A power function's derivative ($x^{-1}$) coming from a non-power function is one of calculus's happiest surprises — it fills the single gap the reverse power rule will have in Module 10. Practical tip: use log laws to expand before differentiating. For $y = \ln\dfrac{x^2\sqrt{x+1}}{(2x-3)^4}$, expanding to $2\ln x + \tfrac{1}{2}\ln(x+1) - 4\ln(2x-3)$ turns a nightmare into three easy chain-rule terms.

05Everything meets the chain rule

Each formula above has a chain-rule version with $u = g(x)$ inside; these generalized forms are what you actually use:

$$\frac{d}{dx}\sin u = \cos u \cdot u' \qquad \frac{d}{dx}\,e^u = e^u \cdot u' \qquad \frac{d}{dx}\ln u = \frac{u'}{u}$$

Examples: $\frac{d}{dx}\sin(5x) = 5\cos(5x)$; $\frac{d}{dx}e^{3x^2} = 6x\,e^{3x^2}$; $\frac{d}{dx}\ln(x^2+1) = \frac{2x}{x^2+1}$. The $\frac{u'}{u}$ pattern for logs is so common it deserves its own neuron. Watch the notation trap: $\sin^2 x$ means $(\sin x)^2$ — a power of sine, differentiated with the chain rule as $2\sin x\cos x$ — while $\sin(x^2)$ has the square inside.

06Inverse trig functions

The two that matter most in Calc 1:

$$\frac{d}{dx}\arcsin x = \frac{1}{\sqrt{1 - x^2}} \qquad\qquad \frac{d}{dx}\arctan x = \frac{1}{1 + x^2}$$

(Also $\arccos x$, whose derivative is just the negative of arcsine's.) Strange but true: the derivatives of inverse trig functions are purely algebraic. These arrive via implicit differentiation — a preview of Module 07 — and their real importance blooms in integration, where $\frac{1}{1+x^2}$ would otherwise be impossible to antidifferentiate.

07Mixed practice: choosing the pattern

Fluency means recognizing which formula plus which structural rule applies. $y = x^2 e^x$ is a product: $y' = 2xe^x + x^2e^x = xe^x(2 + x)$. $y = e^{\sin x}$ is a composition: $y' = e^{\sin x}\cos x$. $y = \dfrac{\ln x}{x}$ is a quotient: $y' = \dfrac{\frac{1}{x}\cdot x - \ln x}{x^2} = \dfrac{1 - \ln x}{x^2}$. Same six memorized formulas, different scaffolding. When stuck, name the outermost structure aloud — product, quotient, or composition — before writing anything.

08Logarithmic differentiation

For functions with a variable base and variable exponent, like $y = x^x$, neither the power rule (needs constant exponent) nor the exponential rule (needs constant base) applies. The trick: take $\ln$ of both sides, use log laws, then differentiate implicitly. From $\ln y = x\ln x$, differentiating gives $\frac{y'}{y} = \ln x + 1$, so $y' = x^x(\ln x + 1)$. The same technique tames big products and quotients: logs convert multiplication into addition before you differentiate.

The formula card to memorize cold. $(\sin x)' = \cos x$; $(\cos x)' = -\sin x$; $(\tan x)' = \sec^2 x$; $(e^x)' = e^x$; $(a^x)' = a^x\ln a$; $(\ln x)' = \frac{1}{x}$; $(\arcsin x)' = \frac{1}{\sqrt{1-x^2}}$; $(\arctan x)' = \frac{1}{1+x^2}$. Every one of these has a chain-rule version with $u$ inside and a trailing $u'$.

Practice · 20 problems · tap to reveal each solution
1

Differentiate $y = \sin x + 3\cos x$.

Solution

$y' = \cos x - 3\sin x$.

2

Differentiate $y = \tan x - \sec x$.

Solution

$y' = \sec^2 x - \sec x\tan x$.

3

Differentiate $y = \sin(5x)$.

Solution

Chain rule: $y' = 5\cos(5x)$.

4

Differentiate $y = \cos(x^3)$.

Solution

$y' = -\sin(x^3)\cdot 3x^2 = -3x^2\sin(x^3)$.

5

Differentiate $y = \sin^2 x$ and contrast with $y = \sin(x^2)$.

Solution

$\sin^2 x = (\sin x)^2 \Rightarrow y' = 2\sin x\cos x$.

$\sin(x^2) \Rightarrow y' = 2x\cos(x^2)$. Different placement of the square, different answer.

6

Differentiate $y = e^{3x}$ and $y = e^{-x^2}$.

Solution

$\left(e^{3x}\right)' = 3e^{3x}$; $\left(e^{-x^2}\right)' = -2x\,e^{-x^2}$.

7

Differentiate $y = 5^x$.

Solution

$y' = 5^x \ln 5$.

8

Differentiate $y = \ln(x^2 + 1)$.

Solution

$\dfrac{u'}{u}$ pattern: $y' = \dfrac{2x}{x^2 + 1}$.

9

Differentiate $y = \ln(\sin x)$. Simplify.

Solution

$y' = \dfrac{\cos x}{\sin x} = \cot x$.

10

Product: differentiate $y = x^2 e^x$ and factor the result.

Solution

$y' = 2xe^x + x^2e^x = xe^x(2 + x)$.

11

Product: differentiate $y = x\sin x$, then find $y'(\pi)$.

Solution

$y' = \sin x + x\cos x$. At $\pi$: $0 + \pi(-1) = -\pi$.

12

Quotient: differentiate $y = \dfrac{\ln x}{x}$.

Solution

$y' = \dfrac{\frac{1}{x}\cdot x - \ln x \cdot 1}{x^2} = \dfrac{1 - \ln x}{x^2}$.

13

Quotient: differentiate $y = \dfrac{e^x}{x + 1}$.

Solution

$y' = \dfrac{e^x(x+1) - e^x}{(x+1)^2} = \dfrac{x\,e^x}{(x+1)^2}$.

14

Composition stack: differentiate $y = e^{\sin x}$.

Solution

$y' = e^{\sin x}\cos x$.

15

Expand first with log laws, then differentiate: $y = \ln\dfrac{x^3}{2x + 1}$.

Solution

$y = 3\ln x - \ln(2x+1)$, so $y' = \dfrac{3}{x} - \dfrac{2}{2x+1}$.

16

Differentiate $y = \arctan(2x)$.

Solution

$y' = \dfrac{2}{1 + (2x)^2} = \dfrac{2}{1 + 4x^2}$.

17

Differentiate $y = \arcsin(x^2)$.

Solution

$y' = \dfrac{2x}{\sqrt{1 - x^4}}$.

18

Find the tangent line to $y = e^x$ at $x = 0$, and to $y = \ln x$ at $x = 1$. Notice anything?

Solution

$e^x$ at $0$: point $(0,1)$, slope $1$ → $y = x + 1$.

$\ln x$ at $1$: point $(1,0)$, slope $1$ → $y = x - 1$. Mirror images across $y = x$, as inverses should be.

19

A weight oscillates with position $s(t) = 4\cos(2t)$ cm. Find its velocity and acceleration, and verify $a(t) = -4s(t)$.

Solution

$v = -8\sin(2t)$; $a = -16\cos(2t)$.

$-4s = -16\cos(2t) = a$. ✓ (Simple harmonic motion.)

20

Challenge — logarithmic differentiation: find $y'$ for $y = x^x$ ($x > 0$).

Solution

$\ln y = x\ln x$. Differentiate: $\dfrac{y'}{y} = \ln x + 1$.

So $y' = x^x(\ln x + 1)$.