Let $g:[a.b] \rightarrow \mathbb{R}$ be a bounded function. Prove that $U(g)$ and $L(g)$ exist and $L(g) \leq U(g)$.
I am new to this material and am confused on how to prove this statement. We know:
$L(g) = \sup\{L(g , P) :$ P is a partition of $[a,b]\}$.
$U(g) = \inf\{U(g , P) :$ P is a partition of $[a,b]\}$.
Note that \begin{align*} U(g , P) = \sum_{i=1}^{n} M_i(x_i - x_{i-1}) \end{align*} and \begin{align*} L(g , P) = \sum_{i=1}^{n} m_i(x_i - x_{i-1}) \end{align*} where $M_i = \sup\{g(x) : x \in [x_{i-1}, x_i]\}$ and $m_i = \inf\{g(x) : x \in [x_{i-1}, x_i]\}$.
Any hints will be appreciated.