Integration of Real-valued Functions

Motivation

Given an interval [a,b][a, b] and some function f:[a,b]→Rf: [a, b] \rightarrow \mathbb{R}, we want to create some rule, that computes the area under the curve y=f(x)y = f(x) between x=ax = a and x=bx = b.

This rule, which assigns real numbers to functions, can be itself represented as a function φ[a,b]:F([a,b])→R\varphi_{[a, b]} : \mathcal{F} \big( [a, b] \big) \rightarrow \mathbb{R}. Here, F([a,b])\mathcal{F} \big( [a, b] \big), the domain of φ\varphi, refers to a collection of functions defined on [a,b][a, b] such that the area under the curve y=f(x)y = f(x) between x=ax = a and x=bx = b is well-defined according to the rule.

The integral of a function f∈F([a,b])f \in \mathcal{F} \big( [a, b] \big) is defined as the value obtained under the rule φ[a,b]\varphi_{[a, b]}. To represent this value, we conventionally use the notation:

∫abf dx≐φ[a,b](f). \int_a^b f \, dx \doteq \varphi_{[a, b]} (f).

Similarly, when considering another interval [s,t][s, t], we can establish a similar rule φ[s,t]\varphi_{[s, t]} with domain F([s,t])\mathcal{F} \big( [s, t] \big). The integral of ff over [s,t][s, t] is denoted as:

∫stf dx≐φ[s,t](f). \int_s^t f \, dx \doteq \varphi_{[s, t]} (f).

In the subsequent discussion, we will employ the notation on the left-hand side exclusively.

The integral should adhere to our geometric understanding of areas and satisfy various properties. First and foremost, the integral should accurately compute the area of rectangles.

Property (Area of Rectangle). If ∃c∈R\exists c \in \mathbb{R}, s.t., f(x)=cf(x) = c for each x∈[a,b]x \in [a, b], then f∈F([a,b])f \in \mathcal{F} \big( [a, b] \big) and ∫abf dx=c⋅(b−a)\int_a^b f \, dx = c \cdot (b - a). .

Secondly, the integrals should demonstrate linearity.

Property (Linearity).

  1. If f∈F([a,b])f \in \mathcal{F} \big( [a, b] \big) and c∈Rc \in \mathbb{R}, then c⋅f∈F([a,b])c \cdot f \in \mathcal{F} \big( [a, b] \big) and
∫abc⋅f dx=c⋅∫abf dx. \int _{a}^{b} c \cdot f \, dx = c \cdot \int_{a}^{b} f \, dx.
  1. If f1,f2∈F([a,b])f_1, f_2 \in \mathcal{F} \big( [a, b] \big), then f1+f2∈F([a,b])f_1 + f_2 \in \mathcal{F} \big( [a, b] \big), and
∫abf1+f2 dx=∫abf1 dx+∫abf2 dx. \int _{a}^{b} f_1 + f_2 \, dx = \int_{a}^{b} f_1 \, dx + \int_{a}^{b} f_2 \, dx.
  1. If f∈F([a,b])f \in \mathcal{F} \big( [a, b] \big) and c∈(a,b)c \in (a, b), then f∈F([a,c])f \in \mathcal{F} \big( [a, c] \big) and f∈F([c,b])f \in \mathcal{F} \big( [c, b] \big), and
∫abf dx=∫acf dx+∫cbf dx. \int _{a}^{b} f \, dx = \int _{a}^{c} f \, dx + \int _{c}^{b} f \, dx.

The integrals should allow for meaningful comparisons.

Property (Monotonicity).

  1. If f1,f2∈F([a,b])f_1, f_2 \in \mathcal{F} \big( [a, b] \big) and f1≤f2f_1 \le f_2, then
∫abf1 dx≤∫abf2 dx. \int_{a}^{b} f_1 \, dx \le \int_{a}^{b} f_2 \, dx.
  1. If f∈F([a,b])f \in \mathcal{F} \big( [a, b] \big) and ∣f∣≤M|f| \le M, then
