# Math Help - Evaluating Riemann integrals

1. ## Evaluating Riemann integrals

Let $f(x)=2$ if $0\leq x<1$ and $f(x)=1$ if $1\leq x\leq 2$ . Show that $f\in R[0,2]$ and evaluate its integral.

I'm not sure of the latex code for partitions...

2. Originally Posted by frenchguy87
Let $f(x)=2$ if $0\leq x<1$ and $f(x)=1$ if $1\leq x\leq 2$ . Show that $f\in R[0,2]$ and evaluate its integral.

I'm not sure of the latex code for partitions...
Which part do you need help on? The value of the integral is pretty clear (it's just two boxes, so calculate the area of the boxes).

As for the integrability, try treating them as two functions $g_1(x)=2\cdot\mathbf{1}_{[0,1)}(x)$ and $g_2(x)=\mathbf{1}_{[1,2]}(x)$ where $\mathbf{1}_A(x)=1$ only when $x \in A$ and is zero otherwise.

When you show that both of those are integrable, then you know that the sum of them (which gives you f) is integrable.