Visual walkthrough — Mean Value Theorem — proof, Rolle's theorem
We are going to derive, from absolute zero:
Before we can even read that line, let us build every piece of it.
Step 1 — What is a secant, and what is that fraction?
WHAT. Look at the two amber dots in the figure: one at , one at . The cyan straight line through them is the secant.
WHY. "Average behaviour" always means start-to-end, ignoring the wiggles in between. The secant is exactly the start-to-end straight-line summary of the curve — like the dashed "as-the-crow-flies" path on a map.
PICTURE. The fraction we care about is the steepness of that cyan line:
- is the rise — the vertical amber segment on the right of the figure.
- is the run — the horizontal amber segment along the bottom.
- Their ratio is "rise over run," the standard meaning of slope: how many units up per one unit across.

Step 2 — What is a tangent, and what is ?
WHAT. In the figure, the cyan tangent kisses the curve at one point and matches its tilt exactly there.
WHY THIS TOOL — why a limit, not just a slope? A secant needs two points to compute rise/run. A tangent lives at one point, so ordinary "rise over run" would be — undefined. The derivative is the tool built precisely to answer "what is the slope using only one point?" It does so by sliding a second point toward and watching the secant slope settle:
- is a tiny step sideways from (the amber bracket in the figure).
- is the tiny rise over that step.
- means "let the step shrink to nothing and report the number the ratio approaches."
PICTURE. Watch the pale secants in the figure fan toward the bold cyan tangent as .

Step 3 — The trick: subtract the secant to flatten the ends
WHAT. For every , drop a vertical amber line from the curve to the secant. Its signed length is : positive where the curve is above the line, negative where below. The figure shows several of these gap sticks.
WHY THIS STEP. Rolle's theorem (the easy, flat-secant case) needs the two endpoints at the same height. Our curve's endpoints are generally not the same height. So we subtract off the tilt: the secant is the tilt, and removing it lands both ends at height . We are not changing the shape of the wiggles — subtracting a straight line shifts every point vertically but keeps peaks as peaks and valleys as valleys.
Term by term inside :
- — the starting height (so the line begins exactly on the curve at ).
- — the secant slope from Step 1.
- — how far we've walked right of the left post; multiplied by the slope, it gives the extra height the line has climbed.

Step 4 — Check the endpoints of the gap are equal (they're both zero)
WHAT. Compute at the two posts.
WHY. These are the three Rolle hypotheses we must confirm for before we're allowed to use Rolle. Here we nail hypothesis 3 (equal endpoint heights).
- kills the slope term, so : the line starts on the curve.
- The in the numerator and denominator cancel, leaving : the line ends on the curve too.
PICTURE. In the figure both amber gap-sticks at the ends have collapsed to length zero — the curve pins to the axis at and at .

Step 5 — Rolle guarantees a flat spot: where does it come from?
WHAT (the engine). Why does a peak or valley force zero slope? Two named tools do the work:
- Extreme Value Theorem — a continuous function on a closed interval attains a maximum height and a minimum height somewhere. So the peak/valley genuinely exists (it isn't a mirage we approach but never reach).
- Fermat's Theorem (interior extrema) — if that highest/lowest point sits strictly inside , the derivative there is .
WHY the extremum is interior (covering the case that could break it). If both and occurred only at the endpoints, then , so — meaning is constant zero (the flat case, handled above). Otherwise at least one of is a value the endpoints do not share, so it must be achieved at an interior point .
WHY Fermat pins it to zero — the squeeze. Sit at an interior peak . Step right by tiny : the curve can't be higher, so , and dividing by , Step left by tiny : again , but now dividing by a negative flips the inequality, Because is differentiable, both one-sided limits equal the same number . A number that is and can only be :
PICTURE. The figure marks the interior peak of with the amber dot; the tangent there is a horizontal cyan line — the flat spot.

Step 6 — Untilt: turn " flat" into the MVT equation
WHAT. Differentiate the definition and set the flat point in.
WHY. A flat spot of is a hidden statement about . Undo the subtraction to reveal it.
- — the slope of the original curve.
- The secant slope is a fixed number, so its derivative contributes that same constant everywhere (the slope of a straight line never changes).
Now plug in the special point from Step 5, where :
PICTURE. In the figure the horizontal tangent of (from Step 5) is tilted back up by the secant slope. A flat line tilted by the secant's steepness becomes a line with exactly the secant's steepness — the cyan tangent of now runs parallel to the amber secant. That parallelism is the MVT.

Step 7 — The degenerate and edge cases (never let the reader hit an unshown scenario)

The one-picture summary
Everything on one frame: the original curve with its amber secant; the tilted gap curve pinned to at both ends; the flat spot of (open circle) directly above the parallel tangent of (cyan). Follow the vertical guide line connecting them — that single vertical line is the proof: flat upstairs ⇔ secant-parallel downstairs.

Recall Feynman retelling — the whole walkthrough in plain words
You want to prove: somewhere your steepness matched your average steepness. Trouble is, "average" compares two far-apart points, while "steepness right now" lives at a single point — awkward to line up.
So play a trick. Tip the whole landscape so your start and finish sit at the same height (that's subtracting the secant — the amber straight line). Tipping doesn't erase hills; it just re-levels the ground under them. Now you begin and end at the same height, so like a walk that returns to your friend's level, there's a moment you're moving perfectly flat — the top of a hill or bottom of a dip (that's Rolle, powered by "a top exists" from the Extreme Value Theorem and "the top is flat" from Fermat).
Finally, tip the landscape back to how it really was. That flat moment tilts up by exactly the amount you tipped — the average steepness. So at that instant your real steepness equals the average. Done.
Recall One-line memory hooks
Secant slope :::: , the average steepness (rise over run). Gap function :::: , the vertical distance from curve down to secant. Why :::: subtracting the secant makes both endpoints sit on the line. Engine of the flat spot :::: Extreme Value Theorem (top exists) + Fermat (top is flat). Untilt step :::: secant slope.
Connections
- Mean Value Theorem — proof, Rolle's theorem — the parent this page visualizes.
- Extreme Value Theorem — guarantees the peak/valley of actually exists (Step 5).
- Fermat's Theorem (interior extrema) — interior peak ⇒ , the squeeze in Step 5.
- Continuity · Differentiability — the inherited hypotheses for (Step 4).
- Increasing and Decreasing Functions — explains multiple 's (Case D).
- Cauchy's Mean Value Theorem — the same "subtract, apply Rolle" trick with two functions.
- Taylor's Theorem — MVT is its degree-one seed.
- Lipschitz Continuity — MVT turns a derivative bound into a slope bound (parent Example 3).