Blancmange curve

Fractal curve resembling a blancmange pudding
A plot of the blancmange curve.

In mathematics, the blancmange curve is a self-affine fractal curve constructible by midpoint subdivision. It is also known as the Takagi curve, after Teiji Takagi who described it in 1901, or as the Takagi–Landsberg curve, a generalization of the curve named after Takagi and Georg Landsberg. The name blancmange comes from its resemblance to a Blancmange pudding. It is a special case of the more general de Rham curve.

Definition

The blancmange function is defined on the unit interval by

blanc ( x ) = n = 0 s ( 2 n x ) 2 n , {\displaystyle \operatorname {blanc} (x)=\sum _{n=0}^{\infty }{s(2^{n}x) \over 2^{n}},}

where s ( x ) {\displaystyle s(x)} is the triangle wave, defined by s ( x ) = min n Z | x n | {\displaystyle s(x)=\min _{n\in {\mathbf {Z} }}|x-n|} , that is, s ( x ) {\displaystyle s(x)} is the distance from x to the nearest integer.

The Takagi–Landsberg curve is a slight generalization, given by

T w ( x ) = n = 0 w n s ( 2 n x ) {\displaystyle T_{w}(x)=\sum _{n=0}^{\infty }w^{n}s(2^{n}x)}

for a parameter w {\displaystyle w} ; thus the blancmange curve is the case w = 1 / 2 {\displaystyle w=1/2} . The value H = log 2 w {\displaystyle H=-\log _{2}w} is known as the Hurst parameter.

The function can be extended to all of the real line: applying the definition given above shows that the function repeats on each unit interval.

Functional equation definition

The periodic version of the Takagi curve can also be defined as the unique bounded solution T = T w : R R {\displaystyle T=T_{w}:\mathbb {R} \to \mathbb {R} } to the functional equation

T ( x ) = s ( x ) + w T ( 2 x ) . {\displaystyle T(x)=s(x)+wT(2x).}

Indeed, the blancmange function T w {\displaystyle T_{w}} is certainly bounded, and solves the functional equation, since

T w ( x ) := n = 0 w n s ( 2 n x ) = s ( x ) + n = 1 w n s ( 2 n x ) {\displaystyle T_{w}(x):=\sum _{n=0}^{\infty }w^{n}s(2^{n}x)=s(x)+\sum _{n=1}^{\infty }w^{n}s(2^{n}x)} = s ( x ) + w n = 0 w n s ( 2 n + 1 x ) = s ( x ) + w T w ( 2 x ) . {\displaystyle =s(x)+w\sum _{n=0}^{\infty }w^{n}s(2^{n+1}x)=s(x)+wT_{w}(2x).}

Conversely, if T : R R {\displaystyle T:\mathbb {R} \to \mathbb {R} } is a bounded solution of the functional equation, iterating the equality one has for any N

T ( x ) = n = 0 N w n s ( 2 n x ) + w N + 1 T ( 2 N + 1 x ) = n = 0 N w n s ( 2 n x ) + o ( 1 ) ,  for  N , {\displaystyle T(x)=\sum _{n=0}^{N}w^{n}s(2^{n}x)+w^{N+1}T(2^{N+1}x)=\sum _{n=0}^{N}w^{n}s(2^{n}x)+o(1),{\text{ for }}N\to \infty ,}

whence T = T w {\displaystyle T=T_{w}} . Incidentally, the above functional equations possesses infinitely many continuous, non-bounded solutions, e.g. T w ( x ) + c | x | log 2 w . {\displaystyle T_{w}(x)+c|x|^{-\log _{2}w}.}

Graphical construction

The blancmange curve can be visually built up out of triangle wave functions if the infinite sum is approximated by finite sums of the first few terms. In the illustrations below, progressively finer triangle functions (shown in red) are added to the curve at each stage.

n = 0 n ≤ 1 n ≤ 2 n ≤ 3

Properties

Convergence and continuity

The infinite sum defining T w ( x ) {\displaystyle T_{w}(x)} converges absolutely for all x . {\displaystyle x.} Since 0 s ( x ) 1 / 2 {\displaystyle 0\leq s(x)\leq 1/2} for all x R , {\displaystyle x\in \mathbb {R} ,}

n = 0 | w n s ( 2 n x ) | 1 2 n = 0 | w | n = 1 2 1 1 | w | {\displaystyle \sum _{n=0}^{\infty }|w^{n}s(2^{n}x)|\leq {\frac {1}{2}}\sum _{n=0}^{\infty }|w|^{n}={\frac {1}{2}}\cdot {\frac {1}{1-|w|}}}

