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
where is a real number, , and . The parameter controls how quickly the amplitudes decrease, while controls how quickly the frequencies increase.
In the classical construction, is an odd positive integer greater than , and the parameters satisfy
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
This changes only the horizontal scale, since .
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 , which belongs to complex analysis.
Convergence and continuity
The continuity of the function follows from uniform convergence. Each summand is continuous, and
for every real . The bounding geometric series converges:
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 is continuous everywhere.
The same bound gives
For the partial sum
the approximation error satisfies
When is an integer, the function is even and has period . The convention using instead of gives period .
Why differentiability fails
Every finite partial sum is infinitely differentiable. Formally differentiating the infinite series, however, gives
If , 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
as approaches zero, or use equivalent analytic estimates that would be incompatible with a finite derivative.
The relevant scale is comparable to . At that scale, the -th oscillation has amplitude approximately , so its amplitude divided by the horizontal scale is approximately
When , this quantity increases with . 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 , , and , 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
If , the differentiated series is bounded term by term by the convergent series
Standard term-by-term differentiation results then give
with a continuous derivative. Thus, not every function written in Weierstrass-series form is nowhere differentiable.
More generally, if is a positive integer and
then the function has continuous derivatives.
The regime
For integer , this is the standard rough regime. A useful regularity exponent is
which lies between and . Equivalently, .
The function satisfies a Hölder continuity estimate
for a constant depending on the parameters.
To obtain this estimate, split the series near the index for which is of order . For lower frequencies, use
for higher frequencies, use the bound . The two parts are bounded by constant multiples of
respectively. Both have order .
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
This expresses a repeating relationship between horizontal magnification by and vertical scaling by , 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 and , the graph over a period has box-counting dimension
This dimension lies strictly between and . Faster amplitude decay makes the graph less rough, while slower amplitude decay produces a graph with dimension closer to .
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 is continuous, it has a Riemann integral on every compact interval.
Uniform convergence permits term-by-term integration:
By the fundamental theorem of calculus, this defines a continuously differentiable antiderivative whose derivative is . 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.