Riemann Integral

To calculate the area of common geometric figures (such as a triangle or a square), we use formulas derived from Euclidean geometry. If, however, the boundary of a region is described by a graph of a function, traditional formulas may no longer be suitable. The Riemann integral addresses this limitation by approximating the area under a curve using a sum of rectangles, that is, by adding up the areas of small rectangular regions using the usual “base * height” formula.

As a first example, consider the function $f(x) = x^2$ and let us set the goal of calculating the area enclosed between the $x$-axis, the graph of $f(x)$ on the interval $[0,b]$ and the two vertical boundaries $x=0$ and $x=b$. In other words:

Let’s begin by dividing the interval $[0, b]$ in $n$ distinct subintervals $[x_{i-1}, x_i]$ each with a width equal to $\frac{b}{n}$. That is:

$$ x_0 = 0, \ \ x_1 = \frac{b}{n}, \ \ x_2 = \frac{2b}{n}, \ \ \ldots \ \ x_i = \frac{i}{n} b, \ \ \ldots \ \ x_n = b $$

By doing this, we obtain a region formed by the union of rectangles, each having as its base the interval $[x_{i-1}, x_i]$, a width $\frac{b}{n}$ and a height of $f(x_{i-1}) = x^2_{i-1}$. Graphically:

Therefore, the total area of these rectangles is given by the sum of their individual areas:

$$ \begin{aligned} A_{\mathrm{lower}} &= f(x_0)(x_1 - x_0) + f(x_1)(x_2 - x_1) + \dots + f(x_{n-1})(x_n - x_{n-1})\\ &= \sum_{i=1}^{n} \underbrace{f(x_{i-1})}_{\text{height}} \cdot \underbrace{(x_i - x_{i-1})}_{\text{base}}\\ &= \sum_{i=1}^n x^2_{i-1} \cdot \frac{b}{n} = \boxed{\frac{b}{n} \sum_{i=1}^n x^2_{i-1}} \end{aligned} $$

We notice that this sum provides a lower approximation of the area. Let’s now consider the region formed by the union of rectangles with the same bases and widths, but with heights given by $f(x_i) = x^2_i$.

Graphically, this corresponds to:

In this case, the area is:

$$ A_{\mathrm{upper}} = \sum_{i=1}^n f(x_i) (x_i - x_{i-1}) = \boxed{ \frac{b}{n} \sum_{i=1}^n x^2_i} $$

This time, the sum provides an upper approximation of the area. Therefore, if $A$ denotes the actual area, we have:

$$ \underbrace{\frac{b}{n} \sum_{i=1}^n x^2_{i-1}}_{\text{Lower Sum}} < A < \underbrace{\frac{b}{n} \sum_{i=1}^n x^2_i}_{\text{Upper Sum}} $$

Definition

Let’s now try to formalize this procedure; by doing so, we will naturally arrive at the definition of the Riemann integral.

Let $[a, b]$ be an interval, with $a < b$. A partition $D$ of $[a, b]$ is an ordered set consisting of $n+1$ distinct points of the interval such that:

$$ a = x_0 < x_1 < \dots < x_{n-1} < x_n = b $$

Moreover, let $f : [a, b] \to \mathbb{R}$ be a bounded function on $[a, b]$. By definition, this means that there exist two real numbers $m$ and $M$ such that:

$$ \exists m, M \in \mathbb{R} \ : \ m \leq f(x) \leq M \qquad \forall x \in [a, b] $$

Additionally, let $D = \{ x_0, \ldots, x_n \}$ a partition of $[a, b]$. The $n+1$ points identify $n$ subintervals $[x_{i-1}, x_i]$ with $i=1, 2, \ldots, n$. Therefore, we define:

$$ m_i = \inf \left\{ \ f(x) : x \in [x_{i-1}, x_i] \ \right\}, $$

$$ M_i = \sup \left\{ \ f(x) : x \in [x_{i-1}, x_i] \ \right\} $$

By setting $\Delta x_i = x_i - x_{i-1}$, we can define the following two integral sums:

$$ s(D, f) = \sum_{i=1}^n m_i \cdot \Delta x_i $$

$$ S(D, f) = \sum_{i=1}^n M_i \cdot \Delta x_i $$

Here, $s(D, f)$ is called the lower Riemann sum while $S(D, f)$ is called the upper Riemann sum. Additionally, since $f$ is bounded by definition, for every partition $D$ of $[a, b]$ we have:

$$ m(b-a) \leq s(D, f) \leq S(D, f) \leq M(b - a) $$

Thus, the following two values exist and are finite:

$$ \inf\limits_D S(D, f), \ \ \sup\limits_D s(D, f) $$

These are the infimum of the upper Riemann sum and the supremum of the lower Riemann sum, respectively.

Furthermore, for any two partitions $D_1$ and $D_2$, we can consider a common refinement $D_3$ containing all their partition points. Since refining a partition can only increase its lower sum and decrease its upper sum, we obtain:

