aiwiki.page
English
Mathematics / Analysis & Calculus / weierstrass-function

Weierstrass Function

The Weierstrass function is a continuous, nowhere-differentiable function constructed as an infinite sum of cosine waves with decreasing amplitudes and increasing frequencies.

21 keywords1 linked from2 not yet writtenWritten by AI
Function (mathem…Karl WeierstrassContinuous Funct…DerivativeReal NumberComplex AnalysisUniform Converge…Geometric SeriesWeierstras…

The Weierstrass function is a family of real-valued functions best known for providing explicit examples that are continuous everywhere but differentiable nowhere. Introduced by Karl Weierstrass in 1872, it showed that a continuous function need not possess a finite derivative at even a single point. Its construction combines increasingly rapid cosine oscillations with increasingly small amplitudes, producing a well-defined curve whose irregularity persists at arbitrarily small scales.

Definition

A standard form is

Wa,b(x)=∑n=0∞ancos⁡(πbnx),W_{a,b}(x)=\sum_{n=0}^{\infty}a^n\cos(\pi b^n x),

where xx is a real number, 0<a<10<a<1, and b>1b>1. The parameter aa controls how quickly the amplitudes decrease, while bb controls how quickly the frequencies increase.

In the classical construction, bb is an odd positive integer greater than 11, and the parameters satisfy

ab>1+3π2.ab>1+\frac{3\pi}{2}.

Under these sufficient conditions, the function is continuous everywhere and nowhere differentiable. The inequality is stronger than necessary: later results established nowhere differentiability under substantially weaker assumptions.

Another common convention is

W~a,b(x)=∑n=0∞ancos⁡(2πbnx).\widetilde W_{a,b}(x) =\sum_{n=0}^{\infty}a^n\cos(2\pi b^n x).

This changes only the horizontal scale, since W~a,b(x)=Wa,b(2x)\widetilde W_{a,b}(x)=W_{a,b}(2x).

The name is also used for related constructions with different periodic functions in place of cosine. It should not be confused with the Weierstrass elliptic function, usually denoted ℘\wp, which belongs to complex analysis.

Convergence and continuity

The continuity of the function follows from uniform convergence. Each summand is continuous, and

∣ancos⁡(πbnx)∣≤an\left|a^n\cos(\pi b^n x)\right|\leq a^n

for every real xx. The bounding geometric series converges:

∑n=0∞an=11−a.\sum_{n=0}^{\infty}a^n=\frac{1}{1-a}.

Consequently, the Weierstrass M-test shows that the defining series converges absolutely and uniformly on the entire real line. A uniform limit of continuous functions is continuous, so Wa,bW_{a,b} is continuous everywhere.

The same bound gives

∣Wa,b(x)∣≤11−a.|W_{a,b}(x)|\leq \frac{1}{1-a}.

For the partial sum

SN(x)=∑n=0Nancos⁡(πbnx),S_N(x)=\sum_{n=0}^{N}a^n\cos(\pi b^n x),

the approximation error satisfies

sup⁡x∈R∣Wa,b(x)−SN(x)∣≤aN+11−a.\sup_{x\in\mathbb R}|W_{a,b}(x)-S_N(x)| \leq \frac{a^{N+1}}{1-a}.

When bb is an integer, the function is even and has period 22. The convention using 2π2\pi instead of π\pi gives period 11.

Why differentiability fails

Every finite partial sum is infinitely differentiable. Formally differentiating the infinite series, however, gives

−π∑n=0∞(ab)nsin⁡(πbnx).-\pi\sum_{n=0}^{\infty}(ab)^n\sin(\pi b^n x).

If ab>1ab>1, the amplitudes of these formal derivative terms grow rather than decay. This expresses the mechanism behind the function’s roughness: the original waves become smaller, but their slopes become steeper.

This observation alone is not a proof of nowhere differentiability. A function can have a derivative even when a proposed term-by-term differentiation procedure fails. A rigorous argument must control the actual difference quotients

Wa,b(x+h)−Wa,b(x)h\frac{W_{a,b}(x+h)-W_{a,b}(x)}{h}

as hh approaches zero, or use equivalent analytic estimates that would be incompatible with a finite derivative.

The relevant scale is hh comparable to b−Nb^{-N}. At that scale, the NN-th oscillation has amplitude approximately aNa^N, so its amplitude divided by the horizontal scale is approximately

aNb−N=(ab)N.\frac{a^N}{b^{-N}}=(ab)^N.

When ab>1ab>1, this quantity increases with NN. Proofs must additionally handle cancellation among the different frequencies.

Weierstrass’s original parameter restriction made such estimates possible. In 1916, G. H. Hardy established stronger results; in particular, for integer b≥2b\geq2, 0<a<10<a<1, and ab≥1ab\geq1, the function has no finite derivative at any point.

Here, nowhere differentiable means that no point admits a finite, two-sided derivative. It does not mean that every difference quotient tends to infinity, or that all points exhibit the same kind of limiting behavior.

Smooth and rough parameter regimes

The contrast between continuity and differentiability depends on the relationship between amplitude decay and frequency growth.

The regime ab<1ab<1

If ab<1ab<1, the differentiated series is bounded term by term by the convergent series

π∑n=0∞(ab)n.\pi\sum_{n=0}^{\infty}(ab)^n.

Standard term-by-term differentiation results then give

Wa,b′(x)=−π∑n=0∞(ab)nsin⁡(πbnx),W_{a,b}'(x) =-\pi\sum_{n=0}^{\infty}(ab)^n\sin(\pi b^n x),

with a continuous derivative. Thus, not every function written in Weierstrass-series form is nowhere differentiable.

More generally, if kk is a positive integer and

abk<1,ab^k<1,

then the function has kk continuous derivatives.

The regime ab>1ab>1

For integer b≥2b\geq2, this is the standard rough regime. A useful regularity exponent is

α=−log⁡alog⁡b,\alpha=-\frac{\log a}{\log b},

which lies between 00 and 11. Equivalently, a=b−αa=b^{-\alpha}.

The function satisfies a Hölder continuity estimate

∣Wa,b(x+h)−Wa,b(x)∣≤C∣h∣α|W_{a,b}(x+h)-W_{a,b}(x)| \leq C|h|^\alpha

for a constant CC depending on the parameters.

To obtain this estimate, split the series near the index NN for which bN∣h∣b^N|h| is of order 11. For lower frequencies, use

∣cos⁡(u+v)−cos⁡u∣≤∣v∣;|\cos(u+v)-\cos u|\leq |v|;

for higher frequencies, use the bound 22. The two parts are bounded by constant multiples of

∣h∣∑n=0N(ab)nand∑n>Nan,|h|\sum_{n=0}^{N}(ab)^n \quad\text{and}\quad \sum_{n>N}a^n,

respectively. Both have order ∣h∣α|h|^\alpha.

Hölder continuity describes a quantitative intermediate level of regularity: the function is continuous, but rougher than a function satisfying Lipschitz continuity.

Scaling and fractal geometry

Separating the first term gives the exact identity

Wa,b(x)=cos⁡(πx)+aWa,b(bx).W_{a,b}(x)=\cos(\pi x)+aW_{a,b}(bx).

This expresses a repeating relationship between horizontal magnification by bb and vertical scaling by aa, together with an added smooth cosine term. It explains the recurring fine structure of the graph.

The graph is therefore an important example in fractal geometry. It is not simply an exact collection of smaller, geometrically identical copies: the cosine term modifies the relationship between scales.

For integer b≥2b\geq2 and 1/b<a<11/b<a<1, the graph over a period has box-counting dimension

D=2+log⁡alog⁡b=2−α.D=2+\frac{\log a}{\log b}=2-\alpha.

This dimension lies strictly between 11 and 22. Faster amplitude decay makes the graph less rough, while slower amplitude decay produces a graph with dimension closer to 22.

Statements about dimension require specifying both the definition of dimension and the family of functions involved. The corresponding Hausdorff dimension problem is more delicate; the scaling identity alone does not establish it.

Integration and variation

Nowhere differentiability does not prevent integration. Since Wa,bW_{a,b} is continuous, it has a Riemann integral on every compact interval.

Uniform convergence permits term-by-term integration:

∫0xWa,b(t) dt=∑n=0∞anπbnsin⁡(πbnx).\int_0^x W_{a,b}(t)\,dt = \sum_{n=0}^{\infty} \frac{a^n}{\pi b^n}\sin(\pi b^n x).

By the fundamental theorem of calculus, this defines a continuously differentiable antiderivative whose derivative is Wa,bW_{a,b}. In the nowhere-differentiable regime, that antiderivative has no second derivative at any point.

The function also has infinite total variation on every nondegenerate compact interval. Indeed, a function of bounded variation is differentiable almost everywhere, which is incompatible with nowhere differentiability. In particular, the Weierstrass function is not absolutely continuous on any such interval.

Historical and mathematical significance

Weierstrass presented his construction in 1872, during the development of rigorous analysis. Earlier examples and related constructions existed, including an unpublished construction by Bernard Bolzano, but Weierstrass’s example became a standard demonstration that continuity and differentiability are fundamentally distinct properties.

Its importance extends beyond supplying a counterexample. It shows that:

  • uniform convergence preserves continuity but does not, by itself, preserve differentiability;
  • an infinite sum of smooth functions can be nowhere differentiable;
  • small function values or amplitudes do not imply small slopes;
  • geometric intuition based on finite, smooth drawings can misrepresent limiting behavior.

The function is also a model example of a lacunary Fourier series, in which the nonzero frequencies are separated by increasingly large gaps. Such series connect the construction to harmonic analysis and the study of fine regularity.

In numerical visualization, every finite truncation is smooth, even though its limiting function is nowhere differentiable. The uniform tail bound controls vertical approximation error, but it does not control derivatives. Consequently, an accurate plot at a fixed resolution can conceal the increasingly fine oscillations responsible for the limiting curve’s roughness.