Lebesgue Integrals of Step Functions
Building the Lebesgue Integral from Simple Functions
The Lebesgue integral is built in stages. It begins with functions whose values are easy to manage, assigns an integral to those functions, and then uses approximation to define integrals for much more general functions. The key ingredients are a way to measure subsets of a domain and a way to organize the values of a function.
Measure spaces and measurable functions
A measure space is a triple (X,A,μ):
- X is a set, which serves as the domain.
- A is a sigma algebra of subsets of X. It specifies which subsets are measurable. A sigma algebra is closed under complements and countable unions.
- μ is a measure, a function that assigns each set in A a size in [0,∞].
The measure is allowed to take the value ∞. This matters because a measurable set need not have finite size.
A function f from X to the real numbers is measurable when it respects the measurable structure on both sides. The real numbers are equipped with the Borel sigma algebra, and measurability means that for every Borel set E⊆R, the preimage
f−1(E)={x∈X:f(x)∈E}belongs to A. In practical terms, measurable functions have level sets that the measure can handle.
The goal is to define an integral for measurable functions on such an abstract space. Since arbitrary measurable functions may be complicated, the construction starts with simpler ones.
Indicator functions: the first building block
For a measurable set A∈A, its indicator function is
1A(x)={1,0,x∈A,x∈/A.This function records membership in A: it is 1 on the set and 0 elsewhere. It is measurable because the sets on which it takes its possible values are measurable.
The natural integral of an indicator function should be the measure of the set it indicates:
∫X1Adμ=μ(A).Why is this the right choice? In the familiar picture of area under a graph, the function has height 1 over A and height 0 outside it. The area contributed by the graph is therefore the size of A. In an abstract measure space, “area” is replaced by the measure μ, but the same idea remains: height 1 over a set contributes exactly the measure of that set.
This gives the basic rule from which the integral of more complicated functions will be assembled.
Simple functions and their integrals
A simple function is a measurable function that takes only finitely many values. It can be written as a finite sum of indicator functions multiplied by constants:
f=i=1∑nci1Ai,where each Ai is measurable and each ci is a real number.
Each term describes one contribution to the function: the coefficient ci is the height, and Ai is the set over which that height is applied. The graph can be pictured as a finite collection of flat pieces, like a staircase. The sets need not be disjoint in every representation, but disjoint pieces often make the picture easier to interpret.
For a nonnegative simple function, the integral is defined by adding the contributions from its pieces:
∫Xfdμ=i=1∑nciμ(Ai),when the representation uses nonnegative coefficients ci. Each product is the “height times base size” of one piece, and the sum gives the total.
A useful alternative description is that a simple function has finitely many values. For a nonnegative simple function, its domain can be divided into the measurable sets on which each value occurs. That level-set description provides a representation with nonnegative heights.
Why the definition does not depend on the representation
The same simple function can be written in more than one way. For example, a set might be split into smaller measurable pieces, or a level set might be described using a different combination of sets. The formula for the integral is still well-defined: every valid nonnegative representation gives the same result.
The reason is that changing the representation only subdivides or reorganizes the same function’s contributions. It does not change the total height-weighted measure. This is analogous to dividing a rectangle into smaller rectangles: the pieces may look different, but their total area remains unchanged.
What happens when a set has infinite measure?
If some Ai has infinite measure, then a positive contribution ciμ(Ai) can be infinite. For instance, a positive height over a set of infinite measure contributes ∞.
The difficulty arises if negative coefficients are also allowed. A formula could then involve both a positive infinite contribution and a negative infinite contribution. Their sum is not defined, so this would not give a reliable integral.
There are two ways to avoid that difficulty:
- Restrict attention to simple functions supported on sets of finite measure.
- Restrict attention to nonnegative simple functions.
The Lebesgue integral is built using the second approach. All contributions then have the same sign, so an infinite result is meaningful. In the standard convention, a zero-height contribution over a set of infinite measure is taken to contribute 0.
The collection of nonnegative simple functions is often denoted by S+. It is closed under addition and multiplication by nonnegative constants, though not by negative constants. This is why it behaves like a “half-space” rather than a full vector space.
For nonnegative simple functions, the integral is the sum of nonnegative height-times-measure contributions, so the result is always in [0,∞].
Think About It: If a nonnegative function has height 3 on a set of measure 5, what contribution does that piece make to its integral?
Basic properties of the simple-function integral
The formula for the integral immediately gives two important properties.
Additivity and nonnegative scaling
For nonnegative simple functions f and g, and nonnegative constants α and β,
∫X(αf+βg)dμ=α∫Xfdμ+β∫Xgdμ.This is linearity restricted to nonnegative scalars. The restriction matters because the construction is currently focused on nonnegative functions, where infinite contributions do not conflict with negative ones.
Monotonicity
If f(x)≤g(x) for every x∈X, then
∫Xfdμ≤∫Xgdμ.This property is called monotonicity. It matches the geometric intuition: if one nonnegative graph is never above another, it cannot enclose more area. Monotonicity is also the main tool for extending the integral from simple functions to general nonnegative measurable functions.
Approximating general functions from below
A general nonnegative measurable function may take infinitely many values, so it is not itself simple. To define its integral, simple functions are used to approximate it.
Suppose f:X→[0,∞] is measurable. A nonnegative simple function h is an approximation from below when
h(x)≤f(x)for every x∈X.The function h has only finitely many heights, while f may have infinitely many. One way to imagine constructing h is to divide the nonnegative vertical axis into ranges of values. For each range, collect the points in X where f takes values in that range, then assign a suitable lower height on those points. This produces a finite-valued function that stays at or below f.
Because h≤f, monotonicity suggests that the integral of h should not exceed the integral of f. A more refined approximation can capture more of the area beneath f, so its integral can move closer to the desired value.
The Lebesgue integral of a nonnegative measurable function is defined as the supremum of the integrals of all nonnegative simple functions lying below it:
∫Xfdμ=sup{∫Xhdμ:h∈S+, h≤f}.The supremum is the least upper bound of the indicated collection of values. Since all the values are nonnegative, the result is in [0,∞]; it may be finite or infinite.
This definition explains the central approximation idea: simple functions provide manageable lower estimates, and the integral of f is the best value reached by taking the supremum over all such estimates.
Think About It: Why does the definition use simple functions below f, rather than simple functions that may sometimes lie above it?
Integrability and the role of the measure space
A nonnegative measurable function is called μ-integrable when its integral is finite:
∫Xfdμ<∞.A function can be measurable without being integrable: measurability ensures that the construction applies, while integrability says that the resulting value is not infinite.
The construction works on an abstract measure space because it does not require ordinary lengths or areas on the domain. It needs only the measure μ of the relevant measurable subsets of X. The ordering used to approximate the function comes from its real-valued outputs: those values can be divided into ranges and compared from below. The domain itself need not have a geometric axis or an order.
The usual notation makes the measure explicit:
∫Xfdμ.Here, X indicates the domain, f is the function being integrated, and dμ indicates that the integration uses the measure μ. When a variable is useful, the same integral may be written as
∫Xf(x)dμ(x).Comprehensive review
The Lebesgue integral is built from a small number of connected ideas:
- A measure space (X,A,μ) provides a domain, its measurable sets, and a way to measure those sets.
- A measurable function has measurable preimages of Borel sets, allowing the measure to be applied to the function’s level sets.
- An indicator function represents one measurable set, and its integral is defined to be the measure of that set.
- A simple function combines finitely many indicator functions, so its integral is computed by summing height-times-measure contributions.
- Nonnegative simple functions avoid the ambiguity that could arise from combining positive and negative infinite contributions.
- A general nonnegative measurable function is approximated from below by nonnegative simple functions.
- Its integral is the supremum of the integrals of all such approximations, and the function is integrable when that supremum is finite.
In this way, a complicated integral is defined using simpler integrals that can be computed directly. The measure describes the size of the parts of the domain, while the function’s values describe the heights assigned to those parts.

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