if | w | < 1. {\displaystyle |w|<1.} The Takagi curve of parameter w {\displaystyle w} is defined on the unit interval (or R {\displaystyle \mathbb {R} } ) if | w | < 1 {\displaystyle |w|<1} . The Takagi function of parameter w {\displaystyle w} is continuous. The functions T w , n {\displaystyle T_{w,n}} defined by the partial sums

T w , n ( x ) = k = 0 n w k s ( 2 k x ) {\displaystyle T_{w,n}(x)=\sum _{k=0}^{n}w^{k}s(2^{k}x)}

are continuous and converge uniformly toward T w : {\displaystyle T_{w}:}

| T w ( x ) T w , n ( x ) | = | k = n + 1 w k s ( 2 k x ) | = | w n + 1 k = 0 w k s ( 2 k + n + 1 x ) | | w | n + 1 2 1 1 | w | {\displaystyle {\begin{aligned}\left|T_{w}(x)-T_{w,n}(x)\right|&=\left|\sum _{k=n+1}^{\infty }w^{k}s(2^{k}x)\right|\\&=\left|w^{n+1}\sum _{k=0}^{\infty }w^{k}s(2^{k+n+1}x)\right|\\&\leq {\frac {|w|^{n+1}}{2}}\cdot {\frac {1}{1-|w|}}\end{aligned}}}

for all x when | w | < 1. {\displaystyle |w|<1.} This bound decreases as n . {\displaystyle n\to \infty .} By the uniform limit theorem, T w {\displaystyle T_{w}} is continuous if |w| < 1.

  • parameter w = 2/3
    parameter w = 2/3
  • parameter w = 1/2
    parameter w = 1/2
  • parameter w = 1/3
    parameter w = 1/3
  • parameter w = 1/4
    parameter w = 1/4
  • parameter w = 1/8
    parameter w = 1/8

Subadditivity

Since the absolute value is a subadditive function so is the function s ( x ) = min n Z | x n | {\displaystyle s(x)=\min _{n\in {\mathbf {Z} }}|x-n|} , and its dilations s ( 2 k x ) {\displaystyle s(2^{k}x)} ; since positive linear combinations and point-wise limits of subadditive functions are subadditive, the Takagi function is subadditive for any value of the parameter w {\displaystyle w} .

The special case of the parabola

For w = 1 / 4 {\displaystyle w=1/4} , one obtains the parabola: the construction of the parabola by midpoint subdivision was described by Archimedes.

Differentiability

For values of the parameter 0 < w < 1 / 2 , {\displaystyle 0<w<1/2,} the Takagi function T w {\displaystyle T_{w}} is differentiable in the classical sense at any x R {\displaystyle x\in \mathbb {R} } which is not a dyadic rational. By derivation under the sign of series, for any non dyadic rational x R , {\displaystyle x\in \mathbb {R} ,} one finds

T w ( x ) = n = 0 ( 2 w ) n ( 2 b n 1 ) {\displaystyle T_{w}^{\prime }(x)=\sum _{n=0}^{\infty }(2w)^{n}\,(2b_{n}-1)}

where ( b n ) n N { 0 , 1 } N {\displaystyle (b_{n})_{n\in \mathbb {N} }\in \{0,1\}^{\mathbb {N} }} is the sequence of binary digits in the base 2 expansion of x {\displaystyle x} :

x = n = k b n 2 n 1 . {\displaystyle x=\sum _{n=-k}^{\infty }b_{n}2^{-n-1}\;.}

Equivalently, the bits in the binary expansion can be understood as a sequence of square waves, the Haar wavelets, scaled to width 2 n . {\displaystyle 2^{-n}.} This follows, since the derivative of the triangle wave is just the square wave:

d d x s ( x ) = sgn ( 1 / 2 ( x mod 1 ) ) {\displaystyle {\frac {d}{dx}}s(x)=\operatorname {sgn}(1/2-(x\!\!\!\mod 1))}

and so

T w ( x ) = n = 0 ( 2 w ) n sgn ( 1 / 2 ( 2 n x mod 1 ) ) {\displaystyle T_{w}^{\prime }(x)=\sum _{n=0}^{\infty }(2w)^{n}\operatorname {sgn}(1/2-(2^{n}x\!\!\!\mod 1))}

