Sitemap
Vagelis Plevris

Vagelis Plevris⁠

Structural engineer, professor and science communicator exploring engineering, mathematics, AI and science through clear, useful and engaging stories.

Press enter or click to view image in full size
Stylized graph of Thomae’s popcorn function on [0, 1] against an off-white background. Large popcorn kernels sit atop the tallest spikes at 0, 1/2, and 1, with smaller kernels at fractions such as 1/3 and 2/3. Many tiny blue and orange spikes cluster densely near the x-axis.

Member-only story

MATHEMATICAL MYSTERIES

The Popcorn Function: Continuous at Every Irrational, Broken at Every Rational

20 min readSep 25, 2026

--

Most functions we encounter early in mathematics behave the way a drawing suggests they should. Polynomials are smooth, trigonometric functions oscillate predictably, and even functions with discontinuities usually misbehave only at isolated points: a jump here, an asymptote there, perhaps a removable hole.

Press enter or click to view image in full size
Graph of the cubic polynomial f(x) = x³ − 3x. The smooth continuous curve rises to a local maximum near x = −1, passes through the origin, falls to a local minimum near x = 1, and then rises again.
A familiar polynomial function, f(x) = x³ − 3x. Its graph is smooth and continuous everywhere, illustrating the kind of well-behaved function encountered early in calculus.

Real analysis changes that picture. Once continuity, convergence, and integration are defined with complete precision, mathematicians can ask not only which familiar functions satisfy those definitions, but how far the definitions can be pushed. The nineteenth century produced a remarkable collection of such examples: functions that were continuous everywhere but differentiable nowhere, functions that were discontinuous everywhere, and functions whose graphs seemed deliberately designed to undermine geometric intuition.

--

--

Structural engineer, professor and science communicator exploring engineering, mathematics, AI and science through clear, useful and engaging stories.