Visual walkthrough — Derivative from first principles — difference quotient definition
Step 1 — What "slope" even means (the staircase)
WHAT. Pick any two points on a graph. Draw a horizontal step (how far right you walked) and a vertical step (how far up you rose). The slope is the answer to one question: for every one step right, how many steps up?
WHY. Before we can talk about the steepness of a curve, we must nail the steepness of a straight line, because that is the only thing we truly know how to measure. Everything later is a trick to reuse this.
PICTURE. In the figure, the horizontal butter-coloured bar is the run (change in the input, how far you moved sideways) and the vertical coral bar is the rise (change in the output, how far you moved up). Slope is rise divided by run.

Step 2 — The trouble with a curve (slope is different everywhere)
WHAT. Look at the parabola . Near the bottom it is nearly flat; on the right it climbs steeply. There is no single slope — the steepness changes at every point.
WHY. The staircase from Step 1 needs two points. But we want the steepness at one exact point. Two points and one point are in conflict — that conflict is the whole reason the derivative exists.
PICTURE. Three short line segments rest against the curve at three places. Each has a different tilt (flat lavender at the bottom, steeper mint, steepest coral). One curve, many slopes.

Step 3 — The cheat: a buddy point a distance away
WHAT. Keep your point at input . Invent a second point a tiny distance to the right. Call that distance (a small positive number). The second point sits at input .
WHY. We manufacture a second point so the staircase works again — but we keep it close, planning to slide it in later. The letter is just a name for "how far apart the two points are."
PICTURE. The two points are marked. The lower one is — its height is . The upper one is — its height is . The horizontal gap between them, labelled in butter, is exactly .

Step 4 — Build the staircase between them (the secant line)
WHAT. Draw the straight line through both points. It cuts across the curve — this is the secant line. Its rise is the height difference ; its run is .
WHY. We reuse Step 1 exactly, now with our two real points. The slope of this cutting line is a real, computable number — it is the average steepness across the little gap. See Secant and Tangent lines and Average vs Instantaneous Rate of Change.
PICTURE. The coral vertical bar is the rise ; the butter horizontal bar is the run ; the lavender line through both points is the secant.

Step 5 — Why we cannot just set (the wall)
WHAT. We want the two points to be the same point, so we are tempted to plug straight into the difference quotient. If we do, the run becomes and the rise becomes , giving .
WHY. is undefined — it is not a number, it is a question mark. See Indeterminate forms 0 over 0. This is the wall that forces us to do algebra before we shrink .
PICTURE. As shrinks, both bars (rise and run) collapse toward zero together. The picture shows three shrinking staircases; the bars get tiny, but their ratio (the tilt of the line) stays sensible and settles on one tilt.

Step 6 — Cancel the for (the algebra that saves us)
WHAT. Put into the difference quotient and simplify until the lone in the bottom is gone.
WHY. Cancelling turns the dangerous into a plain expression we can safely evaluate at . This is the "Cancel" in Plug–Subtract–Cancel–Shrink.
- — the buddy height, every replaced by the block .
- — expanded so terms can cancel.
- — what survives after the terms kill each other.
- — factoring pulls one out front, ready to cancel the bottom .
- — safe at last: no division by .
PICTURE. The algebra mirrors geometry: the secant slope is the steepness of the cutting line. The bigger is, the more the extra tilts it away from the true tangent.

Step 7 — Shrink : the secant becomes the tangent
WHAT. In , let slide to . The leftover vanishes and we are left with .
WHY. As the gap closes, the buddy point slides into the original point. The cutting line stops cutting and just touches — it becomes the tangent line. Its slope is the derivative.
- — "the value the expression heads toward as closes in" (see Limits — formal definition and one-sided limits).
- — the part with no ; it does not move.
- — shrinks away to nothing.
PICTURE. A sequence of secant lines pivots about the fixed point; as they rotate onto the single coral tangent that grazes the parabola. That tangent's slope is .

Step 8 — Every case, including the degenerate one
WHAT. Check that the recipe behaves on all sign regions and on the flat/edge cases.
WHY. The reader must never meet a scenario we skipped. We test: right arm (), the vertex (), and left arm (); plus the degenerate case of a straight line, where the slope should not change at all.
PICTURE. Tangents drawn at : downhill, flat, uphill. Below, a straight line whose tangent is itself — same slope everywhere.

| Point | Tangent looks | Meaning | |
|---|---|---|---|
| uphill | rising steeply | ||
| flat | vertex, no tilt | ||
| downhill | falling steeply |
Recall Quick self-test
At which is the tangent to horizontal? ::: At , where . What geometric event happens as ? ::: The secant line rotates until it just touches the curve — it becomes the tangent. Why must we cancel before letting ? ::: Setting first gives , which is undefined; cancelling removes the bad division.
The one-picture summary
Everything on one canvas: fix the point, draw a family of secants for shrinking (lavender), watch them pivot onto the single tangent (coral). The rise/run bars shrink together but their ratio settles on — the derivative.

Recall Feynman retelling — the whole walkthrough in plain words
You want to know how steep a hill is at the exact spot where you're standing. But "steepness" needs two points — a here and a there — so you can't measure it standing on one spot alone. Clever fix: plant a flag a tiny step to your right, run a straight rope from you to the flag, and measure that rope's tilt (up-amount over across-amount). That rope is the secant — it cuts across the hill. For the tilt works out to : mostly , plus a little error from the flag being too far away. Now pull the flag closer and closer. The error melts to nothing, the rope stops cutting and just kisses the hill — that's the tangent — and its tilt settles on exactly . That settled number is the derivative: at the bottom of the bowl () it's (dead flat), on the right it's positive (uphill), on the left it's negative (downhill). And if the "hill" were really a straight ramp, the rope was already lying flat against it from the start, so the answer is just the ramp's constant slope — no shrinking needed.
Connections
- Derivative from first principles — difference quotient definition — the parent recipe this page animates.
- Secant and Tangent lines — Steps 4 & 7 are this idea in motion.
- Limits — formal definition and one-sided limits — the machinery of Step 7.
- Indeterminate forms 0 over 0 — the wall in Step 5 that forces the algebra.
- Average vs Instantaneous Rate of Change — secant = average, tangent = instantaneous.
- Power Rule — is the case of , proven here from scratch.