For the parameter 0 < w < 1 / 2 , {\displaystyle 0<w<1/2,} the function T w {\displaystyle T_{w}} is Lipschitz of constant 1 / ( 1 2 w ) . {\displaystyle 1/(1-2w).} In particular for the special value w = 1 / 4 {\displaystyle w=1/4} one finds, for any non dyadic rational x [ 0 , 1 ] {\displaystyle x\in [0,1]} T 1 / 4 ( x ) = 2 4 x {\displaystyle T_{1/4}'(x)=2-4x} , according with the mentioned T 1 / 4 ( x ) = 2 x ( 1 x ) . {\displaystyle T_{1/4}(x)=2x(1-x).}

For w = 1 / 2 {\displaystyle w=1/2} the blancmange function T w {\displaystyle T_{w}} it is of bounded variation on no non-empty open set; it is not even locally Lipschitz, but it is quasi-Lipschitz, indeed, it admits the function ω ( t ) := t ( | log 2 t | + 1 / 2 ) {\displaystyle \omega (t):=t(|\log _{2}t|+1/2)} as a modulus of continuity .

Fourier series expansion

The Takagi–Landsberg function admits an absolutely convergent Fourier series expansion:

T w ( x ) = m = 0 a m cos ( 2 π m x ) {\displaystyle T_{w}(x)=\sum _{m=0}^{\infty }a_{m}\cos(2\pi mx)}

with a 0 = 1 / 4 ( 1 w ) {\displaystyle a_{0}=1/4(1-w)} and, for m 1 {\displaystyle m\geq 1}

a m := 2 π 2 m 2 ( 4 w ) ν ( m ) , {\displaystyle a_{m}:=-{\frac {2}{\pi ^{2}m^{2}}}(4w)^{\nu (m)},}

where 2 ν ( m ) {\displaystyle 2^{\nu (m)}} is the maximum power of 2 {\displaystyle 2} that divides m {\displaystyle m} . Indeed, the above triangle wave s ( x ) {\displaystyle s(x)} has an absolutely convergent Fourier series expansion

s ( x ) = 1 4 2 π 2 k = 0 1 ( 2 k + 1 ) 2 cos ( 2 π ( 2 k + 1 ) x ) . {\displaystyle s(x)={\frac {1}{4}}-{\frac {2}{\pi ^{2}}}\sum _{k=0}^{\infty }{\frac {1}{(2k+1)^{2}}}\cos {\big (}2\pi (2k+1)x{\big )}.}

By absolute convergence, one can reorder the corresponding double series for T w ( x ) {\displaystyle T_{w}(x)} :

T w ( x ) := n = 0 w n s ( 2 n x ) = 1 4 n = 0 w n 2 π 2 n = 0 k = 0 w n ( 2 k + 1 ) 2 cos ( 2 π 2 n ( 2 k + 1 ) x ) : {\displaystyle T_{w}(x):=\sum _{n=0}^{\infty }w^{n}s(2^{n}x)={\frac {1}{4}}\sum _{n=0}^{\infty }w^{n}-{\frac {2}{\pi ^{2}}}\sum _{n=0}^{\infty }\sum _{k=0}^{\infty }{\frac {w^{n}}{(2k+1)^{2}}}\cos {\big (}2\pi 2^{n}(2k+1)x{\big )}\,:}

putting m = 2 n ( 2 k + 1 ) {\displaystyle m=2^{n}(2k+1)} yields the above Fourier series for T w ( x ) . {\displaystyle T_{w}(x).}

Self similarity

The recursive definition allows the monoid of self-symmetries of the curve to be given. This monoid is given by two generators, g and r, which act on the curve (restricted to the unit interval) as

[ g T w ] ( x ) = T w ( g x ) = T w ( x 2 ) = x 2 + w T w ( x ) {\displaystyle [g\cdot T_{w}](x)=T_{w}\left(g\cdot x\right)=T_{w}\left({\frac {x}{2}}\right)={\frac {x}{2}}+wT_{w}(x)}

and

[ r T w ] ( x ) = T w ( r x ) = T w ( 1 x ) = T w ( x ) . {\displaystyle [r\cdot T_{w}](x)=T_{w}(r\cdot x)=T_{w}(1-x)=T_{w}(x).}

A general element of the monoid then has the form γ = g a 1 r g a 2 r r g a n {\displaystyle \gamma =g^{a_{1}}rg^{a_{2}}r\cdots rg^{a_{n}}} for some integers a 1 , a 2 , , a n {\displaystyle a_{1},a_{2},\cdots ,a_{n}} This acts on the curve as a linear function: γ T w = a + b x + c T w {\displaystyle \gamma \cdot T_{w}=a+bx+cT_{w}} for some constants a, b and c. Because the action is linear, it can be described in terms of a vector space, with the vector space basis:

1 e 1 = [ 1 0 0 ] {\displaystyle 1\mapsto e_{1}={\begin{bmatrix}1\\0\\0\end{bmatrix}}}
x e 2 = [ 0 1 0 ] {\displaystyle x\mapsto e_{2}={\begin{bmatrix}0\\1\\0\end{bmatrix}}}
T w e 3 = [ 0 0 1 ] {\displaystyle T_{w}\mapsto e_{3}={\begin{bmatrix}0\\0\\1\end{bmatrix}}}

In this representation, the action of g and r are given by

g = [ 1 0 0 0 1 2 1 2 0 0 w ] {\displaystyle g={\begin{bmatrix}1&0&0\\0&{\frac {1}{2}}&{\frac {1}{2}}\\0&0&w\end{bmatrix}}}

and

r = [ 1 1 0 0 1 0 0 0 1 ] {\displaystyle r={\begin{bmatrix}1&1&0\\0&-1&0\\0&0&1\end{bmatrix}}}

That is, the action of a general element γ {\displaystyle \gamma } maps the blancmange curve on the unit interval [0,1] to a sub-interval [ m / 2 p , n / 2 p ] {\displaystyle [m/2^{p},n/2^{p}]} for some integers m, n, p. The mapping is given exactly by [ γ T w ] ( x ) = a + b x + c T w ( x ) {\displaystyle [\gamma \cdot T_{w}](x)=a+bx+cT_{w}(x)} where the values of a, b and c can be obtained directly by multiplying out the above matrices. That is:

γ = [ 1 m 2 p a 0 n m 2 p b 0 0 c ] {\displaystyle \gamma ={\begin{bmatrix}1&{\frac {m}{2^{p}}}&a\\0&{\frac {n-m}{2^{p}}}&b\\0&0&c\end{bmatrix}}}

Note that p = a 1 + a 2 + + a n {\displaystyle p=a_{1}+a_{2}+\cdots +a_{n}} is immediate.

The monoid generated by g and r is sometimes called the dyadic monoid; it is a sub-monoid of the modular group. When discussing the modular group, the more common notation for g and r is T and S, but that notation conflicts with the symbols used here.

The above three-dimensional representation is just one of many representations it can have; it shows that the blancmange curve is one possible realization of the action. That is, there are representations for any dimension, not just 3; some of these give the de Rham curves.

Integrating the Blancmange curve

Given that the integral of blanc ( x ) {\displaystyle \operatorname {blanc} (x)} from 0 to 1 is 1/2, the identity blanc ( x ) = blanc ( 2 x ) / 2 + s ( x ) {\displaystyle \operatorname {blanc} (x)=\operatorname {blanc} (2x)/2+s(x)} allows the integral over any interval to be computed by the following relation. The computation is recursive with computing time on the order of log of the accuracy required. Defining

I ( x ) = 0 x blanc ( y ) d y {\displaystyle I(x)=\int _{0}^{x}\operatorname {blanc} (y)\,dy}

one has that

I ( x ) = { I ( 2 x ) / 4 + x 2 / 2 if  0 x 1 / 2 1 / 2 I ( 1 x ) if  1 / 2 x 1 n / 2 + I ( x n ) if  n x ( n + 1 ) {\displaystyle I(x)={\begin{cases}I(2x)/4+x^{2}/2&{\text{if }}0\leq x\leq 1/2\\1/2-I(1-x)&{\text{if }}1/2\leq x\leq 1\\n/2+I(x-n)&{\text{if }}n\leq x\leq (n+1)\\\end{cases}}}

The definite integral is given by:

a b blanc ( y ) d y = I ( b ) I ( a ) . {\displaystyle \int _{a}^{b}\operatorname {blanc} (y)\,dy=I(b)-I(a).}

A more general expression can be obtained by defining

S ( x ) = 0 x s ( y ) d y = { x 2 / 2 , 0 x 1 2 x 2 / 2 + x 1 / 4 , 1 2 x 1 n / 4 + S ( x n ) , ( n x n + 1 ) {\displaystyle S(x)=\int _{0}^{x}s(y)dy={\begin{cases}x^{2}/2,&0\leq x\leq {\frac {1}{2}}\\-x^{2}/2+x-1/4,&{\frac {1}{2}}\leq x\leq 1\\n/4+S(x-n),&(n\leq x\leq n+1)\end{cases}}}

which, combined with the series representation, gives

I w ( x ) = 0 x T w ( y ) d y = n = 0 ( w / 2 ) n S ( 2 n x ) {\displaystyle I_{w}(x)=\int _{0}^{x}T_{w}(y)dy=\sum _{n=0}^{\infty }(w/2)^{n}S(2^{n}x)}

Note that

I w ( 1 ) = 1 4 ( 1 w ) {\displaystyle I_{w}(1)={\frac {1}{4(1-w)}}}

This integral is also self-similar on the unit interval, under an action of the dyadic monoid described in the section Self similarity. Here, the representation is 4-dimensional, having the basis { e 1 , e 2 , e 3 , e 4 } = { 1 , x , x 2 , I w ( x ) } {\displaystyle \{e_{1},e_{2},e_{3},e_{4}\}=\{1,x,x^{2},I_{w}(x)\}} . The action of g on the unit interval is the commuting diagram

[ g I w ] ( x ) = I w ( g x ) = I w ( x 2 ) = x 2 8 + w 2 I w ( x ) . {\displaystyle [g\cdot I_{w}](x)=I_{w}\left(g\cdot x\right)=I_{w}\left({\frac {x}{2}}\right)={\frac {x^{2}}{8}}+{\frac {w}{2}}I_{w}(x).}

From this, one can then immediately read off the generators of the four-dimensional representation:

g = [ 1 0 0 0 0 1 2 0 0 0 0 1 4 1 8 0 0 0 w 2 ] {\displaystyle g={\begin{bmatrix}1&0&0&0\\0&{\frac {1}{2}}&0&0\\0&0&{\frac {1}{4}}&{\frac {1}{8}}\\0&0&0&{\frac {w}{2}}\end{bmatrix}}}

and

r = [ 1 1 1 1 4 ( 1 w ) 0 1 2 0 0 0 1 0 0 0 0 1 ] {\displaystyle r={\begin{bmatrix}1&1&1&{\frac {1}{4(1-w)}}\\0&-1&-2&0\\0&0&1&0\\0&0&0&-1\end{bmatrix}}}

Repeated integrals transform under a 5,6,... dimensional representation.

Relation to simplicial complexes

Let

N = ( n t t ) + ( n t 1 t 1 ) + + ( n j j ) , n t > n t 1 > > n j j 1. {\displaystyle N={\binom {n_{t}}{t}}+{\binom {n_{t-1}}{t-1}}+\ldots +{\binom {n_{j}}{j}},\quad n_{t}>n_{t-1}>\ldots >n_{j}\geq j\geq 1.}

Define the Kruskal–Katona function

κ t ( N ) = ( n t t + 1 ) + ( n t 1 t ) + + ( n j j + 1 ) . {\displaystyle \kappa _{t}(N)={n_{t} \choose t+1}+{n_{t-1} \choose t}+\dots +{n_{j} \choose j+1}.}

The Kruskal–Katona theorem states that this is the minimum number of (t − 1)-simplexes that are faces of a set of N t-simplexes.

As t and N approach infinity, κ t ( N ) N {\displaystyle \kappa _{t}(N)-N} (suitably normalized) approaches the blancmange curve.

See also

References

  • Weisstein, Eric W. "Blancmange Function". MathWorld.
  • Takagi, Teiji (1901), "A Simple Example of the Continuous Function without Derivative", Proc. Phys.-Math. Soc. Jpn., 1: 176–177, doi:10.11429/subutsuhokoku1901.1.F176
  • Benoit Mandelbrot, "Fractal Landscapes without creases and with rivers", appearing in The Science of Fractal Images, ed. Heinz-Otto Peitgen, Dietmar Saupe; Springer-Verlag (1988) pp 243–260.
  • Linas Vepstas, Symmetries of Period-Doubling Maps, (2004)
  • Donald Knuth, The Art of Computer Programming, volume 4a. Combinatorial algorithms, part 1. ISBN 0-201-03804-8. See pages 372–375.

Further reading

  • Allaart, Pieter C.; Kawamura, Kiko (11 October 2011), The Takagi function: a survey, arXiv:1110.1691, Bibcode:2011arXiv1110.1691A
  • Lagarias, Jeffrey C. (17 December 2011), The Takagi Function and Its Properties, arXiv:1112.4205, Bibcode:2011arXiv1112.4205L

External links

  • Takagi Explorer
  • (Some properties of the Takagi function)
  • v
  • t
  • e
CharacteristicsIterated function
systemStrange attractorL-systemEscape-time
fractalsRendering techniquesRandom fractalsPeopleOther