∣∫abf dx∣≤M⋅(b−a). \left| \int_{a}^{b} f \, dx \right| \le M \cdot (b - a).

So far, it is straightforward to specify a family of functions, and a rule that assigning real numbers to them,satisfying the aforementioned properties. For instance, we can define F([a,b])\mathcal{F}\big( [a, b] \big) as the set of step functions on [a,b][a, b]. Each step function ff can be expressed as:

f(x)=∑i∈[n]ci⋅IEi(x), f(x) = \sum_{i \in [n]} c_i \cdot \mathbb{I}_{E_i} (x),

where Ei,i∈[n]E_i, i \in [n], are sub-intervals, forming a partition of [a,b][a, b]. Further, we can define the integral as

∫abf dx≐∑i∈[n]ci⋅∣Ei∣, \int_a^b f \, dx \doteq \sum_{i \in [n]} c_i \cdot |E_i|,

where ∣Ei∣|E_i| is the length of EiE_i.

However, it is also desirable for the constructed integrals to satisfy convergence properties.

Property (Convergence).

  1. If fi∈F([a,b])f_i \in \mathcal{F} \big( [a, b] \big) for each i∈N+i \in \mathbb{N}^+ and fi→ff_i \rightarrow f under some metric, then f∈F([a,b])f \in \mathcal{F} \big( [a, b] \big) and
lim⁡n→∞∫abfi dx=∫abf dx. \lim_{n \rightarrow \infty} \int_{a}^{b} f_i \, dx = \int_{a}^{b} f \, dx.

Unfortunately, the previous construction does not satisfy convergence properties. Additional considerations and refinements are required in order to establish an integral that fulfills the desired convergence properties.

Construction

Bernhard Riemann presented the following construction of integral.

Let [a,b][a, b] be a given interval. P={x0,x1,…,xn}P = \{ x_0 , x_1 , \ldots, x_n \} is a partition of [a,b][a, b], if

a=x0≤x1⋯≤xn=b. a = x_0 \le x_1 \cdots \le x_n = b.

For each i∈[n]i \in [n], let Δxi≐xi,−xi−1\Delta x_i \doteq x_i, - x_{i - 1}.

Assume f:[a,b]→Rf: [a, b] \rightarrow \mathbb{R} is a bounded function. Associated with each partition PP, define

Mi≐sup⁡x∈[xi−1,xi]f(x),mi≐inf⁡x∈[xi−1,xi]f(x). M_i \doteq \sup_{x \in [x_{i - 1}, x_i]} f(x), \qquad m_i \doteq \inf_{x \in [x_{i - 1}, x_i]} f(x).

Further, let

U(P,f)≐∑i∈[n]Mi⋅Δxi,L(P,f)≐∑i∈[n]mi⋅Δxi. U(P, f) \doteq \sum_{i \in [n]} M_i \cdot \Delta x_i, \quad L(P, f) \doteq \sum_{i \in [n]} m_i \cdot \Delta x_i.

Finally, consider

∫ab‾f dx≐inf⁡U(P,f),∫ab‾f dx≐sup⁡L(P,f), \overline{\int _{a}^{b}} f \, dx \doteq \inf U(P, f), \quad \underline{\int_{a}^{b}} f \, dx \doteq \sup L(P, f),

where the inf and sup are taken over all partitions PP of [a,b][a, b].

Definition f:[a,b]→Rf: [a, b] \rightarrow \mathbb{R} is considered Riemann integrable, if

∫ab‾f dx=∫ab‾f dx. \overline{\int _{a}^{b}} f \, dx = \underline{\int_{a}^{b}} f \, dx.

In this cases, we define the integral of ff over the interval [a,b][a, b] as:

∫abf dx≐∫ab‾f dx=∫ab‾f dx. \int _{a}^{b} f \, dx \doteq \overline{\int _{a}^{b}} f \, dx = \underline{\int_{a}^{b}} f \, dx.

We denote the collection of functions that are Riemann integrable on [a,b][a, b] as R([a,b])\mathfrak{R}\big( [a, b] \big).

