Altanis

2.1Measurable Functions

Updated 25 Oct 2026Chapter (PDF)

Let f:X→Yf: X \to Y be any set function. Due to nice properties of the preimage, we note that f−1f^{-1} preserves almost every set-theoretic operation, including complementation, arbitrary union, and arbitrary intersection. Thus, if MY\M_Y is some σ\sigma-algebra on YY, then note f−1(MY)f^{-1}(\M_Y) is a σ\sigma-algebra on XX. From this, we consider the idea of a measurable function.

[2.1.1]Definition(Measurable Function)#

Suppose (X,MX)(X, \M_X) and (Y,MY)(Y, \M_Y) are measurable spaces. A function f:X→Yf: X \to Y is said to be measurable if, for any E∈MYE \in \M_Y, we have that f−1(N)∈MXf^{-1}(N) \in \M_X.

That is, a function is measurable if the preimage of a member of MY\M_Y lands in MX\M_X (i.e., measurable sets in YY are pulled back to measurable sets in XX). It is quick to show that the composition of measurable maps is measurable.

[2.1.2]Theorem(Characterization of Measurability in terms of Generator)#

Suppose (X,MX)(X, \M_X) and (Y,MY)(Y, \M_Y) are measurable spaces, with MY\M_Y generated by E\mathcal{E}. Let f:X→Yf: X \to Y be any map of sets. Then ff is measurable if and only if f−1(E)∈MXf^{-1}(E) \in \M_X for every E∈EE \in \mathcal{E}.

Proof.

The forward direction is trivial. As for the backward direction, note that {E⊆Y:f−1(E)∈MX}\{E \subseteq Y: f^{-1}(E) \in \M_X\} is a σ\sigma-algebra, since if f−1(E)f^{-1}(E) is an element of MX\M_X, then so are complementations/arbitrary unions/arbitrary intersections of it, which commute cleanly with f−1f^{-1}. Note this σ\sigma-algebra contains E\mathcal{E}, and so MY\M_Y is contained in it, completing the proof.

[2.1.3]Theorem(Continuous Functions are Measurable for Borel Spaces)#

Let (X,TX)(X, \Tau_X) and (Y,TY)(Y, \Tau_Y) be topological spaces, and let (X,B(X))(X, \B(X)) and (Y,B(Y))(Y, \B(Y)) be measurable spaces with the Borel σ\sigma-algebra. If a map f:X→Yf: X \to Y is continuous, then it is measurable.

Proof.

The open sets in YY generate B(Y)\B(Y), and a continuous preimage pulls open sets back to open sets.

When referring to a map from a measure space into R\bR or C\bC, we may omit the σ\sigma-algebra on the codomain. In this case, we implicitly assume the codomain takes the standard Borel σ\sigma-algebra.

[2.1.4]Definition(Borel Measurable, Lebesgue Measurable)#

A map f:R→Cf: \bR \to \bC (or f:R→Rf: \bR \to \bR) is said to be Lebesgue measurable (resp. Borel measurable) if ff is measurable when the domain is given the Lebesgue (resp. Borel) σ\sigma-algebra and the codomain is given the Borel σ\sigma-algebra.

Crucially, note that a map is said to be Borel or Lebesgue measurable only when its domain is R\bR and its codomain is either R\bR or C\bC. For a Borel measurable function, both the domain and codomain are endowed with the Borel σ\sigma-algebra. For a Lebesgue measurable function, however, the domain takes the Lebesgue σ\sigma-algebra while the codomain takes the Borel σ\sigma-algebra. This asymmetry is essential: equipping the codomain with the Lebesgue σ\sigma-algebra would make measurability far too restrictive, because the Lebesgue σ\sigma-algebra is much finer than the Borel σ\sigma-algebra.

[2.1.5]Theorem#

Let (X,MX)(X, \M_X) be a measurable space, and let f:X→Rf: X \to \bR be a map. The following statements are equivalent.

  1. ff is measurable.

  2. f−1((a,∞))f^{-1}( (a, \infty) ) and f−1((−∞,a))f^{-1}( (-\infty, a) ) lie in MX\M_X for every a∈Ra \in \bR.

  3. f−1([a,∞))f^{-1}( [a, \infty) ) and f−1((−∞,a])f^{-1}( (-\infty, a] ) lie in MX\M_X for every a∈Ra \in \bR.

