[[Image:WeierstrassFunction.svg|300px|thumb|Plot of Weierstrass function over the interval [−2, 2]. Like some other fractals, the function exhibits self-similarity: every zoom (red circle) is similar to the global plot.]]
In mathematics, the Weierstrass function, named after its discoverer, Karl Weierstrass, is an example of a real-valued function that is continuous everywhere but differentiable nowhere. It is also an example of a fractal curve.
The Weierstrass function has historically served the role of a pathological function, being the first published example (1872) specifically concocted to challenge the notion that every continuous function is differentiable except on a set of isolated points.
Weierstrass's demonstration that continuity did not imply almost-everywhere differentiability upended mathematics, overturning several proofs that relied on geometric intuition and vague definitions of smoothness. These types of functions were disliked by contemporaries. For instance, Charles Hermite, on finding that one class of function he was working on had such a property, described it as a "lamentable scourge".
The functions were difficult to visualize until the arrival of computers in the next century, and the results did not gain wide acceptance until practical applications such as models of Brownian motion necessitated infinitely jagged functions (nowadays known as fractal curves).
Construction
thumb|right|Animation based on the increasing of the value from 0.1 to 5.
In Weierstrass's original paper, the function was defined as a Fourier series:
<math display="block">\ f(x)=\sum_{n=0} ^\infty a^n \cos(b^n \pi x)\ ,</math>
where <math display="inline">\ 0 < a < 1\ ,</math> and <math display="inline">\ b\ </math> is a positive odd integer, and
<math display="block">\ a\ b > 1 + \tfrac{3}{2}\ \pi ~.</math>
The minimum value of <math display="inline">\ b\ </math> for which there exists <math display="inline">\ 0 < a < 1\ </math> such that these constraints are satisfied is <math display="inline">\ b = 7 ~.</math> This construction, along with the proof that the function is not differentiable at any point, was first delivered by Weierstrass in a paper presented to the Königliche Akademie der Wissenschaften on 18 July 1872.
Despite being differentiable nowhere, the function is continuous: Since the terms of the infinite series which defines it are bounded by <math display="inline">\ \pm a^n\ </math> and this has finite sum for <math display="inline">\ 0 < a < 1\ ,</math> convergence of the sum of the terms is uniform by the Weierstrass M-test with <math display="inline">\ M_n = a^n ~.</math> Since each partial sum is continuous, by the uniform limit theorem, it follows that <math display="inline">\ f\ </math> is continuous. Additionally, since each partial sum is uniformly continuous, it follows that <math display="inline">\ f\ </math> is also uniformly continuous.
It might be expected that a continuous function must have a derivative, or that the set of points where it is not differentiable should be countably infinite or finite. According to Weierstrass in his paper, earlier mathematicians including Gauss had often assumed that this was true. This might be because it is difficult to draw or visualise a continuous function whose set of nondifferentiable points is something other than a countable set of points. Analogous results for better behaved classes of continuous functions do exist, for example the Lipschitz functions, whose set of non-differentiability points must be a Lebesgue null set (Rademacher's theorem). When we try to draw a general continuous function, we usually draw the graph of a function which is Lipschitz or otherwise well-behaved. Moreover, the fact that the set of non-differentiability points for a monotone function is measure-zero implies that the rapid oscillations of Weierstrass' function are necessary to ensure that it is nowhere-differentiable.
The Weierstrass function was one of the first fractals studied, although this term was not used until much later. The function has detail at every level, so zooming in on a piece of the curve does not show it getting progressively closer and closer to a straight line. Rather between any two points no matter how close, the function will not be monotone.
The computation of the Hausdorff dimension <math display="inline">\ D\ </math> of the graph of the classical Weierstrass function was an open problem until 2018, while it was generally believed that <math display="inline">\ D = 2 + \log_b(a) < 2 ~.</math> That is strictly less than 2 follows from the conditions on <math display="inline">\ a\ </math> and <math display="inline">\ b\ </math> from above. Only after more than 30 years was this proved rigorously.
The term Weierstrass function is often used in real analysis to refer to any function with similar properties and construction to Weierstrass's original example. For example, the cosine function can be replaced in the infinite series by a piecewise linear "zigzag" function. G. H. Hardy showed that the function of the above construction is nowhere differentiable with the assumptions <math display="inline">\ 0 < a < 1\ ,~ a\ b \geq 1 ~.</math>
Riemann function
The Weierstrass function is based on the earlier Riemann function, claimed to be differentiable nowhere. Occasionally, this function
<math display="block">
f(x) = \sum_{n = 1}^\infty \frac{\sin(n^2x)}{n^2}
</math>
has also been called "the" Weierstrass function or "a" Weierstrass function.
While Bernhard Riemann strongly claimed that the function is differentiable nowhere, no evidence of this was published by Riemann, and Weierstrass noted that he did not find any evidence of it surviving either in Riemann's papers or orally from his students.
In 1916, G. H. Hardy confirmed that the function does not have a finite derivative in any value of <math display="inline">\pi x</math> where is irrational or is rational with the form of either <math display="inline">\frac{2A}{4B+1}</math> or <math display="inline">\ \frac{2A+1}{2B}\ ,</math> where and are integers. In 1971, J. Gerver showed that the function has no finite differential at the values of that can be expressed in the form of <math display="inline">\ \frac{2A}{2B+1}\ \pi\ ,</math> completing the problem of the differentiability of the Riemann function.
As the Riemann function is differentiable only on a null set of points, it is differentiable almost nowhere.
Hölder continuity
It is convenient to write the Weierstrass function equivalently as
<math display="block">\ W_\alpha(x) = \sum_{n=0}^\infty b^{-n\alpha}\ \cos(b^n \pi x)\ </math>
for <math display="inline">\ \alpha \equiv -\frac{\ln(a)}{\ln(b)} ~.</math> Then <math display="inline">\ W_\alpha(x)\ </math> is Hölder continuous of exponent , which is to say that there is a constant such that
<math display="block">\ \Bigl|\ W_\alpha(x) - W_\alpha(y)\ \Bigr|\ \le\ K\ \left|\ x - y\ \right|^\alpha\ </math>
for all <math display="inline">\ x\ </math> and <math display="inline">\ y ~.</math> Moreover, <math display="inline">\ W_1\ </math> is Hölder continuous of all orders <math display="inline">\ \alpha < 1\ </math> but not Lipschitz continuous.
Density of nowhere-differentiable functions
It turns out that the Weierstrass function is far from being an isolated example: although it is "pathological", it is also "typical" of continuous functions:
- In a topological sense: the set of nowhere-differentiable real-valued functions on is comeager in the vector space of all continuous real-valued functions on with the topology of uniform convergence.
- In a measure-theoretic sense: when the space is equipped with classical Wiener measure , the collection of functions that are differentiable at even a single point of has -measure zero. The same is true even if one takes finite-dimensional "slices" of in the sense that the nowhere-differentiable functions form a prevalent subset of
See also
- Blancmange curve
- Koch snowflake
- Nowhere continuous function
Notes
References
; General references
- English translation:
External links
- The Jagged, Monstrous Function That Broke Calculus - Quanta Magazine
- (a different Weierstrass Function which is also continuous and nowhere differentiable)
- Nowhere differentiable continuous function proof of existence using Banach's contraction principle.
- Nowhere monotonic continuous function proof of existence using the Baire category theorem.
- Weierstrass function in the complex plane Beautiful fractal.
- SpringerLink - Journal of Fourier Analysis and Applications, Volume 16, Number 1 Simple Proofs of Nowhere-Differentiability for Weierstrass's Function and Cases of Slow Growth
- Weierstrass functions: continuous but not differentiable anywhere
- The Weierstrass Function by Brent Nelson at Berkeley, showing non-differentiable