Remark. It is reasonable to assume that ff is bounded on the closed interval [a,b][a, b], in order that it is Riemann integrable. If ff is unbounded, for each partition PP, there exists some i∈[n]i \in [n], s.t., Mi−mi=∞M_i - m_i = \infty. Hence it is impossible that ∫ab‾f dx=∫ab‾f dx\overline{\int _{a}^{b}} f \, dx = \underline{\int_{a}^{b}} f \, dx.

Properties

It is straightforward to see the proposed construction of integral captures the area of rectangles, and demonstrates linearity and monotonicity.

Theorem. Assume that for each n∈N+n \in \mathbb{N}^+, fn∈R([a,b])f_n \in \mathfrak{R} \big( [a, b] \big), and that fn→ff_n \rightarrow f uniformly on [a,b][a, b] (i.e., sup⁡x∈[a,b]∣fn(x)−f(x)∣→0\sup_{x \in [a, b]} |f_n(x) - f(x)| \rightarrow 0). Then f∈R([a,b])f\in \mathfrak{R} \big( [a, b] \big), and

∫abf dx=lim⁡n→∞∫abfn dx. \int_a^b f \, dx = \lim_{n \rightarrow \infty} \int_a^b f_n \, dx.

(The existence of the limit is part of the conclusion.)

Proof. Choose ε>0\varepsilon > 0. For large enough nn, we have ∣fn−f∣≤ε|f_n - f| \le \varepsilon.

Let P={x0,x1,…,xn}P = \{ x_0 , x_1 , \ldots, x_n \} be a partition of [a,b][a, b].

L(P,fn)−ε⋅(b−a)≤L(P,f)≤U(P,f)≤U(P,fn)+ε⋅(b−a) L(P, f_n) - \varepsilon \cdot (b - a) \le L(P, f) \le U(P, f) \le U(P, f_n) + \varepsilon \cdot (b - a)

Taking sup and inf over all possible partitions of PP on [a,b][a, b], and given the Riemann integrability of fnf_n, we have

∫abfn dx−ε⋅(b−a)≤∫ab‾f dx≤∫ab‾f dx≤∫abfn dx+ε⋅(b−a). \int_a^b f_n \, dx - \varepsilon \cdot (b - a) \le \underline{\int_{a}^{b}} f \, dx \le \overline{\int _{a}^{b}} f \, dx \le \int_a^b f_n \, dx + \varepsilon \cdot (b - a).

Since ε\varepsilon is chosen arbitrarily, we have ∫ab‾f dx=∫ab‾f dx\underline{\int_{a}^{b}} f \, dx = \overline{\int _{a}^{b}} f \, dx and therefore f∈R([a,b])f \in \mathfrak{R} \big( [a, b] \big).

Finally,

∫abfn dx−ε⋅(b−a)≤∫abf dx≤∫abfn dx+ε⋅(b−a), \int_a^b f_n \, dx - \varepsilon \cdot (b - a) \le \int_{a}^{b} f \, dx \le \int_a^b f_n \, dx + \varepsilon \cdot (b - a),

implies that lim⁡n→∞∫abfn dx\lim_{n \rightarrow \infty} \int_a^b f_n \, dx exists, and equals ∫abf dx\int_{a}^{b} f \, dx.

□\square

Integration and Differentiation

Theorem. Suppose that f∈R([a,b])f \in \mathfrak{R} \big( [a, b] \big). Define

F(t)≐∫atf dx,∀t∈[a,b]. F(t) \doteq \int_a^t f \, dx, \quad \forall t \in [a, b].

Then FF is continuous on [a,b][a, b]; furthermore, if ff is continuous at a point t∈[a,b]t \in [a, b], then FF is differentiable at tt, and F′(t)=f(t)F'(t) = f(t).

Proof. Since f∈R([a,b])f\in \mathfrak{R} \big( [a, b] \big), it is bounded. Let M≐max⁡x∈[a,b]∣f(x)∣M \doteq \max_{x \in [a, b]} |f(x)|. It follows that

∣F(x)−F(y)∣≤M⋅∣x−y∣,∀x,y∈[a,b]. |F(x) - F(y)| \le M \cdot |x - y|, \quad \forall x, y \in [a, b].

