Formally, a simple function is a finite linear combination of indicator functions of measurable sets. More precisely, let (X, Σ) be a measurable space. Let A1, ..., An ∈ Σ be a sequence of disjoint measurable sets, and let a1, ..., an be a sequence of real or complex numbers. A simple function is a function f : X → C {\displaystyle f\colon X\to \mathbb {C} } of the form
where 1 A {\displaystyle {\mathbf {1} }_{A}} is the indicator function of the set A.
The sum, difference, and product of two simple functions are again simple functions, and multiplication by constant keeps a simple function simple; hence it follows that the collection of all simple functions on a given measurable space forms a commutative algebra over C {\displaystyle \mathbb {C} } .
If a measure μ {\displaystyle \mu } is defined on the space ( X , Σ ) {\displaystyle (X,\Sigma )} , the integral of a simple function f : X → R {\displaystyle f\colon X\to \mathbb {R} } with respect to μ {\displaystyle \mu } is defined to be
if all summands are finite.
The above integral of simple functions can be extended to a more general class of functions, which is how the Lebesgue integral is defined. This extension is based on the following fact.
It is implied in the statement that the sigma-algebra in the co-domain R + {\displaystyle \mathbb {R} ^{+}} is the restriction of the Borel σ-algebra B ( R ) {\displaystyle {\mathfrak {B}}(\mathbb {R} )} to R + {\displaystyle \mathbb {R} ^{+}} . The proof proceeds as follows. Let f {\displaystyle f} be a non-negative measurable function defined over the measure space ( X , Σ , μ ) {\displaystyle (X,\Sigma ,\mu )} . For each n ∈ N {\displaystyle n\in \mathbb {N} } , subdivide the co-domain of f {\displaystyle f} into 2 2 n + 1 {\displaystyle 2^{2n}+1} intervals, 2 2 n {\displaystyle 2^{2n}} of which have length 2 − n {\displaystyle 2^{-n}} . That is, for each n {\displaystyle n} , define
which are disjoint and cover the non-negative real line ( R + ⊆ ∪ k I n , k , ∀ n ∈ N {\displaystyle \mathbb {R} ^{+}\subseteq \cup _{k}I_{n,k},\forall n\in \mathbb {N} } ).
Now define the sets
which are measurable ( A n , k ∈ Σ {\displaystyle A_{n,k}\in \Sigma } ) because f {\displaystyle f} is assumed to be measurable.
Then the increasing sequence of simple functions
converges pointwise to f {\displaystyle f} as n → ∞ {\displaystyle n\to \infty } . Note that, when f {\displaystyle f} is bounded, the convergence is uniform.
Bochner measurable function