AP Calculus AB · Differentiation: definition and fundamental properties
The derivative as a limit
1The derivative function
The derivative at a single point gives one slope. Letting the point vary gives a new function, the derivative of $f$:
$$f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}$$
provided the limit exists. Its value at each $x$ is the slope of the tangent to $f$ there.
Notation: $f'(x)$, $y'$, $\frac{dy}{dx}$, $\frac{d}{dx}[f(x)]$ all mean the same thing. Leibniz notation $\frac{dy}{dx}$ reminds us the derivative is a limit of $\frac{\Delta y}{\Delta x}$.
An equivalent form at a point $a$ is
$$f'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}$$
Check yourself
Which expression defines f′(x)?
Show the answer
lim (h→0) of (f(x + h) − f(x))/h
It is the limit of the difference quotient.
2Using the definition
$f(x) = x^2 - 3x$
- $f(x + h) = x^2 + 2xh + h^2 - 3x - 3h$.
- $f(x + h) - f(x) = 2xh + h^2 - 3h$.
- Divide by $h$: $2x + h - 3$.
- Let $h \to 0$: $f'(x) = 2x - 3$.
$f(x) = \frac{1}{x}$
- $\frac{1}{x + h} - \frac{1}{x} = \frac{x - (x + h)}{x(x + h)} = \frac{-h}{x(x + h)}$.
- Divide by $h$: $\frac{-1}{x(x + h)}$.
- Let $h \to 0$: $f'(x) = -\frac{1}{x^2}$.
For $\sqrt{x}$, multiply by the conjugate; the result is $\frac{1}{2\sqrt{x}}$.
Check yourself
Using the definition, the derivative of f(x) = 5x + 2 is:
Show the answer
5
(5(x + h) + 2 − 5x − 2)/h = 5.
3Recognising a derivative in disguise
The AP exam often shows a limit and asks what it represents. Match it to the definition.
$\lim_{h \to 0} \frac{(2 + h)^5 - 32}{h}$ is $f'(2)$ for $f(x) = x^5$, since $2^5 = 32$. As $f'(x) = 5x^4$ (next lesson), the limit is $5 \cdot 16 = 80$.
$\lim_{x \to \pi} \frac{\cos x + 1}{x - \pi}$ is $f'(\pi)$ for $f(x) = \cos x$, since $\cos \pi = -1$. As $f'(x) = -\sin x$, the limit is $0$.
Check yourself
lim (h→0) of (√(9 + h) − 3)/h is the derivative of which function at which point?
Show the answer
√x at x = 9
√9 = 3 matches f(a).
4Differentiability and continuity
$f$ is differentiable at $a$ if $f'(a)$ exists.
Differentiability implies continuity: if $f$ is differentiable at $a$, then it is continuous at $a$. The converse is false: a function can be continuous but not differentiable.
A function fails to be differentiable at a point where it has:
- a corner (the slopes from the left and right differ), like $|x|$ at $0$;
- a cusp (slopes go to $+\infty$ on one side and $-\infty$ on the other), like $x^{2/3}$ at $0$;
- a vertical tangent, like $\sqrt[3]{x}$ at $0$;
- a discontinuity of any kind.
Three ways a continuous function can fail to be differentiable at x = 0
To test a piecewise function at a join, check continuity first, then check that the derivatives from each side agree.
Check yourself
f(x) = |x − 2| is not differentiable at x = 2 because:
Show the answer
It has a corner, with left slope −1 and right slope 1
It is continuous but has a corner.
5Graphing the derivative
You can sketch $f'$ from the graph of $f$:
- Where $f$ is increasing, $f' > 0$ (above the axis).
- Where $f$ is decreasing, $f' < 0$.
- Where $f$ has a horizontal tangent (peak or valley), $f' = 0$.
- Where $f$ is steepest, $|f'|$ is largest.
for a parabola opening upward with vertex at $x = 1$, $f'$ is a line crossing the $x$-axis at $x = 1$, negative to the left and positive to the right.
Check yourself
Where the graph of f has a local maximum with a smooth top, the graph of f′:
Show the answer
Crosses the x-axis, from positive to negative
The tangent is horizontal at the top.
6Going deeper: computing from the definition, recognizing it in disguise, and where it fails
Two equivalent definitions of the derivative at x = a:
$$f'(a) = \lim_{h \to 0}\frac{f(a + h) - f(a)}{h} = \lim_{x \to a}\frac{f(x) - f(a)}{x - a}$$
It is the slope of the tangent line and the instantaneous rate of change.
Worked example (from the definition): $f(x) = x^2$.
- $\frac{(x + h)^2 - x^2}{h} = \frac{2xh + h^2}{h} = 2x + h$.
- Limit as h → 0: 2x.
Worked example (a root): $f(x) = \sqrt{x}$.
- $\frac{\sqrt{x + h} - \sqrt{x}}{h}$; multiply by the conjugate.
- $\frac{h}{h(\sqrt{x + h} + \sqrt{x})} = \frac{1}{\sqrt{x + h} + \sqrt{x}}$.
- Limit: $\frac{1}{2\sqrt{x}}$.
Recognizing a derivative in disguise: a limit of this shape is a derivative; identify f and a, then differentiate by rule.
$\lim_{h \to 0}\frac{\sin\left(\frac{\pi}{6} + h\right) - \frac{1}{2}}{h}$.
- f(x) = sin x, a = $\frac{\pi}{6}$ (since $\sin\frac{\pi}{6} = \frac{1}{2}$).
- The limit is $f'\left(\frac{\pi}{6}\right) = \cos\frac{\pi}{6} = \frac{\sqrt{3}}{2}$.
$\lim_{x \to 2}\frac{x^5 - 32}{x - 2}$.
- $f(x) = x^5$, a = 2.
- $f'(2) = 5(2)^4 = 80$.
Tangent and normal lines: at x = a, the tangent is $y - f(a) = f'(a)(x - a)$; the normal has slope $-\frac{1}{f'(a)}$.
tangent to $y = x^2$ at x = 3.
- Point (3, 9); slope 6.
- $y - 9 = 6(x - 3)$.
Estimating from a table: use the average rate of change over the smallest interval containing the point.
f(2) = 5.0, f(2.5) = 6.8, f(3) = 9.1. Estimate f′(2.5).
- $\frac{f(3) - f(2)}{3 - 2} = 4.1$.
- Include units if a context is given (for example, degrees per minute).
Where a function is not differentiable
- A discontinuity.
- A corner: left and right slopes differ ($|x|$ at 0).
- A cusp: slopes tend to +∞ on one side and −∞ on the other ($x^{2/3}$ at 0).
- A vertical tangent ($x^{1/3}$ at 0).
Worked example (piecewise differentiability): $f(x) = x^2$ for x ≤ 1 and $f(x) = ax + b$ for x > 1. Find a and b so that f is differentiable at 1.
- Continuity: 1 = a + b.
- Equal slopes: 2(1) = a, so a = 2.
- b = −1.
Differentiable implies continuous; continuous does not imply differentiable.
Notation: $f'(x)$, $\frac{dy}{dx}$, $y'$, $\frac{d}{dx}[f(x)]$; at a point, $f'(a)$ or $\left.\frac{dy}{dx}\right|_{x = a}$.
Interpreting in context: "f′(5) = −2" for temperature f in °C at time t in minutes means: at t = 5 minutes, the temperature is decreasing at 2°C per minute.
Common mistakes
- Forgetting the limit, or substituting h = 0 before simplifying.
- Expanding $(x + h)^2$ as $x^2 + h^2$.
- Missing a derivative written as a limit and trying to evaluate it by algebra.
- Checking only equal slopes, not continuity, for a piecewise function.
- Omitting units or the time in an interpretation.
Check yourself
The limit as h approaches 0 of ((3 + h)⁴ − 81) ÷ h equals:
Show the answer
108
It is the derivative of x⁴ at x = 3, which is 4(3)³.
7For top marks
- Show each algebra step when using the definition, and keep "$\lim_{h \to 0}$" until the last line.
- Spot disguised derivatives by finding $f$ and $a$ from the pattern $\frac{f(a + h) - f(a)}{h}$.
- To show a piecewise function is differentiable at a join, show continuity and equal one-sided derivatives.
- Remember: differentiable ⇒ continuous, but continuous ⇏ differentiable.
"$\lim_{h \to 0} \frac{\sin(\frac{\pi}{6} + h) - \frac{1}{2}}{h}$ is the derivative of $\sin x$ at $\frac{\pi}{6}$, which is $\cos\frac{\pi}{6} = \frac{\sqrt{3}}{2}$."
Check yourself
Which statement is true?
Show the answer
If f is differentiable at a, then f is continuous at a
Differentiability is the stronger condition.
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