Let $a < c < d < b$. Let $f(x)=\begin{cases} 1 \text{ if } x \in [c,d]\\ 0 \text{ if } x \in [a,b]\setminus[c,d]. \end{cases}$
I want to verify that I understand how to properly apply the upper and lower Darboux sums.
Let $P=\{a=x_0<...<x_{k-1}<c<x_k<...<x_{l-1}<d<x_l<...<x_n=b\}$
$U(f,P)=\sum\limits_{i=1}^{n}M_i(f)\Delta x_i=\sum\limits_{i=k}^{l}M_i\Delta x_i=x_l-x_k \geq d-c.$
Verify that $L(f,P) \leq d-c$. This is my attempt at a verification.
$L(f,P)=\sum\limits_{i=1}^{n}m_i(f)\Delta x_i=\sum\limits_{i=k-1}^{l-1}m_i\Delta x_i=x_{l-1}-x_{k-1} \leq d-c.$
Is my verification correct?