$$ s(D_1, f) \leq s(D_3, f) \leq S(D_3, f) \leq S(D_2, f) $$

Consequently:

$$ \sup\limits_D s(D,f) \leq \inf\limits_D S(D,f) $$

When these two quantities are equal, the function is Riemann integrable. More formally:

A bounded function $f : [a, b] \to \mathbb{R}$ is Riemann integrable if: $$ \sup\limits_D s(D, f) = \inf\limits_D S(D, f) $$ In that case, we define: $$ \mathcal{I}(f) := \int_a^b f(x) \, dx $$

Riemann’s Integrability Criterion

Once the definition of the Riemann integral has been established, we can introduce a criterion to determine whether a bounded function is Riemann integrable.

A bounded function $f : [a, b] \to \mathbb{R}$ is Riemann integrable if and only if, $\forall \epsilon > 0$, there exists a partition $D_{\epsilon}$ of $[a, b]$ such that ($\clubsuit$): $$ S(D_{\epsilon}, f) - s(D_{\epsilon}, f) < \epsilon $$

Let’s first assume that $\clubsuit$ holds, then:

$$ 0 \leq \inf_D S(D,f)-\sup_D s(D,f) \leq S(D_{\epsilon}, f) - s(D_{\epsilon}, f) < \epsilon $$

Since this holds $\forall \epsilon>0$, we conclude that:

$$ \inf_D S(D,f)=\sup_D s(D,f) $$

and thus $f$ is Riemann integrable.

Conversely, suppose that $f$ is Riemann integrable. Then, given an $\epsilon>0$, there exists a partition $D_1$ such that:

$$ \mathcal{I}(f) - s(D_1, f) < \frac{1}{2} \epsilon $$

and another partition $D_2$ such that:

$$ S(D_2, f) - \mathcal{I}(f) < \frac{1}{2} \epsilon $$

Finally, let’s introduce $D_3$ as a common refinement containing both $D_1$ and $D_2$. Since refining a partition increases its lower sum and decreases its upper sum, we obtain:

$$ S(D_3, f) - s(D_3, f) \leq S(D_2, f) - s(D_1, f) < \epsilon $$

which proves $\clubsuit$ $\blacksquare$.

This criterion allows us to view the Riemann integral as the value to which the lower and upper sums converge as the maximum width of the subintervals of $[a, b]$ tends to zero. To formalize this concept and define the Riemann integral in terms of limits, let’s introduce the following definition:

Let $D$ be a partition of $[a, b]$, the mesh (or norm) of $D$ is the value defined by: $$ \Vert D \Vert = \max_{1 \leq i \leq n} \{ (x_i - x_{i-1}) \} $$

Next, let’s generalize the notion of Riemann sums:

$$ \sigma(D, f) = \sum_{i=1}^n \mu_i \Delta x_i $$

where each $\mu_i$ is chosen such that:

$$ m_i \leq \mu_i \leq M_i $$

In particular, we can choose a point $\xi_i \in [x_{i-1},x_i]$ and set $\mu_i = f(\xi_i)$. These are the usual tagged Riemann sums. More generally, we can consider any value $\mu_i$ between $m_i$ and $M_i$.

Consequently, the following inequality holds:

$$ s(D, f) \leq \sigma(D, f) \leq S(D, f) $$

We can now define the following limit.

The value $l \in \mathbb{R}$ corresponds to the limit of $\sigma(D, f)$ as $\Vert D \Vert$ tends to zero, that is: $$ \lim_{\Vert D \Vert \to 0} \sigma(D, f) = l $$ if, $\forall \epsilon > 0, \exists \delta_{\epsilon} > 0$ such that: $$ | \sigma(D, f) - l | < \epsilon $$ for all partitions $D$ with $\Vert D \Vert < \delta_{\epsilon}$ and for every admissible choice of the values $\mu_i$.

This allows us to give the following definition of the Riemann integral.

A bounded function $f : [a, b] \to \mathbb{R}$ is Riemann integrable if and only if the following limit exists and is finite: $$ \lim_{\Vert D \Vert \to 0} \sigma(D, f) $$ In that case, we write: $$ \int_a^b f(x) \, dx = \lim_{\Vert D \Vert \to 0} \sigma(D, f) $$

Geometrical Interpretation

The Riemann integral has some important geometrical properties. In particular, when $f$ is nonnegative on $[a,b]$, the lower sum $s(D,f)$ represents the area of the rectilinear polygon contained within the set $T$ defined as follows:

$$ T = \left\{ (x, y) \in \mathbb{R}^2 : a \leq x \leq b, \, 0 \leq y \leq f(x) \right\} $$

On the other hand, the upper sum $S(D, f)$ represents the area of the rectilinear polygon that contains $T$. Finally, when $f$ is continuous, the set $T$ represents a curvilinear trapezoid with base $[a, b]$, vertical boundaries at $x = a$ and $x = b$ and upper curve given by the graph of $f(x)$.

