Some lines are very wiggly. 
Imagine a line that is very wiggly. 
Imagine a line that is one long, unbroken piece. Most lines look smooth if you zoom in close. But the Weierstrass function is different. It stays jagged no matter how much you zoom. It has tiny bumps at every level. .]
Karl Weierstrass found this special shape in 1872. He showed that a function can be continuous everywhere. Continuous means the line is connected without any breaks. However, it is also differentiable nowhere. Differentiable means you can find a smooth slope at a point. This function has no smooth parts at all. 
Many math experts were surprised by this. They used to think all connected lines were mostly smooth. Even the great mathematician Gauss thought this was true. Some people even called these functions a "scourge." They were hard to see before we had computers. Now, we know these shapes are fractals. A fractal is a shape that looks similar when you zoom in. These jagged curves help us model things like Brownian motion.
Imagine a line that is one long, unbroken piece. Most lines look smooth if you zoom in close. But the Weierstrass function is different. It stays jagged no matter how much you zoom. It has tiny bumps at every level. This shape is called a fractal curve. .] A fractal is a shape that looks similar when you zoom in. Every tiny part looks like the whole shape. This means the line never becomes a straight line. It stays bumpy and rough at every scale.
This function has two very strange properties. First, it is continuous everywhere. This means you can draw it without lifting your pen. There are no gaps or breaks in the line. Second, it is differentiable nowhere. Differentiable is a way to measure how smooth a curve is. It tells you the exact slope at any point. Because this function is so jagged, it has no smooth slope anywhere. 
Karl Weierstrass discovered this function in the 1800s. He shared his ideas with a group in Berlin. He presented his paper on 18 July 1872. Before this, many famous mathematicians were confused. Even a great thinker named Gauss thought smooth lines were the rule. Weierstrass proved that a connected line could be jagged everywhere. This discovery changed how people thought about math. It overturned many old proofs that relied on simple shapes.
This discovery was quite a shock to the math world. Some experts did not like these strange functions. A mathematician named Charles Hermite called them a "lamentable scourge." It was hard for people to picture them back then. They did not have computers to draw such complex shapes. It was not until much later that they became useful. Today, these jagged curves help us model Brownian motion. This is the way tiny particles move in a liquid.
We can see how this math connects to the real world. The Weierstrass function is a special type of fractal. Even though it seems weird, it is actually quite common. In a way, most continuous functions are actually like this. They are more jagged than the smooth lines we draw in school. We use these ideas to understand complex patterns in nature. Math helps us turn these wild shapes into something we can study.
The Weierstrass function is a famous mathematical object used in real analysis. It is a real-valued function that is continuous everywhere but differentiable nowhere. To be continuous means the graph is a single, unbroken path without any gaps. To be differentiable means you can find a specific slope or tangent line at any point. Most smooth curves become straight lines if you zoom in closely enough. However, the Weierstrass function remains jagged at every possible scale. This unique property makes it a classic example of a fractal curve. .]
We can understand the mechanism of this function through its mathematical construction. Karl Weierstrass originally defined it using a Fourier series. This series involves adding up many different waves together. The formula uses a constant called 'a' and a positive odd integer called 'b'. The function stays continuous because the sum of the terms is bounded. Specifically, the Weierstrass M-test shows that the infinite series converges uniformly. This uniform convergence ensures the resulting path is continuous and even uniformly continuous. 
This function is classified as a fractal because of its self-similarity. A fractal is a shape that looks similar no matter how much you zoom in. In a standard smooth function, zooming in eventually reveals a straight line. In the Weierstrass function, the curve is never monotone between any two points. This means it never stays strictly increasing or decreasing. Instead, it exhibits rapid oscillations that prevent a smooth slope from forming. Because of these constant fluctuations, the function has detail at every level of magnification.
Historically, the discovery of this function caused a massive shift in mathematics. Karl Weierstrass presented his findings to the Königliche Akademie der Wissenschaften on 18 July 1872. Before this, many prominent mathematicians, including Gauss, assumed that continuity implied differentiability almost everywhere. They believed that non-differentiable points would only occur at isolated spots. Weierstrass proved this intuition was wrong by showing a function could be jagged everywhere. This discovery overturned many existing proofs that relied on vague ideas of geometric smoothness.
Many of Weierstrass's contemporaries reacted to this discovery with frustration. The function was viewed as a "pathological" example, meaning it behaved in a way that seemed broken or unnatural. The mathematician Charles Hermite even described such functions as a "lamentable scourge." It was very difficult for people to visualize these shapes before the invention of computers. It was not until the next century that these jagged models gained wide acceptance. Today, they are essential for modeling Brownian motion, which describes the random movement of particles.
There are several related mathematical ideas that help explain the Weierstrass function's complexity. For instance, the function is Hölder continuous with an exponent of alpha. This describes how the function's values change relative to its input. However, the function is not Lipschitz continuous, which is a stricter type of smoothness. The function is also related to the earlier Riemann function. While Riemann claimed his function was nowhere differentiable, Weierstrass noted he found no published evidence of this. Later, in 1916, G. H. Hardy provided a rigorous confirmation regarding the function's derivatives.
Finally, the Weierstrass function is not just a strange exception; it is actually quite typical. In a topological sense, the set of nowhere-differentiable functions is "comeager" in the space of continuous functions. This means that, mathematically speaking, most continuous functions actually behave like the Weierstrass function. When using the Wiener measure, the collection of functions that are differentiable at even a single point has a measure of zero. This reveals that the smooth lines we study in basic calculus are actually the rare exceptions in the vast world of continuous mathematics.
🖼️ Images & Media (1)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.