🧮 Brain Teaser

The Lebesgue Density Theorem's Sharpest Failure

Let f:[0,1]Rf : [0,1] \to \mathbb{R} be a measurable function satisfying:

abf(x)dx=0for every 0ab1.\int_a^b f(x)\, dx = 0 \quad \text{for every } 0 \le a \le b \le 1.

Prove that f=0f = 0 almost everywhere.

Now here is the twist: exhibit a non-zero measurable function g:[0,1]Rg : [0,1] \to \mathbb{R} such that

Eg(x)dx=0\int_E g(x)\, dx = 0

for every measurable set E[0,1]E \subseteq [0,1]... or explain carefully why no such gg can exist.

Lebesgue integrationmeasure theorydifferentiation theoremnull sets

Answer: Vanishing Integral on All Measurable Sets

Key Idea / Intuition

The first part uses a classical bootstrapping trick: if abf=0\int_a^b f = 0 for all intervals, then by approximation the same holds for all open sets, then all measurable sets. Once Ef=0\int_E f = 0 for every measurable EE, you choose E={f>0}E = \{f > 0\} and E={f<0}E = \{f < 0\} separately — both integrals being zero forces f=0f = 0 a.e.

The twist resolves itself: no such non-zero gg can exist. The argument for the first part already shows that "Eg=0\int_E g = 0 for every measurable EE" implies g=0g = 0 a.e. So the two parts are actually one theorem, with the first part being the key engine.


Formal Proof / Solution

Step 1: From intervals to all measurable sets

Define F(x)=0xf(t)dtF(x) = \int_0^x f(t)\, dt. The hypothesis says F(b)F(a)=0F(b) - F(a) = 0 for all aba \le b, so F0F \equiv 0 on [0,1][0,1].

By the Lebesgue Differentiation Theorem, F(x)=f(x)F'(x) = f(x) for almost every xx. Since F0F \equiv 0, we have F(x)=0F'(x) = 0 a.e., so f=0f = 0 a.e.

Alternatively (without differentiating): From abf=0\int_a^b f = 0 for all intervals, we extend to all measurable sets by approximation:

  • Every open set U[0,1]U \subseteq [0,1] is a countable union of disjoint open intervals, so Uf=0\int_U f = 0.
  • Every closed set CC satisfies Cf=[0,1]f[0,1]Cf=00=0\int_C f = \int_{[0,1]} f - \int_{[0,1]\setminus C} f = 0 - 0 = 0.
  • A standard monotone class / π\pi-λ\lambda argument (or Carathéodory extension) gives Ef=0\int_E f = 0 for every measurable E[0,1]E \subseteq [0,1].

Step 2: Ef=0\int_E f = 0 for all measurable EE implies f=0f = 0 a.e.

Let E+={x[0,1]:f(x)>0}E^+ = \{x \in [0,1] : f(x) > 0\}. This is measurable, so:

E+f(x)dx=0.\int_{E^+} f(x)\, dx = 0.

But on E+E^+, the integrand is strictly positive, so μ(E+)=0\mu(E^+) = 0.

Similarly, let E={x:f(x)<0}E^- = \{x : f(x) < 0\}, giving Ef=0\int_{E^-} f = 0, so μ(E)=0\mu(E^-) = 0.

Hence f=0f = 0 outside E+EE^+ \cup E^-, which has measure zero. f=0f = 0 a.e. \blacksquare

Step 3: Resolution of the twist

The question asks: can there exist a non-zero gg with Eg=0\int_E g = 0 for every measurable EE?

No. Apply Step 2 directly: the hypothesis Eg=0\int_E g = 0 for every measurable EE is strictly stronger than the hypothesis of Step 1 (it already includes all measurable sets, not just intervals). Step 2 alone gives g=0g = 0 a.e.

So the "twist" is a trap — the condition for all measurable sets is self-defeating and forces g=0g = 0 a.e. immediately. There is no exotic counterexample hiding here.

Summary

f=0 a.e.,and no non-zero g can satisfy Eg=0 for all measurable E.\boxed{f = 0 \text{ a.e.}, \quad \text{and no non-zero } g \text{ can satisfy } \int_E g = 0 \text{ for all measurable } E.}

The beautiful point: the measurable sets are "rich enough" that knowing all their integrals completely determines ff up to a null set. This is the measure-theoretic content of the Lebesgue integral being determined by its values on all measurable sets.

Type: analysisEdit on GitHub ↗