← 10. Integration

Exercises

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

Easy

1Easy

Define ff on [0,1][0,1] by f(1/2)=1f(1/2) = 1 and f(x)=0f(x) = 0 for x≠1/2x \ne 1/2. Prove directly from upper and lower sums that ff is Riemann integrable with ∫01f=0\int_0^1 f = 0.

Show solution
  1. The function ff is bounded (0≤f≤10 \le f \le 1). For 0<δ<1/20 < \delta < 1/2 take the partition Pδ={0, 1/2−δ, 1/2+δ, 1}P_\delta = \{0,\ 1/2 - \delta,\ 1/2 + \delta,\ 1\}. On the two outer intervals f≡0f \equiv 0, so both the infimum and supremum are 00; on the middle interval [1/2−δ, 1/2+δ][1/2-\delta,\ 1/2+\delta] the infimum is 00 (points other than 1/21/2 exist) and the supremum is 11 (since f(1/2)=1f(1/2) = 1).
  2. Hence the lower sum is L(Pδ,f)=0L(P_\delta, f) = 0 and the upper sum is U(Pδ,f)=1⋅2δ=2δU(P_\delta, f) = 1 \cdot 2\delta = 2\delta. Since U−L=2δ→0U - L = 2\delta \to 0 as δ→0+\delta \to 0^+, the Riemann criterion gives integrability. The integral satisfies 0=L(Pδ,f)≤∫01f≤U(Pδ,f)=2δ0 = L(P_\delta, f) \le \int_0^1 f \le U(P_\delta, f) = 2\delta for every δ>0\delta > 0, so it equals 00 — the value at a single point does not affect the Riemann integral.

Medium

2Medium

Let F(x)=x2sin⁡(1/x2)F(x) = x^2\sin(1/x^2) for x≠0x \ne 0 and F(0)=0F(0) = 0. Show FF is differentiable at every point of [−1,1][-1,1], but that F′F' is unbounded on every neighborhood of 00. Conclude F′F' is not Riemann integrable on [−1,1][-1,1], and explain why this shows the hypothesis "the derivative is Riemann integrable" in FTC-II cannot be dropped.

F′(0)=lim⁡h→0hsin⁡(1/h2)=0F'(0) = \lim_{h \to 0} h\sin(1/h^2) = 0
F′(x)=2xsin⁡(1/x2)−2xcos⁡(1/x2)(x≠0)F'(x) = 2x\sin(1/x^2) - \frac{2}{x}\cos(1/x^2) \quad (x \ne 0)
xk=12πk:F′(xk)=−22πk→−∞x_k = \frac{1}{\sqrt{2\pi k}}:\quad F'(x_k) = -2\sqrt{2\pi k} \to -\infty
Show solution
  1. Get F′(0)F'(0) from the definition: F(h)−F(0)h=hsin⁡(1/h2)\dfrac{F(h) - F(0)}{h} = h\sin(1/h^2), and ∣hsin⁡(1/h2)∣≤∣h∣\lvert h\sin(1/h^2) \rvert \le \lvert h \rvert, so the squeeze theorem gives the limit 00. For x≠0x \ne 0, the product and chain rules give F′(x)=2xsin⁡(1/x2)+x2cos⁡(1/x2)⋅(−2/x3)=2xsin⁡(1/x2)−2xcos⁡(1/x2)F'(x) = 2x\sin(1/x^2) + x^2\cos(1/x^2)\cdot(-2/x^3) = 2x\sin(1/x^2) - \dfrac{2}{x}\cos(1/x^2). Hence FF is differentiable at every point of [−1,1][-1,1].
  2. But F′F' is unbounded near 00. Put xk=12πk→0+x_k = \dfrac{1}{\sqrt{2\pi k}} \to 0^+ (k=1,2,…k = 1, 2, \dots): then sin⁡(1/xk2)=sin⁡(2πk)=0\sin(1/x_k^2) = \sin(2\pi k) = 0 and cos⁡(1/xk2)=cos⁡(2πk)=1\cos(1/x_k^2) = \cos(2\pi k) = 1, so F′(xk)=−2xk=−22πk→−∞F'(x_k) = -\dfrac{2}{x_k} = -2\sqrt{2\pi k} \to -\infty. Every neighborhood of 00 contains xkx_k for large kk, so F′F' is unbounded there.
  3. A Riemann integrable function must be bounded (needed for finite upper sums), so F′F' is not Riemann integrable on [−1,1][-1,1]. FTC-II asserts "∫abF′=F(b)−F(a)\int_a^b F' = F(b) - F(a)" but requires F′F' to be Riemann integrable as a hypothesis — this example shows that without it the integral ∫−11F′\int_{-1}^{1} F' does not even exist, so the theorem cannot be applied. Differentiability alone is not enough.
