Prove this function is integrable over an interval

calculusproof-writingriemann-integration

Let $f:[0,2] \to R$ defined as $f(x)= \begin{cases} 1 & x \neq 1 \\ 0 & x = 1 \end{cases}$

Prove that $f$ is integrable in $[0,2]$ and obtain its integral.

Well since the function it's not continuous nor monotonic, then I think this must be proved by definition, but I don't know how to find the partitions, upper and lower sum, etc.

Best Answer

hint

Let $ \epsilon>0 $ small enough.

Consider the partage $$P=(0,1-\frac{\epsilon}{3},1+\frac{\epsilon}{3},2)$$

then

$$U(f,P)-L(f,P)=$$ $$(1-1)(\frac{1-\epsilon}{3}-0)+$$ $$(1-0)(1+\frac{\epsilon}{3}-(1-\frac{\epsilon}{3}))+(1-1)(2-(1+\frac{\epsilon}{3}))=$$ $$\frac{2\epsilon}{3}<\epsilon$$

Its integral is given by

$$\int_0^1f+\int_1^2f=$$ $$\lim_{n\to+\infty}(\int_0^{1-\frac 1n}dx+\int_{1+\frac 1n}^2dx)=$$ $$\lim_{n\to+\infty}(1-\frac 1n)+(2-1-\frac 1n)=$$ $$\lim_{n\to+\infty}(2-\frac 2n)=2$$m