The Derivative as a Limit
AP Calculus BC · Unit 2 — Differentiation: Definition and Fundamental Properties
Two forms of the same definition
$$f'(a)=\lim_{h\to0}\frac{f(a+h)-f(a)}{h}=\lim_{x\to a}\frac{f(x)-f(a)}{x-a}$$Both quotients measure the same thing: the slope of the secant line through two points of the graph. Letting the second point slide onto the first turns the average rate of change into the instantaneous rate of change, which is the slope of the tangent line at $x=a$.
Every difference quotient is a $\tfrac00$ form, so no value can be read off by substitution. Algebra must first cancel the factor that is going to zero — expand and collect, rationalise a radical, or combine fractions over a common denominator.
The AP exam asks this backwards more often than forwards: you are handed a limit and must recognise which $f$ and which $a$ it belongs to. The habit that decodes it: whatever is being added to $h$ is the point $a$, and whatever wraps around it is the function $f$.
Worked example: computing a derivative from the definition, with a rational function
Use the limit definition to find $f'(x)$ for $f(x)=\dfrac{1}{x+3}$, then deduce $f'(-1)$.
Solution
Write the difference quotient and combine fractions right in the numerator:
$$\frac{f(x+h)-f(x)}{h}=\frac{1}{h}\left(\frac{1}{x+h+3}-\frac{1}{x+3}\right)=\frac{1}{h}\cdot\frac{(x+3)-(x+h+3)}{(x+h+3)(x+3)}$$The numerator simplifies to $-h$, which cancels with $\frac1h$:
$$=\frac{-h}{h(x+h+3)(x+3)}=\frac{-1}{(x+h+3)(x+3)}$$Only now let $h\to0$: $f'(x)=\dfrac{-1}{(x+3)^2}$.
Therefore $f'(-1)=\dfrac{-1}{4}$. The negative sign makes sense because $\frac{1}{x+3}$ is decreasing on every interval that does not contain $-3$.