The Mean Value Theorem for Integrals
Suppose a car's velocity over a two-hour trip is continuous but wildly variable. Is there always a moment when the instantaneous velocity exactly equals the trip's average velocity? The Mean Value Theorem for Integrals answers yes. It does so by turning a statement about an average into something different. That average is an integral divided by a length. The theorem converts it into a statement about a value actually attained by the function somewhere on the interval. This matters because averages are integrals in disguise. Integrals, in turn, are notoriously hard to pin to a single point. The theorem builds a bridge between two things. One is the global, aggregate information carried by . The other is the local, pointwise behavior of . That bridge is exactly what is needed one step later. It comes into play when the Fundamental Theorem of Calculus differentiates an integral. At that point it must locate a representative value of near each point. The big picture: continuity is the crucial ingredient. It guarantees, via the Extreme Value Theorem, that attains a maximum and minimum on . Via the Intermediate Value Theorem, it also guarantees that hits every value in between. This includes the average. The proof is short but the idea is structural. Sandwich the average between the extreme values of . Then let the Intermediate Value Theorem do the rest. This article proves the basic Mean Value Theorem for Integrals. It then covers its more flexible cousin, the weighted (generalized) Mean Value Theorem for Integrals. This version allows averaging against a nonnegative weight function. Both are stated with full hypotheses and proved rigorously. Both are illustrated with asymmetric worked examples. Both are stress-tested with a counterexample. That counterexample shows exactly why continuity cannot be dropped.
- If is continuous on , some point satisfies .
- The right-hand side is literally the average value of over .
- Proof strategy: bound the average between and , then invoke the Intermediate Value Theorem.
- The weighted version replaces with for any continuous, sign-definite (e.g. nonnegative) weight .
- Continuity is essential — a discontinuous function can have an average value it never actually attains.
- Key idea: continuity forces the average of to be trapped between 's max and min, and the Intermediate Value Theorem forces to hit every value in that range, including its own average.
Where this lives today
The unweighted theorem is the direct stepping stone to the The First Fundamental Theorem of Calculus: to show that satisfies , one writes the difference quotient , recognizes the right side as an average value of over a shrinking interval, and uses exactly this theorem to replace that average by for some between and ; continuity of then forces . The weighted version underlies error estimates in numerical integration: the remainder term in the trapezoidal rule and Simpson's rule is expressed using a weighted Mean Value Theorem for Integrals, where the weight is a fixed-sign kernel arising from Taylor's theorem with integral remainder. In probability and statistics, the theorem justifies that the expected value of a continuous random variable's transformation, when computed as a weighted integral against a density, equals the transformation evaluated at some representative point — a heuristic made rigorous by exactly this tool. In physics and engineering, it certifies that quantities like average temperature, average force, or average electric field over a region are values genuinely attained somewhere in that region, not artifacts of the averaging process, provided the underlying field is continuous.
:::quiz[If on , what is the average value ?]
- 5
- 7
- 21/3 ✓
- 9
:::quiz[In the weighted Mean Value Theorem for Integrals, what happens if changes sign on ?]
- Nothing changes; the theorem still holds as stated
- The hypothesis is violated and the conclusion is not guaranteed by this proof ✓
- must then be constant
- The integral automatically becomes zero
:::quiz[For the step function on and on , what is , and is it attained?]
- , attained at
- , not attained anywhere on ✓
- , attained at
- , attained everywhere on
Ask the tutor: How exactly does this Mean Value Theorem get used inside the proof that ?
Let be Riemann integrable, with . The average value of over is the number
The Mean Value Theorem for Integrals asserts that if, in addition, is continuous on , then there exists with
More generally, given a second function that is integrable and does not change sign on (say throughout, or throughout), the weighted Mean Value Theorem for Integrals asserts the existence of with
Taking recovers the unweighted statement.
Intuition
Picture the graph of a continuous function over , sitting above and below the horizontal axis in some irregular way. The quantity is the signed area trapped between the graph and the axis. Dividing by the width converts that area into a height: the height of the rectangle with base whose area matches the signed area under . The theorem says this rectangle's height is not some abstract number invented by the arithmetic of integration — it is a height the function itself actually reaches at some point . Geometrically, the horizontal line must cross the graph of somewhere in , because the graph oscillates above and below that line in a way that exactly balances out (that is what "average" means), and a continuous curve cannot jump over a height without passing through it. The weighted version generalizes this by allowing the horizontal strip to be measured with a nonuniform ruler : instead of asking to match the plain average, it asks to match the -weighted average, which emphasizes regions where is large. The proof idea is identical — sandwich, then apply the Intermediate Value Theorem — but now to the quantity .
:::svg[The average value is a height the continuous curve must actually reach at some ]
Let be continuous on the closed bounded interval , with . Then there exists a point such that
Equivalently,
If is continuous on a closed bounded interval , then attains a maximum value and a minimum value for some ; consequently for all .
We use two prerequisite facts, each already established: continuous functions on are Riemann integrable (Integrability of Continuous Functions), and integration is monotone: if pointwise on and both are integrable, then (Monotonicity and Triangle Inequality for Integrals).
Step 1: is integrable and attains extreme values. Since is continuous on , it is Riemann integrable on by Integrability of Continuous Functions. By the Extreme Value Theorem (quoted above as a lemma, itself a standard consequence of continuity on a compact interval), attains a minimum value at some point and a maximum value at some point , and
Step 2: integrate the inequality. The constant functions and are integrable on (constants are continuous, hence integrable, or directly by the definition of the Riemann integral of a constant). Since holds for every , monotonicity of the integral (Monotonicity and Triangle Inequality for Integrals) gives
Because and (the integral of a constant over equals , directly from the definition via Riemann sums, or by the same monotonicity lemma applied to Riemann sums), we obtain
Step 3: divide by . Since , we have , so dividing all three parts of the inequality by preserves the inequality directions:
Set
We have shown .
Step 4: apply the Intermediate Value Theorem. The function is continuous on , and , with . Let be the closed interval with endpoints and (in whichever order they occur); since is an interval containing both points. Restricting to , it is continuous on , and lies between and by Step 3. By the Intermediate Value Theorem, there exists a point between and (hence ) such that
Conclusion. Multiplying by gives , and as required. Proof technique used: sandwich the average between extreme values via monotonicity of the integral, then apply the Intermediate Value Theorem to recover a point where equality holds. No step invokes the Mean Value Theorem for Integrals itself or anything built on top of it, so the argument is non-circular.
∎Let with . Assume: 1. is continuous on ; 2. is Riemann integrable on ; 3. does not change sign on : either for all , or for all . Then there exists such that
We treat the case on ; the case follows by applying the result to and noting both sides of the desired identity flip sign together.
Step 1: integrability of . is continuous, hence bounded, on (by the Extreme Value Theorem, continuous functions on closed bounded intervals are bounded). The product of a continuous function and an integrable function is integrable — this is a standard closure property of the Riemann integral (products of integrable functions are integrable, and continuous functions are integrable by Integrability of Continuous Functions). So is integrable on , and is a well-defined real number.
Step 2: bound by its extremes and multiply by . By the Extreme Value Theorem, attains a minimum and maximum on , so for all . Since for all , multiplying the inequality by does not reverse any inequality, giving
Step 3: integrate. All three functions , , are integrable on (constant multiples of an integrable function are integrable, and is integrable by Step 1). By monotonicity of the integral (Monotonicity and Triangle Inequality for Integrals),
Step 4: dispose of the degenerate case . If , then Step 3 forces as well (the inequality sandwiches it between and ). In this case the desired identity reads , true for any ; pick . This finishes the degenerate case.
Step 5: the main case . Since and is not the case handled in Step 4, we have (the integral of a nonnegative function is nonnegative by monotonicity against the zero function, and we are in the complementary case to Step 4). Divide the inequality in Step 3 by the positive number :
Let denote the middle quantity. As in the unweighted proof, let be points where attains and respectively, and let be the closed interval with endpoints . Since is continuous on and lies between and , the Intermediate Value Theorem furnishes a point with . Multiplying by gives
as required.
The case . Apply the case just proved to : there is with , i.e. , i.e. . Same conclusion. Proof technique used: the same sandwich-then-Intermediate-Value-Theorem strategy as the unweighted theorem, with the sign condition on used exactly once, to preserve inequality direction when multiplying by .
∎Taking (which is continuous, hence integrable, and satisfies everywhere) in the weighted theorem recovers exactly the unweighted Mean Value Theorem for Integrals, since .
Worked examples
Example 1 (unweighted, asymmetric interval and function). Let on . This is a polynomial, hence continuous on , so the Mean Value Theorem for Integrals applies. First compute the average value:
So
We must solve for some , i.e.
Check endpoints of a bracketing interval: and . Since is continuous and , the Intermediate Value Theorem (applied directly to on , consistent with the proof) guarantees a root . A quick refinement: , and , so lies between and , consistent with existence but — as guaranteed by the theorem — no closed form is needed; existence, not explicit computation, is the content of the theorem. This illustrates that the theorem guarantees exists in without requiring us to solve the cubic exactly.
Example 2 (weighted version, genuinely non-constant weight). Let and on . Here is continuous everywhere, and is continuous (hence integrable) and satisfies on , so both hypotheses of the weighted theorem hold. Compute , which is positive, so we are in the main (non-degenerate) case. Compute using integration by parts twice. With :
Evaluate from to : at , , giving . At , everything is . So
The theorem predicts a with
Since is continuous on and ranges continuously from down to , and lies in , the Intermediate Value Theorem guarantees a (unique, since is strictly decreasing on ) solution radians, which indeed lies in . This confirms the theorem's prediction with an explicit, checkable value of .
Consider
on . This is Riemann integrable on (it differs from the zero function at only one point, and a function that agrees with an integrable function except at finitely many points is integrable with the same integral). Indeed
since Riemann integration is insensitive to the value at a single point (upper and lower Riemann sums are unaffected in the limit by one point's value). Hence the average value is
The Mean Value Theorem's conclusion would demand a point with . Indeed here for every , so in this particular example the conclusion happens to hold anyway — but only because we chose a mild discontinuity. Sharpen the example: let
Again (same reasoning: a single point does not affect the Riemann integral), so , and again is attained on — the conclusion still holds by coincidence. To truly break the conclusion, remove more than a single point's worth of continuity. Take
This is a genuine step function, integrable, with
so . But only ever takes the values and — it never equals anywhere on . The average value is a number the function is mathematically obligated to average out to, yet no point of the domain realizes it: the conclusion of the Mean Value Theorem for Integrals fails outright. The culprit is exactly the hypothesis we dropped: is discontinuous (it jumps at ), so the Intermediate Value Theorem — the engine of the proof — no longer applies to , and there is no mechanism forcing to hit its own average.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| continuous, | Theorem applies exactly as stated; exists in (possibly at an endpoint). |
| merely (Riemann) integrable, not continuous | Conclusion can fail — see counterexample above. |
| Degenerate; both sides of the identity are , trivially true for any , but "average value" is undefined (division by ). | |
| Weighted version, changes sign on | Hypothesis violated; the sandwich step (multiplying by ) can reverse direction on part of the interval, and the conclusion may fail. |
| Weighted version, with (so a.e. in a suitable sense) | Handled in the proof; conclusion holds trivially since both sides vanish for any . |
| at an endpoint | Fully allowed — the theorem gives closed, not open. |
The mathematician behind it
Origins · 1 minAugustin-Louis Cauchy and how this was discovered
Cauchy was among the first to insist that theorems of calculus be proved from precise definitions of limit, continuity, and the definite integral, rather than from geometric intuition alone. His textbooks establish the mean value results for both derivatives and integrals as consequences of continuity and the intermediate value property, in the same rigorous spirit used in the proofs above.
Does the Mean Value Theorem for Integrals require to be differentiable?
No. It only requires to be continuous on the closed interval . This is weaker than differentiability — continuity alone suffices because the proof relies on the Extreme Value Theorem (to bound ) and the Intermediate Value Theorem (to hit the average), neither of which needs derivatives. This is a key difference from the Mean Value Theorem for derivatives, which does require differentiability on the open interval and gives information about the slope of , whereas the integral version gives information about the value of matching an average.
Is the point in the theorem unique?
Not in general. If is constant, every point of works. If is not monotonic, it may cross its average value multiple times. Uniqueness can be guaranteed under extra hypotheses, such as being strictly monotonic on , in which case is injective and crosses any given horizontal level at most once, forcing to be unique when it exists.
Can equal an endpoint or ?
Yes. The theorem only guarantees , a closed interval including its endpoints. For instance, if is increasing and its average happens to equal or exactly, the witnessing point can sit right at the boundary. Some textbooks strengthen the conclusion to an open interval under extra assumptions (e.g., non-constant), but the basic theorem as proved here does not need or claim that refinement.
How does this theorem relate to the Fundamental Theorem of Calculus?
It is the engine inside the standard proof that for continuous . The difference quotient of the integral function is itself an average value of over a shrinking interval, and the Mean Value Theorem for Integrals replaces that average with evaluated at some nearby point; continuity of then forces convergence to as the interval shrinks to a point.
Why does the weighted version require to keep one sign?
The proof multiplies the inequality by to obtain . This step only preserves the inequality directions if has a fixed sign throughout ; if changes sign, multiplying by can reverse the inequality on part of the interval and destroy the sandwich, so the subsequent integration step no longer yields a valid bound on .
What if in the weighted theorem?
The proof handles this explicitly as a degenerate case. If and , the sandwich inequality forces too, so the desired identity reads , which holds automatically for every choice of ; no division by zero or contradiction arises, and existence of is trivial in this case.
Does the theorem tell you how to compute explicitly?
No — it is a pure existence statement, proved via the Intermediate Value Theorem, which itself is non-constructive in general. In practice, once you know (or the weighted analogue), you solve using whatever algebraic or numerical means are available, exactly as done in the worked examples, where a cubic equation and an arccosine had to be handled separately from the existence argument.