which proves uniform continuity of FF.

With out lose of generality, assume that t∈(a,b)t \in (a, b). Since ff is continuous at tt, ∃δ>0\exists \delta > 0, s.t., [t−δ,t+δ]⊆[a,b][t - \delta, t + \delta] \subseteq [a, b] and ∀s∈[t−δ,t+δ]\forall s \in [t - \delta, t + \delta], it holds that ∣f(s)−f(t)∣≤ϵ|f(s) - f(t)| \le \epsilon. It follows that for all ℓ,r∈[t−δ,t+δ]\ell, r \in [t - \delta, t + \delta],

∣F(r)−F(ℓ)r−ℓ−f(t)∣=∣1r−ℓ∫ℓr[f(x)−f(t)] dx∣≤1r−ℓ∫ℓr∣f(x)−f(t)∣ dx≤2⋅ϵ. \begin{aligned} \left| \frac{F(r) - F(\ell)}{r - \ell} - f(t) \right| &= \left| \frac{1}{r - \ell} \int_\ell^r [ f(x) - f(t) ] \, dx \right| \\ &\le \frac{1}{r - \ell} \int_\ell^r \left| f(x) - f(t) \right| \, dx \le 2 \cdot \epsilon. \end{aligned}

□\square

Theorem (The fundamental theorem of calculus). Suppose that f∈R([a,b])f \in \mathfrak{R} \big( [a, b] \big) and that FF are differentiable function on [a,b][a, b] such that F′=fF' = f, then

∫abf dx=F(b)−F(a). \int_a^b f \, dx = F(b) - F(a).

Proof. Let P={x0,x1,…,xn}P = \{ x_0 , x_1 , \ldots, x_n \} be a partition of [a,b][a, b]. For each i∈[n]i \in [n], by mean value theorem, ∃ti∈[xi−1,xi]\exists t_i \in [x_{i - 1}, x_i], s.t.,

F(xi)−F(xi−1)=f(ti)⋅Δxi. F(x_i) - F(x_{i - 1}) = f(t_i) \cdot \Delta x_i.

Hence,

L(P,f)≤F(b)−F(a)=∑i∈[n]f(ti)⋅Δxi≤U(P,f). L(P, f) \le F(b) - F(a) = \sum_{i \in [n]} f(t_i) \cdot \Delta x_i \le U(P, f).

Taking sup and inf over all partitions PP finishes the proof.

□\square

Corollary (Integration by parts). If f1,f2∈R([a,b])f_1, f_2\in \mathfrak{R} \big( [a, b] \big), and F1F_1 and F2F_2 are differentiable function on [a,b][a, b] such that F1′=f1F_1' = f_1 and F2′=f2F_2' = f_2, then

∫abF1⋅f2 dx=F1(b)⋅F2(b)−F1(a)⋅F2(a)−∫abF2⋅f1 dx. \int_a^b F_1 \cdot f_2 \, dx = F_1(b) \cdot F_2(b) - F_1(a) \cdot F_2(a) - \int_a^b F_2 \cdot f_1 \, dx.

Existence

In this section, we delve into the functions are encompassed within R([a,b])\mathfrak{R} \big( [a, b] \big).

Theorem.

  1. If ff is continuous on [a,b][a, b] then f∈R([a,b])f\in \mathfrak{R} \big( [a, b] \big).
  2. If ff is monotonic on [a,b][a, b], then f∈R([a,b])f\in \mathfrak{R} \big( [a, b] \big).
  3. If ff is bounded on [a,b][a, b] and has only finitely many points of discontinuity on [a,b][a, b], then f∈R([a,b])f\in \mathfrak{R} \big( [a, b] \big).

Theorem. Suppose

  1. f∈R([a,b])f \in \mathfrak{R} \big( [a, b] \big), and f([a,b])⊆[m,M]f([a, b]) \subseteq [m, M],
  2. g:[m,M]→Rg: [m, M] \rightarrow \mathbb{R} is continuous, and
  3. h≐g∘fh \doteq g \circ f.

