Published
- 12 min read
Newtonian gravity using complex numbers
A brief refresher about complex numbers under rotational mechanic
I put a brief derivation in the previous article here. Do check it out if you are interested.
Let’s do a quick recap about velocity and acceleration as a complex numbers in a complex plane:
We are going to use the above definition a lot. A dot over a variable means first derivative wrt time. Two dots means second derivative wrt time.
Orbit equation using complex numbers
Let us start with something simple. A classic two body problem. Two celestial bodies in a plane is interacting via gravity.
A full Newton’s Second Law applied to the system will yield two nearly identical equation for each bodies. Usually we solve by defining the inertial reference frame first, in which case a point where Newton’s First Law is true. This is usually called the barycenter.
For a two body problem, the barycenter is very simple and contains symmetry. So you can further simplify it. You can look up at wiki to have some hints at the idea.
Since the equation of each bodies contains symmetry, solving one will solve the other. So we are just going to look at one of the bodies.
Let us define some variables first.
The two bodies have respective mass, and .
Gravitational constant is .
Distance between to the barycenter is .
Distance between and is a scalar multiple of the distance between to the barycenter, .
Why we need a barycenter
The barycenter is going to be used as the center (pun intended) of our derivation. If we want to use Newton’s Second Law. There has to be an inertial reference frame where Newton’s First Law holds true. We just need to find it. In a rotation, the criteria is even more strict (which makes it very easy). The axis of the rotation has to be an inertial reference frame, because the point doesn’t rotate. If it doesn’t rotate, it has zero angular speed which made most acceleration in a rotation becomes zero. The axis also means it becomes the center in which we measure the radial position. By definition, the axis has no radial position changes. Thus we can conclude the net force and torque in that position has to be zero.
So if the axis exists, that means the distance between two bodies doesn’t necessarily equal to the distance between each body to the axis. Because it is possible that the other body is rotating against this axis.
The usefulness of a barycenter is that we define a single axis in which these two bodies rotate against a common axis.
Use Newton’s First Law in the axis (barycenter). In the case of two body problem, the barycenter can be described as scalars or additions. But I prefer to describe it as scalars, because gravity deals an inverse square law which is not pretty if described as additions.
As you can see, we can choose arbitrary scalar for body 1, then there will be corresponding for body 2. So it is not contradictory. You can have the same conclusion when you use addition. But it made the equation of motion becomes unnecessarily complicated.
Equation of motion for one of the body
If we use Newton’s Second Law for one of the body, and utilizes complex numbers, we can describe that the gravity is always in the negative radial direction (point inwards into the axis/barycenter). If we use complex numbers with arbitrary angle argument:
For body 2
As you can see the equation is identical. Let’s simplify by calling as a constant . Because it is the same value in both of the equation.
From the barycenter equation (a requirement if we want to use Newton’s Second Law), we knew that both force is an action reaction pairs and both have to cancel each other. That means . In summary they are both opposite of each other in order for this to works.
We have now establish the relationship between bodies. Now we want to see the relations betweeen the acceleration.
Lets just look at the body 1
Let’s simplify it a bit. Index 1 doesn’t matter because every variables in the above equation are owned by body 1. So we can just remove the index. We can divide by the angle argumen because the acceleration complex number and the force complex number has the same argument. Due to they are always at the same phase. Lastly, since is also constant. Let’s define .
We have an interesting conclusion. Notice that the right hand side doesn’t have any imaginary component. This means, the imaginary part in the left hand side must also equal to zero. We can try and solve it.
It is a simple differential equation and separable. We can integrate both side.
We found a constant of motion. At any point in the trajectory, the quantity is constant. Usually, we call it angular momentum .
From the real part of the original Newton’s equation, we got.
This time, it is not so easy to solve because we have many variables. At a glance it seems to be easier to substitute into so we have less variables to work with. Using the previous angular momentum constants, we replace .
We have a second order differential equation. There are two distinct ways to approach the problem.
Using energy equation
Let’s rewrite the equation into an energy equation. Usually we replace . In other words, we integrate the equation along .
We want to make things more simple, so we try to substitute , in the hope that the right hand side can be easily operated.
The equation seems to be difficult to integrate. So we change variable again. Instead of involving variable , we now want to use . From the angular momentum:
Substitute this back to the energy equation.
Now, if we take derivative wrt to instead, we can make most squares linears.
The final form of the equation is a second order linear differential equation. We can easily solve it using complex numbers. If we use a complex number and the equation becomes:
Using a general solutions of this differential equation, the complex number , conveniently, is in the form . Then we do back substitution.
In order for this to become our solution, it must satisfy our requirements:
- is a real number (not complex)
- At we want the distance of the body to the barycenter to be minimum (usually called perigee)
Now, here’s the catch if we use complex numbers. There is a simplifying property about complex numbers in second order linear differential equation. Due to the linearity of the equation, if we want to have a more strictly real solution for , we can just take real part of to become the solution. This is because for linear differential equation, if a solution satisfy the equation, then it’s linear combination must also satisfy it.
In other words, since , then (the real part) is also a solution of the equation. The final form of can then be simplified as:
Since the above form is actually a radius of elliptic shape, people usually just wrote it in generic form like this:
Because the closest radius (when ) is called the perigee, the distance is just at that angular position. The value itself follows from the value of , , and .
To summarize, because we uses complex numbers, some relationships becomes “obvious” in this approach:
- Angular momentum conservation is just a consequence of no imaginary terms from the Newton’s Law (ends up being )
- Immediately obvious that is needed in energy equation to linearize the equation
- Directly follows that we can replace parameter with because we are dealing with complex numbers. Naturally, it will involves angles.
- The final second order differential equation has complex numbers as the generic solution. We can then infer that we only need the real part. We got the solution for free.
Using substitution
Although the energy equation is straightforward, it feels cumbersome because we take several steps just to arrive at the final second order differential equation. We can derive alternative approach using some kind of “abuse” of the fact that equation of motion itself, can be a complex equations. So why not just solve it in the complex plane entirely, then take only the real solution at the end?
Our starting point is the same, the Newton’s equation of motion:
However, this time, instead of solving the real part. We solve both the real and imaginary part, together. So back to our complex equations with :
Use the fact again, that the imaginary terms in the right hand side doesn’t exists if everything is in the same phase . We got . Substitute this to replace .
This is actually a nice equation because:
- The variables are already separable, in the left and in the right
- Both and are linear
To illustrate the second point, we can rewrite the equation as follows:
Since the derivative wrt to time is zero, the terms above is a conservation Law too. But, in the complex domains.
You can either “abuse” the notation again to integrate it, or use calculus fact. If the derivative is zero, that means the terms inside the derivative is constanst (complex number).
What we understand at the moment is that is the complex representations of the velocity of our body (it contains both tangential and radial velocity). If we substitute that again:
This time, we use the fact about complex numbers again. The left side is separated by real and imaginary terms. The real term is not so interesting (it is the radial velocity ). But the imaginary terms is very interesting. It contains no derivative of , but it contains derivative of . The right hand side, doesn’t contains derivative but it contains . That means, if we substitute we will have a direct relationship between and . We already know that . So the equation becomes:
Taking only the imaginary part of the left side, we got:
(Note that operator means, only take the imaginary part, just as operator means only take the real part). Remember that is a complex number, however if we choose an initial condition, such that , then is a pure imaginary number. In other words, it can be expressed as , where is a real constant.
It is the same result like before, but much simpler derivation.
Remark
As you can see, complex representations can be proven useful for some cases. In our particular cases, it was because an object rotation can be naturally represented as complex numbers. So, no wonder if it can be solved and understood easier this way. Complex numbers are basically a rotation (mathematical) group, so the solution fits neatly.
If we compare both approach (energy equation or substitution), each of them has their own merits. The energy equation teaches us about the fundamental physical principle (conservation of energy and momentum) via usage of complex numbers representations. This implies that for solving planar orbital equation (in 2D), the complex numbers, and 2D vectors of Newton’s Law, are actually working principle in the same spaces. So a method in complex numbers can be applied to the equation of motion, because they are the same domain.
As opposed to that, the substitution approach, relies on “pure” math. It doesn’t need any physical assumptions. It’s just happened that way. It’s like solving an analytical complex equation problem, and it turns out to be representing a real orbital trajectories of two body system.
I like the substitution approach because it is more fundamental and elegant. It doesn’t need a physical intuition. However, it is not a physical method. If you are using the substitution method, it doesn’t guarantee that the same approach can be applied to other physical systems. The energy equation is more methodical. You doesn’t need to be a math genius to arrive at the conclusions.
If I were to make an analogy, the substitution approach feels like an expert seamen traveling from a port to port. He is already an expert. He can read winds, climate, stars, etc. The energy equation approach feels like seamen using map and compass. He trusts the map and compass, and then make methodical judgement on where they need to go. Both goes hand in hand in which an expert/genius seamen can make charts and compass so that it can help regular seamen to navigate dangerous unfamiliar seas.