Mean Value Theorem Calculator
- For f(x) = x^3 on [1, 3], the secant slope is (f(b) - f(a)) / (b - a) = 13.0000.
- The mean value theorem guarantees a point c inside the interval where the tangent is parallel to that secant: f'(c) = 13.0000.
- Solving f'(c) = 13.0000 for this function gives c = 2.0817, which sits 54.1% of the way from a to b.
- At that point f(c) = 9.0206; geometrically the tangent line there has exactly the average rate of change of the whole interval.
This mean value theorem calculator finds the point c where a function's instantaneous slope equals its average, or secant, slope over an interval. You enter a function and its endpoints, and the tool returns the c value that satisfies the theorem. For x^3 on [1, 3], the mean value theorem point is c = 2.0817, where the secant slope is 13. For ln(x) on [1, 4], the point is c = 2.1640, the logarithmic mean of the endpoints. For e^x on [0, 1], the point is c = 0.5413, and there f(c) equals the secant slope 1.7183 exactly. The results also show where c falls on its interval: the c for x^3 sits 54.1% of the way along its interval, while for ln(x) it sits 38.8% along.
The method is the accepted standard because it applies the theorem's own conditions directly: continuity on the closed interval and differentiability inside it. Each function here has a closed-form c: a midpoint, a root-mean-square, a logarithm or a geometric mean of the endpoints, so the answer can be checked by hand rather than trusted blindly. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow how each c is derived and verify the result yourself.
Worked examples
x cubed on [1, 3]
(x^3 · 1 · 3)
| Value of c guaranteed by the theorem | 2.0817 |
| Secant slope (f(b) - f(a)) / (b - a) | 13.0000 |
| f(c) | 9.0206 |
| Position of c along the interval | 54.1% |
Natural log on [1, 4]
(ln(x) · 1 · 4)
| Value of c guaranteed by the theorem | 2.1640 |
| Secant slope (f(b) - f(a)) / (b - a) | 0.4621 |
| f(c) | 0.7720 |
| Position of c along the interval | 38.8% |
e to the x on [0, 1]
(e^x · 0 · 1)
| Value of c guaranteed by the theorem | 0.5413 |
| Secant slope (f(b) - f(a)) / (b - a) | 1.7183 |
| f(c) | 1.7183 |
| Position of c along the interval | 54.1% |
How the mean value theorem point is found
To find the mean value theorem point, you set the derivative f'(c) equal to the secant slope and solve for c. The secant slope is the average rate of change across the interval: the change in f divided by the change in x. The mean value theorem guarantees at least one c inside the interval where the instantaneous rate f'(c) matches that average, and for the functions on this page the equation can be solved in closed form, so a mean value theorem calculator can return an exact expression rather than a numerical guess.
Take f(x) = x^3 on [1, 3]. The secant slope is 13. Setting f'(c) = 3c^2 equal to 13 gives c^2 = 13/3, so c = 2.0817. That value sits 54.1% of the way along the interval from 1 to 3, a little past the midpoint. The same pattern holds for the other examples. For ln(x) on [1, 4] the point is c = 2.1640, which is the logarithmic mean of the endpoints and sits 38.8% along the interval. For e^x on [0, 1] the point is c = 0.5413, and there f(c) equals the secant slope 1.7183 exactly, because the derivative of e^x is e^x itself.
Each function here has a closed-form c: a midpoint, a root-mean-square, a logarithm or a geometric mean of the endpoints. That is why the answers come out as clean expressions instead of iterative approximations. The position of c within the interval is not fixed; it depends on how the function curves, which is why x^3 lands past the middle while ln(x) lands before it.
The theorem needs continuity on the closed interval and differentiability inside it. Check those conditions before solving, since a function with a corner or a vertical tangent inside the interval may fail to produce a valid c even when the secant slope is easy to compute.
Worked examples
A good way to see what a mean value theorem calculator does is to run a few functions through it and check the answers by hand. Each example below uses a function that is continuous on its closed interval and differentiable inside it, so the theorem applies and a point c is guaranteed to exist.
Take f(x) = x^3 on the interval [1, 3]. The secant slope between the endpoints is 13, and the theorem promises some interior point where the derivative 3x^2 equals that slope. Solving gives c = 2.0817. That point sits 54.1% of the way along the interval, a little past the midpoint. Because the cubic bends upward, the tangent that matches the secant slope occurs later than the halfway mark, which is why c lands to the right of 2.
Next, f(x) = ln(x) on [1, 4]. The secant slope is 0.4621, and the matching point is c = 2.1640. This value is the logarithmic mean of the endpoints, a closed-form result specific to the natural logarithm. It sits 38.8% along the interval, well before the midpoint, because ln(x) rises steeply near x = 1 and then flattens out toward x = 4. The steep early growth pulls the matching tangent toward the left side of the interval.
Finally, f(x) = e^x on [0, 1]. The secant slope is 1.7183, and the point where the derivative e^x equals that slope is c = 0.5413. Here the match is exact: f(c) equals the secant slope 1.7183, because the derivative of e^x is e^x itself. The exponential grows faster and faster, so the tangent with the secant's slope appears before the midpoint.
Notice the pattern in these results. Each function has a closed-form c: a midpoint, a root-mean-square, a logarithm or a geometric mean of the endpoints. That makes them useful for checking a mean value theorem calculator, since you can compare the tool's output against a value you can derive yourself.
- x^3 on [1, 3]: secant slope 13, c = 2.0817, located 54.1% along the interval.
- ln(x) on [1, 4]: secant slope 0.4621, c = 2.1640 (the logarithmic mean), located 38.8% along the interval.
- e^x on [0, 1]: secant slope 1.7183, c = 0.5413, where f(c) equals the secant slope exactly.
The pattern behind the answers
Once you run several functions through a mean value theorem calculator, a pattern starts to show up in the answers. The point c is rarely a random number. For the functions on this page, each c has a closed form: a midpoint, a root-mean-square, a logarithm or a geometric mean of the endpoints. Seeing that pattern makes the results easier to check and easier to trust.
Take ln(x) on [1, 4]. The calculator returns c = 2.1640, and that value is the logarithmic mean of the endpoints 1 and 4. It is not the arithmetic midpoint of 2.5, and it is not the geometric mean of 2 either. The logarithmic mean has its own formula, and for this interval it lands at 2.1640. That number is also where the tangent to ln(x) runs parallel to the secant line across the interval. The position is telling too: this c sits 38.8% of the way along the interval from 1 to 4, closer to the left endpoint than the midpoint would be.
Now compare x^3 on [1, 3]. Here the secant slope is 13, and the matching point is c = 2.0817. That value has a root-mean-square form, built from the endpoints rather than from their plain average. The c sits 54.1% of the way along the interval, just past the middle. So the same theorem produces two different placements: ln(x) pulls its point left of center, while x^3 pushes its point slightly right of center. Neither is a coincidence; each follows from the shape of the function.
The other common cases fit the same idea. For 1/x, the c is the geometric mean of the endpoints, the natural fit for a function built on reciprocals. For sqrt(x), the geometric mean appears again. And for e^x on [0, 1], the point is c = 0.5413, where f(c) equals the secant slope of 1.7183 exactly. That last result is a useful check: the function value and the slope agree to four decimal places, which is what the theorem promises when its conditions hold. Those conditions are continuity on the closed interval and differentiability inside it, so a function with a corner or a break in the middle will not produce a clean closed-form c at all.
The practical lesson is that a mean value theorem calculator is not just spitting out a decimal. When the answer matches a logarithmic mean, a geometric mean, a root-mean-square or a simple midpoint, you can verify it by hand and see why it lands where it does. When the answer does not match any of those forms, that is a signal to look more closely at the function and the interval you entered.
- ln(x) on [1, 4]: c = 2.1640, the logarithmic mean of the endpoints; it sits 38.8% along the interval.
- x^3 on [1, 3]: c = 2.0817, a root-mean-square form, with secant slope 13; it sits 54.1% along the interval.
- 1/x and sqrt(x): the c is the geometric mean of the endpoints.
- e^x on [0, 1]: c = 0.5413, and f(c) equals the secant slope 1.7183 exactly.
- Every function here has a closed-form c: a midpoint, a root-mean-square, a logarithm or a geometric mean of the endpoints.
What the theorem does and does not say
The mean value theorem is often described as a promise that somewhere on a curve, the tangent runs parallel to the secant joining the endpoints. That promise is narrower than it sounds. What the theorem guarantees is existence: at least one point c in the open interval where the instantaneous rate of change equals the average rate of change over the whole interval. It does not guarantee uniqueness. A function can have several points with the same tangent slope, and the theorem says nothing about how many there are or where they fall. A mean value theorem calculator finds a qualifying c, but that c is not necessarily the only one.
The theorem also comes with conditions that are easy to skip. The function must be continuous on the closed interval and differentiable inside it. Both hypotheses matter: the guarantee applies to the whole interval, including its endpoints for continuity, but only to the interior for the derivative. When those conditions hold, the secant slope is the average rate of change, and the theorem says the instantaneous rate matches it somewhere. The familiar speed-camera reading captures the idea. If a car covers a stretch of road in a time that gives an average speed of 65 mph, then at some instant during the trip its speedometer read exactly 65 mph. The camera measures the average; the theorem says the instantaneous value had to catch up to it at least once.
Concrete examples show how different the location of c can be. For x^3 on [1, 3] the mean value theorem point is c = 2.0817, where the secant slope is 13. That point sits 54.1% of the way along its interval. For ln(x) on [1, 4] the point is c = 2.1640, the logarithmic mean of the endpoints, sitting 38.8% along. For e^x on [0, 1] the point is c = 0.5413, and there f(c) equals the secant slope 1.7183 exactly. Notice that c is not generally the midpoint of the interval, and nothing in the theorem requires it to be.
Each function here has a closed-form c: a midpoint, a root-mean-square, a logarithm or a geometric mean of the endpoints. That is a convenience of these particular examples, not a general rule. Many functions have no tidy formula for c, which is why numerical methods are often used to locate it. The theorem itself remains an existence statement regardless of whether c can be written down.
- The theorem guarantees at least one c; it does not guarantee that c is unique.
- Hypotheses: continuity on the closed interval and differentiability inside it.
- The secant slope is an average rate of change, like a speed camera's average speed; the theorem says the instantaneous rate matches it somewhere.
- For x^3 on [1, 3], c = 2.0817 and the secant slope is 13; for ln(x) on [1, 4], c = 2.1640; for e^x on [0, 1], c = 0.5413 and f(c) equals 1.7183.
- c need not sit at the midpoint: it lies 54.1% along for x^3 and 38.8% along for ln(x).
FAQs
What is the mean value theorem?
The mean value theorem says that for a differentiable function, there is a point where the tangent line's slope matches the function's average slope over the interval. For the function x^3 on the interval [1, 3], that point is c = 2.0817, where the tangent slope equals the average rate of change across the interval.
How do I find c for x^3 on [1, 3]?
For x^3 on [1, 3], the secant slope is 13. The derivative of x^3 is 3x^2, so you solve 3c^2 = 13. Solving that equation gives c = 2.0817, the point inside the interval where the tangent line is parallel to the secant line connecting the endpoints.
What is c for ln(x) on [1, 4]?
For ln(x) on [1, 4], the value is c = 2.1640. That point is the logarithmic mean of the endpoints, computed as (b - a) / ln(b / a). It falls inside the interval, marking where the tangent to the natural log curve has the same slope as the secant line.
What is c for e^x on [0, 1]?
For e^x on [0, 1], c = 0.5413. This is the logarithm of the secant slope, which is 1.7183. Taking the natural log of that secant slope gives the point where the derivative of e^x, which equals e^x itself, matches the average slope over the interval from 0 to 1.
Is c always unique?
No, c is not always unique in general. However, for the six functions offered here, the closed form gives one c inside the interval. For the cubic, for example, that point sits 54.1% along the interval, so the calculator returns a single well-defined value each time.
What are the conditions for the mean value theorem?
The function must be continuous on the closed interval [a, b] and differentiable on the open interval (a, b). That is why 1/x is only offered on intervals away from zero. The function 1/x is not continuous at zero, so it fails the continuity condition on any interval containing that point.