In
mathematics, the Weierstrass function is an example of a real-valued
function that is
continuous everywhere but
differentiable nowhere. It is an example of a
fractal curve. It is named after its discoverer
Karl Weierstrass
Karl Theodor Wilhelm Weierstrass (german: link=no, Weierstraß ; 31 October 1815 – 19 February 1897) was a German mathematician often cited as the "father of modern analysis". Despite leaving university without a degree, he studied mathematic ...
.
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 denounced by contemporaries:
Henri Poincaré
Jules Henri Poincaré ( S: stress final syllable ; 29 April 1854 – 17 July 1912) was a French mathematician, theoretical physicist, engineer, and philosopher of science. He is often described as a polymath, and in mathematics as "The ...
famously described them as "monsters" and called Weierstrass' work "an outrage against common sense", while
Charles Hermite wrote that they were a "lamentable scourge". The functions were impossible 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
Brownian motion, or pedesis (from grc, πήδησις "leaping"), is the random motion of particles suspended in a medium (a liquid or a gas).
This pattern of motion typically consists of random fluctuations in a particle's position insi ...
necessitated infinitely jagged functions (nowadays known as fractal curves).
Construction

In Weierstrass's original paper, the function was defined as a
Fourier series
A Fourier series () is a summation of harmonically related sinusoidal functions, also known as components or harmonics. The result of the summation is a periodic function whose functional form is determined by the choices of cycle length (or '' ...
:
:
where