Step 2. Assuming the exact solution has the form of Eq. (
14), we introduce the
true argument of the arctangent function,
, which gives the exact solution. Then, we introduce the function
(Eq. (
17)) as the quotient of the
true argument
and the argument of the zeroth approximation,
. Finally, we define the first approximation
by adjusting the argument
of the arctangent function which appears in the zeroth approximation
. The main idea is to make a series of adjustments in such a way that the quotient mentioned above approaches 1 as closely as possible.
Step 3. Following the logic of
Step 2, we introduce the function
(Eq. (
22)) and the argument
(Eq. (
25)) in order to obtain the second approximation
(Eq. (
26)). First, we propose two kinds of approximations for
: linear and harmonic. This gives the approximations
and
(Eqs. (
27) and (
28)), respectively. This approximations give the corresponding precision of 3,400 km and 470 km, respectively, for the position of the Earth. This formulas are completely analytical, and may be used in some applications which do not require high precision.
Next, we proceed to improve the function
as an analytical expression (Eq. (
29)), involving an arctangent function, with an argument which, in turn, is an expression that depends on six numerical coefficients (Eq. (
30)). In order to calculate these coefficients, we propose two methods, namely,
Method A and
Method B.
2.1. Step 0
Our first step is integrating Eq. (
1) to obtain
. The solution is (see
Appendix A):
This solution is valid on the interval
. In order to make the solution valid on the interval
, we need to apply the following correction:
In order to avoid complications related with the periodicity of the functions of involved, and the monotony of time, in what follows, we focus our work only on the half-period of the orbit, namely, . The second half of the orbit may be obtained from the first part using the symmetry of the orbit.
We now propose the following change of variable:
So, Eq. (
5), in terms of
and
has the form:
Let us seek for the solution to Eq. (
7) in the form
on the interval
, and, as deduced from Eq. (
7), in
.
Note the relationship between
and the mean anomaly
M:
2.4. Step 3
We introduce a new function,
, defined on the open interval
:
As followed from Eqs. (
18), (
19) and (
20):
Figure 5 shows the plot of
with
as parameter.
We introduce the function
as follows:
The definition of
as the product of
and
leads us to an apparent logical paradox, since, as it follows from Eq. (
22),
. The solution to this paradox is the fact that
is an unknown function, which we are trying to approximate with the best precision possible. The existence of such a function is obvious, for it can be theoretically constructed point-wise. However, in this work we are looking for a quasi-analytic expression for
, since the exact analytic expression for it, in principle, may not even exist.
Now, we define the approximation two,
as follows:
It should be noted that the approximation
(Eq. (
21)) can be considered as the approximation
with
. For small values of
, such as Earth’s (
)
has a small range (for the Earth, it will be of [0.9997, 1]) so that the approximation
already gives us an acceptable result for certain applications. Thus, for the Earth, the maximum error of
is of
rad, which, translated to the error in the position, taking into account the average distance from the Earth to the Sun as
km, is equivalent to 27,000 km, which is a little more than two diameters of the Earth. Now, approximating
in a linear form, and, as a cosine with period
and amplitude adjusted to the range [
, 1] the following corresponding approximations are obtained:
The approximation gives a maximum error of rad, which translates to 3400 km in the position (slightly more than half the Earth’s radius), and the approximation gives a maximum error of rad, which corresponds to approximately 470 km in the position.
In
Figure 5, we notice that the shape of the curves resembles an arctangent function, with a mapping of the argument from (
,
∞) to (
,0), with the range mapping from (
,
) to (
), and with the behavior of the argument being asymmetric and nonlinear. By the aforementioned, we search for the approximation of the function
in the following form:
where:
with
y
(
) being functions of
.
In order to evaluate the coefficients and (the six numerical coefficients mentioned in the introduction), two methods were developed, Method A and Method B. In Method A, the coefficients are calculated for each value of , while in Method B, they are expressed as analytic functions which, in turn, depend on other numeric coefficients, that are calculated for ranges of . As will be seen further, Method A is more accurate, but less general, while Method B is slightly less accurate (especially after a certain value of ), but more general and easier to use in applications.
2.4.1. Method A
The coefficients and were calculated numerically for each eccentricity value, corresponding to every planet of the solar system, by means of RMSE (Root Mean Square Error) minimization, using MATLAB 2020b.
Figure 6 shows the behavior of
and
in the range of
∈ (0, 0.5) (this range was selected because some absolute values of
and
grow drastically after
, which does not allow us to appreciate the behavior before
).
Table 1 shows the values of
and
, as well as the error of
for the Earth and Pluto, in radians, where ME is the Maximum absolute Error, MAE is the Mean Absolute Error and RMSE is the Root Mean Square Error.
Since
Table 1 serves just for illustrative purposes, the values of
and
were rounded to three decimal places. A detailed table including more accurate values for all planets will be shown in the section of Results. For now let us mention that the absolute maximum error in the position of the Earth is 915 meters and approximately 39,000 kilometers (close to the value of the circumference of the Earth, or 16 Pluto diameters) for the position of Pluto (the average distance of Pluto to the Sun is approximately 5.9 billion kilometers).
2.4.2. Method B
Analyzing
Figure 6, it can be seen that the shapes of the curves have a behavior of a cubic polynomial, so we search for the coefficients
and
in the following form:
where repeated indices imply summation.
We introduce the approximation
with the same form of
given by Eqs. (
26), (
29), (
30), where now Eq. (
31) is used to approximate the
and
in Eq. (
30).
The attempt to calculate the coefficients and in the complete range of ∈ (0,1) was not successful. Thus, it was decided to divide the range into five intervals, ∈ (0,0.1], ∈ (0.1,0.25], ∈ (0.25,0.5], ∈ (0.5,0.7] and ∈ (0.7,1). In the next section, we will present the values of and by ranges, and compare the precision of the approximation , which uses values of calculated using Method A, with that of .