Proof.

This follows immediately from open and closed rays generating the Borel σ\sigma-algebra on R\bR, together with the characterization of measurable functions in terms of generators of the codomain's σ\sigma-algebra.

Recall that, for a family of measurable spaces {(Yλ,Mλ)}λ∈Λ\{(Y_\lambda, \M_\lambda)\}_{\lambda \in \Lambda}, we can endow the Cartesian product Y=∏λ∈ΛYλY = \prod_{\lambda \in \Lambda} Y_\lambda with a canonical σ\sigma-algebra called the product σ\sigma-algebra, generated by all sets of the form

{πλ−1(Eλ):Eλ∈Mλ}λ∈Λ.\{\pi_\lambda^{-1}(E_\lambda): E_\lambda \in \M_\lambda\}_{\lambda \in \Lambda}.

By construction, we note that all projection maps πλ:Y→Yλ\pi_\lambda: Y \to Y_\lambda are measurable when giving YY this σ\sigma-algebra. More notably, this is the coarsest (smallest) σ\sigma-algebra that makes the projection maps measurable. This very closely mirrors the product topology, in the fact that the product topology on YY is the coarsest topology that makes πλ\pi_\lambda continuous.

We can generalize this construct to an arbitrary set XX and maps fλ:X→Yλf_\lambda: X \to Y_\lambda for each λ\lambda. There is a coarsest σ\sigma-algebra on XX that makes each fλf_\lambda measurable, called the initial σ\sigma-algebra. Like the product σ\sigma-algebra, it is generated by

{fλ−1(Eλ):Eλ∈Mλ}λ∈Λ.\{f_\lambda^{-1}(E_\lambda): E_\lambda \in \M_\lambda\}_{\lambda \in \Lambda}.

We can therefore reframe the product σ\sigma-algebra as simply being the initial σ\sigma-algebra on the Cartesian product relative to its canonical projection maps.

This connection bridges the gap between our set-theoretic construction and the categorical product in Meas\Meas. Just as in categories like Set\Set, Top\Top, or Grp\Grp, a family of maps fλ:X→Yλf_\lambda: X \to Y_\lambda induces a unique set-theoretic map f:X→∏λ∈ΛYλf: X \to \prod_{\lambda \in \Lambda} Y_\lambda given component-wise by x↦(fλ(x))λ∈Λx \mapsto (f_\lambda(x))_{\lambda \in \Lambda}. This is the unique map such that the following diagram commutes for every λ∈Λ\lambda \in \Lambda.

For the product space to truly satisfy the universal property in Meas\Meas, we just need to guarantee that this unique set map ff perfectly preserves our measure-theoretic structure. Phrased differently: if XX already has a σ\sigma-algebra, testing whether that σ\sigma-algebra contains the initial σ\sigma-algebra for {fλ}\{f_\lambda\} should be completely equivalent to testing whether ff is measurable.

[2.1.6]Theorem(Universal Property of the Product in Meas\Meas)#

Suppose {(Yλ,Mλ)}λ∈Λ\{(Y_\lambda, \M_\lambda)\}_{\lambda \in \Lambda} is a family of measurable spaces, and Y=∏λ∈ΛYλY = \prod_{\lambda \in \Lambda} Y_\lambda is the product together with the product σ\sigma-algebra. Then a map f:X→Yf: X \to Y is measurable if and only if fλ=πλ∘ff_\lambda = \pi_\lambda \circ f is measurable for each λ∈Λ\lambda \in \Lambda.

Proof.

This is immediate by the commutativity of the product diagram and the generation of the product σ\sigma-algebra. The forward direction holds because the composition of measurable maps (πλ∘f\pi_\lambda \circ f) is measurable. Conversely, if each fλf_\lambda is measurable, the preimage of any generating set πλ−1(Eλ)\pi_\lambda^{-1}(E_\lambda) of MY\M_Y satisfies f−1(πλ−1(Eλ))=fλ−1(Eλ)∈MXf^{-1}(\pi_\lambda^{-1}(E_\lambda)) = f_\lambda^{-1}(E_\lambda) \in \M_X, making ff measurable.

