From difference quotient to derivative — building the limit, step by step
A tangent line is a secant line whose two points have collapsed to one. So the recipe is always the same: build a secant slope between $x$ and $x + h$, then take the limit as $h \to 0$.
This problem forces you to do the whole dance — expand, cancel, factor, limit — instead of reaching for the power rule shortcut. Do it enough times and the shortcut will be the dance; the algebra just becomes a memory.
For any function $f$, the derivative (general slope of the tangent line) is the limit of the difference quotient:
$$f'(x) \;=\; \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$$The numerator $f(x+h) - f(x)$ is the vertical rise between the two points; the denominator $h$ is the horizontal run. Dividing gives an average slope; taking $h \to 0$ gives the instantaneous slope.
Given $f(x) = 2x^2 + 1$. We compute $\displaystyle f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$ in five steps.
Step 1 — Write the difference quotient.
$$f'(x) \;=\; \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$$Step 2 — Compute $f(x+h)$ by substitution and expansion.
$$f(x+h) \;=\; 2(x+h)^2 + 1 \;=\; 2(x^2 + 2xh + h^2) + 1 \;=\; 2x^2 + 4xh + 2h^2 + 1$$Step 3 — Subtract $f(x) = 2x^2 + 1$.
$$f(x+h) - f(x) \;=\; (2x^2 + 4xh + 2h^2 + 1) - (2x^2 + 1) \;=\; 4xh + 2h^2$$The $2x^2$ and the $+1$ cancel — that cancellation is the whole reason this trick works.
Step 4 — Divide by $h$ and factor.
$$\frac{4xh + 2h^2}{h} \;=\; \frac{h(4x + 2h)}{h} \;=\; 4x + 2h$$Factoring out the $h$ is what lets the $h$ cancel cleanly. If you forget to factor, the division looks stuck — and you can't take the limit yet.
Step 5 — Take the limit as $h \to 0$.
$$f'(x) \;=\; \lim_{h \to 0} (4x + 2h) \;=\; 4x + 0 \;=\; 4x$$Final answer:
Each wrong answer maps to a specific step where someone stopped too early (or did the algebra wrong). Learning to read distractors is half of learning to do the problem.
Every derivative-via-the-definition problem in this course is these five steps, in this order:
If step 4 doesn't go cleanly (you can't factor $h$ out), the most common reasons are: you didn't expand $f(x+h)$ fully in step 2, or you forgot to distribute a negative in step 3.
Use the definition (the 5 steps above) to find $f'(x)$ for $f(x) = 3x^2 - 5x + 2$.
Hint: the constant $+2$ and the $-5x$ term will both contribute. Expand $(x+h)^2 = x^2 + 2xh + h^2$ carefully and don't lose signs when you subtract.
Step 1: $\displaystyle f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$
Step 2: $f(x+h) = 3(x+h)^2 - 5(x+h) + 2 = 3x^2 + 6xh + 3h^2 - 5x - 5h + 2$
Step 3: $f(x+h) - f(x) = (3x^2 + 6xh + 3h^2 - 5x - 5h + 2) - (3x^2 - 5x + 2) = 6xh + 3h^2 - 5h$
Step 4: $\dfrac{h(6x + 3h - 5)}{h} = 6x + 3h - 5$
Step 5: $f'(x) = \lim_{h \to 0}(6x + 3h - 5) = 6x - 5$
Sanity check via the 5-step recipe: $3x^2 \to 6x$, $-5x \to -5$, $+2 \to 0$ (constants vanish in the limit). Adds up to $6x - 5$. ✓
Three directions once you send Q2: