Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Mean Value Theorem Visualizer


Quadraticf(x) = x²
×
880 × 460
f(x) = x²secant from (a, f(a)) to (b, f(b))tangent at c (parallel to secant)x = a, x = b
Mean Value Theorem on [a, b][a, b] = [-2, 2]
Secant slope
0
(f(b) − f(a)) / (b − a)
c values found
1
at c = 0
f'(c) at each c
0
matches secant slope
cc = 0f'(c) = 0= secant slope 0
The secant slope from a to b equals f'(c) at every c — the tangent at c is parallel to the secant.MVT
Applieda=-2b=2tangent ∥ secant





Key Terms



Key Terms

Mean Value Theorem (MVT) — if ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b), then there exists at least one c(a,b)c \in (a, b) where f(c)=(f(b)f(a))/(ba)f'(c) = (f(b) - f(a)) / (b - a).

Secant line — the straight line through the two interval endpoints (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)). Its slope is the average rate of change of ff on [a,b][a, b].

Tangent line at c — the straight line touching the curve at (c,f(c))(c, f(c)) with slope f(c)f'(c). The MVT guarantees at least one such tangent is parallel to the secant.

Average rate of change(f(b)f(a))/(ba)(f(b) - f(a)) / (b - a), the change in output divided by the change in input on the interval.

Instantaneous rate of changef(c)f'(c), the rate of change at a single point.

Rolle's theorem — the special case of the MVT when f(a)=f(b)f(a) = f(b). The secant is horizontal, so the MVT promises an interior cc with f(c)=0f'(c) = 0.

Getting Started

The page opens with the Quadratic family f(x)=x2f(x) = x^2 loaded on the interval [2,2][-2, 2]. You see three things on the graph:

• The solid blue curve of ff.

• A deep-blue secant line connecting (2,4)(-2, 4) to (2,4)(2, 4). Its slope is 00.

• A light-blue tangent at c=0c = 0, parallel to the secant (also slope 00). The midpoint of the interval, exactly as the theorem predicts for a parabola.

Dashed vertical gray lines mark aa and bb. The boxed card below the graph reports the secant slope, the number of cc values found, and the value of ff' at each cc.

To explore, drag the left endpoint a and right endpoint b sliders to set any interval, or switch families in the left panel to see how the number of cc values can change.

The Function Families

Six families are organized into two groups in the left panel, each tagged with the typical number of cc values you can expect.

Polynomial:

Identity f(x)=xf(x) = x — every point is a cc. The function is its own secant.

Quadratic f(x)=x2f(x) = x^2 — exactly one cc, always at the midpoint (a+b)/2(a + b)/2.

Cubic f(x)=x3f(x) = x^3 — up to two cc values, depending on whether the interval crosses the inflection point.

Transcendental:

Sine f(x)=sinxf(x) = \sin x — multiple cc values on a long enough interval. Defaults to [0,2π][0, 2\pi].

Cosine f(x)=cosxf(x) = \cos x — similar; defaults to [0,π][0, \pi].

Exponential f(x)=exf(x) = e^x — exactly one cc. Because f=f=exf' = f = e^x is strictly increasing, f(c)=mf'(c) = m has a unique solution.

The a and b Sliders

The left endpoint a and right endpoint b sliders set the interval. As you drag either:

• The dashed vertical lines at aa and bb follow.

• The dark markers at (a,f(a))(a, f(a)) and (b,f(b))(b, f(b)) snap to the new endpoints.

• The secant line rotates to match the new endpoints.

• The cc finder re-runs, redrawing every interior tangent parallel to the new secant.

• The numeric cards update.

If you set a>ba > b, the tool transparently swaps them — only the interval matters, not the order. If the interval shrinks below a tiny threshold, the tool waits until you give it a real interval to work with.

The Reset button next to Parameters returns the interval to the family's default.

Reading the Three Result Cards

The boxed card below the graph displays three quantities side by side:

Secant slope — the value (f(b)f(a))/(ba)(f(b) - f(a)) / (b - a), the average rate of change on [a,b][a, b]. This is the target slope every interior tangent must match.

c values found — the count of cc values in (a,b)(a, b) where f(c)f'(c) equals the secant slope, with their numeric values listed below.

f'(c) at each c — the derivative evaluated at each cc. These numbers should all equal the secant slope above (modulo numerical rounding).

The MVT guarantees the count is at least one. Depending on the function and interval, you may see exactly one (parabola, exponential) or several (sine on a wide interval, cubic crossing its inflection point). The cubic on a symmetric interval [2,2][-2, 2] produces two cc values, mirrored around the origin.