Note that a map f:X→Cf: X \to \bC can be factored into real and imaginary parts. Indeed, writing f=x+iyf = x + iy, we can write ℜ(f)=x\Re(f) = x and ℑ(f)=y\Im(f) = y.

[2.1.7]Theorem#

Let (X,M)(X, \M) be a measure space. A map f:X→Cf: X \to \bC is measurable if and only if ℜ(f)\Re(f) and ℑ(f)\Im(f) are measurable.

Proof.

Note that C\bC and R2\bR^2 are homeomorphic, and so B(C)≅B(R2)\B(\bC) \cong \B(\bR^2). Note that B(R2)=B(R)⊗B(R)\B(\bR^2) = \B(\bR) \otimes \B(\bR), so B(C)≅B(R)⊗B(R)\B(\bC) \cong \B(\bR) \otimes \B(\bR). Then consider the projection maps πreal:C→R\pi_{\text{real}}: \bC \to \bR and πimaginary:C→R\pi_{\text{imaginary}}: \bC \to \bR, and note ff is measurable if and only if ℜ(f)=πreal∘f\Re(f) = \pi_{\text{real}} \circ f and ℑ(f)=πimaginary∘f\Im(f) = \pi_{\text{imaginary}} \circ f are.

Note that R\bR has a standard topology encoded by the metric ρ(x,y)=∣arctan⁡(x)−arctan⁡(y)∣\rho(x, y) = |\arctan(x) - \arctan(y)|. Conveniently, we find that E∈B(R‾)E \in \B(\bar{\bR}) if and only if E∩R∈B(R)E \cap \bR \in \B(\bR).

[2.1.8]Theorem(Measurability of Combination of Functions)#

Suppose f,g:X→Cf, g: X \to \bC are measurable functions. Then so are f+gf + g and f⋅gf \cdot g (pointwise multiplication).

This theorem works for codomain R‾\bar{\bR} (and, consequently, R\bR), making sure indeterminate expressions like ∞−∞\infty - \infty don't arise. Note that, in R‾\bar{\bR}, we take 0×∞=00 \times \infty = 0: this will be a useful convention to take in measure theory.

[2.1.9]Theorem#

Let (X,M)(X, \M) be a measure space. Suppose (fk)k=1∞(f_k)_{k = 1}^\infty is a sequence of measurable functions fk:X→Rf_k: X \to \bR. Then note

g1(x)=sup⁡k∈Z+{fk(x)}g2(x)=lim sup⁡k→∞{fk(x)}g_1(x) = \sup_{k \in \bZ_+} \{f_k(x)\} \quad g_2(x) = \limsup_{k \to \infty} \{f_k(x)\}

are measurable, and same with infimum counterparts.

Note that the supremum is taken over R‾\bar{\bR}, so any nonempty subset of R‾\bar{\bR} has a supremum. Also recall how the lim sup⁡\limsup of a set of extended reals is defined. For any sequence of extended reals (xn)n=1∞(x_n)_{n = 1}^\infty, we may define the tails Sn={xk:k>n}S_n = \{x_k: k > n\}. Then note sup⁡(Sn)\sup(S_n) exists for each n∈Z+n \in \bZ_+, and this forms a sequence of extended reals that ends up being monotonically decreasing (since removing elements removes potential suprema of the sequence). Like how we define the limit of a decreasing sequence of sets to be its intersection, we define the limit superior to be the infimum of the terms in this sequence. Namely,

lim sup⁡n→∞xn=lim⁡k→∞sup⁡n≥kxn=inf⁡k≥1(sup⁡n≥kxn).\limsup_{n \to \infty} x_n = \lim_{k \to \infty} \sup_{n \ge k} x_n = \inf_{k \ge 1} \left( \sup_{n \ge k} x_n \right).

From real analysis, there are several interpretations of the limit superior of a sequence. The two common ones are that the limit superior is the greatest of all subsequential limits, and another is that it is the least of all upper bounds of the sequence.

[2.1.10]Corollary#

If {fk}k=1∞\{f_k\}_{k = 1}^\infty is a sequence of measurable functions that converges to ff pointwise, then ff is measurable.

Proof.

