Show piecewise function is integrable and find the definite integral

analysisintegrationreal-analysisriemann-integration

The question is:

Show from the definition of Riemann integrability that $g:[0,1] \rightarrow \mathbb{R}$ defined by $$g(x)= \begin{cases}
1 & x \in \{\frac{1}{10},\frac{2}{10},…,\frac{9}{10}\} \\
0 & otherwise
\end{cases} $$

is integrable on $[0,1]$ and find $\int_{0}^{1}f(x) dx$.

I started off by saying:

For each $n \in \mathbb{N}$, let D be the dissection $0 < \frac{1}{10}-\frac{1}{n} < \frac{1}{10}+\frac{1}{n}<…<\frac{9}{10}-\frac{1}{n}<\frac{9}{10}+\frac{1}{n}<1$ such that we choose $n$ large enough so that the intervals $[\frac{i}{10}-\frac{1}{n},\frac{i}{10}+\frac{1}{n}]$ are disjoint.

How would I then evaluate the lower and upper sums? I think the lower sum would be equal to $0$ since even though the interval length is $\frac{2}{n}$, the infimum of the function is equal to $0$, but the upper sum seems a bit more complicated.

Many thanks in advance!

Best Answer

Yes, each lower sum is $0$. And the upper sum that corresponds to your partition is $\frac{18}n$. Since $\lim_{n\to\infty}\frac{18}n=0$