For a bounded real function on a closed finite interval, the Riemann integral exists when the supremum of its lower Darboux sums equals the infimum of its upper Darboux sums. Their common value is . Equivalently, for every there is a partition of an interval whose upper-minus-lower sum is less than .[ref]
For on , uniform partitions into pieces give lower and upper sums and , proving that the integral is . The Dirichlet function has lower sums zero and upper sums one on this interval, so it is not Riemann integrable. The definition explains why boundedness alone is insufficient.
The easy and less generic integral. The harder one is the Lebesgue integral.
New to topics? Read the docs here!