Then h∈R([a,b])h \in \mathfrak{R} \big( [a, b] \big).

Note that if f∈R([a,b])f \in \mathfrak{R} \big( [a, b] \big), then it is bounded. Therefore, we can always find a closed interval [m,M]⊆R[m, M] \subseteq \mathbb{R} such that f([a,b])⊆[m,M]f([a, b]) \subseteq [m, M]. The only requirement of the theorem is that, the continuous function gg is defined over some of such intervals.

Proof. Consider a given ε>0\varepsilon > 0.

Since gg is continuous on [m,M][m, M], there exists K≐sup⁡t∈[m,M]∣g(t)∣K \doteq \sup_{t \in [m, M]} | g(t) |. Further, it is uniformly continuous on [m,M][m, M]. Hence,

∃δ∈(0,ε), s.t.∣g(s)−g(t)∣<ε,∀s,t∈[m,M]:∣s−t∣≤δ. \exists \delta \in (0, \varepsilon), \, \quad \text{s.t.} | g(s) - g(t) | < \varepsilon, \quad \forall s, t \in [m, M] : |s - t| \le \delta.

Since f∈R([a,b])f \in \mathfrak{R} \big( [a, b] \big), there is a partition P={x0,x1,…,xn}P = \{ x_0 , x_1 , \ldots, x_n \} of [a,b][a, b] such that

U(P,f)−L(P,f)<δ2. U(P,f) - L(P,f) < \delta^2.

Let

Mi≐sup⁡x∈[xi−1,xi]f(x),mi≐inf⁡x∈[xi−1,xi]f(x),Mi∗≐sup⁡x∈[xi−1,xi]h(x),mi∗≐inf⁡x∈[xi−1,xi]h(x). M_i \doteq \sup_{x \in [x_{i - 1}, x_i]} f(x), \qquad m_i \doteq \inf_{x \in [x_{i - 1}, x_i]} f(x), \\ M_i^* \doteq \sup_{x \in [x_{i - 1}, x_i]} h(x), \qquad m_i^* \doteq \inf_{x \in [x_{i - 1}, x_i]} h(x).

Clearly it holds that ∣Mi∗∣≤K|M_i^*| \le K and ∣mi∗∣≤K|m_i^*| \le K. Define

A≐{i∈[n]:Mi−mi<δ},B≐{i∈[n]:Mi−mi≥δ}. A \doteq \{ i \in [n]: M_i - m_i < \delta \}, \quad B \doteq \{ i \in [n]: M_i - m_i \ge \delta \}.

Then we have

  • ∀i∈A\forall i \in A, Mi∗−mi∗≤εM_i^* - m_i^* \le \varepsilon, and
  • ∑i∈BΔxi≤δ\sum_{i \in B} \Delta x_i \le \delta since
δ2>∑i∈B(Mi−mi)Δxi≥δ∑i∈BΔxi. \delta^2 > \sum_{i \in B} (M_i - m_i) \Delta x_i \ge \delta \sum_{i \in B} \Delta x_i.

It follows that

U(P,h)−L(P,h)=∑i∈A(Mi∗−mi∗)Δxi+∑i∈B(Mi∗−mi∗)Δxi≤ε⋅(b−a)+2⋅K⋅δ<ε⋅[b−a+2⋅K]. \begin{aligned} U(P, h)- L(P, h) &= \sum_{i \in A} (M_i^* - m_i^*) \Delta x_i + \sum_{i \in B} (M_i^* - m_i^*) \Delta x_i \\ &\le \varepsilon \cdot (b - a) + 2 \cdot K \cdot \delta \\ &< \varepsilon \cdot [b - a + 2 \cdot K]. \end{aligned}

□\square

Corollary. If f1,f2∈R([a,b])f_1, f_2 \in \mathfrak{R} \big( [a, b] \big), then

  1. f1⋅f2∈R([a,b])f_1 \cdot f_2\in \mathfrak{R} \big( [a, b] \big);
  2. ∣f1∣∈R([a,b])|f_1|\in \mathfrak{R} \big( [a, b] \big) and
