Skip to main content

The Pit of Fractal Integrals

 


The Pit of Fractal Integrals: Measuring the Unmeasurable with Takagi’s Monster

There are functions that refuse to be smooth. They wiggle, they bend, they squirm, and the closer you look, the worse they behave. In real analysis, such creatures live everywhere — but a few have become infamous for how innocently they present themselves before revealing their pathological depths.

One such monster is the Takagi function, sometimes called the “blancmange function.” On first sight, it looks like a child’s zig-zag doodle. Defined by a simple infinite sum of tent functions, it has the unnerving property of being continuous everywhere, but differentiable nowhere.

When I first met it, I thought: “Fine, I know Weierstrass did this already. This is just another example of pathological analysis.”

But then I asked a simple question:

I(α)=01fα(x)dx,I(\alpha) = \int_0^1 f_\alpha(x) \, dx,

where

fα(x)=n=0αnϕ(2nx),ϕ(x)=minkZxk.f_\alpha(x) = \sum_{n=0}^\infty \alpha^n \, \phi(2^n x), \qquad \phi(x) = \min_{k\in\mathbb{Z}} |x-k|.

That is: the Takagi–Landsberg function with parameter 0<α<10 < \alpha < 1.

It looked like a straightforward problem: just compute the area under the fractal. Surely it should be simple — after all, ϕ\phi is just a triangle wave.

That thought was the rope that pulled me straight into the pit.


Step 1: First Impressions

At a glance:

  • Each ϕ(2nx)\phi(2^n x) is a sawtooth with frequency 2n2^n and amplitude at most 1/21/2.

  • The factor αn\alpha^n damps the terms, so the series converges uniformly.

  • So fαf_\alpha is continuous. Good.

If α<1/2\alpha < 1/2, the higher frequencies shrink rapidly. The graph looks smooth-ish.
If α1\alpha \to 1, the graph grows spiky and chaotic, clearly fractal-like.

So maybe the integral would interpolate smoothly between “easy” and “wild.”

I was wrong.


Step 2: The Naive Attack

The integral looks linear. Why not swap sum and integral?

I(α)=n=0αn01ϕ(2nx)dx.I(\alpha) = \sum_{n=0}^\infty \alpha^n \int_0^1 \phi(2^n x) \, dx.

That seems safe: the series converges absolutely.

Now, 01ϕ(2nx)dx\int_0^1 \phi(2^n x) \, dx should be the average value of the triangle wave. Since ϕ\phi is periodic with mean 1/41/4, scaling doesn’t change the mean.

So each term contributes 1/41/4.

I(α)=n=0αn14.I(\alpha) = \sum_{n=0}^\infty \alpha^n \cdot \frac{1}{4}.

That’s just a geometric series:

I(α)=1411α.I(\alpha) = \frac{1}{4} \cdot \frac{1}{1-\alpha}.

I felt triumphant. Easy. Done.

Then I realized: this was only the beginning.


Step 3: Suspicion Creeps In

The formula 14(1α)\tfrac{1}{4(1-\alpha)} is elegant, but too simple.

Was it really capturing the whole story?

I checked:

  • For α=0\alpha = 0, we get I(0)=1/4I(0) = 1/4. Correct: it’s just one triangle wave.

  • For α=1/2\alpha = 1/2, we get I(1/2)=1/2I(1/2) = 1/2. Numerical checks confirmed it.

  • For α=0.9\alpha = 0.9, we get I(0.9)=2.5I(0.9) = 2.5. Plausible, since the function grows tall.

So maybe the formula was correct.

But integrals don’t just give numbers — they tell stories. What about variations, moments, energies?

I tried to compute

J(α)=01fα(x)2dx.J(\alpha) = \int_0^1 f_\alpha(x)^2 \, dx.

This was the beginning of the real pit.


Step 4: Squaring the Monster

Expanding:

J(α)=01(m=0αmϕ(2mx))(n=0αnϕ(2nx))dx.J(\alpha) = \int_0^1 \left( \sum_{m=0}^\infty \alpha^m \phi(2^m x) \right) \left( \sum_{n=0}^\infty \alpha^n \phi(2^n x) \right) dx.

Swapping sums:

J(α)=m,n0αm+n01ϕ(2mx)ϕ(2nx)dx.J(\alpha) = \sum_{m,n \geq 0} \alpha^{m+n} \int_0^1 \phi(2^m x)\phi(2^n x) \, dx.

Now things were messy.

The cross terms ϕ(2mx)ϕ(2nx)\int \phi(2^m x)\phi(2^n x) aren’t trivial. They encode correlations between different scales of the fractal.

I thought: maybe they vanish when mnm \neq n. That would make life easy.

Wrong. They don’t vanish. They overlap, resonate, and produce subtle correlations.

Dead end #1.


Step 5: Fourier Analysis to the Rescue?

I remembered: triangle waves have simple Fourier series.

ϕ(x)=142π2k=1cos(2πkx)k2.\phi(x) = \frac{1}{4} - \frac{2}{\pi^2} \sum_{k=1}^\infty \frac{\cos(2\pi k x)}{k^2}.

