Riemann integrals in one dimension
Definitions
Definition 1. We say $P = (x_0, \dots, x_N)$ is a partition of the interval $[a, b]$ if $x_0 = a$, $x_i < x_{i+1}$, $x_N = b$. Define $\mathcal P$ to be the set of all partitions of $[a, b]$.
Definition 2. Let $f \colon [a, b] \to \R$ be bounded, and $P = (x_0, \dots, x_N) \in \mathcal P$. Define the upper sum and lower sum of $f$ by \begin{equation} L(f, P) = \sum_{i=0}^{N-1} m_i (x_{i+1} - x_i) \quad U(f, P) = \sum_{i=0}^{N-1} M_i (x_{i+1} - x_i) \end{equation} where \begin{equation} m_i = \inf_{[x_i, x_{i+1}]} f(x) \quad\text{and}\quad m_i = \sup_{[x_i, x_{i+1}]} f(x) \end{equation}
Definition 3. We say a function $f \colon [a, b] \to \R$ is Riemann integrable if it is bounded and \begin{equation} \sup_{P \in \mathcal P} L(f, P) = \inf_{P \in \mathcal P} U(f, P) \,. \end{equation} In this case we define \begin{equation} \int_a^b f(x) \, dx = \sup_{P \in \mathcal P} L(f, P) = \inf_{P \in \mathcal P} U(f, P) \end{equation}
Remark 4. The $x$ above is a dummy variable and can be replaced with anything (or sometimes even omitted).
Remark 5. The theory of Riemann integration is obsolete, and has been replaced by Lebesgue integration. Every Riemann integrable function is Lebesgue integrable, and the Riemann integral equals the Lebesgue integral. The converse is false.
Lebesgue integrals, however, are harder to construct. As a result, we’re not going to do the most general results, but only a minimal subset required at this stage.
Basic properties
Sums and products
Lemma 6. For any $P, Q \in \mathcal P$, $L(f, P) \leq U(f, Q)$. Consequently for any bounded function $f$, \begin{equation} \sup_{P \in \mathcal P} L(f, P) \leq \inf_{Q \in \mathcal P} U(f, Q)\,. \end{equation} Moreover $f$ is Riemann integrable if and only if for every $\epsilon > 0$ there exists $P \in \mathcal P$ such that \begin{equation} U(f, P) - L(f, P) < \epsilon \end{equation}
Proposition 7. If $f \colon [a, b] \to \R$ is Riemann integrable, $\alpha \in \R$, then $\alpha f$ is Riemann integrable and \begin{equation} \int_a^b \alpha f \, dx = \alpha \int_a^b f \, dx \,. \end{equation}
Proposition 8. If $f, g \colon [a, b] \to \R$ are Riemann integrable, then $f + g$ is Riemann integrable and \begin{equation} \int_a^b (f + g) \, dx = \int_a^b f \, dx + \int_a^b g \, dx \,. \end{equation}
Proposition 9. If $f, g$ are Riemann integrable then so are $f \varmin g$ and $f \varmax g$. (Here $x \varmax y = \max \set{x, y}$ and $x \varmin y = \min \set{ x, y }$.)
Proposition 10. If $f, g \colon [a, b] \to \R$ are Riemann integrable then so is $fg$.
Integrability of continuous functions
Proposition 11. If $f \colon [a, b] \to \R$ is continuous then $f$ is Riemann integrable.
Proof sketch. Use uniform continuity to make the difference between the upper/lower sums arbitrarily small.
Proposition 12. If $f \colon [a, b] \to \R$ is bounded and continuous except at finitely many points, then $f$ is Riemann integrable.
Proposition 13. The function $\one_{\Q}$ is not Riemann integrable.
Comparisons and bounds
Proposition 14. If $f, g \colon [a, b] \to \R$ are Riemann integrable and $f \leq g$, then \begin{equation} \int_a^b f(t) \, dt \leq \int_a^b g(t) \, dt \,. \end{equation}
Proposition 15. If $f \colon [a, b] \to \R$ is Riemann integrable then \begin{equation} \abs[\Big]{ \int_a^b f(t) \, dt } \leq \int_a^b \abs{f(t)} \, dt \,. \end{equation}
Proposition 16 (Jensen’s inequality). Let $I \subseteq \R$ be an interval, $\varphi \colon I \to \R$ be convex (and continuous), and $f \colon [a, b] \to I$ be continuous, then show that \begin{equation} \varphi\paren[\bigg]{ \frac{1}{b - a}\int_a^b f(t) \, dt } \leq \frac{1}{b - a}\int_a^b \varphi \circ f(t) \, dt \,. \end{equation}
Changed 2026-03-30 This problem is true if you only assume $\varphi$ is convex, and $f$ is Riemann integrable. However, in that case proving $\varphi \circ f$ is cumbersome; to avoid this, I updated the statement to additionally assume continuity.
Fundamental Theorem of Calculus
Theorem 17 (Fundamental theorem of Calculus). Let $f \colon [a, b] \to \R$ be Riemann integrable and define \begin{equation} F(x) = \int_a^x f(t) \, dt \,. \end{equation} Then $F$ is continuous. If further $f$ is continuous at $x \in (a, b)$ then $F$ is differentiable at $x$ and $F’(x) = f(x)$.
Theorem 18 (Fundamental theorem of calculus). If $f \colon [a, b] \to \R$ is differentiable, and $f’$ is Riemann integrable, then \begin{equation} \int_a^b f’(t) \, dt = f(b) - f(a) \,. \end{equation}
Problem 19. Find a function which is differentiable on all of $[0, 1]$, but its derivative is not Riemann integrable.
Hint. Find a differentiable function on all of $[0, 1]$ (including endpoints) whose derivative is unbounded. This is not Riemann integrable in the standard sense, but it does have an improper integral.
It is possible to find a differentiable function whose derivative is bounded but not Riemann integrable. But that’s a bit harder to construct.
Theorem 20 (Integration by parts). If $f, g \colon [a, b] \to \R$ are differentiable, $f’$, $g’$ are Riemann integrable then \begin{equation} \int_a^b f(t) g’(t) \, dt = f(b) g(b) - f(a) g(a) - \int_a^b g(t) f’(t) \, dt \,. \end{equation}
Theorem 21 (Substitution). Let $I \subseteq \R$ be an interval, $g \colon [a, b] \to I$ be $C^1$, and $f \colon I \to \R$ be continuous. Then \begin{equation} \int_a^b f \circ g(t) \cdot g’(t) \, dt = \int_{g(a)}^{g(b)} f(t) \, dt \,. \end{equation}