๐Ÿงฎ Brain Teaser

The Pointwise Limit of Continuous Functions Can Be Very Wild โ€” But How Wild?

We know a pointwise limit of continuous functions need not be continuous. But here is a sharper question:

Let fn:[0,1]โ†’Rf_n : [0,1] \to \mathbb{R} be a sequence of continuous functions converging pointwise to a function f:[0,1]โ†’Rf : [0,1] \to \mathbb{R}.

Prove that the set of discontinuities of ff is a meagre set (a countable union of nowhere-dense sets), i.e., a set of first Baire category.

In particular, ff cannot be discontinuous everywhere โ€” its continuity points are dense.

Hint: Think about what pointwise convergence tells you about oscillation, and how to write the discontinuity set as a countable union.

Baire categorypointwise convergenceoscillationBaire-1 functionsmeagre sets

Answer: Pointwise Limits and Meagre Discontinuity Sets

Key Idea / Intuition

The key insight is to quantify "how bad" a discontinuity is using the oscillation of ff at a point: ff is discontinuous at xx if and only if its oscillation is positive. The oscillation can be expressed via the functions fnf_n, which are continuous, and this lets us write the discontinuity set as a countable union of closed sets, each of which turns out to be nowhere dense by a Baire-category argument. The punchline: pointwise limits of continuous functions are exactly the Baire class 1 functions, and their discontinuity sets are meagre.


Formal Proof / Solution

Step 1: Define the oscillation

For a bounded function ff on [0,1][0,1], define the oscillation of ff at xx: ฯ‰f(x)=limโกฮดโ†’0+supโกโˆฃxโˆ’yโˆฃ<ฮดโˆฃf(y)โˆ’f(z)โˆฃ.\omega_f(x) = \lim_{\delta \to 0^+} \sup_{|x-y|<\delta} |f(y) - f(z)|.

The function ff is continuous at xx if and only if ฯ‰f(x)=0\omega_f(x) = 0. So the discontinuity set is: D={xโˆˆ[0,1]:ฯ‰f(x)>0}=โ‹ƒk=1โˆž{x:ฯ‰f(x)โ‰ฅ1k}.D = \{x \in [0,1] : \omega_f(x) > 0\} = \bigcup_{k=1}^\infty \left\{x : \omega_f(x) \geq \frac{1}{k}\right\}.

It suffices to show each set Fk={x:ฯ‰f(x)โ‰ฅ1k}F_k = \{x : \omega_f(x) \geq \frac{1}{k}\} is nowhere dense.

Step 2: Each FkF_k is closed

If ฯ‰f(xn)โ‰ฅ1k\omega_f(x_n) \geq \frac{1}{k} and xnโ†’xx_n \to x, then for any ฮด>0\delta > 0, points near xnx_n (for large nn) are near xx, so the oscillation of ff in a ฮด\delta-ball around xx is also โ‰ฅ1k\geq \frac{1}{k}. Hence xโˆˆFkx \in F_k, so FkF_k is closed.

Step 3: Each FkF_k has empty interior (i.e., is nowhere dense)

Suppose for contradiction that FkF_k contains an open interval II. We derive a contradiction using the Baire Category Theorem applied to II (which is a complete metric space).

Define, for each m,nm, n: Em,n={xโˆˆI:โˆฃfj(x)โˆ’fl(x)โˆฃโ‰ค13kย forย allย j,lโ‰ฅm}.E_{m,n} = \left\{x \in I : |f_j(x) - f_l(x)| \leq \frac{1}{3k} \text{ for all } j, l \geq m\right\}.

Since the fnf_n are continuous, each Em,nE_{m,n} is closed. By pointwise convergence, for every xโˆˆIx \in I there exists mm such that โˆฃfj(x)โˆ’fl(x)โˆฃโ‰ค13k|f_j(x) - f_l(x)| \leq \frac{1}{3k} for all j,lโ‰ฅmj, l \geq m; so I=โ‹ƒm=1โˆžEm,mI = \bigcup_{m=1}^\infty E_{m,m}.

By the Baire Category Theorem, some Em0,m0E_{m_0, m_0} contains a nonempty open subinterval JโŠ‚IJ \subset I.

Step 4: On JJ, the oscillation of ff is small

For xโˆˆJx \in J, since fnโ†’ff_n \to f pointwise: โˆฃf(x)โˆ’fm0(x)โˆฃ=limโกnโ†’โˆžโˆฃfn(x)โˆ’fm0(x)โˆฃโ‰ค13k.|f(x) - f_{m_0}(x)| = \lim_{n\to\infty} |f_n(x) - f_{m_0}(x)| \leq \frac{1}{3k}.

For any xโˆˆJx \in J, since fm0f_{m_0} is continuous at xx, there exists ฮด>0\delta > 0 such that โˆฃfm0(x)โˆ’fm0(y)โˆฃโ‰ค13k|f_{m_0}(x) - f_{m_0}(y)| \leq \frac{1}{3k} for all yy with โˆฃyโˆ’xโˆฃ<ฮด|y - x| < \delta and yโˆˆJy \in J.

Then for such yy: โˆฃf(x)โˆ’f(y)โˆฃโ‰คโˆฃf(x)โˆ’fm0(x)โˆฃ+โˆฃfm0(x)โˆ’fm0(y)โˆฃ+โˆฃfm0(y)โˆ’f(y)โˆฃโ‰ค13k+13k+13k=1k.|f(x) - f(y)| \leq |f(x) - f_{m_0}(x)| + |f_{m_0}(x) - f_{m_0}(y)| + |f_{m_0}(y) - f(y)| \leq \frac{1}{3k} + \frac{1}{3k} + \frac{1}{3k} = \frac{1}{k}.

So ฯ‰f(x)โ‰ค1k\omega_f(x) \leq \frac{1}{k} for all xโˆˆJx \in J. But JโŠ‚IโŠ‚FkJ \subset I \subset F_k means ฯ‰f(x)โ‰ฅ1k\omega_f(x) \geq \frac{1}{k} for all xโˆˆJx \in J.

Step 5: Contradiction

This forces ฯ‰f(x)=1k\omega_f(x) = \frac{1}{k} exactly on JJ, but actually the inequality โ‰ค1k\leq \frac{1}{k} and โ‰ฅ1k\geq \frac{1}{k} give ฯ‰fโ‰ก1k\omega_f \equiv \frac{1}{k} on JJ โ€” while ff would actually be continuous at interior points of JJ by the argument above (oscillation <1k< \frac{1}{k} for any 1k\frac{1}{k}-bound). More carefully: repeating the argument with 1k\frac{1}{k} replaced by ฯต<1k\epsilon < \frac{1}{k} gives a contradiction. Hence FkF_k has empty interior.

Conclusion

The discontinuity set D=โ‹ƒk=1โˆžFkD = \bigcup_{k=1}^\infty F_k is a countable union of nowhere-dense closed sets โ€” a meagre (first-category) set. By the Baire Category Theorem on [0,1][0,1], meagre sets have dense complement, so the continuity points of ff are dense. โ– \blacksquare

Upshot: A pointwise limit of continuous functions (a Baire-1 function) can be very wild โ€” e.g., the characteristic function of Q\mathbb{Q} is Baire-1 โ€” but it can never be discontinuous on a "thick" set in the Baire sense.

Source: Classical real analysis folklore; see Rudin Real & Complex Analysis, Baire category applications

Type: analysisSource: Classical real analysis folklore; see Rudin Real & Complex Analysis, Baire category applicationsEdit on GitHub โ†—