Note that f(x)=lim sup⁡k→∞{fk(x)}f(x) = \limsup_{k \to \infty} \{f_k(x)\}.

[2.1.11]Corollary#

If f,g:X→R‾f, g: X \to \bar{\bR} are measurable, then so are max⁡{f,g}\max\{f, g\} and min⁡{f,g}\min\{f, g\}.

[2.1.12]Corollary#

If {fk}k=1∞\{f_k\}_{k = 1}^\infty is a sequence of complex-valued measurable functions that converges pointwise to ff, then ff is measurable.

Proof.

Note {ℜ(fk)}k=1∞\{\Re(f_k)\}_{k = 1}^\infty and {ℑ(fk)}k=1∞\{\Im(f_k)\}_{k = 1}^\infty are sequences of real-valued measurable functions that converge pointwise to ℜ(f)\Re(f) and ℑ(f)\Im(f), and so they are measurable. Thus ff is measurable.

[2.1.13]Definition(Sign Decomposition of Function)#

Suppose f:X→R‾f: X \to \bar{\bR} is a function. Then we define the positive and negative parts of the function by

f+=max⁡(f(x),0)andf−=max⁡(−f(x),0),f^+ = \max(f(x), 0) \quad \text{and} \quad f^- = \max(-f(x), 0),

such that f=f+−f−f = f^+ - f^-.

[2.1.14]Definition(Polar Decomposition of Function)#

Suppose f:X→Cf: X \to \bC is a function. Then we note its polar decomposition is given by

f(x)=sgn(f(x))×∣x∣.f(x) = \sgn(f(x)) \times |x|.

Note that if a function is measurable, then its summands in the sign decomposition and the factors in the polar decomposition are also measurable.

[2.1.15]Definition(Indicator Function)#

Let XX be a set. Then, for any E⊆XE \subseteq X, we may define the indicator function 1E:X→R1_E: X \to \bR such that

