Canonical: https://knowlpedia.com/real-analysis/riemann-integrable-function/

# Riemann integrable function

A bounded function whose upper and lower sums can be made arbitrarily close.

A **Riemann integrable function** on \([a,b]\) is a bounded function \(f:[a,b]\to\mathbb R\) such that for every \(\varepsilon>0\) there exists a [partition](https://knowlpedia.com/real-analysis/partition-of-an-interval/) \(P\) with
\[
U(f,P)-L(f,P)<\varepsilon,
\]
where \(U(f,P)\) is the [upper sum](https://knowlpedia.com/real-analysis/upper-sum/) and \(L(f,P)\) is the [lower sum](https://knowlpedia.com/real-analysis/lower-sum/). Equivalently,
\[
\sup_P L(f,P)=\inf_P U(f,P).
\]

## Remarks

When \(f\) is Riemann integrable, the common value is the [Riemann integral](https://knowlpedia.com/real-analysis/riemann-integral/) of \(f\). Integrability is closely tied to the [set of discontinuities](https://knowlpedia.com/real-analysis/set-of-discontinuities/) (see the [Lebesgue criterion for Riemann integrability](https://knowlpedia.com/measure-theory/lebesgue-criterion-for-riemann-integrability/)).

## Examples

- Any function that is continuous on \([a,b]\) is Riemann integrable.
- The [indicator function](https://knowlpedia.com/measure-theory/indicator-function/) of \(\mathbb Q\cap[a,b]\) is not Riemann integrable on \([a,b]\).