If $f$ takes negative values, the integral instead represent a signed area, that is, regions above the $x$-axis contributes positively while regions below it contribute negatively.

Properties of the Integral

Let’s now study some of the properties of the Riemann integral.

First of all, given an interval $I = [a, b]$, let’s define $\mathcal{R}(I)$ as the set of all bounded functions that are Riemann integrable on $I$. Since the integral maps every function $f \in \mathcal{R}(I)$ to a real number, that is: $$ \mathcal{I} : \mathcal{R}(I) \to \mathbb{R} $$

It can be considered a functional. Moreover, given $f, g \in \mathcal{R}(I)$, then:

$$ f + g \in \mathcal{R}(I) $$

and therefore:

$$ \int_a^b (f + g) \, dx = \int_a^b f \, dx + \int_a^b g \, dx \qquad \text{(Additivity)} $$

Similarly, since $c f \in \mathcal{R}$ $\forall c \in \mathbb{R}$, we have:

$$ \int_a^b cf \, dx = c \int_a^b f \, dx \qquad \text{(Homogeneity)} $$

Since the integral is both additive and homogeneous, it is therefore a linear functional.

Another property of the Riemann integral commonly used in practical exercises is the average value of a function. Consider two real numbers $a, b \in \mathbb{R}$ such that $a < b$ and let $f$ be a Riemann-integrable function on $[a, b]$.

Then, given $m = \inf\limits_{[a, b]} f$ and $M = \sup\limits_{[a,b]} f$ we have:

Then, given:

$$ m=\inf_{x\in[a,b]}f(x), \quad M=\sup_{x\in[a,b]}f(x) $$

We have:

$$ m \leq \frac{1}{b - a} \int_a^b f(x) \, dx \leq M $$

Furthermore, if $f$ is continuous on $[a,b]$, then there exists a point $x_0 \in [a, b]$ such that:

$$ \int_a^b f(x) \, dx = (b - a) f(x_0) $$

This is known as the mean value theorem for integrals.

Fundamental Theorem of Calculus

In this final section, we will study a fundamental theorem of mathematical analysis known as Fundamental Theorem of Calculus. The first part provides a practical formula for evaluating definite integrals, while the second part establishes a relationship between differentiation and integration.

Let’s begin with the following prerequisite:

Let $\varphi : (a, b) \to \mathbb{R}$ be a function. A differentiable function $G : (a, b) \to \mathbb{R}$ is a primitive (or antiderivative) of $\varphi$ in $(a, b)$ if: $$ G'(x) = \varphi(x), \qquad \forall x \in (a, b) $$

The first property we will study determines an explicit formula for evaluating a definite integral.

(1st Fundamental Theorem of Calculus): Let $f$ be a Riemann-integrable function on the $[a,b]$ interval and let $G$ be a primitive of $f$ in $(a, b)$ such that the following two limits exist and are finite: $$ G(a^+) = \lim_{x \to a^+} G(x), \qquad G(b^-) = \lim_{x \to b^-} G(x) $$ Then, the following formula holds: $$ \int_a^b f \, dx = G(b^-) - G(a^+) $$

Let’s look at an example. Consider the following definite integral:

$$ \int_{-1}^2 x \, dx $$

We notice that a primitive of the integrand is $G(x) = \frac{x^2}{2}$. Therefore:

$$ \begin{aligned} \int_{-1}^2 x \, dx &= \left[ \frac{x^2}{2} \right]_{-1}^2\\ &= \left( \frac{2^2}{2} - \frac{(-1)^2}{2} \right)\\ &= 2 - \frac{1}{2}\\ &= \boxed{\frac{3}{2}} \end{aligned} $$

Finally, let’s state the second part of the Fundamental Theorem of Calculus which, as mentioned earlier, establishes a relationship between differentiation and integration.

(2nd Fundamental Theorem of Calculus): Let $f$ be a Riemann-integrable function $[a,b]$ and let $c \in (a, b)$. We define the integral function $\Phi : [a,b] \to \mathbb{R}$ as: $$ \Phi(x) = \int_c^x f(t) \, dt, \quad x \in [a, b] $$ where the usual convention $\int_c^x f(t) \, dt = -\int_x^c f(t) \, dt$ applies when $x < c$. This function satisfies the following properties:

  1. $\Phi$ is continuous on $[a, b]$;
  2. If $f$ is continuous at $x_0 \in (a, b)$, then $\Phi$ is differentiable at $x_0$ and the following formula holds: $$ \Phi'(x_0) = f(x_0) $$
  3. If $f$ is continuous on $(a, b)$, then $\Phi$ is differentiable on $(a, b)$ and the following formula holds: $$ \Phi'(x) = f(x), \quad \forall x \in (a, b) $$