Solving Kepler’s Equation: Numerical Methods for Engineering Education ()
1. Introduction
Kepler’s equation arises in many applications of science and engineering, particularly in orbital mechanics and celestial dynamics. Although it has a simple scalar form, its numerical solution has attracted sustained attention for several centuries. Colwell [1] reviewed its historical development and cited more than four hundred related publications up to 1993. The continuing appearance of new solution procedures demonstrates that Kepler’s equation remains an instructive and practically important nonlinear problem. General treatments of the orbital and celestial mechanics setting, including discussions of Kepler’s equation and its applications, are available in the books by Meeus [2], Danby [3], Fitzpatrick [4], Hintz [5], and Giorgilli et al. [6].
The present work was motivated in part by the recent study of Bekir [7], in which useful linear and quadratic empirical formulae were used to construct initial approximations for Newton’s method in the elliptic case. The resulting approximations allowed the solution to be obtained in no more than a few Newton iterations over the parameter ranges considered. On the other hand, the purpose of the present work is to develop a systematic approach based on standard numerical procedures. This viewpoint leads to a broader investigation of interpolation-based initial approximations and their behaviour near the difficult limiting regimes.
Kepler’s equation is a scalar nonlinear equation whose solution depends on the mean anomaly and the eccentricity. Its apparent simplicity makes it an effective example through which several standard ideas in numerical analysis can be introduced and compared. These include bracketing by bisection; Newton, Halley, and Chebyshev iterations; inverse interpolation; convergence order; and the treatment of nearly singular behaviour. The relationships among higher-order iterations for a single nonlinear equation are discussed in the classical work of Householder [8].
In this paper, linear, quadratic, ordinary cubic, and piecewise cubic Hermite inverse approximations are examined as systematic procedures for constructing initial guesses. Uniform grids are first considered, followed by geometrically stretched and analytically optimised grids. Inverse interpolation and spline-based inversion of Kepler’s equation have previously been studied, notably by Tommasini and Olivieri [9]. The distinguishing feature of the present approach is the systematic construction of non-uniform stretched grids guided by the asymptotic behaviour of the solution near the parabolic limit. As
in the elliptic case and
in the hyperbolic case, the inverse mapping develops increasingly rapid variation near the singular region. A uniform grid does not distribute its nodes efficiently in this limit. We therefore concentrate the interpolation nodes in the region where they are most needed, using stretching strategies derived from the corresponding singular behaviour. This provides a unified and physically motivated treatment of the elliptic and hyperbolic regimes while maintaining the parabolic case as their common limiting configuration.
This asymptotically guided grid construction is not merely an implementation detail; it is a central element of the present strategy. The inverse interpolation framework supplies the local approximation, whereas the stretched grid determines how the available information is distributed so that accuracy is maintained as the parabolic limit is approached. Both elliptic and hyperbolic forms of Kepler’s equation are studied, and the accuracy and efficiency of the resulting algorithms are evaluated numerically.
Several alternative approaches are also considered. Continuation methods are introduced in the spirit of solution-path and fixed-point techniques [10]. Wynn’s epsilon algorithm is used as a nonlinear sequence transformation, following the general framework discussed by Weniger [11]. Finally, algebraic and derivative homotopy formulations are examined in connection with the homotopy solution of the elliptic and hyperbolic Kepler equations proposed by Fitz-Coy and Jang [12]. These alternatives illustrate different ways of transforming, approaching, or accelerating the solution of a nonlinear equation.
Here, Kepler’s equation is used as a unified example to study how analysis, approximation, iteration, and numerical experimentation can be combined in the solution of a nonlinear equation. More advanced approaches requiring complex-variable analysis are beyond the scope of the present work.
2. Kepler’s Equation and Its Three Regimes
Consider the two-body problem of orbital mechanics, in which the relative motion of two bodies—such as a planet and a star, or an artificial satellite and Earth—is described by a conic section. According to the eccentricity
, the orbit is elliptic for
, parabolic for
, and hyperbolic for
, as illustrated in Figure 1. Kepler’s equation relates time, represented by a mean anomaly, to an angular or auxiliary anomaly that locates the moving body on its orbit.
Figure 1. The elliptic, parabolic, and hyperbolic orbital regimes, classified by eccentricity.
Geometrically, the parabolic orbit is the continuous boundary between the two other regimes: with the periapsis distance held fixed, the elliptic orbit approaches the parabola as
, while the hyperbolic orbit approaches the same parabola as
. This two-sided limiting behaviour is shown in Figure 2. The corresponding time-of-flight equations require a suitable limiting change of variables; direct substitution of
into the elliptic or hyperbolic Kepler equation does not by itself produce Barker’s equation.
2.1. Elliptic Case
For an elliptic orbit, Kepler’s equation is
(1)
where
is the mean anomaly and
is the eccentric anomaly. The geometric definition of
is shown in Figure 3. The ellipse is stretched vertically into its circumscribing auxiliary circle. The circular sector has area
, while the focus triangle has area
. Their difference is
, which leads directly to Equation (1) [13].
Figure 2. Two-sided convergence to the parabolic orbit for a fixed periapsis distance
. The curves
and
nearly coincide with the parabola near periapsis.
Figure 3. Geometric construction of the elliptic eccentric anomaly
and true anomaly
. Original Figure based on the geometric definitions summarised by [13].
For fixed
, the function
is monotone because
. Consequently, a prescribed
determines a unique
.
2.2. Parabolic Case
At
, the elliptic eccentric anomaly becomes degenerate, and the time-of-flight relation is expressed conveniently by Barker’s equation [14]-[16]. The precise limiting relationship between the elliptic and hyperbolic Kepler equations and Barker’s equation is derived in Appendix. Let
denote the true anomaly, measured at the focus from the direction of periapsis, and define the parabolic anomaly
(2)
Barker’s equation may then be written as
(3)
where
is the current time,
is the time of periapsis passage,
is the semilatus rectum, and
is the gravitational parameter. Introducing
gives
(4)
Figure 4 shows the corresponding half-angle construction [17]. Since
, every prescribed
determines a unique
, and
.
Figure 4. Geometric definition of the parabolic anomaly
. Original Figure based on the parabolic formulation summarised by [17].
2.3. Hyperbolic Case
For a hyperbolic orbit, the hyperbolic anomaly is denoted by
. The hyperbolic form of Kepler’s equation is
(5)
The anomaly
is a hyperbolic angle, represented by twice the area of an auxiliary hyperbolic sector rather than an ordinary Euclidean angle. In Figure 5, subtracting the auxiliary sector
from the triangle
gives
and hence Equation (5) [18].
Figure 5. Geometric construction of the hyperbolic anomaly
and true anomaly
. Original Figure based on the hyperbolic definitions summarised by [18].
For
,
, so a prescribed mean anomaly determines a unique hyperbolic anomaly. These constructions provide a unified introduction to the three orbital regimes and reveal the monotonicity and uniqueness of the inverse relation before numerical iteration is introduced.
3. Iterative Methods
Let
(6)
represent a nonlinear algebraic equation whose solution is sought by an iterative method. We denote an exact root by
and the current approximation by
.
3.1. Fixed-Parameter Iteration and an Artificial-Time Interpretation
The simplest fixed-parameter iteration may be written as
(7)
where
is fixed. Equation (7) may also be viewed as a forward Euler discretisation, in an artificial time
, of
(8)
with the artificial time step absorbed into
. Starting from an initial guess
, and with a suitable choice of
, the iteration seeks a steady state
satisfying
.
To see the local convergence condition, let
. Linearisation of (7) about a simple root gives
(9)
Thus, local convergence requires
(10)
When it converges, the fixed-parameter iteration is generally only linearly convergent. Faster convergence can be obtained by allowing the effective parameter to depend on the current iterate.
3.2. Taylor-Series Basis
The following methods can be motivated by expanding
about the current approximation
, assumed to be sufficiently close to the simple root
. With
(11)
we have
(12)
In the formulas below,
and all its derivatives are evaluated at
unless an argument is displayed explicitly.
3.3. Newton’s Method
Newton’s method retains only the first two terms of Equation (12) and neglects the higher-order terms, assuming that
is small. Hence
(13)
which gives the Newton correction
(14)
The resulting iteration is
(15)
For a sufficiently smooth function, a simple root, and an initial guess close enough to that root, Newton’s method converges quadratically.
3.4. Chebyshev’s Method
To obtain faster convergence, Chebyshev retains the first three terms of Equation (12). Direct retention would produce a quadratic equation for
. Chebyshev avoids solving it by approximating
with the square of the Newton correction:
(16)
Substitution into the truncated Taylor expansion gives
(17)
and therefore
(18)
Chebyshev’s method has cubic local convergence.
3.5. Halley’s Method
Halley uses the same three-term Taylor approximation but replaces
by the product of the Newton correction and the unknown Halley correction:
(19)
The resulting equation is linear in
and yields
(20)
Thus,
(21)
Halley’s method also has cubic local convergence. Both Chebyshev’s and Halley’s methods require evaluation of
, whereas Newton’s method requires only
. Thus, to avoid solving a quadratic equation for
, Chebyshev and Halley introduced appropriate simplifications without sacrificing cubic convergence. Similarly, Danby avoided solving the cubic polynomial equation for
by using a sequence of nested corrections.
3.6. Danby’s Fourth-Order Method
Danby and Burkardt [19] retained additional information from the Taylor expansion and constructed nested corrections of progressively higher order. In a sign convention consistent with Equation (14), define
(22)
(23)
(24)
The new approximation is
(25)
The corrections
,
, and
generate, respectively, second-, third-, and fourth-order local convergence. The last formula is commonly known as Danby’s method. It requires derivatives through
. Danby [3] provides the broader celestial mechanics setting in which this iteration is used.
3.7. Householder’s General Family
Householder developed a systematic family of higher-order iterations using a Padé construction; see his monograph [8] and related paper [20]. The result can be expressed compactly in terms of derivatives of the reciprocal function
:
(26)
where the superscript in parentheses denotes differentiation. For a sufficiently smooth function and a simple root, Equation (26) has local convergence of order
. In particular,
gives Newton’s second-order method;
gives Halley’s third-order method;
gives a fourth-order method requiring derivatives through
;
gives a fifth-order method requiring derivatives through
.
The compact notation in Equation (26) should not obscure its computational cost: increasing the formal convergence order requires additional derivatives and more algebra per iteration. Consequently, a higher-order method is not automatically more efficient. Its advantage depends on the cost and reliability of the derivatives, the quality of the initial approximation, and the number of function evaluations saved.
3.8. Summary of Iterative Methods
This progression gives a useful systematic interpretation of several familiar root-finding procedures. The fixed-parameter iteration is generally linear; Newton’s method uses a variable correction and is quadratic; Chebyshev’s and Halley’s methods use the second derivative and are cubic; Danby’s nested correction uses the third derivative and is fourth order; and Householder’s formula extends this construction to arbitrary order. These orders describe local behaviour near a simple root. They do not guarantee convergence from a distant initial guess or near a multiple root, and the denominators appearing in the formulas must remain safely separated from zero. Several other, more sophisticated methods for solving nonlinear equations are available; however, they will not be discussed here.
4. Initial Guesses
Newton-type methods generally require a sufficiently accurate initial guess to ensure rapid and reliable convergence. Several studies have examined this issue in detail, particularly for Kepler’s equation. Esmaelzadeh and Ghadiri [21] compared several starting approximations for the Newton-Raphson method and evaluated their performance in terms of stability, number of iterations, and computational time. Charles and Tatum [22] examined the convergence of Newton’s iteration for Kepler’s equation, while Mikkola [23] developed a widely used cubic starting approximation. Mathar [24] proposed additional improved first estimates in an arXiv preprint revised in 2025.
The role of the starting approximation becomes especially important near the parabolic limit, where the variation of the inverse mapping becomes strongly non-uniform. A practical strategy is first to identify a small interval that contains the solution and then to use a local approximation from that interval as the initial value for a higher-order iteration.
5. Bisection and Local Approximation Methods
The classical bisection method provides a reliable procedure for locating a solution. Let the root
be bracketed by
such that
(27)
At iteration
, define
(28)
If
, set
(29)
otherwise set
(30)
After
bisections,
(31)
Bisection is globally reliable once a valid bracket has been established, although its convergence is only linear. It can therefore locate a small region containing the root before a higher-order iteration or interpolation formula is applied.
Approximation and interpolation methods provide another approach. For Kepler’s equation, the function and all required derivatives are analytically available at every grid point. It is therefore unnecessary to construct a highly accurate approximation over the entire domain. Once the interval containing the desired solution is identified, a local approximation can be constructed from neighbouring function and derivative values.
6. Inverse Interpolation
Inverse interpolation is particularly attractive for Kepler’s equation. Instead of approximating
and then solving the approximation for
, we interchange the variables and directly approximate
(32)
This switching of variables has been used in spline-based inversion methods; a particularly relevant treatment is given by Tommasini and Olivieri [9]. Closely related interpolation-based solvers were developed by Raposo-Pulido and Peláez for the elliptic [25] and hyperbolic [26] Kepler equations. Their work emphasises accurate local starting approximations, high-order endpoint interpolation, and special treatment of the nearly singular region.
For the elliptic equation,
(33)
the mapping is monotone because
(34)
For neighbouring points
and
, define
(35)
Suppose that the interval containing the required solution has been located. The interpolation stencil is then formed from nearby tabulated pairs
. At an endpoint of the tabulated range, the stencil is shifted so that only available nodes are used. The following formulas provide a natural progression in approximation order.
6.1. Linear Inverse Interpolation
The simplest inverse approximation uses two neighbouring nodes:
(36)
For a sufficiently smooth inverse function, its error is
(37)
where
lies in the smallest interval containing the interpolation nodes and the target value
.
6.2. Quadratic Inverse Interpolation
Using three local nodes
,
, and
gives the quadratic Lagrange approximation
(38)
The corresponding error has the form
(39)
6.3. Cubic Inverse Interpolation
Ordinary cubic interpolation uses four function values. With the local stencil
, define
(40)
The cubic Lagrange approximation is then
(41)
with error
(42)
This formula remains completely local and requires no derivatives, but it uses data from four distinct grid points.
6.4. Piecewise Cubic Hermite Inverse Interpolation
An alternative cubic approximation uses the two endpoint values and the two endpoint derivatives on a single interval. Define
(43)
The inverse derivatives are known analytically:
(44)
The cubic Hermite approximation on the interval is
(45)
Its error is
(46)
Thus ordinary cubic interpolation uses four inverse-function values, whereas piecewise cubic Hermite interpolation uses two values and two analytically available inverse derivatives. Adjacent intervals share the same nodal value and first derivative, so the resulting piecewise interpolant is
. Its second derivative, however, is not generally continuous across an interval boundary. Consequently, this construction is not a classical cubic spline, which normally has
continuity. The cubic Hermite formula directly produces an approximation to the eccentric anomaly, is local to one interval, and requires neither the solution of an interpolating polynomial nor the global linear system required by a cubic spline. This makes it especially natural for Kepler’s equation. If greater interpolation accuracy is required, the next natural choice is a piecewise quintic Hermite interpolant. In addition to the function values and first derivatives used by the cubic Hermite formula, it matches the second derivatives at the two endpoints. Adjacent intervals then share values, first derivatives, and second derivatives, giving a
piecewise interpolant. It is still distinct from a conventional quintic spline, which generally imposes higher global smoothness.
The same construction applies to the hyperbolic Kepler equation,
(47)
for which
(48)
and to Barker’s parabolic equation,
(49)
Thus, in all three regimes, the forward function and the derivatives required for inverse interpolation are available analytically at every grid point.
The linear, quadratic, ordinary cubic, and cubic Hermite formulas apply in the same way after replacing
by
or
and using the appropriate tabulated values. It is not necessary to construct a high-accuracy global approximation over the complete domain. After the interval containing the solution has been identified, an accurate local inverse approximation can be formed using only neighbouring grid values. The efficiency of this procedure depends strongly on grid placement. Near
, the proposed stretched grids concentrate nodes according to the singular behaviour of the inverse solution. This choice also follows directly from the error formulas above: reducing the local spacing reduces the products of the interpolation factors precisely where the higher inverse derivatives become large. The singular point itself is excluded from the interpolation stencil. The stretched grid thereby complements the inverse interpolation formula and is a central distinguishing feature of the present strategy.
7. Asymptotic Behaviour near the Parabolic Limit
The difficulty near
can be understood directly from the local asymptotic forms of the elliptic and hyperbolic equations. The analysis also shows that the two regimes possess the same leading singular behaviour. Only real variables are required.
7.1. Elliptic Limit:
Write
(50)
and consider the region of small eccentric anomaly
. Expanding the sine in the elliptic Kepler equation gives
(51)
Consequently, the common leading terms are
(52)
At the origin, the inverse slope is
(53)
which becomes unbounded as
. Thus the inverse solution changes rapidly near
, even though the forward equation remains smooth.
7.2. Hyperbolic Limit:
Similarly, write
(54)
For small hyperbolic anomaly
,
(55)
and hence
(56)
The corresponding inverse slope at the origin is
(57)
and it becomes unbounded as
. The signs of the fifth-order terms in the elliptic and hyperbolic expansions are different, but their linear and cubic leading terms have the same form.
7.3. Common Transition Scaling
Equations (52) and (56) can be written in the common notation
(58)
where
on the elliptic side and
on the hyperbolic side. The linear and cubic terms balance when
(59)
More precisely, introduce
(60)
Then the transition equation becomes
(61)
This scaled relation is regular and describes the narrow region in which the linear and cubic contributions are comparable.
E − sin(E) = M(62)
Therefore,
sinh(H) − H = M(63)
For fixed positive M, the limiting elliptic and hyperbolic equations as e→1 are given by (62) and (63), respectively. Their solutions are generally different. The common cube-root approximation A ~ (6M)1/3, where A = E or H, applies in the joint limit M→0 and δ/M2/3→0. Barker’s equation is obtained through the physical-time rescaling described in the Appendix.
7.4. Inverse Derivatives and Interpolation
Let
. Differentiating the local cube-root approximation
gives the following leading-order asymptotic derivatives:
(64)
These expressions explain why a uniform grid in
becomes inefficient near the parabolic limit. The derivatives entering the interpolation-error formulas grow rapidly as
.
For piecewise cubic Hermite interpolation, the leading local error is proportional to
. An asymptotic error monitor is therefore
(65)
where
is an unimportant positive constant. Equidistributing this monitor on a truncated interval
gives
(66)
Here
, so the singular point itself is excluded. In the formal limit
, Equation (66) reduces to
.
The same reasoning gives exponents 6 and 9 for linear and quadratic inverse interpolation, respectively, while ordinary cubic and cubic Hermite interpolation both give exponent 12. These exponents are not empirical fitting parameters; they follow from the cube-root singularity and the corresponding interpolation-error formulas. In practical calculations, the asymptotic distribution may be replaced by a simpler truncated geometric grid, but its stretching direction and required concentration are determined by the analysis above.
8. Construction of Stretched Grids
The preceding asymptotic formulas can now be converted into practical node distributions. Let an inverse interpolant have a local error of the form
(67)
where
for linear interpolation,
for quadratic interpolation, and
for ordinary cubic or cubic Hermite interpolation. A suitable grid monitor is
(68)
The nodes are selected by equidistributing the cumulative monitor:
(69)
This makes
approximately constant and therefore balances the leading interpolation error among the intervals.
8.1. Closed-Form Asymptotic Grids
At the parabolic limit,
, and consequently
(70)
Substitution in Equation (69) gives the explicit truncated grid
(71)
The stretching exponents can also be derived separately and more directly from the error formula for each interpolant. This makes clear why a different grid is associated with each approximation order.
8.1.1. Linear Interpolation
The local error is proportional to
(72)
Since
, approximately equal error in every interval requires
(73)
Treating the node index
as a continuous variable gives
(74)
Integration yields
, and hence
(75)
8.1.2. Quadratic Interpolation
Here the leading error is proportional to
(76)
Using
gives
(77)
Therefore
(78)
and the quadratic grid is
(79)
8.1.3. Cubic Interpolation
For ordinary cubic interpolation,
(80)
Because
,
(81)
It follows that
(82)
and consequently
(83)
The cubic Hermite error contains the same fourth inverse derivative and four powers of the local interval length. It therefore produces the same exponent 12, although its data consist of two function values and two endpoint derivatives rather than four function values.
Thus, the grids appropriate to the four interpolation formulas are
(84)
where
. The superscripts L, Q, C, and H denote linear, quadratic, ordinary cubic, and cubic Hermite interpolation, respectively. These distributions cluster nodes increasingly strongly near
as the order of interpolation increases.
For
, the inverse derivative at
is large but finite, so the endpoint
may be included in the elliptic and hyperbolic tables. At the exact parabolic limit, the cube-root derivative is infinite and the Hermite table must instead start from a small positive value
, unless the first interval is treated directly by the analytic cube-root expansion.
8.2. Exact Monitor for Finite Eccentricity
The limiting formulas provide a simple grid and the correct concentration as
. For a specified finite eccentricity, an optimised grid can be constructed from the exact inverse derivatives. Let
(85)
The required inverse derivatives are
(86)
For the elliptic equation,
and
(87)
For the hyperbolic equation,
and
(88)
These formulas provide
,
, or
without numerical differentiation.
Moreover, the grid may be generated in anomaly space, where the forward mapping is explicitly known. Since
, define
(89)
Choose
from
(90)
and finally set
(91)
in the elliptic case, or
(92)
in the hyperbolic case. Therefore, construction of the optimised table does not require repeated inversion of Kepler’s equation at arbitrary mean anomalies.
8.3. Practical Comparison Grids
For the numerical comparisons, the same interval and number of stored values will be used for all grids. A uniform grid is
(93)
A simple one-parameter geometric grid is defined through
(94)
with
. The optimised grid is obtained from the exact monitor above, while Equation (84) supplies its closed-form parabolic-limit approximation.
A classical
cubic spline provides an alternative to the local piecewise cubic Hermite approximation, but its increased smoothness does not by itself guarantee a smaller pointwise error. In representative elliptic and hyperbolic cases on the exact-monitor grid, the local Hermite construction gave approximately one half of the maximum error of a clamped cubic spline. It also remains entirely local and avoids the global tridiagonal solution required to construct the spline. On an unsuitable uniform grid, however, a classical spline can substantially reduce the severe endpoint-slope overshoot of the Hermite approximation. The comparison therefore reinforces the main conclusion of this section: the decisive improvement comes from combining the local Hermite formula with a grid consistent with the singular asymptotic behaviour, rather than from increasing continuity alone. After Newton correction, the two predictors require nearly identical numbers of iterations.
9. Numerical Results
This section provides the numerical validation of the proposed approach. We apply the grids to inverse cubic Hermite interpolation and retain enough detail to make the calculations reproducible.
9.1. Numerical Protocol
The interval
is divided into
subintervals, giving 65 stored values. At every node the anomaly and its exact inverse derivative are stored. Reference values at the test points are obtained by 90 steps of bracketed bisection applied independently to the elliptic or hyperbolic Kepler equation. All calculations use radians and IEEE 754 double-precision arithmetic.
For the elliptic problem, each tabulated anomaly
satisfies
(95)
For the hyperbolic problem, the corresponding data are
(96)
For all Newton-type corrections, convergence requires both the anomaly correction and the equation residual to be no greater than 10−14. This two-part test is important near the parabolic limit because the derivative of Kepler’s equation can be small. The tolerance is substantially smaller than the interpolation errors reported below.
Within each interval
, the inverse Hermite polynomial is evaluated from the two stored anomalies and the two exact inverse slopes. If
denotes either
or
, the pointwise predictor error is
(97)
For
test values, the reported measures are
(98)
For the iteration and correction tables, the reported mean is the arithmetic average of the counts over all mean anomalies—and, where applicable, all eccentricities—in the stated test set. The maximum is the largest count observed in that set and is included to quantify worst-case performance, which may not be apparent from the mean alone.
Figure 6. Normalised node positions for
. The asymptotic Hermite grid follows
.
For the interpolation-error tables, the test set is the union of 300,001 values uniformly spaced on
and 300,001 values geometrically spaced from 10−18 to
. The second set resolves the first grid intervals, where the near-parabolic error is largest.
Four node distributions are examined under identical conditions: uniform, geometric, the closed-form asymptotic distribution, and the exact-monitor distribution. The geometric value
is used in the representative comparison. The asymptotic Hermite grid uses
, while the exact-monitor grid equidistributes
.
Figure 6 compares the uniform grid, a geometric grid with
, and the closed-form Hermite grid derived from the parabolic asymptotics. The logarithmic scale shows that the stretched grids place many more nodes near
, where the inverse solution changes most rapidly.
9.2. Elliptic Application
The elliptic calculations cover
through
. For the most difficult case, the inverse slope at the origin is
(99)
On a uniform grid, this large slope is used across the comparatively wide first interval and the Hermite polynomial develops a severe overshoot. The maximum interpolation error is
. With geometric stretching the maximum error falls to
, and with the exact monitor
it falls further to
. The full eccentricity sweep is reported in Table 1.
Table 1. Elliptic inverse-Hermite maximum errors on
with
. The geometric factor is selected from
in increments of 0.01.
|
Uniform |
Best
|
Geometric |
Exact monitor |
0.90000 |
|
1.08 |
|
|
0.99000 |
|
1.13 |
|
|
0.99900 |
|
1.19 |
|
|
0.99990 |
|
1.25 |
|
|
0.99999 |
|
1.30 |
|
|
The exact-monitor error remains below
throughout the five elliptic cases. Its advantage over the best constant-factor geometric grid increases from a factor of 1.30 at
to 8.51 at
.
9.3. Hyperbolic Application
The calculation is repeated entirely in real variables for
. In this case
(100)
The uniform-grid maximum error is again
. The geometric and exact-monitor grids reduce it to
and
, respectively. The close agreement with the elliptic results confirms the common asymptotic structure on the two sides of
. Table 2 gives the complete hyperbolic sweep.
Table 2. Hyperbolic inverse-Hermite maximum errors on
with
, using the same geometric-factor search as in the elliptic case.
|
Uniform |
Best
|
Geometric |
Exact monitor |
1.10000 |
|
1.08 |
|
|
1.01000 |
|
1.13 |
|
|
1.00100 |
|
1.19 |
|
|
1.00010 |
|
1.25 |
|
|
1.00001 |
|
1.30 |
|
|
The optimised hyperbolic grid is more accurate than the best geometric grid for every tested eccentricity. Its advantage grows from 1.34 at
to 8.33 at
, while its maximum error remains below
.
Figure 7 displays the same comparison. Relative to the uniform grid, the exact-monitor grid improves the representative maximum error by more than eight orders of magnitude. It also improves the already stretched geometric grid by a factor of approximately eight. This calculation is the direct numerical application of the singular asymptotics: the grid is concentrated where the inverse derivatives, and hence the interpolation error, are largest.
Figure 7. Maximum Hermite interpolation errors for the representative near-parabolic elliptic and hyperbolic cases.
These examples use only the Hermite predictor; no Newton correction has been applied. A subsequent Newton-type correction may reduce the residual to the desired tolerance, but the stretched grid has already supplied a uniformly useful initial approximation in the difficult near-parabolic region.
9.4. Comparison of the Iterative Corrections
The actual convergence of the iterative methods discussed earlier was also examined. Because the greatest difficulty occurs for small mean anomaly and large eccentricity, the test interval was
(101)
sampled at 2000 equally spaced values for each of
, 0.99, 0.999, 0.9999, and 0.99999. The angles were converted to radians before calculation.
To compare the convergence orders without favouring any method through an empirical initial formula, every iteration was started from the midpoint of the guaranteed elliptic bracket
(102)
One iteration means one complete update of the corresponding method. The calculation was stopped only when both
(103)
were satisfied. For the fixed-parameter procedure we used
in Equation (7), giving the familiar fixed-point form
(104)
Table 3 compares the mean and maximum iteration counts for the elliptic problem.
Table 3. Mean iteration counts over 2000 equally spaced mean anomalies for each eccentricity, with maximum counts in parentheses, for the elliptic Kepler equation. All methods use the common systematic starter (102) and stopping test (103). The fifth-order entry is Householder’s formula (26) with
.
Method |
|
|
|
|
|
Fixed point |
238.05 (277) |
418.16 (2597) |
424.20 (19788) |
408.65 (21466) |
405.88 (19970) |
Newton |
6.00 (6) |
5.72 (8) |
5.59 (11) |
5.58 (11) |
5.57 (11) |
Chebyshev |
4.30 (5) |
4.29 (6) |
4.23 (8) |
4.22 (8) |
4.22 (8) |
Halley |
4.00 (4) |
4.06 (6) |
4.05 (7) |
4.05 (7) |
4.05 (7) |
Danby, order 4 |
3.63 (4) |
3.54 (5) |
3.45 (6) |
3.44 (6) |
3.44 (6) |
Householder, order 5 |
3.50 (4) |
3.18 (4) |
3.16 (5) |
3.16 (5) |
3.16 (5) |
The fixed-point results display the weakness of linear convergence. Its local contraction factor is approximately
and approaches unity in the difficult near-parabolic region; consequently, individual cases require roughly twenty thousand updates. The higher-order methods are far less sensitive. Over the entire calculation, Newton requires no more than 11 updates, Chebyshev no more than 8, Halley no more than 7, Danby no more than 6, and fifth-order Householder no more than 5.
The table also illustrates why formal order alone should not be used as the only efficiency measure. Chebyshev and Halley both have cubic convergence, but Halley’s rational correction gives slightly smaller maximum counts here. Danby’s fourth-order nested correction and Householder’s fifth-order formula save additional iterations, although each update evaluates more derivatives and performs more algebra. For Kepler’s equation these derivatives are available analytically, so the additional work is modest and the comparison clearly reveals the benefit of higher local order.
Finally, these counts deliberately use only the bracket midpoint. In the proposed algorithm a local inverse interpolant replaces this midpoint and is already close to the root. The following calculations examine this combined predictor-corrector procedure in both orbital regimes.
9.5. Bisection and Inverse-Interpolation Predictors
A symmetric calculation was performed on each side of the parabolic limit. For the elliptic cases, 100 eccentricities were sampled uniformly over
; for the hyperbolic cases, 100 values were sampled over
. For every eccentricity, 2000 values of
were used on
, giving 200,000 equations in each regime. The elliptic bracket was
(105)
while
brackets all the hyperbolic roots in this particular test region. After three or four bisections, linear or quadratic inverse interpolation supplied the initial value for Newton’s method. The Newton iteration was stopped at an equation residual of 10−10.
Table 4 reports the correction counts following bisection and local inverse interpolation in both regimes.
Table 4. Newton corrections following bisection and local inverse interpolation. The percentage is the fraction requiring no more than three Newton updates.
Regime |
Predictor |
Mean |
Maximum |
At most 3 |
Elliptic |
3 bisections + linear |
2.304 |
5 |
99.978% |
Elliptic |
3 bisections + quadratic |
1.748 |
4 |
99.997% |
Elliptic |
4 bisections + quadratic |
1.316 |
2 |
100.000% |
Hyperbolic |
3 bisections + linear |
2.412 |
5 |
99.977% |
Hyperbolic |
3 bisections + quadratic |
1.816 |
4 |
99.996% |
Hyperbolic |
4 bisections + quadratic |
1.386 |
2 |
100.000% |
The results on the two sides are remarkably close. Four bisections followed by quadratic inverse interpolation never require more than two Newton corrections in either set of 200,000 equations. This provides a completely systematic realisation of the sequence
(106)
9.6. Refinement of the Hermite Predictor
The exact-monitor Hermite grid was next coupled to Newton correction for the representative cases
and
. The same 2000 mean anomalies were used, and corrections were continued until both the step and residual were below 10−14. Table 5 shows the effect of increasing the number of grid intervals.
Table 5. Newton corrections after exact-monitor cubic Hermite prediction.
Regime |
|
Mean |
Maximum |
At most 1 |
Elliptic,
|
32 |
1.975 |
2 |
2.55% |
|
64 |
1.881 |
2 |
11.95% |
|
128 |
1.371 |
2 |
62.90% |
|
256 |
0.999 |
1 |
100.00% |
Hyperbolic,
|
32 |
1.975 |
2 |
2.50% |
|
64 |
1.881 |
2 |
11.90% |
|
128 |
1.390 |
2 |
61.00% |
|
256 |
1.000 |
1 |
100.00% |
With 256 intervals, every elliptic and hyperbolic test requires at most one Newton update. With 128 intervals, 62.9% of the elliptic cases and 61.0% of the hyperbolic cases require at most one update, and none requires more than two. The closely matched counts provide another direct numerical confirmation that the same near-parabolic grid strategy applies on both sides of
.
9.7. Additional Grid and Timing Checks
To test the grid beyond the two near-parabolic eccentricities in Table 5, Table 6 reports a separate refinement study. For each row we equidistributed the exact
monitor over
by trapezoidal quadrature on 250,001 uniformly spaced anomaly values, using 2000 uniform test anomalies in
. Reference anomalies were obtained from 85 bisection steps. The entries are the maximum absolute error of the Hermite predictor before any correction. The quadrature and sample interval are specified because these values are not directly interchangeable with the more densely sampled errors in Table 1 and Table 2.
For a limited runtime check on the same 2000 anomaly values, we compared vectorised NumPy implementations of Newton correction starting from a simple initial value and from the
Hermite predictor. The elliptic simple start was the midpoint of the bracket in Equation (102); the hyperbolic simple start was
. On this execution environment, median time per 2000 solves over seven batches of 100 runs was 0.798 ms versus 0.392 ms for
, and 0.315 ms versus 0.192 ms for
, respectively. These timings include predictor evaluation and Newton updates but exclude grid construction, which took approximately 22 ms and 16 ms, respectively. They depend on the language, hardware, batching, and number of repeated solves: grid setup must be amortised over many queries. They do not measure Mikkola’s, Raposo-Pulido and Peláez’s, or Tommasini and Olivieri’s implementations. Consequently, the present results establish grid accuracy and illustrate within-implementation costs, but do not establish a speed advantage over those published solvers. A direct comparative implementation under common accuracy and timing criteria remains useful future work.
Table 6. Additional exact-monitor grid sensitivity: maximum uncorrected Hermite anomaly error in radians over 2000 test values.
Case/
|
32 |
64 |
128 |
256 |
Elliptic
|
|
|
|
|
Elliptic
|
|
|
|
|
Elliptic
|
|
|
|
|
Elliptic
|
|
|
|
|
Hyperbolic
|
|
|
|
|
Hyperbolic
|
|
|
|
|
Hyperbolic
|
|
|
|
|
Hyperbolic
|
|
|
|
|
9.8. Alternative Methods
Three additional ideas were tested: continuation in eccentricity, Wynn’s nonlinear sequence transformation, and homotopy. They are useful for showing how Kepler’s equation can be embedded in a sequence of simpler problems, but the calculations below also clarify their limitations relative to direct inverse interpolation.
9.8.1. Continuation in Eccentricity
Following the general solution-path viewpoint of Garcia and Zangwill [10], implicit differentiation gives
(107)
For each regime, the reported continuation statistics are computed over the same 2000 equally spaced mean anomalies on
. The elliptic continuation starts from the known solution
at
and ends at
. The hyperbolic calculation starts from a converged solution at
and ends at
. At each of 16 parameter levels, a tangent prediction is followed by Newton correction. We compare uniform parameter levels with the stretched distribution
(108)
which places smaller changes near the difficult target.
Table 7 compares uniform and stretched continuation steps for the elliptic and hyperbolic problems.
Table 7. Continuation with 16 eccentricity steps for each of 2000 mean anomalies. The starting solution is not included in the correction counts.
Regime |
Parameter steps |
Mean total |
Maximum total |
Maximum per step |
Elliptic,
|
Uniform |
39.25 |
40 |
9 |
|
Stretched |
41.10 |
42 |
4 |
Hyperbolic,
|
Uniform |
45.18 |
48 |
6 |
|
Stretched |
38.78 |
42 |
4 |
Continuation is reliable, and stretching substantially reduces the largest number of corrections at an individual parameter level. In this test it slightly increases the elliptic total but reduces the hyperbolic total. Its total work is nevertheless larger than a direct solve when only one eccentricity is needed. Its natural advantage occurs when solutions at all intermediate eccentricities are themselves required.
9.8.2. Wynn’s Nonlinear Sequence Transformation
Let
denote either
or
and form five eccentricities approaching the target according to
(109)
Wynn’s epsilon algorithm [11] is
(110)
The even columns provide transformed approximations. Five values give the estimate
. Table 8 compares this value with the last untransformed member
.
Table 8. Errors before and after the five-term Wynn epsilon transformation.
Regime |
Raw maximum |
Wynn maximum |
Raw RMS |
Wynn RMS |
Elliptic,
|
|
|
|
|
Hyperbolic,
|
|
|
|
|
For this direct five-value construction the transformation does not accelerate convergence; it increases both the maximum and RMS errors. This negative result is informative. The anomaly has a singular dependence on eccentricity near
, and a short geometrically spaced sequence does not match that structure. Wynn’s transformation should therefore not be used here without an additional asymptotic change of variable.
9.8.3. Homotopy
The homotopy statistics are likewise computed over the same 2000 mean anomalies in each regime. Motivated by the homotopy treatment of Kepler’s equations by Fitz-Coy and Jang [12], for the elliptic equation we use
(111)
and for the hyperbolic equation
(112)
At
both problems have the known solution
, while
gives the required Kepler equation. Differentiating
produces a first-order ordinary differential equation for the anomaly. It is integrated by the explicit midpoint rule, using either uniform values of
or
(113)
The endpoint is then used as the starting value for Newton correction.
Table 9 reports the homotopy predictor errors and subsequent Newton correction counts.
Table 9. Midpoint homotopy prediction and subsequent Newton correction for each of 2000 mean anomalies.
Regime |
(K, grid) |
Max. predictor error |
RMS error |
Mean corrections |
Max. corrections |
Elliptic |
(16, uniform) |
|
|
3.617 |
8 |
|
(16, stretched) |
|
|
3.764 |
5 |
|
(32, uniform) |
|
|
3.236 |
7 |
|
(32, stretched) |
|
|
3.049 |
4 |
Hyperbolic |
(16, uniform) |
|
|
3.628 |
8 |
|
(16, stretched) |
|
|
3.779 |
5 |
|
(32, uniform) |
|
|
3.235 |
7 |
|
(32, stretched) |
|
|
3.048 |
4 |
The stretched homotopy grid gives a consistently more accurate predictor. With
, it reduces the maximum predictor error by approximately a factor of 13 and reduces the largest Newton count from 7 to 4 in both regimes. Nevertheless, the direct exact-monitor Hermite predictor remains more accurate and requires fewer final corrections. The alternative calculations therefore reinforce the central conclusion: parameter stretching is useful, but stretching based directly on the singular inverse solution is the most effective strategy among those examined here.
9.9. Principal Numerical Findings
The calculations establish several points. First, a uniform grid becomes unusable close to
because it applies the very large endpoint slope over an interval that is too wide. Second, a constant-factor geometric grid restores high accuracy, but its factor must increase as the transition layer narrows. Third, equidistribution of the analytically derived monitor improves the result for every eccentricity without introducing an empirical starter formula. Finally, the nearly identical elliptic and hyperbolic trends confirm that the common cube-root asymptotics correctly describe the approach to the parabolic limit from both sides. These results supply the direct numerical validation of the proposed interpolation-and-stretching strategy. The iteration counts verify the expected progression from linear fixed-point convergence to the quadratic, cubic, fourth-order, and fifth-order methods; when the Hermite predictor is used, only a small number of final corrections is normally required. Bisection followed by local inverse interpolation is also reliable in both regimes. Finally, continuation and homotopy benefit from stretched parameter steps, whereas the direct five-term Wynn transformation does not accommodate the near-parabolic singularity. Taken together, the results favour the proposed combination of analytical asymptotics, stretched inverse interpolation, and a short final correction.
10. Conclusion
Kepler’s equation provides a useful unified example for studying several ideas in numerical analysis. The comparisons presented here illustrate the importance of choosing an accurate initial approximation, particularly near the nearly singular regimes. The elliptic and hyperbolic calculations show that asymptotically guided stretched grids can maintain accurate local inverse interpolation as the parabolic limit is approached from either side. With a good Hermite predictor, Newton’s method normally requires only a small number of final corrections, so the quality and placement of the interpolation data can be more important in practice than increasing the formal order of the corrector. Continuation, nonlinear sequence transformation, and homotopy provide useful alternative viewpoints, while the numerical comparisons clarify their advantages and limitations. From an educational viewpoint, the problem connects nonlinear iteration, inverse interpolation, asymptotic analysis, grid adaptation, continuation, sequence transformation, and homotopy within a single familiar equation.
Acknowledgements
ChatGPT (OpenAI) was used to assist with manuscript preparation, language editing, checking mathematical derivations, and production of numerical tables. The author remains solely responsible for the ideas, interpretations, conclusions, accuracy, and research presented.
The author would like to thank Dr. Esmat Bekir (see Ref. [7]) for several discussions about Kepler’s equation.
Data and Code Availability
The numerical procedures and sampling specifications are described in the text. No public code repository accompanies this submission.
Appendix
A. The Parabolic Limit and Barker’s Exact Solution
The elliptic and hyperbolic Kepler equations are defined for
and
, respectively. Although the eccentricity may be set formally equal to unity in either equation, this substitution alone does not produce the physical parabolic Kepler equation. The parabolic limit must instead be taken while the periapsis distance and dimensional time are retained. This appendix shows that the correctly scaled limits from both sides of
agree with Barker’s equation and its exact real solution.
A.1. Formal Substitution of
For an elliptic orbit, Kepler’s equation is
(114)
Formal substitution of
gives
. For a hyperbolic orbit, using the positive magnitude of the semimajor axis, the corresponding equation is
(115)
which formally gives
at
. These endpoint equations are not identical, and neither is Barker’s equation. Their mean-motion scalings degenerate as
approaches unity.
A.2. Common Local Behaviour near Periapsis
The local cube-root expansions and their implications for grid design were derived in Section 7. Here we retain only the dimensional scaling needed to connect those inverse mappings to the physical parabolic time law.
A.3. Limit from the Elliptic Side
Let
denote the periapsis distance,
the gravitational parameter,
the true anomaly, and
the time of periapsis passage. Introduce Barker’s variable
. For an ellipse,
(116)
If
and
are held fixed while
, then
. Writing
and expanding equation (114) gives
(117)
Since
and
, the factors in
cancel, leaving
(118)
A.4. Limit from the Hyperbolic Side
For a hyperbola, let
denote the magnitude of the semimajor axis. Then
(119)
Holding
and
fixed as
gives
. Writing
and expanding Equation (115),
(120)
Since
and
, the factors in
again cancel, giving precisely Equation (118).
A.5. Barker’s Equation and Its Exact Solution
Defining the dimensionless parabolic time
(121)
Equation (118) becomes
(122)
The cubic is strictly increasing and therefore has one real solution for every real
. A convenient exact real form is
(123)
An equivalent Cardano form is
(124)
Once
is known, the true anomaly follows exactly from
. Thus the correctly scaled elliptic and hyperbolic limits agree with one another and with Barker’s exact parabolic solution.