Continuity and (Riemann) integrability of a particular function

128 Views Asked by At

I have the following function (sorry for the vague title but I don't know if this kind of function has some special name) defined by:

$$f(x)= \begin{cases} 0 & \text{if } x\in\mathbb R \smallsetminus\mathbb Q, \\[6pt] \frac 1n & \text{if } x=\frac mn\in\mathbb{Q},\,\, \gcd(m,n)=1.\end{cases}$$

first I have to prove that this function is continuous only at the irrational points and I see why but I can't properly formalize it rigorously, then I have to prove that it is Riemann integrable on $[0,1)$ and that said integral is $0$ and I really don't know how to approach this.

1

There are 1 best solutions below

2
On BEST ANSWER

If $x\in\mathbb Q$, then take a sequence $(x_n)_{n\in\mathbb N}$ of irrational numbers such that $\lim_nx_n=x$. Then $\lim_nf(x_n)=0\neq f(x)$ and therefore $f$ is not continuous at $x$.

If $x\notin\mathbb Q$, then $f(x)=0$. Given $\varepsilon>0$, there are only finitely many points $x\in[0,1]$ such that $f(x)\geqslant\varepsilon$. So, take an interval $(x-\delta,x+\delta)$ so small that it contains no such number. This assures that $|y-x|<\delta\Longrightarrow|f(y)-f(x)|=|f(y)|<\varepsilon$.

Given $\varepsilon>0$, and given and partition $P$ of $[0,1]$, every lower sum $\underline\Sigma(f,P)$ is equal to $0$. If you prove that there is an upper sum $\overline\Sigma(f,P)$ smaller that $\varepsilon$, this will prove that the Riemann integral exits and that it is equal to $0$. Again, this follow from the fact that there are only finitely many points $x\in[0,1]$ such that $f(x)\geqslant\varepsilon$.