Plus
$7.99 / month
- GPT-OSS-20B (OpenAI)
- 20 AI credits/week
Save your current position in the course
Certificates are issued to Unlimited subscribers who finish a course. Your progress is saved either way — upgrade whenever you want yours.
Report a problem with this course via Discord
View available keyboard shortcuts
Reset all section and file completion progress
Calculus isn't just math—it's the math of motion. While basic math looks at static snapshots (boring), Calculus zooms into the "right now." Want to know your exact speed at the moment you hit a speed trap, not just your average for the trip? That's the derivative. It's the ultimate tool for tracking change in real-time, whether you're modeling a viral TikTok trend, stock market dips, or rocket launches. Let's move from the "average" to the "instant."
The derivative is born from the desire to find the slope of a curve at a single point $x = c$. In algebra, the slope $m$ requires two points: $(x_1, y_1)$ and $(x_2, y_2)$, where $m = \frac{y_2 - y_1}{x_2 - x_1}$.
In Calculus, we take a point $x$ and a slightly shifted point $x+h$. The slope of the secant line through $(x, f(x))$ and $(x+h, f(x+h))$ is: $$m_{sec} = \frac{f(x+h) - f(x)}{(x+h) - x} = \frac{f(x+h) - f(x)}{h}$$
{
"title": "Secant Line Approaching Tangent Line",
"width": 500,
"height": 300,
"background": "grid",
"elements": [
{ "type": "axes", "cx": 50, "cy": 250, "length": 200, "xLabel": "x", "yLabel": "y" },
{ "type": "polygon", "points": [[80, 220], [120, 180], [180, 100], [250, 50]], "stroke": "#6366f1", "fill": "none" },
{ "type": "point", "cx": 120, "cy": 180, "r": 4, "color": "#ef4444", "label": "P(x, f(x))" },
{ "type": "point", "cx": 180, "cy": 100, "r": 4, "color": "#14b8a6", "label": "Q(x+h, f(x+h))" },
{ "type": "line", "x1": 80, "y1": 233, "x2": 240, "y2": 20, "color": "#8b5cf6", "dashed": true, "label": "Secant Line" },
{ "type": "vector", "x1": 170, "y1": 110, "x2": 130, "y2": 170, "label": "h → 0", "color": "#f59e0b" }
]
}
To find the instantaneous slope, we let the distance $h$ shrink to zero. This leads to the formal definition of the derivative: $$f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$$
For a derivative to exist at $x = c$, the limit defined above must exist and be finite. Theorem: If $f$ is differentiable at $x=c$, then $f$ is continuous at $x=c$.
Where Differentiability Fails:
{
"title": "Common Non-Differentiable Points",
"width": 600,
"height": 200,
"background": "none",
"elements": [
{ "type": "line", "x1": 50, "y1": 50, "x2": 100, "y2": 150, "color": "#ef4444" },
{ "type": "line", "x1": 100, "y1": 150, "x2": 150, "y2": 50, "color": "#ef4444" },
{ "type": "label", "x": 100, "y": 170, "text": "Corner (|x|)", "align": "middle" },
{ "type": "line", "x1": 250, "y1": 150, "x2": 300, "y2": 150, "color": "#ef4444" },
{ "type": "circle", "cx": 300, "cy": 150, "r": 4, "stroke": "#ef4444", "fill": "white" },
{ "type": "point", "cx": 300, "cy": 50, "r": 4, "color": "#ef4444" },
{ "type": "line", "x1": 300, "y1": 50, "x2": 350, "y2": 50, "color": "#ef4444" },
{ "type": "label", "x": 300, "y": 170, "text": "Discontinuity", "align": "middle" },
{ "type": "polygon", "points": [[450, 150], [490, 120], [500, 100], [510, 80], [550, 50]], "stroke": "#ef4444", "fill": "none" },
{ "type": "line", "x1": 500, "y1": 150, "x2": 500, "y2": 50, "color": "#8b5cf6", "dashed": true },
{ "type": "label", "x": 500, "y": 170, "text": "Vertical Tangent", "align": "middle" }
]
}
To avoid the limit definition for every problem, we derive several fundamental rules:
{
"type": "line",
"title": "Function vs. Its Derivative",
"subtitle": "f(x) = x² and f'(x) = 2x",
"xLabel": "x",
"yLabel": "y",
"labels": ["-3", "-2", "-1", "0", "1", "2", "3"],
"datasets": [
{ "label": "f(x) = x²", "data": [9, 4, 1, 0, 1, 4, 9], "tension": 0.4 },
{ "label": "f'(x) = 2x (Slope)", "data": [-6, -4, -2, 0, 2, 4, 6], "tension": 0 }
]
}
The AP curriculum requires memorization and application of the following:
When functions are multiplied or divided, their derivatives are not simply the product or quotient of their individual derivatives.
The Product Rule: If $h(x) = f(x)g(x)$, then: $$h'(x) = f'(x)g(x) + f(x)g'(x)$$
The Quotient Rule: If $h(x) = \frac{f(x)}{g(x)}$, then: $$h'(x) = \frac{g(x)f'(x) - f(x)g'(x)}{[g(x)]^2}$$ (Mnemonic: "Low d-High minus High d-Low, over Low-Low")
Using the Quotient Rule and the identities for $\sin x$ and $\cos x$, we derive:
| Function | Derivative |
|---|---|
| $\tan x$ | $\sec^2 x$ |
| $\sec x$ | $\sec x \tan x$ |
| $\csc x$ | $-\csc x \cot x$ |
| $\cot x$ | $-\csc^2 x$ |
Find the derivative of $f(x) = 3x + 5$ using the limit definition. $$f'(x) = \lim_{h \to 0} \frac{3(x+h)+5 - (3x+5)}{h} = \lim_{h \to 0} \frac{3x+3h+5-3x-5}{h} = \lim_{h \to 0} \frac{3h}{h} = 3$$
Find $f'(x)$ for $f(x) = x^2$. $$f'(x) = \lim_{h \to 0} \frac{(x+h)^2 - x^2}{h} = \lim_{h \to 0} \frac{x^2+2xh+h^2-x^2}{h} = \lim_{h \to 0} (2x+h) = 2x$$
Find $f'(x)$ for $f(x) = \frac{1}{x}$. $$f'(x) = \lim_{h \to 0} \frac{\frac{1}{x+h} - \frac{1}{x}}{h} = \lim_{h \to 0} \frac{\frac{x - (x+h)}{x(x+h)}}{h} = \lim_{h \to 0} \frac{-h}{h x(x+h)} = \lim_{h \to 0} \frac{-1}{x(x+h)} = -\frac{1}{x^2}$$
Find $f'(x)$ for $f(x) = \sqrt{x}$. $$f'(x) = \lim_{h \to 0} \frac{\sqrt{x+h} - \sqrt{x}}{h}$$ Multiply by conjugate: $$\lim_{h \to 0} \frac{(\sqrt{x+h} - \sqrt{x})(\sqrt{x+h} + \sqrt{x})}{h(\sqrt{x+h} + \sqrt{x})} = \lim_{h \to 0} \frac{x+h-x}{h(\sqrt{x+h} + \sqrt{x})} = \frac{1}{2\sqrt{x}}$$
Calculate $\frac{d}{dx} [ \pi^2 ]$. Since $\pi^2$ is a constant, $\frac{d}{dx} [ \pi^2 ] = 0$.
Differentiate $f(x) = x^{10}$. $$f'(x) = 10x^{10-1} = 10x^9$$
Differentiate $f(x) = \frac{1}{x^4}$. Rewrite as $f(x) = x^{-4}$. $$f'(x) = -4x^{-4-1} = -4x^{-5} = -\frac{4}{x^5}$$
Differentiate $f(x) = \sqrt[3]{x^2}$. Rewrite as $f(x) = x^{2/3}$. $$f'(x) = \frac{2}{3}x^{2/3 - 1} = \frac{2}{3}x^{-1/3} = \frac{2}{3\sqrt[3]{x}}$$
Differentiate $f(x) = 4x^3 - 5x^2 + 7$. $$f'(x) = 4(3x^2) - 5(2x) + 0 = 12x^2 - 10x$$
Differentiate $f(x) = x^2 e^x$. Let $u = x^2$ and $v = e^x$. Then $u' = 2x$ and $v' = e^x$. $$f'(x) = (2x)(e^x) + (x^2)(e^x) = e^x(2x + x^2)$$
Differentiate $f(x) = \frac{\sin x}{x}$. Let $u = \sin x$ and $v = x$. Then $u' = \cos x$ and $v' = 1$. $$f'(x) = \frac{x(\cos x) - (\sin x)(1)}{x^2} = \frac{x\cos x - \sin x}{x^2}$$
Find the equation of the tangent line to $f(x) = x^2 + 3x$ at $x = 1$.
Find the $x$-values where $f(x) = x^3 - 3x^2$ has a horizontal tangent. Horizontal tangents occur where $f'(x) = 0$. $$f'(x) = 3x^2 - 6x = 3x(x - 2)$$ Set to zero: $3x(x - 2) = 0 \implies x = 0, x = 2$.
Is $f(x) = \begin{cases} x^2 & x \leq 1 \ 2x - 1 & x > 1 \end{cases}$ differentiable at $x = 1$?
Is $f(x) = x^{2/3}$ differentiable at $x = 0$? $f'(x) = \frac{2}{3}x^{-1/3} = \frac{2}{3\sqrt[3]{x}}$. As $x \to 0$, $f'(x) \to \pm \infty$. The derivative is undefined; thus, not differentiable (vertical tangent/cusp).
Derive $\frac{d}{dx}[\tan x]$ using $\frac{\sin x}{\cos x}$. $$f'(x) = \frac{\cos x(\cos x) - \sin x(-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x$$
Derive $\frac{d}{dx}[\sec x]$ using $\frac{1}{\cos x}$. $$f'(x) = \frac{\cos x(0) - 1(-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x} \cdot \frac{\sin x}{\cos x} = \sec x \tan x$$
Find $f''(x)$ for $f(x) = e^x + x^4$. $f'(x) = e^x + 4x^3$ $f''(x) = e^x + 12x^2$
Find where $f(x) = \sqrt[3]{x-2}$ has a vertical tangent line. $f'(x) = \frac{1}{3}(x-2)^{-2/3} = \frac{1}{3\sqrt[3]{(x-2)^2}}$. The derivative is undefined when $x-2 = 0 \implies x = 2$. Since $f$ is continuous at $x=2$ and the limit of the derivative is infinite, there is a vertical tangent at $x=2$.
For $s(t) = t^2$, find the average rate of change on $[1, 3]$ and the instantaneous rate of change at $t = 2$. Average: $\frac{s(3)-s(1)}{3-1} = \frac{9-1}{2} = 4$. Instantaneous: $s'(t) = 2t$. $s'(2) = 2(2) = 4$.
Differentiate $y = x^3 \ln x$. $$y' = (3x^2)(\ln x) + (x^3)(\frac{1}{x}) = 3x^2 \ln x + x^2$$
Differentiate $f(x) = \frac{e^x}{x^2 + 1}$. $$f'(x) = \frac{(x^2+1)e^x - e^x(2x)}{(x^2+1)^2} = \frac{e^x(x^2 - 2x + 1)}{(x^2+1)^2} = \frac{e^x(x-1)^2}{(x^2+1)^2}$$
Differentiate $y = \csc x = \frac{1}{\sin x}$. $$y' = \frac{\sin x(0) - 1(\cos x)}{\sin^2 x} = -\frac{\cos x}{\sin^2 x} = -\csc x \cot x$$
Find $a$ and $b$ so $f(x) = \begin{cases} ax^2 + b & x \leq 1 \ \frac{1}{x} & x > 1 \end{cases}$ is differentiable everywhere.
A particle moves with position $s(t) = -16t^2 + 64t$. Find its velocity at $t = 1$. $v(t) = s'(t) = -32t + 64$. $v(1) = -32(1) + 64 = 32$ units/sec.
Differentiate $f(x) = x e^x \sin x$. Treat as $f(x) = (x e^x) \cdot (\sin x)$. $f'(x) = [\frac{d}{dx}(xe^x)] \sin x + (xe^x) \cos x$ $f'(x) = (1 \cdot e^x + x e^x) \sin x + xe^x \cos x = e^x \sin x + xe^x \sin x + xe^x \cos x$.
| $x$ | 2 | 5 | 8 |
|---|---|---|---|
| $f(x)$ | 10 | 22 | 40 |
| Estimate $f'(5)$. | |||
| Use the points surrounding $x=5$: | |||
| $$f'(5) \approx \frac{f(8)-f(2)}{8-2} = \frac{40-10}{6} = 5$$ |
Evaluate $\lim_{h \to 0} \frac{\sin(\frac{\pi}{6} + h) - \sin(\frac{\pi}{6})}{h}$. Recognize this as the definition of $f'(x)$ for $f(x) = \sin x$ at $x = \pi/6$. $f'(x) = \cos x$. $f'(\pi/6) = \cos(\pi/6) = \frac{\sqrt{3}}{2}$.
Find the equation of the normal line (perpendicular to tangent) to $y = x^2$ at $x = 3$.
Find $\frac{d^2y}{dx^2}$ for $y = x^{-1}$. $\frac{dy}{dx} = -x^{-2}$. $\frac{d^2y}{dx^2} = 2x^{-3} = \frac{2}{x^3}$.
Show $\frac{d}{dx}[x^n] = nx^{n-1}$ for integer $n$ using $\lim_{h \to 0} \frac{(x+h)^n - x^n}{h}$. By Binomial Theorem: $(x+h)^n = x^n + nx^{n-1}h + \frac{n(n-1)}{2}x^{n-2}h^2 + ... + h^n$. $f'(x) = \lim_{h \to 0} \frac{(x^n + nx^{n-1}h + \text{terms with } h^2) - x^n}{h}$ $f'(x) = \lim_{h \to 0} (nx^{n-1} + \text{terms with } h) = nx^{n-1}$.
Differentiate $f(x) = |x^2 - 4|$. $f(x) = \begin{cases} x^2 - 4 & |x| \geq 2 \ 4 - x^2 & |x| < 2 \end{cases}$. $f'(x) = \begin{cases} 2x & |x| > 2 \ -2x & |x| < 2 \end{cases}$. At $x = 2$, LHD is $-2(2) = -4$, RHD is $2(2) = 4$. Derivative does not exist at $x = 2, -2$.
Find the tangent to $f(x) = \frac{4}{x^2}$ at $x = 2$. $f(x) = 4x^{-2} \implies f'(x) = -8x^{-3} = -\frac{8}{x^3}$. $f'(2) = -\frac{8}{8} = -1$. Point: $f(2) = 1$. Line: $y - 1 = -1(x - 2) \implies y = -x + 3$.
A cost function is $C(x) = 0.01x^2 + 2x + 100$. Find the marginal cost (derivative) when $x=10$. $C'(x) = 0.02x + 2$. $C'(10) = 0.02(10) + 2 = 2.2$.
Given $\lim_{h \to 0} \frac{e^h - 1}{h} = 1$, prove $\frac{d}{dx} e^x = e^x$. $$\frac{d}{dx} e^x = \lim_{h \to 0} \frac{e^{x+h} - e^x}{h} = \lim_{h \to 0} \frac{e^x e^h - e^x}{h} = e^x \lim_{h \to 0} \frac{e^h - 1}{h} = e^x(1) = e^x$$
Right-click any tab and choose Split screen to view it here.
Course Mastery Certificates require an active Unlimited subscription at the time of generation and 100% course completion. They recognise learning content completion only — not an accredited qualification, licence, or professional credential unless explicitly stated. edusolum may modify eligibility, design, and issuance requirements per its Terms of Service.