Skip to content

Mean Value Theorem for Integrals and Existence of Roots

What Is the Mean Value of a Function?

From Average of Finite Numbers to Average of a Function

You already know how to find the arithmetic mean (average) of \(n\) numbers \(y_1, y_2, \dots, y_n\): you add them up and divide by \(n\):

\[ \text{Average} = \frac{y_1 + y_2 + \dots + y_n}{n} \]

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 = \frac{b - a}{n}\), and sample the height of the function at the \(n\) equally spaced points \(x_1 = a + h,\; x_2 = a + 2h,\; \dots,\; x_n = a + nh = b\). The ordinary average of these \(n\) sampled heights is:

\[ \text{Sample Average} = \frac{f(a + h) + f(a + 2h) + \dots + f(a + nh)}{n} \]

Since \(h = \frac{b - a}{n}\), we can replace \(\frac{1}{n}\) by \(\frac{h}{b - a}\):

\[ \text{Sample Average} = \frac{1}{b - a} \left( h \sum_{r=1}^{n} f(a + rh) \right) \]

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 \to \infty\) (\(h \to 0\)), the Right Sum converges to the definite integral \(\int_a^b f(x)\,dx\). This gives the exact definition of the Mean Value (or Average Value) \(\mu\) of a continuous function \(f\) on \([a, b]\):

\[ \mu = f_{\text{avg}} = \frac{1}{b - a} \int_a^b f(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:

\[ \int_a^b f(x)\,dx = \mu (b - a) \]

When \(f(x) \ge 0\) on \([a, b]\), this equation has two vivid geometric interpretations:

  1. The Equal-Area Rectangle (Water-Level Picture): The integral \(\int_a^b f(x)\,dx\) is the area under the curved graph \(y = f(x)\) from \(x = a\) to \(x = b\), while \(\mu(b - a)\) is the area of a rectangle of base \((b - a)\) and constant height \(y = \mu\). 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 = \mu\)!
  2. Area Above the Mean Line Equals Area Below the Mean Line: Draw the horizontal mean-value line \(y = \mu\) across the graph. To flatten the curved roof \(y = f(x)\) into the horizontal line \(y = \mu\) without changing the total area, the excess area of the curve above \(y = \mu\) (the peaks) must exactly fill in the missing area between \(y = \mu\) and the curve below it (the valleys):
\[ \text{Area above } y = \mu \quad = \quad \text{Area below } y = \mu \]

Graphical representation of the Mean Value Theorem showing equal areas above and below the mean line

Algebraically, this balance follows in one line because integrating the signed vertical deviation \(f(x) - \mu\) over \([a, b]\) gives zero:

\[ \int_a^b \big(f(x) - \mu\big)\,dx = \int_a^b f(x)\,dx - \mu(b - a) = 0 \]

The Mean Value Theorem for Integrals

Look again at the horizontal line \(y = \mu\) in the figure above. Can a continuous curve \(y = f(x)\) stay strictly below its own average \(\mu\) across the entire interval \([a, b]\), or stay strictly above \(\mu\) 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 \in (a, b)\) such that:

\[ f(c) = \frac{1}{b - a} \int_a^b f(x)\,dx \qquad \Longleftrightarrow \qquad \int_a^b f(x)\,dx = (b - a)f(c) \]

Two Simple Proofs

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 \le f(x) \le M \qquad \text{for all } x \in [a, b] \]

Integrating across \([a, b]\) gives \(m(b - a) \le \int_a^b f(x)\,dx \le M(b - a)\). Dividing by \(b - a > 0\):

\[ m \le \frac{1}{b - a}\int_a^b f(x)\,dx \le M \]

Thus the mean value \(\mu = \frac{1}{b - a}\int_a^b f(x)\,dx\) lies between the minimum value \(m\) and maximum value \(M\) of \(f\). By the Intermediate Value Theorem, \(f(c) = \mu\) for at least one point \(c \in (a, b)\).

Method 2 (Applying Lagrange's MVT to the Accumulation Function): Define the accumulation function \(F(x) = \int_a^x f(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 \in (a, b)\) such that:

\[ F'(c) = \frac{F(b) - F(a)}{b - a} \implies f(c) = \frac{\int_a^b f(t)\,dt - 0}{b - a} = \frac{1}{b - a}\int_a^b f(x)\,dx \]

Weighted Mean Value Theorem for Integrals

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) \ge 0\) for all \(x \in [a, b]\) or \(g(x) \le 0\) for all \(x \in [a, b]\)), then there exists \(c \in (a, b)\) such that:

