pasmith
Science Advisor
Homework Helper
- 3,352
- 1,898
There is a more elegant proof.
Notation-wise, you will confuse the reader and yourself if you have [itex]x_i[/itex] being both the points at which [itex]f(x) \neq g(x)[/itex] and the points of an arbitrary partition. So I will call the former [itex]\{\xi_k : k = 1, \dots, n\}[/itex].
We can write [tex]f(x) = g(x) + \sum_{k=1}^n (f(\xi_k) - g(\xi_k)) h_k(x)[/tex] where [tex] h_k : [a,b] \to \mathbb{R} : x \mapsto \begin{cases} 0 & x \neq \xi_k \\ 1 & x = \xi_k.\end{cases}[/tex] It suffices to show that each [itex]h_k[/itex] is (Darboux) integrable, since a linear combination of finitely many (Darboux) integrable functions is (Darboux) integrable. (The one with the upper and lower sums being arbitrarily close to each other is Darboux integrability; it is however completely equivalent to Riemann integrability.)
Let [itex]\epsilon > 0[/itex] and [itex]D = \{x_0 = a, \dots, x_m = b\}[/itex] a partition of [itex][a.b][/itex] with [itex]\|D\| = \max\{\delta_i = x_i - x_{i-1}, i = 1, \dots, m\} < \frac12 \epsilon[/itex]. Then there exists a minimal [itex]1 \leq i_1\leq m[/itex] such that [itex]x_{i_1-1} \leq \xi_k \leq x_{i_1}.[/itex] We then have that [itex]M_i - m_i = 0[/itex] for every [itex]i[/itex] except for [itex]i_1[/itex] and, if [itex]x_{i_1} = \xi_k[/itex] and [itex]i_1 < m[/itex], also [itex]i_1+1[/itex]. For these intervals [itex]M_i - m_i = 1[/itex]. Thus [itex](M_i - m_i)\delta_i = 0[/itex] except for at most two intervals for which [itex](M_i - m_i)\delta_i = \delta_i \leq \|D\|[/itex]. Thus [tex] U(h_k,D) - L(h_k,D) \leq 2\|D\| < \epsilon.[/tex]
Notation-wise, you will confuse the reader and yourself if you have [itex]x_i[/itex] being both the points at which [itex]f(x) \neq g(x)[/itex] and the points of an arbitrary partition. So I will call the former [itex]\{\xi_k : k = 1, \dots, n\}[/itex].
We can write [tex]f(x) = g(x) + \sum_{k=1}^n (f(\xi_k) - g(\xi_k)) h_k(x)[/tex] where [tex] h_k : [a,b] \to \mathbb{R} : x \mapsto \begin{cases} 0 & x \neq \xi_k \\ 1 & x = \xi_k.\end{cases}[/tex] It suffices to show that each [itex]h_k[/itex] is (Darboux) integrable, since a linear combination of finitely many (Darboux) integrable functions is (Darboux) integrable. (The one with the upper and lower sums being arbitrarily close to each other is Darboux integrability; it is however completely equivalent to Riemann integrability.)
Let [itex]\epsilon > 0[/itex] and [itex]D = \{x_0 = a, \dots, x_m = b\}[/itex] a partition of [itex][a.b][/itex] with [itex]\|D\| = \max\{\delta_i = x_i - x_{i-1}, i = 1, \dots, m\} < \frac12 \epsilon[/itex]. Then there exists a minimal [itex]1 \leq i_1\leq m[/itex] such that [itex]x_{i_1-1} \leq \xi_k \leq x_{i_1}.[/itex] We then have that [itex]M_i - m_i = 0[/itex] for every [itex]i[/itex] except for [itex]i_1[/itex] and, if [itex]x_{i_1} = \xi_k[/itex] and [itex]i_1 < m[/itex], also [itex]i_1+1[/itex]. For these intervals [itex]M_i - m_i = 1[/itex]. Thus [itex](M_i - m_i)\delta_i = 0[/itex] except for at most two intervals for which [itex](M_i - m_i)\delta_i = \delta_i \leq \|D\|[/itex]. Thus [tex] U(h_k,D) - L(h_k,D) \leq 2\|D\| < \epsilon.[/tex]