Lebesgue Integrals of Step Functions
The Lebesgue Integral for Simple and Nonnegative Functions
Measure spaces and measurable functions
A measure space is a triple (X,A,μ):
X is a set, which need not have any particular structure.
A is a σ-algebra of subsets of X. Its members are the measurable sets.
μ:A→[0,∞] is a measure, assigning each measurable set a nonnegative size, possibly infinite.
A function f:X→R is measurable when the preimage of every Borel set in R belongs to A. In symbols,
The Lebesgue integral is developed first for particularly simple measurable functions, then extended to more general nonnegative measurable functions.
Indicator functions
For a measurable set A∈A, its indicator function (also called its characteristic function) is
This function is measurable. Geometrically, it has height 1 over A and height 0 outside A. Its integral should therefore represent the size of the set A:
This identity is the starting point for defining the integral of more complicated functions. It also works when μ(A)=∞.
The area-under-a-graph picture remains a useful guide, but on an abstract measure space the measure μ plays the role of size along the domain. The set X does not need to be a line or have a notion of length.
Simple functions
A simple function is a measurable function taking only finitely many values. It can be represented as a finite sum of indicator functions with constant coefficients.
A standard representation uses pairwise disjoint measurable sets:
where each Ai∈A and each ci∈R. Pairwise disjointness means that no point of X belongs to more than one of the sets Ai. Any unused part of X corresponds to the value 0.
The sets can be taken to be the level sets on which f has each of its finitely many values. Since f is measurable, these sets are measurable. The resulting function is measurable because it is a finite combination of measurable indicator functions.
The importance of disjoint sets
For the familiar formula for integrating a simple function, the sets Ai should be disjoint. If an expression uses overlapping sets, its terms cannot simply be integrated separately as though the sets did not overlap: points in the overlap contribute to more than one term. An overlapping representation can first be refined into disjoint measurable pieces, with the function’s value on each piece determined by the sum of the coefficients there.
This disjoint-set representation makes the integral independent of how the domain is subdivided.
Integrating simple functions
For a nonnegative simple function represented on disjoint measurable sets,
define its integral by
Each term is the function’s height on a set multiplied by that set’s measure. In the area analogy, this is the area of a rectangle. The total integral is the sum of the contributions from all the pieces.
This definition allows the integral to be +∞. Restricting the coefficients to be nonnegative avoids indeterminate expressions such as adding a positive infinite contribution to a negative infinite one. The integral of a nonnegative simple function is therefore in [0,∞].
The definition is well-defined: refining or rearranging a disjoint partition does not change the resulting sum. Splitting one measurable set into smaller disjoint pieces preserves its total measure by additivity, so it also preserves the integral.
Notation
The integral may be written as
or, when a variable is useful, as
The notation indicates that the integration is over X and is performed with respect to the measure μ.
Nonnegative simple functions
The collection of nonnegative simple functions is often denoted by S+. It is closed under addition and multiplication by nonnegative scalars, but not by arbitrary negative scalars: multiplying a nonnegative function by a negative number can produce a function outside the collection.
For nonnegative simple functions f and g, and nonnegative scalars α and β, the integral has the expected linearity property:
When integrals can be infinite, this is understood using the usual arithmetic for nonnegative extended-real values.
The integral is also monotone. If f and g are nonnegative simple functions and f(x)≤g(x) for every x∈X, then
A function that is no higher at any point cannot have a larger area or integral.
Extending the integral to nonnegative measurable functions
A general nonnegative measurable function may take infinitely many values, so it need not be simple. The key idea is to approximate it from below using nonnegative simple functions.
The real-valued range of the function can be divided into intervals. For each interval, the corresponding part of the domain is its preimage under f; measurability ensures that these preimages are measurable. Assigning a constant value to each resulting piece produces a simple function. Choosing values at or below the function’s values gives an approximation that lies below f.
As the range is divided more finely, such simple functions can provide increasingly close lower approximations. Their integrals are lower bounds for the integral of f, consistent with monotonicity.
Definition by a supremum
For a nonnegative measurable function f:X→[0,∞), define
Here h≤f means h(x)≤f(x) for every x∈X. The integral of f is the supremum of the integrals of all nonnegative simple functions lying below it.
The set of candidate integrals is nonempty because the zero function is a simple function below every nonnegative f. The supremum is taken in the extended nonnegative reals [0,∞]: it may be finite or equal to +∞.
Core idea: The Lebesgue integral of a nonnegative measurable function is defined by taking the best possible integral among all nonnegative simple functions that lie below it.
Integrability and the role of the measure space
A nonnegative measurable function is called μ-integrable when
If the integral is +∞, the function still has a Lebesgue integral in the extended sense, but it is not μ-integrable under this definition.
The construction relies on two different features of the problem:
The measure μ assigns sizes to measurable subsets of the domain X.
The real numbers have an order, allowing the values of f to be divided into intervals and allowing approximations from below.
Thus the domain can be abstract; the measure provides the notion of size there. The ordered real-valued range provides the structure used to form the simple approximations.

Ask anything
We've read this whole study set, so questions about it get the best answers.