3Medium

Let ff and gg be of bounded variation on [a,b][a,b]. First show a BV function is bounded (hint: ∣f(x)−f(a)∣≤Vab(f)\lvert f(x) - f(a) \rvert \le V_a^b(f)), then prove the product fgfg is also of bounded variation on [a,b][a,b]. Find an upper bound for its total variation.

Vab(fg)≤Mf Vab(g)+Mg Vab(f),Mf=sup⁡[a,b]∣f∣, Mg=sup⁡[a,b]∣g∣V_a^b(fg) \le M_f\,V_a^b(g) + M_g\,V_a^b(f), \qquad M_f = \sup_{[a,b]}\lvert f \rvert,\ M_g = \sup_{[a,b]}\lvert g \rvert
Show solution
  1. For x∈[a,b]x \in [a,b], the partition {a,x,b}\{a, x, b\} gives ∣f(x)−f(a)∣≤Vab(f)\lvert f(x) - f(a) \rvert \le V_a^b(f), so by the triangle inequality ∣f(x)∣≤∣f(a)∣+Vab(f)<∞\lvert f(x) \rvert \le \lvert f(a) \rvert + V_a^b(f) < \infty. Hence ff is bounded with Mf=sup⁡[a,b]∣f∣<∞M_f = \sup_{[a,b]}\lvert f \rvert < \infty, and likewise for gg.
  2. For any partition P={x0,…,xn}P = \{x_0, \dots, x_n\}, use the identity f(xi)g(xi)−f(xi−1)g(xi−1)=f(xi)(g(xi)−g(xi−1))+g(xi−1)(f(xi)−f(xi−1))f(x_i)g(x_i) - f(x_{i-1})g(x_{i-1}) = f(x_i)\bigl(g(x_i) - g(x_{i-1})\bigr) + g(x_{i-1})\bigl(f(x_i) - f(x_{i-1})\bigr). Taking absolute values and summing, \[\sum_{i=1}^{n}\lvert (fg)(x_i) - (fg)(x_{i-1}) \rvert \le M_f \sum_{i=1}^{n}\lvert g(x_i) - g(x_{i-1}) \rvert + M_g \sum_{i=1}^{n}\lvert f(x_i) - f(x_{i-1}) \rvert \le M_f V_a^b(g) + M_g V_a^b(f).\] The right side is independent of PP, so taking the supremum gives Vab(fg)≤MfVab(g)+MgVab(f)<∞V_a^b(fg) \le M_f V_a^b(g) + M_g V_a^b(f) < \infty: fgfg is of bounded variation.

Hard

4Hard

The uniform limit of continuous functions is continuous (the Weierstrass scene). Show this fails for bounded variation: with g(x)=x2sin⁡(1/x2)g(x) = x^2\sin(1/x^2) for x>0x > 0 and g(0)=0g(0) = 0, put \[g_n(x) = \begin{cases} g(1/n) & 0 \le x \le 1/n \\ g(x) & 1/n \le x \le 1 \end{cases}.\] (a) Show gg is NOT of bounded variation on [0,1][0,1], using the oscillation at the points xk=2/((2k+1)π)x_k = \sqrt{2/((2k+1)\pi)}. (b) Show each gng_n is of bounded variation on [0,1][0,1] and gn→gg_n \to g uniformly.

