Tutorials › Real Analysis › Riemann Integration Proof Workshop

Riemann Integration · Tutorial 490 of 1000

Riemann Integration Proof Workshop

Learn a reusable oscillation estimate for proving product integrability, then use nonnegativity of squared functions to establish and apply an integral form of the Cauchy–Schwarz inequality.

Advanced 10 min read

What You'll Learn

  • Prove that the product of two bounded Riemann integrable functions is Riemann integrable
  • Control product oscillation using bounds on each factor
  • Use integrability of products to justify integrating a squared linear combination
  • Prove the Cauchy–Schwarz inequality for Riemann integrals, including the zero case
  • Apply the inequality to step functions and to bound an integral by a square-integral expression

Two Proof Techniques for Riemann Integrals

The equivalence of Darboux and Riemann definitions gives us flexibility: we can use whichever description makes a proof easier. In this workshop, we use Darboux gaps to prove that products of integrable functions are integrable. We then use that result to prove an inequality for integrals, by integrating a family of nonnegative squares.

Both arguments illustrate a useful proof habit. First identify what the definition requires—in the first result, a small Darboux gap. Then find a pointwise estimate that turns the desired conclusion into quantities already under control. The product estimate will use oscillations on each subinterval; the inequality proof will use nonnegativity and the fact that a quadratic polynomial cannot be negative for any real input.

A Product Oscillation Estimate

For a bounded function \(u\) on a set \(J\), its oscillation on \(J\) is \(\sup_{x,y\in J}|u(x)-u(y)|\). On a partition subinterval, this is the difference between the supremum and infimum used in the Darboux gap. To estimate the oscillation of a product, insert and subtract one mixed product:

$$ f(x)g(x)-f(y)g(y) =f(x)\bigl(g(x)-g(y)\bigr)+g(y)\bigl(f(x)-f(y)\bigr). $$

The triangle inequality then shows why bounds on the factors matter: a small change in either factor produces a controlled change in the product. We now turn this observation into an integrability theorem.

Theorem (Integrability of Products): If \(f,g:[a,b]\to\mathbb{R}\) are bounded and Riemann integrable, then \(fg\) is Riemann integrable on \([a,b]\).

Proof. Choose positive bounds \(B_f\) and \(B_g\) such that \(|f(x)|\leq B_f\) and \(|g(x)|\leq B_g\) for every \(x\in[a,b]\). For any subinterval \(J\subseteq[a,b]\), the displayed identity gives, for all \(x,y\in J\),

$$ |f(x)g(x)-f(y)g(y)| \leq B_f|g(x)-g(y)|+B_g|f(x)-f(y)|. $$

Taking the supremum over \(x,y\in J\) yields

$$ \operatorname{osc}_{J}(fg) \leq B_f\operatorname{osc}_{J}(g)+B_g\operatorname{osc}_{J}(f). $$

Let \(\varepsilon>0\). By the Darboux Criterion, choose a partition \(P_g\) with \(U(g,P_g)-L(g,P_g)<\varepsilon/(2B_f)\), and a partition \(P_f\) with \(U(f,P_f)-L(f,P_f)<\varepsilon/(2B_g)\). Let \(P\) be a common refinement of these partitions. Refinement does not increase the upper sum or decrease the lower sum. Therefore,

$$ U(g,P)-L(g,P)<\frac{\varepsilon}{2B_f}, \qquad U(f,P)-L(f,P)<\frac{\varepsilon}{2B_g}. $$

Apply the oscillation estimate on every subinterval \(J_i\) of \(P\), multiply by its length \(\Delta x_i\), and sum. The Oscillation Formula for the Darboux Gap gives

$$ U(fg,P)-L(fg,P) \leq B_f\bigl(U(g,P)-L(g,P)\bigr) +B_g\bigl(U(f,P)-L(f,P)\bigr) <\varepsilon. $$

The function \(fg\) is bounded because \(|f(x)g(x)|\leq B_fB_g\). The Darboux Criterion now implies that \(fg\) is Riemann integrable. \(\square\)

The use of a common refinement is essential to this estimate: both factors must be controlled on the same subintervals before their oscillations can be added cell by cell. The refinement results established earlier in the course let us combine the two partitions without losing either gap bound.

Worked Example: Multiplying a Step Function by a Continuous Function

On \([0,1]\), let \(f(x)=1\) for \(0\leq x\leq 1/3\) and \(f(x)=0\) for \(1/3<x\leq1\), and let \(g(x)=x^2\). The function \(f\) is a step function, so it is Riemann integrable; \(g\) is continuous, so it is Riemann integrable by the Integrability of Continuous Functions theorem.

The Integrability of Products theorem therefore proves that \(fg\) is Riemann integrable. Explicitly, \(f(x)g(x)=x^2\) on \([0,1/3]\) and \(f(x)g(x)=0\) on \((1/3,1]\). The jump at \(1/3\) does not obstruct integrability: the product estimate controls its Darboux gaps along with those of the two factors. This reasoning proves integrability without having to construct a new sequence of upper and lower sums for the product from scratch.

The Cauchy–Schwarz Inequality for Integrals

The product theorem makes it legitimate to integrate \(f^2\), \(g^2\), and \(fg\) whenever \(f\) and \(g\) are Riemann integrable. It also ensures that \((f-tg)^2\) is integrable for each real number \(t\): first \(f-tg\) is integrable by linearity, and then its product with itself is integrable. Since this square is nonnegative, order preservation of the integral gives a nonnegative number. That fact, applied for every \(t\), contains the desired inequality.

