Orbit Independent Solution: The Universal Anomaly
You may have noticed that the equations for the ellipse and the hyperbola are quite similar. In many cases, they differ only by a negative sign or a change from circular to hyperbolic trigonometric functions. This is largely due to the fact that all of the orbits are conic sections, so they share a similar mathematical genealogy.
The equations for an ellipse and a hyperbola are summarized in Table 2.
Table 2:The equations representing the ellipse and hyperbola trajectories
| Equation | Ellipse () | Hyperbola () |
|---|---|---|
| Orbit equation (true anomaly) | ||
| Cartesian Coordinates | ||
| Semimajor axis | ||
| Semiminor Axis | ||
| Energy Equation | ||
| Mean anomaly | ||
| Kepler’s Equation | ||
| Orbit equation (eccentric anomaly) |
The Universal Variable
Since these equations are so similar, we will try to find a way to unify them, such that we can solve a single equation regardless of the type of orbit. Given the initial position and velocity of the orbiting mass, we can determine the semimajor axis of the orbit from the energy equation:
Notice that for a hyperbolic orbit, will be negative from this equation, in contrast to our previous definition where was positive. This gives an easy way of determining the type of orbit before finding the eccentricity.
Then, we will define the universal variable, or universal anomaly , which is by definition zero at (the time when and are known). This is analogous to the true anomaly, which is zero on the apse line, and we previously defined to occur at the apse line.
Using the universal anomaly, we can find the position and velocity of the orbiting mass at any future time via:
where and we will define and shortly. Note that for hyperbolas, for parabolas () and for ellipses. This gives dimensions of square root of length, such that is dimensionless.
In a previous section, we identified the coefficients of and in equations similar to Eq. 270 as the Lagrange coefficients, in that case, in terms of the change of true anomaly. The equations in Eq. 270 give the Lagrange coefficients in terms of the universal anomaly.
Now, we need a way to solve for , the universal anomaly. We can write Kepler’s equation in terms of the universal anomaly as:
Like Kepler’s equation in the ellipse and hyperbola specific forms, this equation is transcendental in . If is known, the equation can be solved for the change in time interval, . If the time interval is known instead, we must use numerical techniques to solve the equation.
Next, we need to define the functions and .
Stumpff Functions
The functions and are Stumpff functions. They can be defined by infinite series of the form:
where is an integer that indicates the type of Stumpff function.
To solve Eq. 271, we don’t want to work with the infinite series forms of the Stumpff equations. Instead, we will convert the Stumpff functions to trigonometric functions using the Taylor series expansions of the circular and hyperbolic trigonometric functions. The third and fourth Stumpff functions, and respectively, define our and functions from above.
and
The two Stumpff functions are plotted in Fig. 66. Notice that both and tend toward infinity as approaches , and they approach zero as approaches .
from matplotlib.ticker import AutoMinorLocator
import matplotlib.pyplot as plt
import numpy as np
def stumpff_2(z):
x = np.full_like(z, np.nan)
x[z > 0] = (1 - np.cos(np.sqrt(z[z > 0]))) / z[z > 0]
x[z < 0] = (np.cosh(np.sqrt(-z[z < 0])) - 1) / (-z[z < 0])
x[np.isnan(x)] = 1/2
return x
def stumpff_3(z):
x = np.full_like(z, np.nan)
z_gt_0 = z[z > 0]
z_lt_0 = z[z < 0]
x[z > 0] = (np.sqrt(z_gt_0) - np.sin(np.sqrt(z_gt_0))) / np.sqrt(z_gt_0)**3
x[z < 0] = (np.sinh(np.sqrt(-z_lt_0)) - np.sqrt(-z_lt_0)) / np.sqrt(-z_lt_0)**3
x[np.isnan(x)] = 1/6
return x
x_1 = np.linspace(-50, 0, 100)
x_2 = np.linspace(0, 30, 100)
x_3 = np.linspace(30, 500, 300)
y0_1 = stumpff_2(x_1)
y1_1 = stumpff_3(x_1)
y0_2 = stumpff_2(x_2)
y1_2 = stumpff_3(x_2)
y0_3 = stumpff_2(x_3)
y1_3 = stumpff_3(x_3)
fig, (ax_1, ax_2, ax_3) = plt.subplots(figsize=(4, 6), dpi=200, nrows=3)
ax_1.plot(x_1, y0_1, label="$C(z)$")
ax_1.plot(x_1, y1_1, label="$S(z)$")
ax_1.grid(which="both")
ax_1.xaxis.set_minor_locator(AutoMinorLocator(2))
ax_1.yaxis.set_minor_locator(AutoMinorLocator(2))
ax_1.legend()
ax_2.plot(x_2, y0_2, label="$C(z)$")
ax_2.plot(x_2, y1_2, label="$S(z)$")
ax_2.grid(which="both")
ax_2.xaxis.set_minor_locator(AutoMinorLocator(2))
ax_2.yaxis.set_minor_locator(AutoMinorLocator(2))
ax_2.legend()
ax_3.plot(x_3, y0_3, label="$C(z)$")
ax_3.plot(x_3, y1_3, label="$S(z)$")
ax_3.grid(which="both")
ax_3.xaxis.set_minor_locator(AutoMinorLocator(2))
ax_3.yaxis.set_minor_locator(AutoMinorLocator(2))
ax_3.legend();
fig

