Show that $f$ is Riemann integrable on $[a,b]$ and that $\int_{a}^b f=t-s$.

real-analysisriemann-integration

Despite having looked at the many examples on here of proving (or disproving) that a function is Riemann integrable, I still can't quite wrap my head around how one would prove the following:

Suppose $a\leq s<t\leq b$. Define $f:[a,b]\rightarrow\{0,1\}$ by
$$f(x)=\begin{cases}
1 & \text{if } s<x<t,\\
0 & \text{otherwise.}
\end{cases}$$
Prove that $f$ is Riemann integrable on $[a,b]$ and that $\int_a^b f=t-s$.

First I simply tried "unwinding" the definition that I am working with of what it means for a function to be Riemann integrable:

If $f$ is a bounded function on a closed, bounded interval, then $f$ is Riemann integrable if its lower Riemann integral equals its upper Riemann integral.

Ok, so the lower Riemann integral is defined as $$L(f,[a,b])=\sup_PL(f,P,[a,b])=\sup_P\sum_{j=1}^n(x_j-x_{j-1})\inf_{[x_{j-1},x_j]}f$$
and the upper Riemann integral is defined as $$U(f,[a,b])=\inf_PU(f,P,[a,b])=\inf_P\sum_{j=1}^n(x_j-x_{j-1})\sup_{[x_{j-1},x_j]}f$$ where both are taken over all partitions $P$ of $[a,b]$. So I want to show that $$L(f,[a,b])=t-s=U(f,[a,b]).$$ But I don't know how!

Is there a standard approach to solving these types of problems? I am certain I need to utilize some sort of $\epsilon,\delta$ argument here, but I am not very good with those types of proofs to begin with. I'm not really looking for an answer as much as I am looking for why the answer would be written the way it is i.e. what is your thought process when you see one of these and how does that process help you to a solution?

Best Answer

Hint: Suppose $a<s<t<b.$ Consider $U(f,P_n)- L(f,P_n)$ for the partition $P_n=\{a,s-1/n,s+1/n,t-1/n,t+1/n,b\}$ for large $n.$

Related Question