Theorem (Cauchy–Schwarz Inequality for Riemann Integrals): If \(f,g:[a,b]\to\mathbb{R}\) are Riemann integrable, then $$ \left|\int_a^b f(x)g(x)\,dx\right|^2 \leq \left(\int_a^b f(x)^2\,dx\right) \left(\int_a^b g(x)^2\,dx\right). $$

Proof. Set

$$ A=\int_a^b f(x)^2\,dx,\qquad B=\int_a^b g(x)^2\,dx,\qquad C=\int_a^b f(x)g(x)\,dx. $$

All three integrals exist by the Integrability of Products theorem. Since \(f^2\geq0\) and \(g^2\geq0\), order preservation implies \(A\geq0\) and \(B\geq0\). For each \(t\in\mathbb{R}\), the function \((f-tg)^2\) is integrable and nonnegative. By linearity and order preservation,

$$ 0\leq \int_a^b(f(x)-tg(x))^2\,dx =A-2tC+t^2B. $$

If \(B>0\), choose \(t=C/B\). Substitution gives

$$ 0\leq A-2\frac{C}{B}C+\frac{C^2}{B^2}B =A-\frac{C^2}{B}. $$

Multiplication by \(B>0\) yields \(C^2\leq AB\). If \(B=0\), the inequality \(A-2tC\geq0\) holds for every real \(t\). If \(C\neq0\), choosing \(t\) with the same sign as \(C\) and sufficiently large magnitude makes \(A-2tC<0\), a contradiction. Thus \(C=0\), and \(C^2\leq AB\) follows because \(A\geq0\). In either case, \(C^2=|C|^2\), proving the theorem. \(\square\)

The zero case cannot be discarded: division by \(B\) is valid only when \(B>0\). The separate argument also shows why the proof works even if \(g\) is not identically zero as a function but its squared integral is zero. No claim about pointwise values is needed for the inequality.

Worked Example: A Direct Check with Nested Step Functions

On \([0,1]\), let \(f\) equal \(1\) on \([0,1/2]\) and \(0\) on \((1/2,1]\). Let \(g\) equal \(1\) on \([0,1/4]\) and \(0\) on \((1/4,1]\). These are step functions, so they and their products are Riemann integrable. Since both functions take only the values \(0\) and \(1\), \(f^2=f\) and \(g^2=g\). Also, \(fg=1\) on \([0,1/4]\) and \(0\) elsewhere.

The step-function integral formula gives

$$ \int_0^1 f^2\,dx=\frac12,\qquad \int_0^1 g^2\,dx=\frac14,\qquad \int_0^1 fg\,dx=\frac14. $$

Thus the inequality reads

$$ \left(\frac14\right)^2=\frac1{16} \leq \frac12\cdot\frac14=\frac18. $$

The left side is strictly smaller than the right side in this example. The calculation also makes the role of the product clear: only the interval on which both functions equal \(1\) contributes to the integral of \(fg\).

A Useful Consequence and Its Application

Taking \(g(x)=1\) in the Cauchy–Schwarz inequality gives a bound on the signed integral of any Riemann integrable \(f\). The constant function is integrable, and its square has integral \(b-a\), so

Corollary (Integral Bound by the Square Integral): If \(f:[a,b]\to\mathbb{R}\) is Riemann integrable, then $$ \left|\int_a^b f(x)\,dx\right|^2 \leq (b-a)\int_a^b f(x)^2\,dx. $$

This estimate compares the signed total of \(f\) with the total of its square. Positive and negative values may cancel in the signed integral, but the square remains nonnegative. The length factor \(b-a\) accounts for the constant function used in the inequality.

Worked Example: Bounding a Signed Integral of a Step Function

Define \(f\) on \([0,1]\) by \(f(x)=2\) for \(0\leq x\leq1/4\), and \(f(x)=-1\) for \(1/4<x\leq1\). This is a step function. Using its constant values on the two intervals, we obtain

$$ \int_0^1 f(x)\,dx =2\left(\frac14\right)-1\left(\frac34\right) =-\frac14. $$

Its square equals \(4\) on the first interval and \(1\) on the second, so

$$ \int_0^1 f(x)^2\,dx =4\left(\frac14\right)+1\left(\frac34\right) =\frac74. $$

The corollary therefore asserts \((1/4)^2\leq(1)(7/4)\), that is, \(1/16\leq7/4\), which holds. The signed integral is small in magnitude because the positive and negative contributions partly cancel; the square integral records both portions as positive contributions.

How to Reuse These Proofs

When proving integrability of a product, a useful sequence of steps is to find bounds for both factors, estimate the product’s oscillation on one cell, and then sum that estimate over a common refinement. This converts a new Darboux gap into a weighted sum of two gaps already known to be small.

For inequalities involving integrals, first check that every expression being integrated is Riemann integrable. Here the product theorem supplies that justification. Then look for a pointwise nonnegative expression—often a square—whose integral produces an algebraic inequality. Finally, check degenerate cases before dividing by a quantity that might be zero.

A common pitfall is to write down the integral of \((f-tg)^2\) without establishing its integrability. Pointwise nonnegativity alone does not guarantee Riemann integrability. The product theorem closes that logical gap: linearity makes \(f-tg\) integrable, and the theorem makes its square integrable. Only then can order preservation be applied.

Check Your Understanding

Use the estimates and proofs in this workshop to answer the following questions.

  1. Why do the product theorem’s proof partitions need to be combined into a common refinement?
  2. Where does boundedness of each factor enter the product oscillation estimate?
  3. In the Cauchy–Schwarz proof, why is it legitimate to integrate \((f-tg)^2\) for every real \(t\)?
  4. Why must the case \(B=0\) be handled separately from the choice \(t=C/B\)?
  5. How does setting one factor equal to the constant function \(1\) produce the integral bound by the square integral?