In 1865, James Clerk Maxwell was reviewing his own equations. They described electricity and magnetism, two phenomena physicists of the time still treated as separate. Combining them, a number fell out of the calculation: the speed at which his theoretical electromagnetic waves would propagate was approximately 310,000 km/s.
That was also, within experimental uncertainty, the speed of light measured by Fizeau sixteen years earlier.
Maxwell drew the obvious conclusion: light is an electromagnetic wave. No experiment, no sensor — just symbols on paper. Hertz would confirm it experimentally in 1888, twenty-three years later.
This kind of moment repeats throughout the history of science with an unsettling regularity. Mathematics developed for entirely abstract reasons ends up describing physical reality with a precision that has no business existing. In 1960, physicist Eugene Wigner gave the phenomenon a name. He called it "the unreasonable effectiveness of mathematics in the natural sciences." And he was honest enough to admit he had no explanation.
Galileo raised the question, without the answer
In 1623, Galileo published Il Saggiatore, a scientific polemic responding to a Jesuit who disputed his work on comets. In passing, he slipped in an idea that would travel four centuries:
"The book of natural philosophy is perpetually open before our eyes, but it is written in characters different from those of our alphabet: triangles, squares, circles, spheres, cones, pyramids and other geometric figures."
This is intuition, not proof. Galileo did not demonstrate that nature is mathematical. He sensed it, stated it, and went back to his comets. In 1623, differential equations did not yet exist. Quantum mechanics, mathematical biology — nobody had the tools to verify it.
What is striking is that he was right without being able to know it. That kind of prophecy draws its value entirely from what came after.
The list that makes your head spin
Five examples. Any one of them could have passed for coincidence. Together they form a pattern.
Maxwell (1865). Four equations unifying electricity and magnetism. Combining them, Maxwell derived the speed of an electromagnetic wave: c = 1/√(ε₀μ₀) ≈ 300,000 km/s. That matched the speed of light measured by Fizeau in 1849. Maxwell concluded that light is an electromagnetic wave. Hertz confirmed it experimentally in 1888, twenty-three years later.
Schrödinger (1926). The equation describing the evolution of a quantum system predicted the energy levels of the hydrogen atom with a precision the instruments of the time could not yet reach. Troubling detail: the wave function is inherently complex. Not a computational shortcut where you take the real part at the end. Complex numbers are in the foundations of quantum mechanics. Remove them and you have no quantum mechanics.
Hodgkin and Huxley (1952). Five differential equations to model the action potential of a neuron, based on measurements from the giant squid axon. They predicted the exact shape of the electrical spike a neuron produces, including details that the instruments of the time could not yet resolve. The model was right before the equipment existed to verify it. Nobel Prize in physiology, 1963.
Lotka and Volterra (1925–1926). Alfred Lotka published his equations in 1925 to describe oscillations in chemical reactions. Vito Volterra independently rediscovered them in 1926, prompted by his son-in-law, a biologist trying to explain oscillations of predator and prey fish populations in the Adriatic: World War I had reduced fishing, predators had multiplied, then prey had bounced back. Two people who did not know each other, working on different problems, arriving at the same equations.
Riemann and Einstein (1854–1915). In 1854, Bernhard Riemann developed an abstract theory of curved spaces in his Habilitation lecture at Göttingen. No physical application in sight. In 1915, Einstein used it as the language of general relativity. Sixty-one years.
Complex numbers: the most troubling case
In 1545, Gerolamo Cardano published Ars Magna. Solving cubic equations, he encountered square roots of negative numbers. He manipulated them — it worked algebraically — but called them "subtle, though useless." In 1572, Rafael Bombelli systematized their rules in Algebra and showed that you could find real roots of cubic equations by passing through imaginary territory.
For about three hundred and fifty years, complex numbers were an abstract algebraic tool. Elegant, useful for certain calculations, but with no connection to physical reality. Physicists sometimes used them as a computational shortcut, but "at the end you take the real part" — the physical world stayed real.
In 1926, Schrödinger wrote his equation. The wave function is intrinsically complex. Not a shortcut: complex numbers are in the foundations of quantum mechanics. Remove them, you have no quantum mechanics.
Three hundred and eighty-one years between the "useless" invention and the indispensable application.
Wigner names the unease (1960)
Eugene Wigner, a Hungarian-born American physicist, delivered a lecture at NYU in 1959, published the following year in Communications in Pure and Applied Mathematics under the title "The Unreasonable Effectiveness of Mathematics in the Natural Sciences."
The paper opens with an anecdote: two former high school classmates run into each other. One became a statistician. He shows the other an article on population trends, with a bell curve in it. The other points to the symbol π in the formula and asks what it is doing there. "That is pi, the ratio of a circle's circumference to its diameter." "But we are talking about population statistics. What do circles have to do with it?" The statistician shrugs.
Wigner builds the argument rigorously, example after example, and concludes:
"The miracle of the appropriateness of the language of mathematics for the formulation of the laws of physics is a wonderful gift which we neither understand nor deserve."
What is remarkable about this text is its honesty. Wigner does not propose an explanation. He names the phenomenon, documents it, and admits he does not understand it.
Three answers, none satisfying
Since 1960, responses have accumulated. None closes the debate.
The universe is mathematics (Tegmark, 2014). In Our Mathematical Universe, physicist Max Tegmark pushes the idea to its limit: physical reality is not described by a mathematical structure, it is one. Every consistent mathematical structure exists physically somewhere in a mathematical multiverse. It is elegant. It is also unfalsifiable by construction, which makes it as much a philosophical position as a scientific one.
It is survivorship bias (Hamming, 1980). Richard Hamming, in an article in the American Mathematical Monthly, turns the argument around: we only notice the math that works. Thousands of mathematical structures are developed without ever finding physical application. We select the mathematics to fit the problem, then present it as a miraculous coincidence. That is a genuine partial refutation. It does not account for complex numbers in quantum mechanics: there, the math does not "fit" the problem — it is the only language in which the problem can be written at all.
It is evolution (anthropic argument). Our brain evolved to survive in a physical world: modelling space, quantities, causality. The mathematics it produces is therefore "coloured" by that world. No wonder it fits. This is the most sober explanation. The problem: it does not hold for mathematics invented with no physical intention whatsoever. Cardano in 1545 was solving abstract algebraic equations. He was not modelling his environment. Yet his complex numbers became, 381 years later, the only language available to describe how electrons behave.
It is a genuine mystery (Wigner, Penrose). Wigner himself, and Roger Penrose after him in The Road to Reality (2004), maintain that the correspondence is too precise, too repeated, too deep to be an artifact. There is something here we do not understand. That is not a mystical position — it is honesty about the state of the question.
Conclusion
What is unsettling is not that code uses mathematics. It is that mathematics describes physical reality with a precision nobody asked for and nobody explains. Code is just the next step. It inherits a mystery it did not create.
And perhaps it will deepen it. Hodgkin and Huxley in 1952 had five equations for a single neuron — worked out by hand, on paper. AlphaFold predicts the three-dimensional structure of any protein with a precision that stunned biologists. Models of cellular dynamics run on billions of parameters. Living systems are written in mathematics like everything else — we are only beginning to have the tools to read them.
Galileo had the intuition in 1623. Wigner named the problem in 1960. In 2026, the question remains open. And code has become one of the instruments for exploring it.