Let $f(x)=1$ if $x=0$ and $f(x)=0$ if $x>0$. Show that $f$ is Riemann integrable on $[0,1]$. I think for everyone this question is really basic, but I'm just training myself on proving the integrability of functions. Certainly, there are easiests ways to prove the statement, but I would like to prove it considering upper and lower Darboux sums. So, I would just like to know if my approach is correct, please x)
By definition, $f$ is integrable iff. $\exists$ a subdivision $\sigma$: $\overline{S}_{\sigma}(f)<\underline{S}_{\sigma}(f)+\epsilon \ \forall \epsilon>0$.
First, I remark that for all subdivisions, the lower Darboux sum is equal to $0$. So, we have to show that $\overline{S}_{\sigma}(f)<\epsilon \ \forall \epsilon>0$.
Then, consider $0<\epsilon<2$, the intervals $[0,\epsilon/2]$ and $(\epsilon/2,1]$ and two first terms of partition $x_0=0,x_1=\epsilon/2...$ We don't consider the rest of partition, as the upper Darboux sum is trivially $0$ whatever the partition on the interval $(\epsilon/2,1]$.
Thus, $\overline{S}_{\sigma}(f)=\sum_{i=0}^{0}1\cdot (\epsilon/2-0)+0<\epsilon$.
We conclude then that $f$ is Riemann integrable on $[0,1]$.
What you did is Ok. You could simplify by considering $\epsilon$ instead of $\epsilon/2$ which is not necessary here.