From Average of Finite Numbers to Average of a Function§
You already know how to find the arithmetic mean (average) of n numbers y1,y2,…,yn: you add them up and divide by n:
Average=ny1+y2+⋯+yn
Now suppose a continuous function y=f(x) is defined on an interval [a,b]. Unlike a finite list of numbers, f(x) takes infinitely many values as x moves continuously from a to b. How should we define the average height (or mean value) of f(x) over [a,b]?
Let us approximate it using a finite sample first. Divide [a,b] into n equal sub-intervals of width h=nb−a, and sample the height of the function at the n equally spaced points x1=a+h,x2=a+2h,…,xn=a+nh=b. The ordinary average of these n sampled heights is:
Sample Average=nf(a+h)+f(a+2h)+⋯+f(a+nh)
Since h=nb−a, we can replace n1 by b−ah:
Sample Average=b−a1(hr=1∑nf(a+rh))
Look at the expression inside the parentheses: it is the Right Sum of f(x) on [a,b]! As we take more and more sample points by letting n→∞ (h→0), the Right Sum converges to the definite integral ∫abf(x)dx. This gives the exact definition of the Mean Value (or Average Value) μ of a continuous function f on [a,b]:
μ=favg=b−a1∫abf(x)dx
Graphical Representation: Equal-Area Rectangle and Area Balance§
Multiplying both sides of the mean-value formula by (b−a) gives a simple geometric equation:
∫abf(x)dx=μ(b−a)
When f(x)≥0 on [a,b], this equation has two vivid geometric interpretations:
The Equal-Area Rectangle (Water-Level Picture):
The integral ∫abf(x)dx is the area under the curved graph y=f(x) from x=a to x=b, while μ(b−a) is the area of a rectangle of base (b−a) and constant height y=μ. Imagine the region under y=f(x) is filled with water trapped between vertical walls at x=a and x=b. If you let the water settle to a flat horizontal surface, it comes to rest at the exact height y=μ!
Area Above the Mean Line Equals Area Below the Mean Line:
Draw the horizontal mean-value liney=μ across the graph. To flatten the curved roof y=f(x) into the horizontal line y=μ without changing the total area, the excess area of the curve above y=μ (the peaks) must exactly fill in the missing area between y=μ and the curve below it (the valleys):
Area above y=μ=Area below y=μ
Algebraically, this balance follows in one line because integrating the signed vertical deviation f(x)−μ over [a,b] gives zero:
Look again at the horizontal line y=μ in the figure above. Can a continuous curve y=f(x) stay strictly below its own average μ across the entire interval [a,b], or stay strictly above μ everywhere? Clearly not! Somewhere inside the interval, the function must actually attain its average value.
Theorem (First Mean Value Theorem for Integrals):
If f is continuous on [a,b], then there exists at least one point c∈(a,b) such that:
Method 1 (Using Minimum, Maximum, and the Intermediate Value Theorem):
Since f is continuous on the closed interval [a,b], it attains an absolute minimum m and an absolute maximum M on [a,b]:
m≤f(x)≤Mfor all x∈[a,b]
Integrating across [a,b] gives m(b−a)≤∫abf(x)dx≤M(b−a). Dividing by b−a>0:
m≤b−a1∫abf(x)dx≤M
Thus the mean value μ=b−a1∫abf(x)dx lies between the minimum value m and maximum value M of f. By the Intermediate Value Theorem, f(c)=μ for at least one point c∈(a,b).
Method 2 (Applying Lagrange's MVT to the Accumulation Function):
Define the accumulation function F(x)=∫axf(t)dt on [a,b]. By the Second Fundamental Theorem of Calculus, F is continuous on [a,b] and differentiable on (a,b) with F′(x)=f(x). Applying Lagrange's Mean Value Theorem to F on [a,b] guarantees a point c∈(a,b) such that:
Sometimes the integrand is a product f(x)g(x) where one factor g(x) stays non-negative (or non-positive) throughout [a,b]:
Theorem (Weighted Mean Value Theorem for Integrals):
If f and g are continuous on [a,b] and g(x)does not change sign on [a,b] (that is, either g(x)≥0 for all x∈[a,b] or g(x)≤0 for all x∈[a,b]), then there exists c∈(a,b) such that:
∫abf(x)g(x)dx=f(c)∫abg(x)dx
Why it works: Suppose g(x)≥0 on [a,b]. Multiplying m≤f(x)≤M by g(x)≥0 preserves the inequalities:
Look at what happens in the Mean Value Theorem when the definite integral of a continuous function is zero:
∫abf(x)dx=0⟹(b−a)f(c)=0⟹f(c)=0for some c∈(a,b)
Zero-Integral Root Principle:
If f is continuous on [a,b] and ∫abf(x)dx=0, then the equation f(x)=0 has at least one real rootc∈(a,b).
(More generally, if ∫abf(x)dx=∫abg(x)dx for continuous functions f and g, then ∫ab(f(x)−g(x))dx=0, so there exists at least one c∈(a,b) where f(c)=g(c).)
Geometrically, if the total signed area on [a,b] is zero, then unless f(x)≡0 everywhere, any positive area +A above the x-axis must be canceled by an equal negative area −A below the x-axis. Since f is continuous, it cannot jump from positive to negative without crossing the x-axis at some root c∈(a,b)!
How to Attack Root-Existence Problems Involving Integrals§
When a problem asks you to prove that an equation has a root c∈(a,b), match the given condition to one of these four patterns:
Given Condition
Winning Strategy
1. Direct integral is zero:∫abh(x)dx=0
Apply the Zero-Integral Root Principle directly (or apply Rolle's Theorem to F(x)=∫axh(t)dt since F(a)=F(b)=0).
2. Integral equals a number:∫abf(x)dx=K
Rewrite K as ∫abg(x)dx where g(x) matches the right-hand side of the target equation f(c)=g(c), so ∫ab(f(x)−g(x))dx=0.
3. Algebraic relation with fractions:1a0+2a1+⋯+n+1an=0
Recognize k+11=∫01xkdx, turning the relation into ∫01(a0+a1x+⋯+anxn)dx=0.
4. Target involves f(c) and ∫acf(t)dt: e.g., f(c)+λ∫acf(t)dt=0
Set F(x)=∫axf(t)dt (so F′(x)=f(x)) and apply Rolle's Theorem to G(x)=eλxF(x) or xλF(x).
Example 1: Mean Value of a Linear Function vs. a Parabola (Verifying Equal Areas)
Find the mean value μ of the linear function f(x)=2x+1 on [0,4] and the point c∈(0,4) where f(c)=μ.
Find the mean value μ of the parabola f(x)=3x2 on [0,2], find the point c∈(0,2) where f(c)=μ, and verify by integration that the area of the region above the line y=μ equals the area of the region below y=μ.
Solution:
Part 1 (Linear Function):
On [0,4], the mean value is:
μ=4−01∫04(2x+1)dx=41[x2+x]04=416+4=5
Solving f(c)=2c+1=5 gives c=2, which is the exact midpoint of [0,4]. (For any linear function f(x)=mx+k, the mean value on [a,b] is always attained at the midpoint c=2a+b, and the region below y=μ on [a,c] and the region above y=μ on [c,b] are congruent right triangles!)
Part 2 (Parabola f(x)=3x2 on [0,2]):
First compute the mean value μ on [0,2]:
μ=2−01∫023x2dx=21[x3]02=28=4
To find c∈(0,2) where f(c)=μ, solve 3c2=4:
c=32≈1.155∈(0,2)
(Notice that because y=3x2 curves upward, c=32 is shifted to the right of the midpoint x=1.)
Now let us verify the area balance around the mean line y=4:
Both areas equal 3316, confirming that the peak above y=4 exactly fills the valley below y=4!
Example 2: Mean Values of Trigonometric Waves
Find the mean value of:
f(x)=sinx on [0,π] and on [0,2π].
g(x)=sin2x on [0,π].
Solution:
Part 1: On a half-period [0,π], the arch of sinx has area 2, so its average height is:
μ[0,π]=π−01∫0πsinxdx=π1[−cosx]0π=π2≈0.637
On a full period [0,2π], the positive arch on [0,π] (area +2) and the negative arch on [π,2π] (area −2) cancel completely, so μ[0,2π]=2π1∫02πsinxdx=0.
Part 2: For g(x)=sin2x=21−cos(2x) on [0,π]:
μ=π1∫0π21−cos(2x)dx=π1[2x−4sin(2x)]0π=21
(Geometrically, y=sin2x oscillates symmetrically between 0 and 1 around its horizontal midline y=21, so the area above y=21 equals the area below y=21!)
Example 3: Total Geometric Area Between a Curve and Its Mean-Value Line
For the cubic function f(x)=x3 on [0,2], find its mean value μ and calculate the total geometric area enclosed between the graph of y=x3 and its mean-value line y=μ on [0,2].
Solution:
First compute the mean value μ on [0,2]:
μ=2−01∫02x3dx=21[4x4]02=21(4)=2
The curve y=x3 crosses the mean line y=2 at x=c=21/3. Because the area below y=2 on [0,21/3] equals the area above y=2 on [21/3,2], the total geometric areaA=∫02∣x3−2∣dx is simply twice the area on [0,21/3]:
A=2∫021/3(2−x3)dx=2[2x−4x4]021/3
Since (21/3)4=2⋅21/3, this simplifies cleanly to:
A=2(2⋅21/3−42⋅21/3)=2(23⋅21/3)=332
Example 4: Evaluating Limits of Integrals via the Mean Value Theorem
Evaluate:
L=n→∞limn∫01/n1+xcos(x2)dx
Solution:
Since f(x)=1+xcos(x2) is continuous on [0,n1], the Mean Value Theorem for Integrals guarantees a point cn∈(0,n1) such that:
∫01/n1+xcos(x2)dx=(n1−0)1+cncos(cn2)
Multiply both sides by n:
n∫01/n1+xcos(x2)dx=1+cncos(cn2)
As n→∞, since 0<cn<n1, the Squeeze Theorem forces cn→0. By continuity of 1+xcos(x2) at x=0:
L=cn→0lim1+cncos(cn2)=1+0cos0=1
Example 5: Bounding an Integral with the Weighted Mean Value Theorem
Prove that there exists c∈(0,1) such that:
∫011+x2x3dx=41+c21
and deduce that 421<∫011+x2x3dx<41.
Solution:
Write the integrand as f(x)g(x) with f(x)=1+x21 and g(x)=x3. On [0,1], both functions are continuous and g(x)=x3≥0 never changes sign. By the Weighted Mean Value Theorem for Integrals, there exists c∈(0,1) such that:
∫011+x2x3dx=1+c21∫01x3dx=41+c21
Since 0<c<1, we have 1<1+c2<2, which immediately gives:
421<∫011+x2x3dx<41
Example 6: Proving Existence of a Polynomial Root from a Coefficient Relation
Let a,b,c∈R satisfy 2a+3b+6c=0. Prove that the quadratic equation ax2+bx+c=0 has at least one real root in the open interval (0,1).
Solution:
Divide the given condition 2a+3b+6c=0 by 6:
3a+2b+c=0
Recognize each fraction as the definite integral of a power of x on [0,1]: 31=∫01x2dx, 21=∫01xdx, and 1=∫011dx. Thus:
∫01(ax2+bx+c)dx=[a3x3+b2x2+cx]01=3a+2b+c=0
Since P(x)=ax2+bx+c is continuous on [0,1] and ∫01P(x)dx=0, the Zero-Integral Root Principle guarantees at least one x0∈(0,1) such that ax02+bx0+c=0.
Example 7: Matching a Non-Zero Integral Against Target Functions
Suppose f is continuous on [1,3] and ∫13f(x)dx=8. Prove that:
There exists c1∈(1,3) such that f(c1)=2c1.
There exists c2∈(1,3) such that c22f(c2)=12.
Solution:
Part 1: Notice that the target right-hand side g(x)=2x also has integral 8 on [1,3]:
∫132xdx=[x2]13=9−1=8
Subtracting the two integrals gives:
∫13(f(x)−2x)dx=8−8=0
By the Zero-Integral Root Principle applied to the continuous function h(x)=f(x)−2x, there exists c1∈(1,3) such that f(c1)−2c1=0, i.e., f(c1)=2c1.
Part 2: Rewrite the target equation as f(c2)=c2212, and check the integral of x212 on [1,3]:
∫13x212dx=[−x12]13=−4−(−12)=8
Hence ∫13(f(x)−x212)dx=8−8=0. Since f(x)−x212 is continuous on [1,3], there exists c2∈(1,3) such that f(c2)=c2212, or c22f(c2)=12.
Example 8: Two Moment Conditions Guarantee At Least Two Distinct Roots
Let f be a continuous function on [0,1] (not identically zero) such that:
∫01f(x)dx=0and∫01xf(x)dx=0
Prove that the equation f(x)=0 has at least two distinct real roots in (0,1).
Solution:
We give two short, instructive proofs.
Method 1 (Using Rolle's Theorem on the Accumulation Function):
Define F(x)=∫0xf(t)dt on [0,1]. Then F′(x)=f(x), F(0)=0, and the first condition gives F(1)=∫01f(t)dt=0.
Now integrate the second condition ∫01xf(x)dx=0 by parts with u=x and dv=f(x)dx (so v=F(x)):
Thus ∫01F(x)dx=0! By the Zero-Integral Root Principle applied to F(x), there is a point c∈(0,1) where F(c)=0.
Now look at the three zeros of F:
F(0)=0,F(c)=0,F(1)=0
Applying Rolle's Theorem to F on [0,c] and on [c,1] produces two distinct points c1∈(0,c) and c2∈(c,1) where F′(c1)=f(c1)=0 and F′(c2)=f(c2)=0!
Method 2 (Sign-Change Contradiction):
Since ∫01f(x)dx=0 and f≡0, f(x) must change sign at least once inside (0,1). Suppose for contradiction that f(x) changes sign at only one point c∈(0,1). Then x−c and f(x) change sign at the exact same point x=c, so their product (x−c)f(x) stays of one single sign across all of [0,1] (and is not identically zero). Hence:
∫01(x−c)f(x)dx=0
Yet expanding the integral using the given conditions yields:
∫01(x−c)f(x)dx=∫01xf(x)dx−c∫01f(x)dx=0−c(0)=0
This contradiction proves that f(x) must change sign at at least two distinct points in (0,1).
Example 9: Trigonometric Orthogonality Forcing Two Roots
Let f be a continuous function on [0,π] (not identically zero) such that:
∫0πf(x)sinxdx=0and∫0πf(x)cosxdx=0
Prove that f(x)=0 has at least two distinct roots in (0,π).
Solution:
First, since sinx>0 on (0,π) and ∫0πf(x)sinxdx=0, f(x) cannot remain purely positive or purely negative on (0,π); it must change sign at least once in (0,π).
Suppose f(x) changes sign at only one point c∈(0,π). Notice that sin(x−c) is negative for x∈(0,c) and positive for x∈(c,π), so sin(x−c) changes sign at the exact same point x=c (and nowhere else in (0,π)). Therefore, the product f(x)sin(x−c) never changes sign on (0,π), which means:
∫0πf(x)sin(x−c)dx=0
However, expanding sin(x−c)=sinxcosc−cosxsinc gives: