Exercises — Derivative from first principles — difference quotient definition
Remember the recipe from the parent note: Plug, Subtract, Cancel, Shrink.

Every problem is the same story as this picture: a secant line through two nearby points slowly rotating into the tangent as the second point slides in. Read Secant and Tangent lines if that picture is fuzzy.
Level 1 — Recognition
(Can you spot the pieces and run the machine on the simplest inputs?)
Exercise 1.1
State the difference quotient for , then find from first principles.
Recall Solution 1.1
Step 1 — Plug. . Step 2 — Subtract. Step 3 — Cancel. . Step 4 — Shrink. . Answer: . A straight line has one constant slope everywhere — exactly its coefficient. ✓
Exercise 1.2
Find from first principles for the constant .
Recall Solution 1.2
Plug. (no to replace). Subtract. . Cancel. for every . Shrink. . Answer: . A flat horizontal line never rises — zero steepness everywhere. ✓
Exercise 1.3
For (derived in the parent note as ), what is the slope of the tangent line at ?
Recall Solution 1.3
We already have . Substitute the single point: Answer: . On the left arm of the parabola the curve slopes downhill, so a negative slope is exactly what we expect. ✓
Level 2 — Application
(Run the full four-step machine on genuinely curved functions.)
Exercise 2.1
Find from first principles for .
Recall Solution 2.1
Plug. . Subtract. The and terms cancel — this cancellation is why a finite slope survives. Cancel. Factor : Shrink. . Answer: . ✓
Exercise 2.2
Find from first principles for .
Recall Solution 2.2
Plug. Use . Subtract. Cancel. Every term has an : Shrink. As both and vanish: Answer: . This matches the Power Rule pattern with . ✓
Exercise 2.3
Find from first principles for .
Recall Solution 2.3
Plug. . Subtract (common denominator). Cancel. Divide by ; factor from the top: Shrink. Let : Answer: . ✓
Level 3 — Analysis
(The algebra hides the — you must engineer it into view.)
Exercise 3.1
Find from first principles for (a shifted square root).
Recall Solution 3.1
Plug. . Subtract. — stuck, no to factor. Use the conjugate trick (multiply top and bottom by , which turns into and manufactures an ): Cancel. . Shrink. makes both roots equal: Answer: . ✓
Exercise 3.2
Find from first principles for .
Recall Solution 3.2
Plug. . Subtract (common denominator). Expand the top: and . Subtract: So the numerator is just : Cancel. Divide by : . Shrink. : Answer: . Always positive — this function only ever climbs where it is defined. ✓
Exercise 3.3
Show, from first principles, that is not differentiable at , and identify what goes wrong. (Uses Limits — formal definition and one-sided limits.)
Recall Solution 3.3
At the difference quotient is Now split by the sign of (this is a one-sided-limit question — the two sides need not agree):
- From the right (): , so . Limit .
- From the left (): , so . Limit .
The right-hand slope and left-hand slope disagree, so the two-sided limit does not exist. is not differentiable at . Geometrically the graph has a sharp corner — the secant approaches a different tangent from each side, so no single tangent slope exists. (Note is continuous at ; see Continuity and Differentiability — continuous does not force differentiable.) ✓
Level 4 — Synthesis
(Combine the machine with unknown constants and general structure.)
Exercise 4.1
For the general quadratic , prove from first principles that .
Recall Solution 4.1
Plug. . Subtract. Every "position" term () cancels; only "change" terms — each carrying an — remain. Cancel. Shrink. kills the : Answer: . Check against Exercise 2.1 (): . ✓
Exercise 4.2
Prove from first principles the sum rule: if and both are differentiable, then .
Recall Solution 4.2
Plug & Subtract. Write the difference quotient and group the -parts and -parts: Shrink. A limit of a sum is the sum of the limits (a limit law from Limits — formal definition and one-sided limits), and each piece is a derivative by definition: Answer: . ✓ No algebra tricks — the whole proof is regrouping plus one limit law.
Exercise 4.3
Find the equation of the tangent line to at , using the first-principles derivative. (Ties to Secant and Tangent lines.)
Recall Solution 4.3
From the parent note , so the tangent slope at is The point of tangency is . Point–slope form : Answer: . As a check, this line passes through and has slope ; a nearby secant to has slope , already close to and shrinking toward it as . ✓
Level 5 — Mastery
(Subtle limits, degenerate points, and forecasting.)
Exercise 5.1
Find from first principles for the piecewise function and note why the ordinary "plug into a formula" instinct fails here.
Recall Solution 5.1
We must use the definition at because is defined by a special rule there. Now bound it. Since for every input, As both outer bounds go to , so the middle is squeezed to : Answer: . The derivative exists even though oscillates wildly, because the out front crushes the oscillation. You could not get this by "differentiating the formula and plugging in " — the formula isn't even defined at . Only the difference quotient reaches the answer. ✓
Exercise 5.2
Forecast, then verify. For , forecast using the pattern you've seen (, ). Then verify from first principles.
Recall Solution 5.2
Forecast. The pattern predicts . Verify. Use . Subtract. . Cancel. Factor : Shrink. Every term with an vanishes: Answer confirmed: . ✓ The forecast held — this is exactly the Power Rule being built from first principles.
Exercise 5.3
The difference quotient at is the indeterminate form $0/0$. Using at , evaluate the quotient at and state the limit it approaches. Explain why the value is not even though the fraction looks like it becomes .
Recall Solution 5.3
With , at the quotient simplifies (Step 3) to . Tabulate:
h & \frac{f(3+h)-f(3)}{h}=6+h\\ \hline 1 & 7\\ 0.1 & 6.1\\ 0.01 & 6.01 \end{array}$$ The values march toward $\mathbf{6}$, which equals $f'(3)=2(3)=6$. ✓ **Why not $0/0$?** At $h=0$ *exactly*, both rise and run are $0$ — genuinely undefined. But a limit never asks for the value *at* $h=0$; it asks what the fraction *approaches near* $h=0$. Cancelling the $h$ (Step 3) rewrites the same expression in a form that *is* defined there, and that form settles on $6$. The $0/0$ was only a disguise the algebra removed. ✓Self-test recap
Constant has derivative
Slope of at
for from first principles
for
Why is not differentiable at ?
Tangent to at
General quadratic has derivative
for (with )
Connections
- Limits — formal definition and one-sided limits — powers Exercises 3.3, 4.2, 5.1.
- Indeterminate forms 0 over 0 — the heart of Exercise 5.3.
- Secant and Tangent lines — the picture behind 4.3.
- Power Rule — built by 2.2, 4.1, 5.2.
- Continuity and Differentiability — Exercise 3.3 (continuous but not differentiable).
- Average vs Instantaneous Rate of Change — the shrinking-secant view of 5.3.
- Parent: Derivative from first principles — difference quotient definition.