The Per-c Detail Rows

When there is more than one cc, the tool lists each in its own row below the cards. Each row shows:

• A small label tag — c, or c₁, c₂, c₃ when numbered.

• The numerical value of cc.

• The value of f(c)f'(c) at that cc.

• A reminder of the secant slope, for direct comparison.

The reason these rows matter: the MVT only guarantees at least one cc, but the actual count depends on how oscillatory or curved the function is on the interval. A cubic on [2,2][-2, 2] yields two; a sine on [0,2π][0, 2\pi] can yield two as well. Each tangent is drawn on the plot in the same light-blue color, all parallel to the secant — a family of parallel lines that visually confirms the theorem.

Display Toggles

The Display section in the left panel lets you hide individual layers:

f(x) — toggles the function curve.

secant — toggles the deep-blue secant line.

tangent at c — toggles every light-blue tangent line at each cc. Useful when there are several and you want to focus on just the secant.

a, b lines — toggles the dashed vertical reference lines at the interval endpoints.

Any combination is valid. The legend below the graph updates to show only the visible layers.

The Accent color picker at the bottom recolors the highlight throughout the tool — useful for screenshots or personal preference.

What Is the MVT

The Mean Value Theorem is one of the central results of differential calculus. It connects the global behavior of a function (its average rate of change over an interval) with its local behavior (its instantaneous rate of change at a single point).

Statement. If ff is continuous on [a,b][a, b] and differentiable on (a,b)(a, b), then there exists at least one point cc in (a,b)(a, b) such that

f(c)=f(b)f(a)ba.f'(c) = \frac{f(b) - f(a)}{b - a}.


The right side is the slope of the secant line from (a,f(a))(a, f(a)) to (b,f(b))(b, f(b)). The left side is the slope of the curve at cc. The theorem says these two slopes match at some interior point — equivalently, the tangent at cc is parallel to the secant.

For the full proof and an extended theoretical treatment, see the mean value theorem page.

The Speedometer Intuition

The simplest way to internalize the MVT is the driving metaphor.

You drive 100100 kilometers in exactly one hour. Your average speed is 100100 km/h. The MVT says that at some instant during the trip, your speedometer read *exactly* 100100 km/h. You cannot average 100100 km/h without hitting 100100 km/h at some moment.

Mapping back: position is ff, time is xx, the interval is [a,b]=[start,end][a, b] = [\text{start}, \text{end}], average speed is the secant slope, and instantaneous speed is f(c)f'(c). The MVT guarantees there is a cc in the trip where instantaneous speed equals average speed.

This is the reason the theorem deserves the word "value" — at some interior point the rate of change *takes on the value* of the average rate of change. The intuition extends to any quantity that changes over a smooth interval.

Rolle's Theorem

Rolle's theorem is the special case of the MVT when the function's values at the endpoints are equal.

Statement. If ff is continuous on [a,b][a, b], differentiable on (a,b)(a, b), and f(a)=f(b)f(a) = f(b), then there exists c(a,b)c \in (a, b) with f(c)=0f'(c) = 0.

The secant slope is zero whenever f(a)=f(b)f(a) = f(b), so the MVT immediately gives f(c)=0f'(c) = 0 — a horizontal tangent somewhere inside. To see this in the tool, pick the Quadratic family and set a=1a = -1, b=1b = 1. Both endpoints give f=1f = 1, the secant is horizontal, and the tangent at c=0c = 0 is horizontal too.

Rolle's theorem is the geometric kernel of the MVT, and historically came first. It is also the workhorse behind most existence proofs in calculus: if a function has the same value at two points, its derivative must vanish somewhere between them.

For deeper coverage, see the Rolle's theorem page.

Related Concepts

Derivatives — the slope of the tangent at cc. The MVT relates this local quantity to a global quantity (the secant slope). See the derivative visualizer.

Rolle's theorem — the special case of the MVT when the endpoint values agree.

Cauchy mean value theorem — a generalization to two functions simultaneously. Used to prove L'Hôpital's rule.

L'Hôpital's rule — for indeterminate limits of the form 0/00/0 or /\infty/\infty. A direct application of the Cauchy MVT.

Increasing and decreasing functions — the MVT proves that f>0f' > 0 on an interval implies ff is strictly increasing there. One of the most useful consequences.

Constant function theorem — if f=0f' = 0 everywhere on an interval, then ff is constant. Comes directly from the MVT.

Antiderivatives — two antiderivatives of the same function differ by a constant. Proved by the constant function theorem above.

Visual tools for calculus — limits, continuity, derivatives, FTC, Riemann sums.