\[ \int_a^b f(x)g(x)\,dx = f(c) \int_a^b g(x)\,dx \]

Why it works: Suppose \(g(x) \ge 0\) on \([a, b]\). Multiplying \(m \le f(x) \le M\) by \(g(x) \ge 0\) preserves the inequalities:

\[ m\, g(x) \le f(x)g(x) \le M\, g(x) \implies m \int_a^b g(x)\,dx \le \int_a^b f(x)g(x)\,dx \le M \int_a^b g(x)\,dx \]

If \(\int_a^b g(x)\,dx > 0\), dividing through shows that the ratio \(\frac{\int_a^b f(x)g(x)\,dx}{\int_a^b g(x)\,dx}\) lies in \([m, M]\), so it equals \(f(c)\) for some \(c \in (a, b)\).


Existence of Roots from Integral Conditions

The Zero-Integral Root Principle

Look at what happens in the Mean Value Theorem when the definite integral of a continuous function is zero:

\[ \int_a^b f(x)\,dx = 0 \implies (b - a)f(c) = 0 \implies f(c) = 0 \quad \text{for some } c \in (a, b) \]

Zero-Integral Root Principle: If \(f\) is continuous on \([a, b]\) and \(\int_a^b f(x)\,dx = 0\), then the equation \(f(x) = 0\) has at least one real root \(c \in (a, b)\). (More generally, if \(\int_a^b f(x)\,dx = \int_a^b g(x)\,dx\) for continuous functions \(f\) and \(g\), then \(\int_a^b \big(f(x) - g(x)\big)\,dx = 0\), so there exists at least one \(c \in (a, b)\) where \(f(c) = g(c)\).)

Geometrically, if the total signed area on \([a, b]\) is zero, then unless \(f(x) \equiv 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 \in (a, b)\)!

Zero-integral condition forcing a continuous curve to cross the x-axis at a root c

How to Attack Root-Existence Problems Involving Integrals

When a problem asks you to prove that an equation has a root \(c \in (a, b)\), match the given condition to one of these four patterns:

