Definition (Riemann sum)
For a bounded function $f: [a,b] \to \R$ and a dissection $\mathcal D$, the associated Riemann upper and lower sums are $$ \begin{align*} U(f,\mathcal D) &= \sum_{j=1}^{n} (x_{j} - x_{j-1}) \sup_{x\in[x_{j-1},x_{j}]} f(x), \\ L(f,\mathcal D) &= \sum_{j=1}^{n} (x_{j} - x_{j-1}) \inf_{x\in[x_{j-1},x_{j}]} f(x). \end{align*} $$