1E(x)={1x∈E,0x∉E.1_E(x) = \begin{cases} 1 & x \in E, \\ 0 & x \notin E. \end{cases}

For a measure space (X,M)(X, \M), note that indicator functions 1E1_E are measurable if and only if E∈ME \in \M. Indeed, if 1E1_E is measurable, then note {1}∈B(R)\{1\} \in \B(\bR), and so 1E−1({1})=E∈M1_E^{-1}(\{1\}) = E \in \M as desired. Moreover, note the preimage of Borel sets in R\bR are either {}\{\} or EE: if E∈ME \in \M, then 1E1_E is measurable.

[2.1.16]Definition(Simple Function)#

Let (X,M)(X, \M) be a measurable space. A function f:X→Cf: X \to \bC (or R\bR) is a simple function if it can be written as a linear combination of characteristic functions of measurable sets. That is,

f=∑k=1nck1Ek,f = \sum_{k=1}^n c_k 1_{E_k},

where ck∈Cc_k \in \bC and Ek∈ME_k \in \M.

Equivalently, a function ff is simple if and only if it is measurable and its image im⁡(f)\im(f) is finite.

Indeed, if ff is simple, we may write f=∑k=1nck1Ekf = \sum_{k=1}^n c_k 1_{E_k} by definition. Then it is a finite sum of measurable functions and thus measurable. Furthermore, the sets E1,…,EnE_1, \dots, E_n partition XX into at most 2n2^n disjoint regions of intersection, meaning ff takes at most 2n2^n distinct values. Conversely, suppose ff is measurable and im⁡(f)\im(f) is a finite set, say {z1,…,zm}\{z_1, \dots, z_m\}. Because singletons are closed (and therefore Borel) sets, and ff is measurable, the preimage Ek=f−1({zk})E_k = f^{-1}(\{z_k\}) is a measurable set in XX for each kk. We can therefore write f=∑k=1mzk1Ekf = \sum_{k=1}^m z_k 1_{E_k}, proving it is a simple function.

This latter construction gives us a canonical way to write simple functions. By using the preimages of the function's values, we guarantee the sets are disjoint.

[2.1.17]Definition(Standard Representation)#

Let f:X→Cf: X \to \bC be a simple function with distinct values im⁡(f)={z1,…,zn}\im(f) = \{z_1, \dots, z_n\}. Let Ek=f−1({zk})E_k = f^{-1}(\{z_k\}). The sets EkE_k partition the domain into a disjoint union X=E1⊔⋯⊔EnX = E_1 \sqcup \cdots \sqcup E_n. The expression

f=∑k=1nzk1Ekf = \sum_{k=1}^n z_k 1_{E_k}

is called the standard representation of ff.

While an arbitrary representation of a simple function might use overlapping sets EkE_k, the standard representation is unique and ensures the sets EkE_k are pairwise disjoint. Note that we may write 0×1Ek0 \times 1_{E_k} explicitly as a summand in the standard representation: even though it has zero contribution to the sum, we will see that EkE_k may be important to consider when doing operations on a simple function. Also, it is quick to show that if ff and gg are simple, then so are f+gf + g and f⋅gf \cdot g.

A utility of simple functions is that they help us approximate measurable functions.

[2.1.18]Theorem(Approximation of Measurable Function by Simple Functions)#

Let (X,M)(X, \M) be a measurable space.

  1. Let f:X→[0,∞]f: X \to [0, \infty] be measurable. Then there is a sequence of simple functions (φk)k=1∞(\phi_k)_{k = 1}^\infty such that 0≤φ1≤φ2≤⋯≤f0 \le \phi_1 \le \phi_2 \le \cdots \le f, φk→f\phi_k \to f pointwise, and φk∣E→f∣E\phi_k|_E \to f|_E uniformly for any E⊆XE \subseteq X that ff is bounded on.

  2. Let f:X→Cf: X \to \bC be measurable. Then there is a sequence of simple functions (φk)k=1∞(\phi_k)_{k = 1}^\infty such that 0≤∣φ1∣≤∣φ2∣≤⋯≤∣f∣0 \le |\phi_1| \le |\phi_2| \le \cdots \le |f|, φk→f\phi_k \to f pointwise, and φk∣E→f∣E\phi_k|_E \to f|_E uniformly for any E⊆XE \subseteq X that ff is bounded on.

We do not provide a full-fledged proof for this theorem because I'm lazy. However, we explain the procedure to construct the sequence that makes (1) true. Noting that the codomain of ff is [0,∞][0,\infty], we can construct intervals in R\bR as usual.

For step k=1k = 1, we set a maximum ceiling of 21=22^1 = 2 and a step height of 2−1+1=12^{-1 + 1} = 1. We partition the interval [0,2)[0, 2) into the dyadic subintervals [0,1)[0, 1) and [1,2)[1, 2).

Because ff is measurable, the preimages of these subintervals are well-behaved, measurable sets in XX. To construct our simple function φ1\phi_1, we look at f(x)f(x) for each x∈Xx \in X. It either lands in one of these subintervals, or it is ≥2\ge 2. If it lands in a subinterval, we “round down” and define φ1(x)\phi_1(x) to be the bottom endpoint of that interval. If f(x)≥2f(x) \ge 2, we cap it at 22.

We construct the whole simple function by scaling the indicator function of each preimage set by its corresponding rounded-down value, and adjoining them.

φ1=0⋅1f−1([0,1))+1⋅1f−1([1,2))+2⋅1f−1([2,∞]).\phi_1 = 0 \cdot 1_{f^{-1}([0,1))} + 1 \cdot 1_{f^{-1}([1,2))} + 2 \cdot 1_{f^{-1}([2,\infty])}.

For a general step kk, we partition [0,2k)[0, 2^k) into intervals of width 2−k+12^{-k + 1}. We pull these back via f−1f^{-1} to get our measurable sets, scale their indicator functions by the bottom of each interval, and cap anything above 2k2^k at 2k2^k. This gives us our function φk\phi_k.

φk=∑j=022k−1−1j2−k+11f−1([j2−k+1,(j+1)2−k+1))+2k1f−1([2k,∞]).\phi_k = \sum_{j = 0}^{2^{2k - 1} - 1} j2^{-k + 1} 1_{f^{-1}([j2^{-k + 1}, (j + 1)2^{-k + 1}))} + 2^k 1_{f^{-1}([2^k,\infty])}.

From this, we note that our sequence is monotonically increasing and approaches ff from below. Going from step kk to k+1k + 1 pushes the ceiling higher and bisects the previous subintervals. If an interval like [0,1/2)[0, 1/2) is split into [0,1/4)[0, 1/4) and [1/4,1/2)[1/4, 1/2), rounding down on this finer grid yields a value that is either the exact same or strictly greater than before. Moreover, since we round down, our simple function is always less than ff. Hence, 0≤φ1≤φ2≤⋯≤f0 \le \phi_1 \le \phi_2 \le \cdots \le f.

If f(x)f(x) is finite, the expanding ceiling 2k2^k will eventually surpass it. Once caught beneath the ceiling, f(x)f(x) is trapped in a subinterval of width 2−k+12^{-k + 1}. Because we rounded down to the bottom of this interval, the error f(x)−φk(x)f(x) - \phi_k(x) is strictly less than the interval's width, 2−k+12^{-k + 1}. As k→∞k \to \infty, 2−k+1→02^{-k + 1} \to 0, forcing φk→f\phi_k \to f pointwise. In fact, this same estimate gives uniform convergence on any set where ff is bounded. If E⊆XE \subseteq X and f(x)≤Mf(x) \le M for every x∈Ex \in E, then once kk is large enough that 2k>M2^k > M, every f(x)f(x) with x∈Ex \in E has been caught beneath the ceiling, and so

0≤f(x)−φk(x)<2−k+10 \le f(x) - \phi_k(x) < 2^{-k + 1}

for every x∈Ex \in E. Thus

sup⁡x∈E∣f(x)−φk(x)∣≤2−k+1→0,\sup_{x \in E} |f(x) - \phi_k(x)| \le 2^{-k + 1} \to 0,

so φk∣E→f∣E\phi_k|_E \to f|_E uniformly.

If f(x)f(x) is infinite, then our upper bound 2k→∞2^k \to \infty as k→∞k \to \infty, so φk(x)=2k→∞=f(x)\phi_k(x) = 2^k \to \infty = f(x). We obviously lose uniform convergence, however.

Finally, note that (b)(b) falls out quickly by writing f(x)=u(x)+iv(x)f(x) = u(x) + iv(x) and applying the results to uu and vv.

[2.1.19]Theorem#

Suppose (X,M‾,μ‾)(X, \bar{\M}, \bar{\mu}) is a complete measure space.

  1. If ff is measurable and f=gf = g a.e., then gg is measurable.

  2. If fnf_n is measurable for each n∈Z+n \in \bZ_+ and fn→ff_n \to f a.e., then ff is measurable.

[2.1.20]Theorem#

Let (X,M,μ)(X, \M, \mu) be a measure space, and let (X,M‾,μ‾)(X, \bar{\M}, \bar{\mu}) be its completion. If ff is a measurable function relative to M‾\bar{\M}, then there is some function gg that is measurable relative to M\M such that f=gf = g μ‾\bar{\mu}-almost everywhere.

Exercises#

[2.1.21]Problem#

Let (X,M,μ)(X, \M, \mu) be a measure space. Suppose fk:X→Rf_k: X \to \bR is a sequence of measurable functions. Show that

S={x∈X:lim⁡n→∞fn(x) exists}S = \{x \in X : \lim_{n \to \infty} f_n(x) \text{ exists} \}

is a measurable set.

Proof.

Let g(x)=lim inf⁡n→∞fn(x)g(x) = \liminf_{n \to \infty} f_n(x) and let h(x)=lim sup⁡n→∞fn(x)h(x) = \limsup_{n \to \infty} f_n(x). Note that x∈Sx \in S if and only if lim⁡n→∞fn(x)\lim_{n \to \infty} f_n(x) exists, or equivalently when g(x)=h(x)g(x) = h(x). Thus write S={x∈R:g(x)=h(x)}S = \{x \in \bR: g(x) = h(x)\}. Note that g(x)=h(x)g(x) = h(x) if and only if (g−h)(x)=0(g - h)(x) = 0, and so S=(g−h)−1({0})S = (g - h)^{-1}(\{0\}). Since gg and hh are measurable functions, so is g−hg - h. Note {0}\{0\} is Borel, so by measurability of g−hg - h, note SS is measurable, completing the proof.