I am trying to find a sequence of Riemann integrable functions on $[0,1]$ converging in $L^2$ to a Lebesgue but not Riemann integrable function.
I tried Dirichlet function but could not find a sequence converging to it.
I am trying to find a sequence of Riemann integrable functions on $[0,1]$ converging in $L^2$ to a Lebesgue but not Riemann integrable function.
I tried Dirichlet function but could not find a sequence converging to it.
Let $q_n$ be an enumeration of the rationals in $[0,1]$. Let $A_n = \cup_{k=1}^n (q_k-\frac{1}{2^{k+2}},q_k+\frac{1}{2^{k+2}})$, $A = \cup_n A_n$.
In the following I will use $A^c$ to denote the complement with respect to the space $[0,1]$. Note that $0<m A <1$, and hence $m A^c >0$.
Then let $f_n = 1_{A_n}$, $f = 1_A$. Then $f_n$ is Riemann integrable and $f_n \to f$ with the $L^2$ norm. However, $f$ is not Riemann integrable.
To show that $f$ is not Riemann integrable, we note that if $x \in A^c$, then $B(x,\epsilon)$ contains points of $A$ for all $\epsilon>0$. In particular, if $I \subset [0,1]$ is an interval that intersects $A^c$, then it also intersects $A$. Furthermore, if $\pi=\{I_1,...,I_k\}$ is a partition of $[0,1]$, and $K = \{i | I_i \cap A^c \neq \emptyset \}$, then $\sum_{i \in K} l(I_i) \geq m A^c$. However, if $i \in K$, then $\inf_{x \in I_i} f(x) = 0$ and $\sup_{x \in I_i} f(x) = 1$, hence we have $U(f,\pi) -L(f,\pi) \geq m A^c >0$. Hence $f$ is not Riemann integrable.
Addendum: The above conclusion is correct, but does not answer the question. Since we are dealing with convergence in $L^2$, we need to make sure that the above conclusion remains valid even if $f$ is redefined on a set of measure zero.
Suppose we have a measurable function $g$ such that $\Omega = \{ x | f(x) \neq g(x) \}$ satisfies $m \Omega = 0$. We note that by definition of $f$, if $f(x) = 1$ (ie, $x \in A$), then there is some small interval $J$ of positive measure such that $x \in J \subset A$. Hence if $\sup_{x \in I_i} f(x) = 1$, then $\sup_{x \in I_i\cap \Omega^c} f(x) = 1$, and hence $\sup_{x \in I_i} g(x) \ge 1$.
Now let $K' = \{i | I_i \cap A^c \cap \Omega^c \neq \emptyset \}$, and repeat the analysis above with $K$ replaced by $K'$. We note that $m A^c = m (A^c \cap \Omega^c)$, and furthermore, if $i \in K'$ we have $\inf_{x \in I_i} g(x) \le \inf_{x \in I_i \cap \Omega^c} g(x) = \inf_{x \in I_i \cap \Omega^c} f(x) = 0$. Hence we arrive at the same conclusion, that $g$ is not Riemann integrable.
Suppose $g$ lies below $c<1$ on some interval. The interval contains a rational $q_N$, so for $n\geq N$ we know $\int_0^1(g-f_n)^2$ is bounded below by a positive constant, contradicting $f_n\to g$. Thus we know the Riemann integral $\int_0^1 g ,{\rm d}x=1$.
Let $I_n=\int_0^1 f_n,{\rm d}x$. Then $I_n\to 1$ but $I_n\leq \frac12$ for all $n$, giving the desired contradiction.
– tkf Apr 15 '21 at 01:26I agree with @JasonJones. If you would like to remove the reference to the Lebesgue integration altogether, observe that $$f_n \to f$$ in $R^2[a,1]$ for any $a\in (0, 1)$. Thus, if there existed a function $h\in R^2[0,1]$ such that $f_n \to h$ in $R^2[0,1]$, then it would converge to the same function in any $R^2[a,1]$. By uniqueness of the limit in normed spaces it means that $f(x) = h(x)$ in the $R^2$ sense on any $[a,1]$ (i.e. everywhere except a set of measure zero). Thus, $h(x)=f(x)$ almost everywhere on $(0,1]$ (and $[0,1]$). Yet, $f(x)$ does not belong to $R^2[0,1]$. Thus, such $h$ does not exist, and we have constructed a Cauchy sequence without a limit in the respective space.
Let's consider the following sequence $\{f_n\}$, where $f_n(x)=x^{-1/4}\chi_{[\frac{1}{n},1]}$.