The Mean Value Theorem Calculator helps you compute the secant slope between two points and compare it to the function’s instantaneous slope at candidate points. It also checks the key MVT conditions you must satisfy: continuity on a closed interval and differentiability on the open interval.
What the Mean Value Theorem Says
The Mean Value Theorem (MVT) is a core result from calculus. It guarantees that if a function is well-behaved on an interval, then there is at least one point where the tangent slope equals the average slope over the interval.
Formally, let f be a function defined on [a, b]. If:
- f is continuous on [a, b], and
- f is differentiable on (a, b),
then there exists a number c in (a, b) such that:
f'(c) = (f(b) – f(a)) / (b – a)
Key Quantities You Will Compute
To use the MVT in practice, you focus on two slopes:
- Secant slope (average rate of change): the slope of the line through the endpoints (a, f(a)) and (b, f(b)).
- Tangent slope (instantaneous rate of change): the derivative value f'(c) at the MVT point.
The calculator computes the secant slope and then checks whether the user-provided derivative at a candidate point matches (within a tolerance).
Variables and Units
- a and b: the left and right endpoints of the interval (input variable, like time or position).
- f(a) and f(b): the function values at those endpoints (like displacement, temperature, or height).
- f'(c): the derivative at the candidate point c (like velocity if f is displacement).
Units matter. If x is in seconds and f(x) is in meters, then f'(x) is meters per second.
How the Calculator Works
The calculator uses the MVT formula to compute the secant slope and then compares it to a derivative value at a candidate point.
Step-by-step
- Compute the secant slope:
- s = (f(b) – f(a)) / (b – a)
- Compute the derivative at the candidate point (you supply this as f'(c)).
- Compare slopes:
- If |f'(c) – s| <= tolerance, the candidate point is consistent with the MVT conclusion.
Why you still need to verify conditions
The theorem guarantees existence, but the calculator cannot prove the theorem’s hypotheses for an arbitrary function. You must ensure the function is continuous on [a, b] and differentiable on (a, b). The calculator focuses on the numerical slope match.
When to Use It (Practical Examples)
Example 1: Physics—Average Velocity vs Instantaneous Velocity
Suppose a car’s position over time is modeled by a differentiable function. You know the position at t = 2 s and t = 5 s, and you have an estimate of the instantaneous velocity at some candidate time c.
- a = 2, b = 5
- f(a) = 10 m, f(b) = 25 m
- secant slope = (25 − 10) / (5 − 2) = 15/3 = 5 m/s
If your derivative estimate gives f'(c) ≈ 5 m/s (within tolerance), the numbers align with what MVT predicts: there is a time where instantaneous velocity equals average velocity.
Example 2: Engineering—Temperature Change Rates
Let f(t) be the temperature of a material over time. If temperature change is smooth (continuous and differentiable on the interval), MVT guarantees a moment where the instantaneous rate equals the average rate.
- a = 0 min, b = 30 min
- f(a) = 60°C, f(b) = 75°C
- secant slope = (75 − 60) / 30 = 15/30 = 0.5 °C/min
If you compute or estimate f'(c) near 0.5 °C/min, then the candidate point is consistent with the theorem’s promise.
Mean Value Theorem Calculator: Inputs You Need
To get reliable results, supply values that reflect the same variable and units on both sides of the interval.
- Interval endpoints: enter a and b with the time/position units you want.
- Function values: enter f(a) and f(b) in consistent units.
- Candidate point derivative: enter a candidate derivative value f'(c) and its units.
- Optional tolerance: choose how close the slopes must be to count as a match.
Unit conversion
The calculator includes unit selectors so you can enter endpoints and function values in common systems. It converts the derivative and secant slope into a consistent “per interval unit” basis before comparing.
Interpreting the Results
After you run the calculation, you will see three main outputs:
- Secant slope (average rate of change) computed from endpoints.
- Derivative at candidate point (converted to the same units).
- Match check indicating whether the values agree within tolerance.
If the match check fails, it does not automatically mean MVT is false. It may mean the candidate derivative is not at the correct c, or the function does not satisfy the theorem’s conditions, or the units are mismatched.
Common Mistakes to Avoid
- Swapping endpoints: using b < a changes the sign of the secant slope. The theorem still works, but your comparison must use the same sign convention.
- Unit mismatch: entering f(a) in meters and f(b) in centimeters without converting will distort the slope.
- Too tight tolerance: if your derivative is approximate, a tolerance like 0.01 (in your slope units) is often more realistic.
- Ignoring differentiability: corners, jumps, and discontinuities can break the theorem’s hypotheses.
Frequently Asked Questions
What does the Mean Value Theorem guarantee?
The Mean Value Theorem guarantees that if a function is continuous on [a, b] and differentiable on (a, b), then there exists at least one point c where the tangent slope equals the secant slope. In symbols, f'(c) = (f(b) − f(a)) / (b − a).
How is the secant slope different from the derivative?
The secant slope is the slope of the line connecting two points on the graph, so it represents an average rate of change. The derivative is the slope of the tangent line at a specific point, representing an instantaneous rate of change.
Does the calculator prove that a c exists?
No. The calculator computes the numeric secant slope and checks whether a provided candidate derivative f'(c) matches within a tolerance. Existence of c depends on the theorem’s conditions: continuity on [a, b] and differentiability on (a, b).
What if my slopes don’t match?
If the calculator reports a mismatch, it usually means your candidate derivative is not taken at the correct point c, or the function does not meet differentiability/continuity requirements. It can also happen from unit errors or an overly strict tolerance.
What tolerance should I use?
Use tolerance based on your data quality. If you computed f'(c) exactly from an analytic derivative, a very small tolerance like 1e-6 is reasonable. If f'(c) is estimated from measurements, use a larger tolerance that reflects measurement uncertainty.
Next Steps
Use the calculator to quickly compute the secant slope and test candidate derivatives. If you want to find the actual c, you typically set f'(x) equal to the secant slope and solve for x within (a, b).