xk=1π/2+kπ,g(xk)=(−1)k 2(2k+1)πx_k = \frac{1}{\sqrt{\pi/2 + k\pi}},\qquad g(x_k) = (-1)^k\,\frac{2}{(2k+1)\pi}
∑k=1N∣g(xk−1)−g(xk)∣=2π∑k=1N(12k−1+12k+1)→∞\sum_{k=1}^{N}\lvert g(x_{k-1}) - g(x_k) \rvert = \frac{2}{\pi}\sum_{k=1}^{N}\left(\frac{1}{2k-1} + \frac{1}{2k+1}\right) \to \infty
Show solution
  1. (a) Put xk=1π/2+kπx_k = \dfrac{1}{\sqrt{\pi/2 + k\pi}}; then xk↓0x_k \downarrow 0 and sin⁡(1/xk2)=sin⁡(π/2+kπ)=(−1)k\sin(1/x_k^2) = \sin(\pi/2 + k\pi) = (-1)^k, so g(xk)=(−1)kxk2=(−1)k 2(2k+1)πg(x_k) = (-1)^k x_k^2 = (-1)^k\,\dfrac{2}{(2k+1)\pi}. Also x0=2/π≈0.798<1x_0 = \sqrt{2/\pi} \approx 0.798 < 1. On the partition 0<xN<xN−1<⋯<x1<x0<10 < x_N < x_{N-1} < \cdots < x_1 < x_0 < 1, consecutive values have opposite signs, so \[\lvert g(x_{k-1}) - g(x_k) \rvert = \frac{2}{\pi}\left(\frac{1}{2k-1} + \frac{1}{2k+1}\right) \qquad (k = 1, \dots, N).\] Hence the variation sum over this partition is 2π∑k=1N(12k−1+12k+1)≥2π∑k=1N12k+1≥1π∑k=1N1k+1→∞\dfrac{2}{\pi}\sum_{k=1}^{N}\left(\dfrac{1}{2k-1} + \dfrac{1}{2k+1}\right) \ge \dfrac{2}{\pi}\sum_{k=1}^{N}\dfrac{1}{2k+1} \ge \dfrac{1}{\pi}\sum_{k=1}^{N}\dfrac{1}{k+1} \to \infty as N→∞N \to \infty (harmonic series). The total variation is infinite, so gg is not of bounded variation.
  2. (b) gng_n is continuous at x=1/nx = 1/n (both sides equal g(1/n)g(1/n)). It is constant, hence BV, on [0,1/n][0, 1/n], and gg is C1C^1, hence BV, on [1/n,1][1/n, 1] (V1/n1(g)≤∫1/n1∣g′∣<∞V_{1/n}^1(g) \le \int_{1/n}^1 \lvert g' \rvert < \infty since g′g' is continuous on a compact interval). So each gng_n is of bounded variation on [0,1][0,1]. For uniform convergence: on [1/n,1][1/n, 1], gn=gg_n = g, so the difference is 00; on [0,1/n][0, 1/n], ∣gn(x)−g(x)∣=∣g(1/n)−g(x)∣≤∣g(1/n)∣+∣g(x)∣≤1n2+1n2=2n2→0\lvert g_n(x) - g(x) \rvert = \lvert g(1/n) - g(x) \rvert \le \lvert g(1/n) \rvert + \lvert g(x) \rvert \le \dfrac{1}{n^2} + \dfrac{1}{n^2} = \dfrac{2}{n^2} \to 0 (using ∣g(t)∣≤t2\lvert g(t) \rvert \le t^2). Thus ∥gn−g∥∞→0\lVert g_n - g \rVert_\infty \to 0.
  3. Conclusion: each gng_n is of bounded variation and gn→gg_n \to g uniformly, but the limit gg is not of bounded variation. Uniform limits preserve continuity but not bounded variation — variation can "leak out" in the limit.