∣∫abf1 dx∣≤∫ab∣f1∣ dx. \left| \int _{a}^{b} f_1 \, dx \right| \le \int_{a}^{b} | f_1 | \, dx.

Proof. Since the square function is continuous on R\mathbb{R}, it follows that (f1+f2)2,(f1−f2)2∈R([a,b])(f_1 + f_2)^2, (f_1 - f_2)^2 \in \mathfrak{R} \big( [a, b] \big). Claim 1 follows from that 4⋅f1⋅f2=(f1+f2)2−(f1−f2)24 \cdot f_1 \cdot f_2 = (f_1 + f_2)^2 - (f_1 - f_2)^2.

Since the absolute function is continuous on R\mathbb{R}, it follows that ∣f1∣∈R([a,b])|f_1|\in \mathfrak{R} \big( [a, b] \big). The inequality follows from monotonicity of Riemann integration.

□\square

Integration of Vector-valued Functions

Let f⃗≐(f1,…,fk):[a,b]→Rk\vec{f} \doteq (f_1, \ldots , f_k): [a, b] \rightarrow \mathbb{R}^k vector-valued function. We call it Riemann integrable if for each i∈[k]i \in [k], fi∈R([a,b])f_i \in \mathfrak{R} \big( [a, b] \big). In this case, we write

∫abf⃗ dx≐(∫abf1 dx,…,∫abfk dx). \int_a^b \vec{f} \, dx \doteq \left( \int_a^b f_1 \, dx, \ldots , \int_a^b f_k \, dx \right).

Properties

Theorem. If f⃗≐(f1,…,fk):[a,b]→Rk\vec{f} \doteq (f_1, \ldots , f_k): [a, b] \rightarrow \mathbb{R}^k is Riemann integrable, then

∥f⃗∥2≐f12+⋯+fk2∈R([a,b]). \lVert \vec{f} \rVert_2 \doteq \sqrt{f_1^2 + \cdots + f_k^2} \in \mathfrak{R} \big( [a, b] \big).

Further it holds that

∥∫abf⃗ dx∥2≤∫ab∥f⃗∥2 dx. \left\lVert \int_a^b \vec{f} \, dx \right\rVert_2 \le \int_a^b \lVert \vec{f} \rVert_2 \, dx.

Proof. Given the Riemann integrability of fif_i on [a,b][a, b] and the continuity of the square function on R\mathbb{R}, we can deduce that fi2∈R([a,b])f_i^2 \in \mathfrak{R} \big( [a, b] \big). Thus, ∥f⃗∥22∈R([a,b])\lVert \vec{f} \rVert_2^2 \in \mathfrak{R} \big( [a, b] \big).

Moreover, considering the Riemann integrability of each fif_i on the interval [a,b][a, b], we can infer that they are bounded. Hence, we can assume an upper bound MM for each fi2f_i^2.

Furthermore, since the square root function is continuous on the interval [0,M][0, M], we can conclude that ∥f⃗∥2∈R([a,b])\lVert \vec{f} \rVert_2 \in \mathfrak{R} \big( [a, b] \big).

Let y⃗=(y1,…,yk)\vec{y} = (y_1, \ldots, y_k) be a shorthand for ∫abf⃗ dx\int_a^b \vec{f} \, dx. Then

∥y⃗∥22=∑i∈[k]yi2=∑i∈[k]yi∫abfi dx=∫ab∑i∈[k]yifi dx≤∫ab∥y⃗∥2⋅∥f⃗∥2 dx \lVert \vec{y} \rVert_2^2 = \sum_{i \in [k]} y_i^2 = \sum_{i \in [k]} y_i \int_a^b f_i \, dx = \int_a^b \sum_{i \in [k]} y_i f_i \, dx \le \int_a^b \lVert \vec{y} \rVert_2 \cdot \lVert \vec{f} \rVert_2 \, dx

□\square

Reference

[1] W. Rudin, Principles of mathematical analysis, 3d ed. in International series in pure and applied mathematics. New York: McGraw-Hill, 1976.