Plugging this into fαf_\alpha gave:

fα(x)=n=0αn(142π2k=1cos(2πk2nx)k2).f_\alpha(x) = \sum_{n=0}^\infty \alpha^n \left( \frac{1}{4} - \frac{2}{\pi^2} \sum_{k=1}^\infty \frac{\cos(2\pi k \cdot 2^n x)}{k^2} \right).

Suddenly the function looked like a Fourier fractal: a weighted sum of cosines with exponentially growing frequencies.

I thought this would help compute J(α)J(\alpha). Parseval’s theorem relates integrals of squares to Fourier coefficients.

But the sum was chaotic: frequencies doubled at each step. Orthogonality didn’t cleanly cancel them.

Dead end #2.


Step 6: Self-Similarity as a Tool

The Takagi function is self-similar. That suggested recursion.

Indeed, fα(x)f_\alpha(x) satisfies a functional equation:

fα(x)=ϕ(x)+αfα(2x).f_\alpha(x) = \phi(x) + \alpha f_\alpha(2x).

That’s gold: it encodes the fractal scaling.

So maybe I could derive an equation for J(α)J(\alpha).

Squaring both sides and integrating:

J(α)=01ϕ(x)2dx+2α01ϕ(x)fα(2x)dx+α201fα(2x)2dx.J(\alpha) = \int_0^1 \phi(x)^2 \, dx + 2\alpha \int_0^1 \phi(x)f_\alpha(2x)\, dx + \alpha^2 \int_0^1 f_\alpha(2x)^2 \, dx.

Now the integrals mix scales again.

But change of variables helped: 01fα(2x)2dx=1202fα(u)2du=12(J(α)+J(α))=J(α)\int_0^1 f_\alpha(2x)^2 dx = \frac{1}{2} \int_0^2 f_\alpha(u)^2 du = \frac{1}{2}(J(\alpha) + J(\alpha)) = J(\alpha).

So the last term simplified.

Still, the middle term was ugly.

Progress, but the walls of the pit grew steeper.


Step 7: Numerical Experiments

At this point, I abandoned analysis for a while and just computed J(α)J(\alpha) numerically.

  • For α=0.5\alpha = 0.5, I got roughly 0.333...

  • For α=0.9\alpha = 0.9, I got ~7.8.

The growth was rapid. It looked like J(α)J(\alpha) diverged as α1\alpha \to 1.

That made sense: the function gets rougher and rougher, the oscillations stack, the energy blows up.

But could I prove this rigorously?


Step 8: The Fractal Dimension Angle

Another detour: what if I didn’t care about the exact integral, but about the scaling behavior?

The Takagi–Landsberg function’s graph has Hausdorff dimension > 1 when α\alpha is large.

So the question “what is fα\int f_\alpha” morphs into “how does the fractal geometry of the graph control integrals of its powers?”

This was a whole new pit: geometric measure theory.

I realized the integral wasn’t just a number. It was a window into dimension.


Step 9: Connection to Probability

Then I found another surprising link:

fα(x)=E[n=0αnxK2n],f_\alpha(x) = \mathbb{E}\left[ \sum_{n=0}^\infty \alpha^n \left| x - \frac{K}{2^n} \right| \right],

where KK is a random integer with certain distribution.

So fα(x)f_\alpha(x) could be seen as an expected distance to random dyadic rationals.

The integral became an expectation over expectations. A probabilistic object in disguise.

I didn’t solve it this way, but it gave a new perspective: the Takagi monster is a random walk over scales.


Step 10: Where the Pit Opens Wider

Every attempt at a closed form for J(α)J(\alpha) dragged me into heavier machinery:

  • Harmonic analysis: to manage cross terms.

  • Fractal measure theory: to interpret divergence.

  • Probability: to reinterpret the function as a stochastic process.

  • Dynamical systems: since fα(x)f_\alpha(x) relates to iterating the tent map.

What began as “just compute an integral” became a tour of half of modern analysis.


Step 11: What We Actually Know

After hours in the pit, here’s what emerged:

  • The first moment I(α)I(\alpha) is simple: I(α)=14(1α)I(\alpha) = \tfrac{1}{4(1-\alpha)}.

  • The second moment J(α)J(\alpha) is messy, tied to correlations across scales. Explicit formulas exist, but they involve zeta values and infinite series.

  • As α1\alpha \to 1, J(α)J(\alpha) diverges, reflecting the function’s growing roughness.

  • The integrals encode fractal dimension information.

So the integral that looked harmless was actually a barometer for fractality itself.


Step 12: Climbing Out

By the end, I realized:

  • The area under a fractal is sometimes easy.

  • The energy under a fractal is chaos.

  • Simple sums of triangle waves can encode dimensions, measures, even randomness.

  • Integrals, instead of taming the function, reveal its wildness.

I went in expecting to “just integrate a function.” I came out tangled in Fourier series, Hausdorff dimension, and stochastic processes.

That’s the essence of The Problem Pit: beneath the simplest problem lies the whole of analysis, waiting to pull you down.



Comments