Physicist: If you have plenty of chalkboard space and absolutely nothing better to do, you can write down numbers, letters (Greek if you’re δυσάρεστος), and mathematical operators and eventually you’ll have the longest equation ever written down. So if you really want to see the most complicated equation ever, call in sick for a few weeks. A better question might be “what is the most (but not needlessly) complicated equation?”.
There are plenty of equations that are infinitely long, but often they’re simple enough that we can write them compactly. For example, This equation goes on forever, but it’s fairly straight forward: every term you flip the sign and increase the denominator from one odd number to the next. You can write it in mathspeak as . Like π itself, this sum goes on forever, but it isn’t complicated. You can describe it simply and in such a way that anyone (with sufficient time and chalk) can find as many digits of π as they like. This is the basic idea behind “Kolmogorov Complexity“; the length of the shortest possible set of written instructions that can produce a given result (never mind how long it takes to actually compute it).
If you’re looking for an equation that needs to be complicated, a good place to look is physics (I mean, what else do you really need math for?). If you want to describe the behavior of a ball flying through the air it’s not enough to say “it goes up then down”; there’s a minimum amount of math that goes into accurately calculating the path of falling objects, and it’s more complicated than that.
Arguably, the universe is pretty complicated. But like π, it is deceptively so (we hope). If you want to do something like, say, describe the gravitational interactions of every star in the galaxy, you’d do it by numbering the stars (take your time: star 1, star 2, …, star n), determine the position and mass of each, and , and then find the force on each star produced by all the others. In practice this is absurd (there are a few hundred billion stars in the Milky Way, but we can’t see most of them because there’s a galaxy in the way), but the equation you would use is pretty straight forward. The force on star k is: . This is just Newton’s law of gravitation, , repeated for every possible pair of stars and added up. So while the situation itself is complicated, the equation describing it isn’t. Evidently, if you want an equation that genuinely needs to be complicated, you don’t need a complicated situation, you need complicated dynamics.
The whole point of physics, aside from understanding things, is to describe the rules of the universe as simply as possible. To that end, physicists love to talk about “Lagrangians”. Once you’ve got the Lagrangian of a system, you can describe the behavior of that system by applying the “principle of least action“, which says that the behavior of a system (the orbit a planet takes, the path of light through materials, etc.) will always be such that the “chosen” path will have the minimum total Lagrangian along that path. It’s a cute recipe for succinctly and simultaneously describing a lot of dynamics that would make Kolmogorov proud.
For example, you can sum up Newton’s physics almost instantly. Rather than talking about kinetic energy and momentum and falling, you can just say “Dudes and dudettes, if I may, the Lagrangian for an object flying through the air near the surface of the Earth is , where m is mass, v is velocity, and z is height”. From this single formula, you get the conservation of energy, conservation of momentum (when moving sideways), as well as the acceleration due to gravity. There are also Lagrangians for everything from orbiting planets to electromagnetic fields.
Generally, when you look at the same dynamics applied over and over, the equations involved don’t get much more complicated (although their solutions definitely do). And if you want to describe the dynamics of a system, Lagrangians are an extremely compact way to do it. So what’s the most (but not needlessly) complicated equation in the universe? Arguably, it’s the Standard Model Lagrangian, which covers the dynamics of every kind of particle and all of their interactions. Notably, it doesn’t cover gravity, but be cool. It’s a work in progress.
In some sense this equation is compressed data. All the relevant dynamics are there, but there’s a lot of unpacking to do before that becomes remotely obvious. All equations must have some context before they do anything or even mean anything. That’s why math books are mostly words. “2+2=4” means nothing to an alien until after you tell them what each of those symbols mean and how they’re being used. In the case of the Standard Model Lagrangian, each of these symbols mean a lot, the equation itself is uses cute short hand tricks, and it doesn’t even describe dynamics on its own without tying in the Principle of Least Action. But given all that, it’s describing the most complicated thing we can describe, which is nearly everything, without being needlessly verbose (“mathbose”?) about it.
Answer Gravy: This isn’t part of the question, but if you’ve taken intro physics, you’ve probably seen the equations for kinetic energy, momentum, and acceleration in a uniform gravitational field (like the one you’re experiencing right now). But unless you’re actually a physicist, you’ve probably never been freaked out by seeing a Lagrangian work. This gravy is full of calculus and intro physics.
The “action”, , is a function of the path a system takes, . More specifically, it’s the integral of the Lagrangian between any two given times:
where t1 and t2 are the start and stop times, is a path, is the time derivative (velocity) of that path, and is some given function of and . If you want to chose a path that extremizes (either minimizes or maximizes) S, then you can do it by solving the Euler-Lagrange equations:
This is called the Euler-Lagrange equations (plural) because this is actually several equations. Each different variable (x1=x, x2=y, x3=z) tells you something different. In regular ol’ calculus, if you want to find the value of x that extremizes a function f(x), you solve for the value x. Using the Euler-Lagrange equations is philosophically similar: to find the path that extremizes S, you solve for the path .
The Lagrangian from earlier, for a free-falling object near the surface of the Earth, is:
So the E-L equation says:
In other words, “everything accelerates downward at the same rate”. Doing the same thing for x or y, you get , which says “things don’t accelerate sideways”. Both good things to know.
You wanna be even slicker, note that this Lagrangian is independent of time. That means that . Therefore, applying the chain rule:
But we have the E-L equations! Plugging those in:
This thing in the parentheses is constant (since it never changes in time). In the case of we find that this constant thing is:
Astute students of physics 1 will recognize the sum of kinetic energy plus gravitational potential. In other words: this is a derivation of the conservation of energy for free-falling objects. A more general treatment can be done using Noether’s Theorem, which says that every symmetry produces a conserved quantity. For example, a time symmetry ( doesn’t change in time) leads to conservation of energy and a space symmetry ( doesn’t change in some direction) leads to conservation of momentum in that direction.