Definition:
$f$ is Darboux Integrable $\iff \sup{\{L(f,P): P \text{ partition of } [a,b]\}}=\inf{\{U(f,P): P \text{ partition of } [a,b]\}}$
Let $f(x)=x^2$ and $P$ a partition of $[a,b]$.
Then how can $\sup{\{L(f,P): P \text{ partition of } [a,b]\}}$ and $\inf{\{U(f,P): P \text{ partition of } [a,b]\}}$ ever be equal if $P$ is a finite sequence of numbers from the interval $[a,b]$?
EDIT: Is it because they will never reach that value but they can take all values in between?
If so then if a function $g$ is integrable on $[a,b]$, then I can't say that $\exists P',P'': U(g,P')=L(g,P'')$ right?
Given a partition $P$ (namely a finite set $ a=x_0 < x_1 < \dotsb < x_n=b$), it is easy to show that $U(f,P)=L(f,P)$ if and only if $f$ is constant on each interval of $P$: $$U(f,P)-L(f,P) = \sum_i \lvert x_i-x_{i-1} \rvert \Big( \sup_{[x_{i-1},x_i]} f - \inf_{[x_{i-1},x_i]} f \Big), $$ and $\sup_{A} f - \inf_{A} f \geq 0$, with equality if and only if $f$ is constant on $A$. Moreover, since $f(x_i)$ is considered in both $[x_{i-1},x_i]$ and $[x_i,x_{i+1}]$, we see that neighbouring intervals have to have the same constant value of $f$. Hence, by induction, $f$ is constant.