Figure 66:The Stumpff functions defined by Eq. 273 and Eq. 274. Note the varying axes on the plots.
Relation of to Other Anomalies
We now seek to relate back to the anomalies for elliptical, parabolic, and hyperbolic orbits. For demonstration, we will choose the following initial conditions:
which is to say, the same initial conditions that we defined for the equations in terms of the true and eccentric anomalies. For the case of the parabola, and we can show that:
In the case of the ellipse, we know that , and we can show that:
Finally, for the hyperbola, and , and we can show that:
Summarizing these results, the universal anomaly is related to our previously defined anomalies as follows:
Generalizing from this to the case where , and does not occur at periapsis, we find:
where , , and are the true anomaly and eccentric anomalies at the time .
Numerical Solution of Kepler’s Equation in the Universal Anomaly
To formulate the numerical solution of Kepler’s equation in terms of the universal anomaly, we move everything over to one side of the equation, and seek the roots of:
The derivative of this function is also useful:
where , such that:
and
Substituting these results back into Eq. 282 gives:
The last thing we need for a solution using Newton’s algorithm is an initial guess. There are several methods suggested for this. In Curtis (2020), they suggest using:
In Prussing & Conway (2013), they suggest a couple of different options. First, Prussing & Conway (2013) show that the solution lies in the interval:
where and are the largest and smallest values of the radius. The most conservative choice of is the radius at periapsis for all the orbits:
For elliptical orbits, the most conservative choice of is the radius at apoapse:
For parabolas and hyperbolas, the most conservative choice is , such that:
With values of and computed, the initial guess is simply the average of the two:
Alternatively, a more refined estimate can be determined using a secant estimate of the root of Kepler’s equation:
where is the solution of Kepler’s equation with the value.
Note
Prussing & Conway (2013), citing Conway (1986), suggest that faster convergence in the solution of Kepler’s equation can be achieved by using the Laguerre algorithm, rather than Newton’s algorithm. Another advantage of the Laguerre algorithm is that it is relatively insensitive to the value of the initial guess.
The Laguerre algorithm can be implemented as:
The sign ambiguity in the denominator is determined by taking the sign of the numerical value of . In addition, the solution is relatively insensitive to the choice of the value of , which is an integer constant. It seems as though is a reasonable value. Choosing gives the standard Newton’s algorithm.
Derivation of is left up to the reader.
Although the Laguerre algorithm was originally intended for finding the roots of polynomial equations, it seems to work well in this application.
References¶
- Curtis, H. D. (2020). Orbital Mechanics for Engineering Students (fourth). Elsevier.
- Prussing, J. E., & Conway, B. A. (2013). Orbital Mechanics (Second). Oxford University Press.
- Conway, B. A. (1986). An Improved Algorithm Due to Laguerre for the Solution of Kepler’s Equation. Celestial Mechanics, 39(2), 199–211. 10.1007/BF01230852