← 5. Approximation

Exercises

Problems to check your understanding of this chapter. The solutions are folded away — try them yourself first.

Hard

1Hard

Let ff be continuous on [0,1][0, 1] and suppose ∫01xnf(x) dx=0\int_0^1 x^n f(x)\,dx = 0 for every integer n≥0n \ge 0. Use the Weierstrass approximation theorem to prove f≡0f \equiv 0.

∫01xnf(x) dx=0∀n≥0⟹f≡0\int_0^1 x^n f(x)\,dx = 0 \quad \forall n \ge 0 \quad \Longrightarrow \quad f \equiv 0
∫01f(x)2 dx=lim⁡k→∞∫01pk(x)f(x) dx=0\int_0^1 f(x)^2\,dx = \lim_{k \to \infty} \int_0^1 p_k(x) f(x)\,dx = 0
Show solution
  1. First extend the hypothesis to all polynomials. If p(x)=∑j=0mcjxjp(x) = \sum_{j=0}^m c_j x^j, linearity of the integral gives ∫01p(x)f(x) dx=∑j=0mcj∫01xjf(x) dx=0\int_0^1 p(x) f(x)\,dx = \sum_{j=0}^m c_j \int_0^1 x^j f(x)\,dx = 0. So ∫01pf=0\int_0^1 pf = 0 for every polynomial pp.
  2. By the Weierstrass approximation theorem, there are polynomials (pk)(p_k) with pk→fp_k \to f uniformly on [0,1][0, 1]: ∥pk−f∥∞→0\|p_k - f\|_\infty \to 0. Put M=max⁡[0,1]∣f∣M = \max_{[0,1]} |f| (a continuous function on a compact interval attains its maximum). Then
    ∣∫01pkf−∫01f2∣=∣∫01(pk−f)f∣≤∥pk−f∥∞⋅M⟶0.\left|\int_0^1 p_k f - \int_0^1 f^2\right| = \left|\int_0^1 (p_k - f) f\right| \le \|p_k - f\|_\infty \cdot M \longrightarrow 0.
  3. Since each ∫01pkf=0\int_0^1 p_k f = 0, passing to the limit gives ∫01f(x)2 dx=0\int_0^1 f(x)^2\,dx = 0. As f2f^2 is continuous and nonnegative, f2≡0f^2 \equiv 0: if f(c)2=η>0f(c)^2 = \eta > 0 at some cc, continuity would force f2≥η/2f^2 \ge \eta/2 on an interval, making the integral positive. Hence f≡0f \equiv 0.