What is the Matrix?

how matrix flows describe 2-D hydrodynamics

I left the cinema with goosebumps.

“This movie will change my life,” I thought.

With lasting euphoria I wandered home, against the backdrop of Lund’s white university building accentuated in the twilight. The building appears rigorous and self-assured in daylight, as a token of knowledge. But at night it bewilders. The year was 1999, and I was a university freshman. I had just watched The Matrix, and it did, in a way, change my life.

The momentous scene in The Matrix is when Neo, the computer hacker protagonist, first meets Trinity, at an underground nightclub. As the music turns edgy, the already alluring storyline becomes irresistible when Trinity whispers to Neo:

“I know why you’re here Neo. I know why you hardly sleep, why you live alone, and why night after night you sit at your computer. I know, because I was once looking for the same thing. […] It’s the question that drives us, Neo. You know the question, just as I did.”

“What is the Matrix?”

I learned that the English word matrix translates to the Swedish word matris, which I knew from high-school mathematics. Intense curiosity followed.

~

In high-school, I enjoyed science but had mixed feelings about mathematics. It was dull to memorize algorithms and apply them to variations of the same, poorly motivated equations. But programming was fun. Ever since my father had bought a Macintosh Plus and taught me to write simple programs in ZBasic, I was hooked for life.

During high-school lessons we competed to write demo-programs on our TI-82 calculators. The king of the hill was a classmate who quickly earned the nickname “Hacker-Björn”. One morning he kept energetically tapping his calculator while refusing to reveal anything. As he finally and triumphantly announced his demo, we gathered over his calculator like a flock of hungry gulls. He unveiled a smooth animation resembling the twisting of DNA. It was beautiful. And the way he had programmed it was remarkable. The rest of us had relied on the TI-82’s lagging graphics engine, but Hacker-Björn used simple ASCII output to produce fast, animated graphics. I was so impressed and jealous. It was an extraordinary lesson of thinking outside the box.

After high-school I moved to the south of Sweden to study engineering at Lund University. During the first year, soon after I had watched The Matrix, I began a course in linear algebra. Our teacher was Magnus Fontes and he was brilliant. With wits, he filled our minds with vectors and linear transformations, represented by matrices – lo and behold. He gave a motivation lecture, where he illustrated how his own research (in harmonic analysis) applies to the brewing of beer and to synthesizers in electronic music. Then suddenly, in-between sentences, he said:

“It’s a well-hidden secret among math professors that most problems can’t be solved.”

These words grew in me over the years. They evolved into a mantra, applicable to mathematics, science, and life in general: “The more I learn, the more I realize I don’t know.” There’s beauty in this awareness. It whispers of a world of possibilities.

The course in Linear Algebra transfigured my view of mathematics. It was no longer about memorizing algorithms. Linear Algebra is a self-contained theory. It’s abstract, yet concrete because it’s geometric. It evokes mental pictures.

~

Twenty years later, Milo Viviani and I began to study how geometry reveals itself in the equations of hydrodynamics. They were formulated by Leonhard Euler in 1757 but are still far from understood. The more mathematicians learn about these equations, the more peculiar their solutions appear to be. Yet, there are ways to approach them.

In 1854, Bernard Riemann developed a framework for describing generalized, higher-dimensional surfaces. Today we call this framework Riemannian geometry and it’s a cornerstone of modern mathematics. Vladimir Arnold realized in 1966 that Riemannian geometry can be used to describe Euler’s equations of hydrodynamics. The discovery is important because it maps mental pictures of geometry to intuition about hydrodynamics. A surface has curvature. What’s the curvature of hydrodynamics? What does it mean that hydrodynamics has curvature?

Consider a mountaineer walking along geodesics: whenever she pauses to look back at a point she passed before, she couldn’t have made it from that point to where she is via a shorter path. Imagine now two such mountaineers walking next to each other along a mountain ridge shaped like a saddle. The ridge has negative curvature, which implies that the mountaineers eventually diverge from each other, ending up on two different sides of the mountain. On the other hand, if they were walking in a crater, or near the top of a hill, where curvature is positive, they’d converge towards each other and eventually cross paths. In summary, geodesic motion is stable (i.e., converging) where curvature is positive and unstable (i.e., diverging) where it’s negative. By a leap of thought, the curvature of hydrodynamics thus reveals the stability of fluid motion, which is amazing.

A mathematical equation is blind to its applications. It’s a blueprint of a perfect machine, potentially useful but with no predestined purpose. Arnold’s discovery is of the type where two supposedly distinct areas of mathematics turn out to be related. It’s fascinating how it happened. Euler derived his equations, Riemann generalized geometry, and Arnold saw the former in the latter, each one century apart.

We cannot write down a formula that solves Euler’s equations. We need other ways to latch on to their solutions. One possibility is to replace the equations with simplified ones that computer algorithms can solve. But Euler’s equations are evasive, as though they’re designed to keep their solutions secret. There are computer algorithms that approximate solutions for short time interval, but they will fail for longer time intervals. And “longer” is typically quite short. A different strategy is needed.

In 1890, in his work on the stability of the solar system, Henri Poincaré laid down a new strategy to understand dynamical systems: stop focusing on individual solutions and instead study the qualitative behavior of generic solutions. And here Arnold’s geometry enters, because it unravels qualitative features and thereby enables Poincaré’s approach for the study of Euler’s equations. But for computer generated approximations there is still a problem: standard computer algorithms fail to preserve the geometry, so on long time intervals the qualitative properties disintegrate. Viviani and I asked if there are computer algorithms that approximate solutions of Euler’s equations in such a way that Arnold’s geometric description remains intact. I eventually remembered from my post-doc time in New Zealand that Robert McLachlan had showed me a curious way to approximate the 2-D Euler equations via something called the sine-bracket. It’s a method developed by Vladimir Zeitlin in 1991 which uses quantization theory to replace the continuous vector field in Euler’s equations with a matrix. Imagine my excitement.

We plowed the literature on Zeitlin’s model and found – not so much. While the method preserves Arnold’s geometry, it approximates individual solutions worse than standard algorithms and therefore didn’t catch on in the computational mathematics community. But we were not bothered, since individual solutions can’t be approximated for long times anyway, regardless of the choice of algorithm. Instead, we set out to learn more about Zeitlin’s model, which clearly was underexplored (and still is).

The beauty of Zeitlin’s model, or matrix hydrodynamics, is that it maps concepts from hydrodynamics to concepts about matrices, which enables new mathematical theory for matrices for addressing old questions about hydrodynamics. Furthermore, computers are superb at matrix calculations, so we can explore theoretical ideas via computer experiments. At the same time, the map from a fluid velocity field to a matrix is hard to grasp. What do the matrix elements really mean? Indeed, these days I often find myself late at night in front of the computer, half asleep, while thinking:

“What is the matrix?”

Fate, it seems, is not without a sense of irony.