Given Condition Winning Strategy
1. Direct integral is zero: \(\int_a^b h(x)\,dx = 0\) Apply the Zero-Integral Root Principle directly (or apply Rolle's Theorem to \(F(x) = \int_a^x h(t)\,dt\) since \(F(a) = F(b) = 0\)).
2. Integral equals a number: \(\int_a^b f(x)\,dx = K\) Rewrite \(K\) as \(\int_a^b g(x)\,dx\) where \(g(x)\) matches the right-hand side of the target equation \(f(c) = g(c)\), so \(\int_a^b \big(f(x) - g(x)\big)\,dx = 0\).
3. Algebraic relation with fractions: \(\frac{a_0}{1} + \frac{a_1}{2} + \dots + \frac{a_n}{n+1} = 0\) Recognize \(\frac{1}{k+1} = \int_0^1 x^k\,dx\), turning the relation into \(\int_0^1 \big(a_0 + a_1 x + \dots + a_n x^n\big)\,dx = 0\).
4. Target involves \(f(c)\) and \(\int_a^c f(t)\,dt\): e.g., \(f(c) + \lambda \int_a^c f(t)\,dt = 0\) Set \(F(x) = \int_a^x f(t)\,dt\) (so \(F'(x) = f(x)\)) and apply Rolle's Theorem to \(G(x) = e^{\lambda x}F(x)\) or \(x^\lambda F(x)\).

Worked Problems


Example 1: Mean Value of a Linear Function vs. a Parabola (Verifying Equal Areas)

  1. Find the mean value \(\mu\) of the linear function \(f(x) = 2x + 1\) on \([0, 4]\) and the point \(c \in (0, 4)\) where \(f(c) = \mu\).
  2. Find the mean value \(\mu\) of the parabola \(f(x) = 3x^2\) on \([0, 2]\), find the point \(c \in (0, 2)\) where \(f(c) = \mu\), and verify by integration that the area of the region above the line \(y = \mu\) equals the area of the region below \(y = \mu\).

Solution:

Part 1 (Linear Function): On \([0, 4]\), the mean value is:

\[ \mu = \frac{1}{4 - 0}\int_0^4 (2x + 1)\,dx = \frac{1}{4}\Big[x^2 + x\Big]_0^4 = \frac{16 + 4}{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 = \frac{a + b}{2}\), and the region below \(y = \mu\) on \([a, c]\) and the region above \(y = \mu\) on \([c, b]\) are congruent right triangles!)

Part 2 (Parabola \(f(x) = 3x^2\) on \([0, 2]\)): First compute the mean value \(\mu\) on \([0, 2]\):

\[ \mu = \frac{1}{2 - 0}\int_0^2 3x^2\,dx = \frac{1}{2}\Big[x^3\Big]_0^2 = \frac{8}{2} = 4 \]

To find \(c \in (0, 2)\) where \(f(c) = \mu\), solve \(3c^2 = 4\):

\[ c = \frac{2}{\sqrt{3}} \approx 1.155 \in (0, 2) \]

(Notice that because \(y = 3x^2\) curves upward, \(c = \frac{2}{\sqrt{3}}\) is shifted to the right of the midpoint \(x = 1\).)

Mean-value line y = 4 on the parabola y = 3x^2 showing equal areas above and below

Now let us verify the area balance around the mean line \(y = 4\):

  • Area below \(y = 4\) (where \(3x^2 < 4\), on \(\left[0, \frac{2}{\sqrt{3}}\right]\)):
\[ A_{\text{below}} = \int_0^{2/\sqrt{3}} \big(4 - 3x^2\big)\,dx = \Big[4x - x^3\Big]_0^{2/\sqrt{3}} = \frac{8}{\sqrt{3}} - \frac{8}{3\sqrt{3}} = \frac{16}{3\sqrt{3}} \]
  • Area above \(y = 4\) (where \(3x^2 > 4\), on \(\left[\frac{2}{\sqrt{3}}, 2\right]\)):
\[ A_{\text{above}} = \int_{2/\sqrt{3}}^2 \big(3x^2 - 4\big)\,dx = \Big[x^3 - 4x\Big]_{2/\sqrt{3}}^2 = (8 - 8) - \left(\frac{8}{3\sqrt{3}} - \frac{8}{\sqrt{3}}\right) = \frac{16}{3\sqrt{3}} \]

Both areas equal \(\frac{16}{3\sqrt{3}}\), 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:

  1. \(f(x) = \sin x\) on \([0, \pi]\) and on \([0, 2\pi]\).
  2. \(g(x) = \sin^2 x\) on \([0, \pi]\).

Solution:

Part 1: On a half-period \([0, \pi]\), the arch of \(\sin x\) has area \(2\), so its average height is:

\[ \mu_{[0, \pi]} = \frac{1}{\pi - 0}\int_0^\pi \sin x\,dx = \frac{1}{\pi}\Big[-\cos x\Big]_0^\pi = \frac{2}{\pi} \approx 0.637 \]

On a full period \([0, 2\pi]\), the positive arch on \([0, \pi]\) (area \(+2\)) and the negative arch on \([\pi, 2\pi]\) (area \(-2\)) cancel completely, so \(\mu_{[0, 2\pi]} = \frac{1}{2\pi}\int_0^{2\pi}\sin x\,dx = 0\).

Part 2: For \(g(x) = \sin^2 x = \frac{1 - \cos(2x)}{2}\) on \([0, \pi]\):

\[ \mu = \frac{1}{\pi}\int_0^\pi \frac{1 - \cos(2x)}{2}\,dx = \frac{1}{\pi}\left[\frac{x}{2} - \frac{\sin(2x)}{4}\right]_0^\pi = \frac{1}{2} \]

(Geometrically, \(y = \sin^2 x\) oscillates symmetrically between \(0\) and \(1\) around its horizontal midline \(y = \frac{1}{2}\), so the area above \(y = \frac{1}{2}\) equals the area below \(y = \frac{1}{2}\)!)


Example 3: Total Geometric Area Between a Curve and Its Mean-Value Line

For the cubic function \(f(x) = x^3\) on \([0, 2]\), find its mean value \(\mu\) and calculate the total geometric area enclosed between the graph of \(y = x^3\) and its mean-value line \(y = \mu\) on \([0, 2]\).

Solution: First compute the mean value \(\mu\) on \([0, 2]\):

\[ \mu = \frac{1}{2 - 0}\int_0^2 x^3\,dx = \frac{1}{2}\left[\frac{x^4}{4}\right]_0^2 = \frac{1}{2}(4) = 2 \]

The curve \(y = x^3\) crosses the mean line \(y = 2\) at \(x = c = 2^{1/3}\). Because the area below \(y = 2\) on \([0, 2^{1/3}]\) equals the area above \(y = 2\) on \([2^{1/3}, 2]\), the total geometric area \(\mathcal{A} = \int_0^2 |x^3 - 2|\,dx\) is simply twice the area on \([0, 2^{1/3}]\):

\[ \mathcal{A} = 2 \int_0^{2^{1/3}} \big(2 - x^3\big)\,dx = 2\left[2x - \frac{x^4}{4}\right]_0^{2^{1/3}} \]

Since \(\left(2^{1/3}\right)^4 = 2 \cdot 2^{1/3}\), this simplifies cleanly to:

\[ \mathcal{A} = 2\left(2\cdot 2^{1/3} - \frac{2\cdot 2^{1/3}}{4}\right) = 2\left(\frac{3}{2}\cdot 2^{1/3}\right) = 3\sqrt[3]{2} \]

Example 4: Evaluating Limits of Integrals via the Mean Value Theorem

Evaluate:

\[ L = \lim_{n \to \infty} n \int_0^{1/n} \frac{\cos(x^2)}{1 + x}\,dx \]

Solution: Since \(f(x) = \frac{\cos(x^2)}{1 + x}\) is continuous on \(\left[0, \frac{1}{n}\right]\), the Mean Value Theorem for Integrals guarantees a point \(c_n \in \left(0, \frac{1}{n}\right)\) such that:

\[ \int_0^{1/n} \frac{\cos(x^2)}{1 + x}\,dx = \left(\frac{1}{n} - 0\right) \frac{\cos(c_n^2)}{1 + c_n} \]

Multiply both sides by \(n\):

\[ n \int_0^{1/n} \frac{\cos(x^2)}{1 + x}\,dx = \frac{\cos(c_n^2)}{1 + c_n} \]

As \(n \to \infty\), since \(0 < c_n < \frac{1}{n}\), the Squeeze Theorem forces \(c_n \to 0\). By continuity of \(\frac{\cos(x^2)}{1 + x}\) at \(x = 0\):

\[ L = \lim_{c_n \to 0} \frac{\cos(c_n^2)}{1 + c_n} = \frac{\cos 0}{1 + 0} = 1 \]

Example 5: Bounding an Integral with the Weighted Mean Value Theorem

Prove that there exists \(c \in (0, 1)\) such that:

\[ \int_0^1 \frac{x^3}{\sqrt{1 + x^2}}\,dx = \frac{1}{4\sqrt{1 + c^2}} \]

and deduce that \(\frac{1}{4\sqrt{2}} < \int_0^1 \frac{x^3}{\sqrt{1 + x^2}}\,dx < \frac{1}{4}\).

Solution: Write the integrand as \(f(x)g(x)\) with \(f(x) = \frac{1}{\sqrt{1 + x^2}}\) and \(g(x) = x^3\). On \([0, 1]\), both functions are continuous and \(g(x) = x^3 \ge 0\) never changes sign. By the Weighted Mean Value Theorem for Integrals, there exists \(c \in (0, 1)\) such that:

\[ \int_0^1 \frac{x^3}{\sqrt{1 + x^2}}\,dx = \frac{1}{\sqrt{1 + c^2}} \int_0^1 x^3\,dx = \frac{1}{4\sqrt{1 + c^2}} \]

Since \(0 < c < 1\), we have \(1 < \sqrt{1 + c^2} < \sqrt{2}\), which immediately gives:

\[ \frac{1}{4\sqrt{2}} < \int_0^1 \frac{x^3}{\sqrt{1 + x^2}}\,dx < \frac{1}{4} \]

Example 6: Proving Existence of a Polynomial Root from a Coefficient Relation

Let \(a, b, c \in \mathbb{R}\) satisfy \(2a + 3b + 6c = 0\). Prove that the quadratic equation \(ax^2 + 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\):

\[ \frac{a}{3} + \frac{b}{2} + c = 0 \]

Recognize each fraction as the definite integral of a power of \(x\) on \([0, 1]\): \(\frac{1}{3} = \int_0^1 x^2\,dx\), \(\frac{1}{2} = \int_0^1 x\,dx\), and \(1 = \int_0^1 1\,dx\). Thus:

\[ \int_0^1 (ax^2 + bx + c)\,dx = \left[a\frac{x^3}{3} + b\frac{x^2}{2} + cx\right]_0^1 = \frac{a}{3} + \frac{b}{2} + c = 0 \]

Since \(P(x) = ax^2 + bx + c\) is continuous on \([0, 1]\) and \(\int_0^1 P(x)\,dx = 0\), the Zero-Integral Root Principle guarantees at least one \(x_0 \in (0, 1)\) such that \(a x_0^2 + b x_0 + c = 0\).


Example 7: Matching a Non-Zero Integral Against Target Functions

Suppose \(f\) is continuous on \([1, 3]\) and \(\int_1^3 f(x)\,dx = 8\). Prove that:

  1. There exists \(c_1 \in (1, 3)\) such that \(f(c_1) = 2c_1\).
  2. There exists \(c_2 \in (1, 3)\) such that \(c_2^2\, f(c_2) = 12\).

Solution:

Part 1: Notice that the target right-hand side \(g(x) = 2x\) also has integral \(8\) on \([1, 3]\):

\[ \int_1^3 2x\,dx = \Big[x^2\Big]_1^3 = 9 - 1 = 8 \]

Subtracting the two integrals gives:

\[ \int_1^3 \big(f(x) - 2x\big)\,dx = 8 - 8 = 0 \]

By the Zero-Integral Root Principle applied to the continuous function \(h(x) = f(x) - 2x\), there exists \(c_1 \in (1, 3)\) such that \(f(c_1) - 2c_1 = 0\), i.e., \(f(c_1) = 2c_1\).

Part 2: Rewrite the target equation as \(f(c_2) = \frac{12}{c_2^2}\), and check the integral of \(\frac{12}{x^2}\) on \([1, 3]\):

\[ \int_1^3 \frac{12}{x^2}\,dx = \left[-\frac{12}{x}\right]_1^3 = -4 - (-12) = 8 \]

Hence \(\int_1^3 \left(f(x) - \frac{12}{x^2}\right) dx = 8 - 8 = 0\). Since \(f(x) - \frac{12}{x^2}\) is continuous on \([1, 3]\), there exists \(c_2 \in (1, 3)\) such that \(f(c_2) = \frac{12}{c_2^2}\), or \(c_2^2\, f(c_2) = 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:

\[ \int_0^1 f(x)\,dx = 0 \qquad \text{and} \qquad \int_0^1 x f(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) = \int_0^x f(t)\,dt\) on \([0, 1]\). Then \(F'(x) = f(x)\), \(F(0) = 0\), and the first condition gives \(F(1) = \int_0^1 f(t)\,dt = 0\).

Now integrate the second condition \(\int_0^1 x f(x)\,dx = 0\) by parts with \(u = x\) and \(dv = f(x)\,dx\) (so \(v = F(x)\)):

\[ 0 = \int_0^1 x F'(x)\,dx = \Big[x F(x)\Big]_0^1 - \int_0^1 F(x)\,dx = 1 \cdot F(1) - 0 - \int_0^1 F(x)\,dx = -\int_0^1 F(x)\,dx \]

Thus \(\int_0^1 F(x)\,dx = 0\)! By the Zero-Integral Root Principle applied to \(F(x)\), there is a point \(c \in (0, 1)\) where \(F(c) = 0\).

Now look at the three zeros of \(F\):

\[ F(0) = 0, \qquad F(c) = 0, \qquad F(1) = 0 \]

Applying Rolle's Theorem to \(F\) on \([0, c]\) and on \([c, 1]\) produces two distinct points \(c_1 \in (0, c)\) and \(c_2 \in (c, 1)\) where \(F'(c_1) = f(c_1) = 0\) and \(F'(c_2) = f(c_2) = 0\)!

Method 2 (Sign-Change Contradiction): Since \(\int_0^1 f(x)\,dx = 0\) and \(f \not\equiv 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 \in (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:

\[ \int_0^1 (x - c)f(x)\,dx \neq 0 \]

Yet expanding the integral using the given conditions yields:

\[ \int_0^1 (x - c)f(x)\,dx = \int_0^1 x f(x)\,dx - c \int_0^1 f(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, \pi]\) (not identically zero) such that:

\[ \int_0^\pi f(x)\sin x\,dx = 0 \qquad \text{and} \qquad \int_0^\pi f(x)\cos x\,dx = 0 \]

Prove that \(f(x) = 0\) has at least two distinct roots in \((0, \pi)\).

Solution: First, since \(\sin x > 0\) on \((0, \pi)\) and \(\int_0^\pi f(x)\sin x\,dx = 0\), \(f(x)\) cannot remain purely positive or purely negative on \((0, \pi)\); it must change sign at least once in \((0, \pi)\).

Suppose \(f(x)\) changes sign at only one point \(c \in (0, \pi)\). Notice that \(\sin(x - c)\) is negative for \(x \in (0, c)\) and positive for \(x \in (c, \pi)\), so \(\sin(x - c)\) changes sign at the exact same point \(x = c\) (and nowhere else in \((0, \pi)\)). Therefore, the product \(f(x)\sin(x - c)\) never changes sign on \((0, \pi)\), which means:

\[ \int_0^\pi f(x)\sin(x - c)\,dx \neq 0 \]

However, expanding \(\sin(x - c) = \sin x \cos c - \cos x \sin c\) gives:

\[ \int_0^\pi f(x)\sin(x - c)\,dx = \cos c \int_0^\pi f(x)\sin x\,dx - \sin c \int_0^\pi f(x)\cos x\,dx = 0 - 0 = 0 \]

Contradiction! Thus \(f(x)\) must change sign at least twice in \((0, \pi)\), giving at least two distinct roots.


Example 10: Proving a Differential–Integral Root Relation Using an Auxiliary Function

Let \(f\) be continuous on \([0, 1]\) with \(\int_0^1 f(x)\,dx = 0\). Prove that for any real number \(\lambda\), there exists \(c \in (0, 1)\) such that:

\[ f(c) + \lambda \int_0^c f(t)\,dt = 0 \]

Solution: Let \(F(x) = \int_0^x f(t)\,dt\) for \(x \in [0, 1]\). Then \(F\) is continuous on \([0, 1]\) and differentiable on \((0, 1)\) with \(F'(x) = f(x)\), and the target equation becomes:

\[ F'(c) + \lambda F(c) = 0 \]

Recognizing the integrating factor \(e^{\lambda x}\), define the auxiliary function:

\[ G(x) = e^{\lambda x} F(x) = e^{\lambda x} \int_0^x f(t)\,dt \]

Check the values of \(G(x)\) at the endpoints \(x = 0\) and \(x = 1\):

\[ G(0) = e^0 \cdot F(0) = 0 \qquad \text{and} \qquad G(1) = e^\lambda \int_0^1 f(t)\,dt = e^\lambda \cdot 0 = 0 \]

By Rolle's Theorem applied to \(G\) on \([0, 1]\), there exists \(c \in (0, 1)\) such that \(G'(c) = 0\):

\[ G'(c) = e^{\lambda c}\Big(F'(c) + \lambda F(c)\Big) = 0 \]

Since \(e^{\lambda c} > 0\), dividing by \(e^{\lambda c}\) gives \(f(c) + \lambda \int_0^c f(t)\,dt = 0\).


Summary of Key Concepts and Formulas

Concept Formula / Statement Core Geometric or Algebraic Meaning
Mean (Average) Value \(\mu = \frac{1}{b - a}\int_a^b f(x)\,dx\) Height of the flat horizontal line \(y = \mu\) enclosing the same area as \(y = f(x)\) on \([a, b]\).
Equal-Area Balance \(\int_a^b \big(f(x) - \mu\big)\,dx = 0\) Area of \(y = f(x)\) above the mean line \(y = \mu\) equals the area below \(y = \mu\).
First MVT for Integrals \(\int_a^b f(x)\,dx = (b - a)f(c)\) A continuous function attains its average value at least once inside \((a, b)\).
Weighted MVT \(\int_a^b f(x)g(x)\,dx = f(c)\int_a^b g(x)\,dx\) Valid whenever \(g(x)\) is continuous and does not change sign on \([a, b]\).
Zero-Integral Root Rule \(\int_a^b f(x)\,dx = 0 \implies f(c) = 0\) Equal positive and negative signed areas force a continuous curve to cross the \(x\)-axis.
Auxiliary Function Trick \(F(x) = \int_a^x f(t)\,dt\) with Rolle's Theorem Turns \(\int_a^b f(t)\,dt = 0\) into \(F(a) = F(b) = 0\) to prove roots of expressions involving \(f\) and \(\int_a^x f\).