Next Article in Journal
Simultaneous Identification of Volatility and Mean-Reverting Parameter for European Option under Fractional CKLS Model
Next Article in Special Issue
Approximate Solution of Fractional Differential Equation by Quadratic Splines
Previous Article in Journal
Stationary Response of a Kind of Nonlinear Stochastic Systems with Variable Mass and Fractional Derivative Damping
Previous Article in Special Issue
Analytical and Numerical Solutions for a Kind of High-Dimensional Fractional Order Equation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Variable Step Hybrid Block Method for the Approximation of Kepler Problem

1
Department of Mathematics, Faculty of Natural Sciences, University of Jos, Jos 930003, Nigeria
2
Department of Mathematics, Faculty of Sciences, University of Maragheh, Maragheh 83111-55181, Iran
3
Department of Mathematics, Technical University of Cluj-Napoca, 28 Memorandumului Street, 400114 Cluj-Napoca, Romania
*
Author to whom correspondence should be addressed.
Fractal Fract. 2022, 6(6), 343; https://doi.org/10.3390/fractalfract6060343
Submission received: 2 June 2022 / Revised: 15 June 2022 / Accepted: 17 June 2022 / Published: 20 June 2022

Abstract

:
In this article, a variable step size strategy is adopted in formulating a new variable step hybrid block method (VSHBM) for the solution of the Kepler problem, which is known to be a rigid and stiff differential equation. To derive the VSHBM, the step size ratio r is left the same, halved, or doubled in order to optimize the total number of steps, minimize the number of formulae stored in the code, and ensure that the method is zero-stable. The method is formulated by integrating the Lagrange polynomial with limits of integration selected at special points. The article further analyzed the stability, order, consistency, and convergence properties of the VSHBM. The stability regions of the VSHBM at different values of the step size ratios were also plotted and plots showed that the method is fit for solving the Kepler problem. The results generated were then compared with some existing methods, including the MATLAB inbuilt stiff solver (ode 15 s), with respect to total number of failure steps, total number of steps, total function calls, maximum error, and computation time.

1. Introduction

Step size selection is an important criterion required in solving stiff differential equations using the integration method, [1]. It is however important to state that too small or too large a step size affects the efficiency of any integration method. A variable step size strategy is one approach that has been employed in choosing the correct step size required for the integration of differential equations.
The Kepler equation first derived in 1609 by Johannes Kepler is an equation in mechanics that establishes the relationship among geometric properties of orbits with respect to central force. The equation plays a prominent role in mathematics and physics, most especially in celestial mechanics. The Kepler equation has various forms, which largely depends on the type of orbit.
The Kepler standard equation (which we shall consider in article) is employed for elliptic orbits, ( 0 e < 1 ) , where e is called the orbital eccentricity. This is a stiff second order differential equation which can be transformed to the following system of first order differential equations,
y ¯ = f ( x , y ¯ ) , y ¯ ( a ) = τ ¯ , a x b
where y ¯ T = ( y 1 , y 2 , , y m ) and τ ¯ T = ( τ 1 , τ 2 , , τ m ) . We assume the functions y ¯ ( x ) and f ( x , y ¯ ) are sufficiently smooth and also satisfy the existence and uniqueness theorem stated in Theorem 1.
Other forms of the Kepler equation include the radial Kepler equation, which is applied for radial or linear trajectories ( e = 1 ) , the Barker’s equation applied parabolic trajectories ( e = 1 ) , and the hyperbolic Kepler equation applied for hyperbolic trajectories ( e > 1 ) . For e = 0 , the orbit becomes circular. Equation (1) is assumed to satisfy Theorem 1, which establishes the uniqueness and existence of a solution.
Theorem 1
([2]). Let the functions f 1 ( x , y 1 , y 2 , , y m ) , f 2 ( x , y 1 , y 2 , , y m ) ,…, f m ( x , y 1 , y 2 , , y m ) and their corresponding partial derivatives f 1 x 1 , f 2 x 2 ,…, f m x m be continuous in a region R containing the points ( x , y 1 , y 2 , , y m ) . Then, the initial value problem
y 1 = f 1 ( x , y 1 , y 2 , , y m ) , y 1 ( x 0 ) = t 1 y 2 = f 2 ( x , y 1 , y 2 , , y m ) , y 2 ( x 0 ) = t 2 . . . y m = f m ( x , y 1 , y 2 , , y m ) , y m ( x 0 ) = t m }
has a unique solution of the form,
y 1 = φ 1 ( x ) y 2 = φ 2 ( x ) . . . y m = φ m ( x ) }
on the interval I containing x = x 0 .
Definition 1
([3]). The general k-step linear multistep method (LMM) is defined as,
j = 1 k α j y n + j = h j = 1 k β j f n + j
where α j s and β j s are real constant coefficients and μ is the differential equation’s order. Equation (4) is implicit if β k 0 and explicit if β k = 0 .
Definition 2
([4]). A differential equation is stiff if it satisfies any or all of the following conditions:
(i) 
stability requirements in contrast to accuracy constrain the step length,
(ii) 
some solution components decay much more slowly or rapidly compared to others,
(iii) 
it has time scales that vary widely, and/or
(iv) 
all its eigenvalues have negative real parts with large stiffness ratio.
The Kepler problem, which is stiff in nature, satisfies all the conditions stated in Definition 2. Historically, the study of the motion of springs led to the discovery of stiff differential equations. These equations occur frequently in science and engineering. A lot of numerical techniques have been derived for approximating stiff differential equations ranging from trigonometrically fitted methods, nonstandard finite difference methods, and others. See the works of [5,6,7,8,9,10,11,12,13]. All these methods are constant step methods where the step length is fixed. However, in this research article, emphasis shall be laid on variable step method. Quite a number of researchers have developed different variable step techniques for solving stiff differential equations including the Kepler equations. The authors in [1] proposed variable step methods for solving some differential equations. The authors went further to prove the efficacy of their methods by solving some standard problems, e.g., the Kepler, Van der Pol, and Lokta–Volterra problems. Ref. [14] derived a two-point variable step predictor-corrector block method for the solution of ordinary differential equations. The method developed was in the form of Adams Bashforth-Moulton. The authors developed the method using the step size ratios r = 1 , r = 2 , and r = 1 / 2 . They went further to plot the stability regions of the method at different step ratios and also applied the method on some ODEs. Ref. [15] also developed a variable step size sixth order Adams block method for the solution of differential equations. The method approximates the solution in each of the steps with the aid of three points simultaneously. Ref. [16] also formulated a variable step, variable order method for solving stiff ODEs. The idea employed in their work is the combination of divided difference and Newton’s interpolation formulas as the basis function in the design of the method. Other authors that derived variable step size methods include [17,18,19,20,21,22,23,24,25,26,27,28,29].

2. Formulation of the VSHBM

The formulation of the VSHBM is discussed in this section, where the interval [ a , b ] is subdivided into blocks with interpolation points ( x n 2 , y n 2 ) , ( x n 1 , y n 1 ) , ( x n , y n ) , ( x n + 1 , y n + 1 ) , ( x n + 3 / 2 , y n + 3 / 2 ) and ( x n + 2 , y n + 2 ) ; see Figure 1. The approximations y n + 1 , y n + 3 / 2 , and y n + 2 are concurrently determined using three previous values at x n 2 , x n 1 , and x n of the previous two steps each with step size r h .
In order to optimize the number of steps taken, ensure zero-stability, and reduce the total number of formulae in the code, the step size ratio r is maintained ( r = 1 ) , halved ( r = 2 ) , or doubled ( r = 1 / 2 ) . This approach is sometimes called the Milne device [30]. This strategy was first suggested by [31,32].
The VSHBM is formulated at the points x n + r , r = 1 , 3 2 , and 2 by integrating Equation (1) in the interval ( x n , x n + r ) ,
x n x n + r y ¯ d x = x n x n + r f ( x , y ¯ ) d x
The function f ( x , y ¯ ) in (1) is approximated using Lagrange polynomial P q ( x ) of the form
P q ( x ) = j = 0 k L q , j ( x ) f ( x n + 2 j )
where
L q , j ( x ) = i = 0 i j k 1 x x n + 2 i x n + 2 j x n + 2 i , j = 0 , 1 2 , 1 , 2 , , k
The Lagrange polynomial at the points ( x n 2 , y n 2 ) , ( x n 1 , y n 1 ) , ( x n , y n ) , ( x n + 1 , y n + 1 ) , ( x n + 3 / 2 , y n + 3 / 2 ) , and ( x n + 2 , y n + 2 ) given by
P 2 ( x ) = [ ( x x n 2 ) ( x x n 1 ) ( x x n ) ( x x n + 1 ) ( x x n + 3 / 2 ) ( x n + 2 x n 2 ) ( x n + 2 x n 1 ) ( x n + 2 x n ) ( x n + 2 x n + 1 ) ( x n + 2 x n + 3 / 2 ) ] f ( x n + 2 ) + [ ( x x n 2 ) ( x x n 1 ) ( x x n ) ( x x n + 1 ) ( x x n + 2 ) ( x n + 3 / 2 x n 2 ) ( x n + 3 / 2 x n 1 ) ( x n + 3 / 2 x n ) ( x n + 3 / 2 x n + 1 ) ( x n + 3 / 2 x n + 2 ) ] f ( x n + 3 / 2 ) + [ ( x x n 2 ) ( x x n 1 ) ( x x n ) ( x x n + 3 / 2 ) ( x x n + 2 ) ( x n + 1 x n 2 ) ( x n + 1 x n 1 ) ( x n + 1 x n ) ( x n + 1 x n + 3 / 2 ) ( x n + 1 x n + 2 ) ] f ( x n + 1 ) + [ ( x x n 2 ) ( x x n 1 ) ( x x n + 1 ) ( x x n + 3 / 2 ) ( x x n + 2 ) ( x n x n 2 ) ( x n x n 1 ) ( x n x n + 1 ) ( x n x n + 3 / 2 ) ( x n x n + 2 ) ] f ( x n ) + [ ( x x n 2 ) ( x x n ) ( x x n + 1 ) ( x x n + 3 / 2 ) ( x x n + 2 ) ( x n 1 x n 2 ) ( x n 1 x n ) ( x n 1 x n + 1 ) ( x n 1 x n + 3 / 2 ) ( x n 1 x n + 2 ) ] f ( x n 1 ) + [ ( x x n 1 ) ( x x n ) ( x x n + 1 ) ( x x n + 3 / 2 ) ( x x n + 2 ) ( x n 2 x n 1 ) ( x n 2 x n ) ( x n 2 x n + 1 ) ( x n 2 x n + 3 / 2 ) ( x n 2 x n + 2 ) ] f ( x n 2 )
is used in determining the corrector formulae for y n + 1 , y n + 3 / 2 , and y n + 2 .
The VSHBM for the corrector at y n + 1 , y n + 3 / 2 , and y n + 2 are derived by integrating (1) with respect to s , s = ( x x n + 2 ) h , substituting h d s for d x and taking the limits of integration at (−2, −1), (−2, −1/2), and (−2, 0) respectively. This gives,
y n + 1 = y n + [ ( h 240 r 2 ) ( 31 r + 13 8 r 3 + 18 r 2 + 13 r + 3 ) ] f n 2 [ ( h 60 r 2 ) ( 62 r + 13 2 r 3 + 9 r 2 + 13 r + 6 ) ] f n 1 + [ ( h 720 r 2 ) ( 240 r 2 + 93 r + 13 ) ] f n + [ ( h 60 ) ( 140 r 2 + 117 r + 26 2 r 2 + 3 r + 1 ) ] f n + 1 [ ( 8 h 45 ) ( 30 r 2 + 21 r + 4 8 r 2 + 18 r + 9 ) ] f n + 3 2 + [ ( h 240 ) ( 40 r 2 + 27 r + 5 r 2 + 3 r + 2 ) ] f n + 2
y n + 3 2 = y n + [ ( 9 h 1280 r 2 ) ( 17 r + 6 8 r 3 + 18 r 2 + 13 r + 3 ) ] f n 2 [ ( 9 h 160 r 2 ) ( 17 r + 3 2 r 3 + 9 r 2 + 13 r + 6 ) ] f n 1 + [ ( 3 h 1280 r 2 ) ( 140 r 2 + 51 r + 6 ) ] f n + [ ( 9 h 320 ) ( 100 r 2 + 99 r + 27 2 r 2 + 3 r + 1 ) ] f n + 1 + [ ( 3 h 20 ) ( 20 r 2 + 6 r + 9 8 r 2 + 18 r + 9 ) ] f n + 3 2 + [ ( 9 h 1280 r 2 ) ( 20 r + 9 r 2 + 3 r + 2 ) ] f n + 2
y n + 2 = y n + [ ( h 15 r 2 ) ( 1 4 r 2 + 7 r + 3 ) ] f n 2 [ ( 4 h 15 r 2 ) ( 4 r + 1 2 r 3 + 9 r 2 + 13 r + 6 ) ] f n 1 + [ ( h 45 r 2 ) ( 15 r 2 + 6 r + 1 ) ] f n + [ ( 4 h 15 ) ( 5 r + 2 r + 1 ) ] f n + 1 + [ ( 128 h 45 ) ( 3 r + 2 8 r 2 + 18 r + 9 ) ] f n + 3 2 + [ ( h 15 ) ( 5 r 2 + 9 r + 5 r 2 + 3 r + 2 ) ] f n + 2
On the substitution of r = 1 , r = 2 , and r = 1 / 2 , Equations (8)–(10) give the VSHBM presented in Table 1.
Since the proposed VSHBM is a predictor-corrector method, the predictor formulae were also formulated using the same procedure above at the interpolation points ( x n 2 , y n 2 ) , ( x n 1 , y n 1 ) , and ( x n , y n ) . This gives
y n + 1 = y n + [ ( h 12 ) ( 3 r + 2 r 2 ) ] f n 2 [ ( h 3 ) ( 3 r + 1 r 2 ) ] f n 1 + [ ( h 12 ) ( 12 r 2 + 9 r + 2 r 2 ) ] f n
y n + 3 2 = y n + [ ( 3 h 16 ) ( 8 r 2 + 9 r + 3 r 2 ) ] f n 2 [ ( 9 h 8 ) ( 2 r + 1 r 2 ) ] f n 1 + [ ( 9 h 16 ) ( r + 1 r 2 ) ] f n
y n + 2 = y n + [ ( h 3 ) ( 3 r + 4 r 2 ) ] f n 2 [ ( 4 h 3 ) ( 3 r + 2 r 2 ) ] f n 1 + [ ( h 3 ) ( 6 r 2 + 9 r + 4 r 2 ) ] f n
At r = 1 , r = 2 , and r = 1 / 2 , Equations (11)–(13) produce the predictor formulae for the VSHBM as shown in Table 2.

3. Order, Stability, Consistency and Convergence Analysis of the VSHBM

The order, stability, consistence, and convergence analysis of the VSHBM shall be carried out in this section.

3.1. Order of the VSHBM

Definition 3
([3]). The LMM (4) and its associated difference operator L given by
L { y ( x ) ; h } = j = 0 k [ α j y ( x + j h ) h β j y ( x + j h ) ]  
are called order p if  c 0 = c 1 = c 2 = = c p = 0 , c p + 1 0 .
The component c p + 1 0 is the method’s error constant. The general form for the constant c p is
c 0 = j = 0 k α j c 1 = j = 0 k ( j α j β j ) . . . c p = j = 0 k [ 1 p ! j p α j 1 ( p 1 ) ! j p 1 β j ] , p = 2 , 3 , , q + 1 }
The application of Equation (15) on the VSHBM at r = 1 gives
c 0 = c 1 = c 2 = c 3 = c 4 = c 5 = c 6 = [ 0         0         0 ] T
while
c 7 = [ 151 120960             151 143360             11 7560 ] T  
Therefore, the VSHBM is of the uniform sixth order with its error constant given by Equation (17). The same procedure is applied for the VSHBM at r = 2 and r = 1 / 2 .

3.2. Stability of the VSHBM

3.2.1. Zero-Stability of the VSHBM

Definition 4
([4]). If no root of the characteristic polynomial has a modulus greater than one and every root with modulus one is simple, then such a method is called zero-stable.
The scalar test to ascertain the zero-stability of a method was first proposed by [33]. Therefore, substituting
y = f = λ y
into the VSHBM at r = 1 gives
y n + 1 = y n + h ( 11 2520 λ y n 2 1 24 λ y n 1 + 173 360 λ y n + 283 360 λ y n + 1 88 315 λ y n + 3 2 + 1 20 λ y n + 2 ) y n + 3 2 = y n + h ( 69 17920 λ y n 2 3 80 λ y n 1 + 591 1280 λ y n + 339 320 λ y n + 1 3 140 λ y n + 3 2 + 87 2560 λ y n + 2 ) y n + 2 = y n + h ( 1 210 λ y n 2 2 45 λ y n 1 + 22 45 λ y n + 14 15 λ y n + 1 + 128 315 λ y n + 3 2 + 19 90 λ y n + 2 ) }
Equation (19) is compactly written in matrix form as
[ 1 283 360 h λ           88 315 h λ                     1 20 h λ 339 320 h λ                   1 + 3 140 h λ           87 2560 h λ 14 15 h λ                       128 315 h λ                     1 19 90 h λ ] [ y n + 1 y n + 3 2 y n + 2 ] = [ 0       0       1 0       0       1 0       0       1 ] [ y n 2 y n 1 y n ] + h [ 11 2520 λ                   1 24 λ                 173 360 λ 69 17920 λ               3 80 λ               591 1280 λ 1 210 λ                         2 45 λ                 22 45 λ ] [ y n 2 y n 1 y n ]
Equation (20) is rewritten as
A Y m = ( B + C h ) Y m 1
where
A = [ 1 283 360 h λ             88 315 h λ                     1 20 h λ 339 320 h λ                         1 + 3 140 h λ           87 2560 h λ 14 15 h λ                           128 315 h λ                     1 19 90 h λ ] , B = [ 0     0     1 0     0     1 0     0     1 ] , C = [ 11 2520 λ           1 24 λ         173 360 λ 69 17920 λ       3 80 λ         591 1280 λ 1 210 λ               2 45 λ           22 45 λ ] Y m = [ y n + 1 y n + 3 2 y n + 2 ]   and   Y m 1 = [ y n 2 y n 1 y n ]
Let H = h λ . Then, the stability polynomial at r = 1 denoted by R 1 ( t , H ) is given by,
R 1 ( t , H ) = t 3 ( 18667 302400 H 3 172397 453600 H 2 + 2459 2520 H 1 ) t 2 ( 15697 179200 H 3 + 2915951 7257600 H 2 + 1039 1008 H + 1 ) + t ( 3971 6451200 H 3 + 31997 8294400 H 2 + 11 1680 H ) + 1 19353600 H 3 + 13 58060800 H 2
Applying the same procedure above for the step size ratios r = 2 and r = 1 / 2 , we obtain the stability polynomials,
R 2 ( t , H ) = t 3 ( 8471 54000 H 3 106703 226800 H 2 + 797 770 H 1 ) t 2 ( 3380029 53222400 H 3 + 1084 30412800 H 2 + 1713499 1774080 H + 1 ) + t ( 2699 38016000 H 3 + 846649 1703116800 H 2 + 1627 1774080 H ) + 1 1703116800 H 3 + 13 5109350400 H 2
R 1 2 ( t , H ) = t 3 ( 20399 432000 H 3 419447 1296000 H 2 + 363 400 H 1 ) t 2 ( 63881 432000 H 3 + 198427 432000 H 2 + 2033 1800 H + 1 ) + t ( 2039 43200 H 3 + 10607 432000 H 2 + 133 3600 H ) + 1 432000 H 3 + 13 1296000 H 2
The zero-stability for the VSHBM is determined by substituting H = 0 in Equations (22)–(24) to obtain
R 1 ( t , H ) = R 2 ( t , H ) = R 1 2 ( t , H ) = t 3 t 2
The zeros for the variable step sizes at r = 1 , r = 2 , and r = 1 / 2 are presented in Table 3.
Since all the zeros satisfy | t |     1 as described by Definition 4, it implies that the VSHBM is zero-stable at the step size ratios r = 1 , r = 2 , and r = 1 / 2 .

3.2.2. Stability Regions of the VSHBM

Definition 5
([34]). If the stability region of a method contains the whole left half-plane R e ( h λ ) < 0 , such a method is referred to as A-stable.
The stability regions for the VSHBM are presented in Figure 2.
The stability region of the VSHBM at r = 1 is the interior of the blue contour while that of the VSHBM at r = 1 2 is the interior of the magenta contour. For the VSHBM at r = 2 , the stability region is the outer region of the green contour. Thus, in terms of size, the VSHBM at r = 2 has the largest stability region followed by the VSHBM at r = 1 , then the VSHBM at r = 1 / 2 .

3.3. Consistency of the VSHBM

Definition 6
([3]). The LMM (4) is called consistent if it is of order p 1 .
Since the VSHBM is of order 6, it is consistent.

3.4. Convergence of the VSHBM

Theorem 2
([4]). The necessary and sufficient conditions for the LMM (4) to be convergent are that
(i) 
it must be consistent, and
(ii) 
it must be zero-stable”.
See [35] for the proof.
Thus, the proposed VSHBM is convergent since it satisfies the conditions for consistency and zero-stability.

4. Algorithm and Choice of Step Size for the VSHBM

4.1. Algorithm

The implementation algorithm for the VSHBM is presented in this subsection. The first step is the determination of initial points of the method’s starting block. The step ratio r in Figure 1 is taken as one. The truncated Taylor series method is used to determine the three back values x n 2 , x n 1 and x n since the values of h are small. The values of y n + 1 , y n + 3 / 2 , and y n + 2 are approximated using predictor-corrector methods. Suppose s is the number of iterations required, the sequence of calculations at any point is ( P E ) ( C E ) 1 ( C E ) 2 ( C E ) s , where P is the predictor formulae, C is the corrector formulae, and E represents the function evaluation f of the problem. The corrector VSHBM is iterated to converge with the convergence test employed as | y n + 2 ( s + 1 ) y n + 2 ( s ) | < 0.1 T O L . The algorithm for the implementation of the VSHBM in code is explicitly stated below:
  • Step 1: Set data input, such as tolerance level (TOL), initial condition x 0 , y 0 , and step length h
  • Step 2: Set y ( x ) = f ( x , y ( x ) )
  • Step 3: Set Taylor series y i = y i 1 + h y i 1 + h 2 2 ! y i 1 + h 3 3 ! y i 1
  • Step 4: Set the predictor equations
P : y n + 1 p = i = 0 2 α n + i f n i + α n + 3 / 2 f n + 3 / 2
y n + 3 / 2 p = i = 0 2 β n + i f n i + β n + 3 / 2 f n + 3 / 2
y n + 2 p = i = 0 2 γ n + i f n i + γ n + 3 / 2 f n + 3 / 2
E : f n + 1 p = ( x n + 1 , y n + 1 p )
f n + 3 / 2 p = ( x n + 3 / 2 , y n + 3 / 2 p )
f n + 2 p = ( x n + 2 , y n + 2 p )
  • Step 5: Set the corrector equations
C : y n + 1 c = i = 0 4 δ n + i f n + 2 i + δ n + 3 / 2 f n + 3 / 2
y n + 3 / 2 c = i = 0 4 ε n + i f n + 2 i + ε n + 3 / 2 f n + 3 / 2
y n + 2 c = i = 0 4 σ n + i f n + 2 i + σ n + 3 / 2 f n + 3 / 2
E : f n + 1 c = ( x n + 1 , y n + 1 c )
f n + 3 / 2 c = ( x n + 3 / 2 , y n + 3 / 2 c )
f n + 2 c = ( x n + 2 , y n + 2 c )
  • Step 6: Compute the LTE, that is local truncation error
  • Step 7: If the LTE<TOL, then the solution is acceptable. Maintain ( r = 1 ) or double ( r = 1 / 2 ) the previous step size and then proceed to Step 9.
  • Step 8: If LTE>TOL, halve the previous step size ( r = 2 ) and then go back to Step 5.
  • Step 9: Stop
The flowchart for the VSHBM is shown in Figure 3.

4.2. Choice of Step Size

The authors in [36,37,38,39,40,41,42,43] highlighted the importance of the selection of step size in Adams methods for the integration of differential equations. When step size is properly chosen, it minimizes the total number of iterations as well as computation time. The values of approximations y n + 1 , y n + 3 / 2 , and y n + 2 are acceptable if LTE < TOL. The LTE is determined by,
L T E = y n + 2 ( p ) y n + 2 ( p 1 )
where y n + 2 ( p ) and y n + 2 ( p 1 ) are the p t h and ( p 1 ) th orders of the method. If, on the other hand, LTE is greater than the tolerance level, then y n + 1 , y n + 3 / 2 , and y n + 2 are rejected. This implies that the step is carried out again by taking the step ratio r = 2 . The step size increment after a successful step (LTE < TOL) is given by
h n e w = u h o l d ( T O L L T E ) 1 p
where p is the method’s order, h o l d is the previous block’s step size, and h n e w is the current block’s step size. The parameter u , called the safety factor, ensures that the failure steps are minimized to the barest minimum.

5. The Kepler Problem

The Kepler problem is a renowned two-body problem that describes planetary motion in an orbit. The center of the coordinate system is represented by one of the bodies while the position of the second body at time t is given by two coordinates k 1 ( t ) and k 2 ( t ) . The Kepler problem is given by,
k 1 ( t ) = k 1 ( t ) ( k 1 2 ( t ) + k 2 2 ( t ) ) 3 2 , k 1 ( 0 ) = 1 e , k 1 ( 0 ) = 0 k 2 ( t ) = k 2 ( t ) ( k 1 2 ( t ) + k 2 2 ( t ) ) 3 2 , k 2 ( 0 ) = 0 , k 2 ( 0 ) = 1 e 2 }
where e defined by the constraint 0 e < 1 is the orbital eccentricity. The exact solution of the Kepler problem (28) is given by,
k 1 ( t ) = cos ( t ) e k 2 ( t ) = 1 e 2 sin ( t ) }
It is important to state that Equation (28) is equivalent to the Hamiltonian system
k i = s i , i = 1 , 2 H ( s 1 , s 2 , k 1 , k 2 ) = ( s 1 2 + s 2 2 ) 2 1 k 1 2 + k 2 2 }
where H ( s 1 , s 2 , k 1 , k 2 ) denotes the Hamiltonian of the system in Equation (28). To effectively apply the proposed VSHBM (which is in the form of LMM in Equation (4)) on the Kepler problem, we transform (28) to its equivalent first order system of equations. This is achieved by letting y 1 = k 1 , y 2 = k 2 , y 3 = k 1 , and y 4 = k 2 . Equation (28) is thus given by the following system of equations
y 1 = y 3 , y 1 ( 0 ) = 1 e y 2 = y 4 , y 2 ( 0 ) = 0 y 3 = y 1 ( y 1 2 + y 2 2 ) 3 / 2 , y 3 ( 0 ) = 0 y 4 = y 2 ( y 1 2 + y 2 2 ) 3 / 2 , y 4 ( 0 ) = 1 e }
where e is the orbital eccentricity.

6. Results and Discussion

The newly derived VSHBM shall be applied on the Kepler problem to test its accuracy, efficiency, and computational reliability in terms of parameters, such as the number of steps, number of failure/rejected steps, number of function calls, maximum error, and computation time.
Absolute error (AbsE) is defined as
AbsE = | y ( x ) y n ( x ) |
Maximum error (MaxE) is defined as
MaxE = m a x 0 n T S | y ( x ) y n ( x ) |
where y ( x ) is theoretical/exact solution while y n ( x ) is computed/approximate solution.
The proposed VSHBM was employed in approximating the Kepler problem. The results obtained were compared with that of variable step predictor-corrector method (2PVSPCM) developed by [14] at eccentricity 1 e = 0.0000001 and run time t ϵ [ 0 ,   20 ] . From Table 4, it is obvious that the VSHBM performed better than that of [14] using different indicators. The maximum error (MaxE) of the VSHBM is by far less than those of [14]. It was also observed that fewer steps (TS) were taken in generating the results in contrast to the method of [14]. This in turn translates to the faster generation of results (see the ComT column) using the VSHBM. From Table 4, it is also obvious that no failure steps (FS) were recorded. The total function call (FCN) column also showed that the proposed VSHBM has more function calls than the variable step method developed by [14].
In Figure 4, the efficiency curves of the Kepler problem were plotted in terms of time versus maximum error, while in Figure 5 the efficiency curves were plotted with respect to the number of steps versus the maximum error. From the two figures, it is clear that the VSHBM performed better than the 2PVSPCM developed by [14] at the run time [ 0 ,   20 ] . This is because the VSHBM takes less time (Figure 4) and fewer steps (Figure 5) to generate result than the 2PVSPCM developed by [14].
Table 5 clearly shows the performance of the VSHBM on the Kepler problem at different eccentricities 1 e = 0.1 ,   0.001 and 0.00001 . Different tolerance levels were considered in the computation. The results generated show that no step failed (i.e., FS = 0) and the accuracy of the VSHBM increases as 1 e reduces or tends to zero.
The Kepler problem (31) was also integrated using the new VSHBM at constant step in the interval t [ 0 , 20 ] . The VSHBM was used to calculate the stage value y 1 and the results obtained were compared with those of the Matlab inbuilt solver, ode 15 s. It is obvious that at constant step size, h , the method performed slightly better than the inbuilt ode 15 s in terms of computation time and maximum error; see Table 6 and Figure 6 and Figure 7. However, if variable step strategy was solely adopted in the generation of the results, the VSHBM would have performed better, as clearly seen in Table 4.

7. Conclusions

A VSHBM was formulated for the approximation of the Kepler problem at different eccentricities. From the numerical and graphical results generated, it is clear that the method is computationally reliable. The order, zero-stability, consistence, and convergence of the method were verified. The stability regions of the VSHBM at different values of the step size ratios were also analysed. The results obtained show that the method is convergent, consistent, and also exhibited zero stability. The results further showed that the VSHBM performed better than some existing methods, including the inbuilt MATLAB solver, ode 15 s. It is also important to state that the proposed VSHBM can approximate any stiff differential equation of the form (1).

Author Contributions

Conceptualization, J.S., A.S. and D.M.; methodology, A.S. and J.S.; software, J.S. and A.S. validation, A.S. and J.S; formal analysis, J.S. and D.M.; writing—original draft preparation, J.S.; writing—review and editing, D.M.; supervision, A.S. and J.S.; project administration, A.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in Table 4, Table 5 and Table 6 and Figure 4, Figure 5, Figure 6 and Figure 7.
h Step size
r Step size ratio
TSTotal number of steps taken
FSTotal number of failure/rejected steps
FCNTotal function calls
ComTComputation or execution time in microseconds
AbsEAbsolute error
MaxEMaximum error
Ode 15sMATLAB inbuilt stiff solver
2PVSPCM2-point variable step predictor-corrector block method developed by [14]
VSHBMNewly formulated variable step hybrid block method

References

  1. Holsapple, R.; Iyer, R.; Doman, D. Variable step size selection methods for implicit integration schemes for ordinary differential equations. Int. J. Numer. Anal. Model. 2007, 4, 210–240. [Google Scholar]
  2. Atkinson, K.; Hau, W.; Stewart, D. Numerical Solution of Ordinary Differential Equations; John Wiley and Sons, Inc.: Hoboken, NJ, USA, 2009. [Google Scholar]
  3. Fatunla, S.O. Numerical integrators for stiff and highly oscillatory differential equations. Math Comput. 1980, 34, 373–390. [Google Scholar] [CrossRef]
  4. Lambert, J.D. Numerical Methods for Ordinary Differential Systems: The Initial Value Problem; John Wiley and Sons LTD: New York, NY, USA, 1991. [Google Scholar]
  5. Sunday, J.; Chigozie, C.; Omole, E.O.; Gwong, J.B. A pair of three-step hybrid block methods for the solutions of linear and nonlinear first order systems. Eur. J. Math. Stat. 2022, 3, 13–23. [Google Scholar] [CrossRef]
  6. Ibrahim, R.H.; Saleh, A.H. Re-evaluation solution methods for Kepler’s equation of an elliptical orbit. Iraqi J. Sci. 2019, 60, 2269–2279. [Google Scholar] [CrossRef]
  7. Ngwame, F.F.; Jator, S.N. A trigonometrically fitted block method for solving oscillatory second order initial value problems and Hamiltonian systems. Int. J. Differ. Equ. 2017, 2017, 9293530. [Google Scholar]
  8. Abdulganiy, R.I.; Ramos, H.; Akinfenwa, O.A.; Okunuga, S.A. A functionally-fitted block numerov method for solving second-order initial value problems with oscillatory solutions. Mediterr. J. Math. 2021, 18, 259. [Google Scholar] [CrossRef]
  9. Sunday, J.; Kumleng, G.M.; Kamoh, N.M.; Kwanamu, J.A.; Skwame, Y.; Sarjiyus, O. Implicit four-point hybrid block integrator for the simulations of stiff models. J. Nig. Soc. Phys. Sci. 2022, 4, 287–296. [Google Scholar] [CrossRef]
  10. Ibrahim, Z.B.; Nasarudin, A.A. A class of hybrid multistep block methods with A-stability for the numerical solution of stiff ordinary differential equations. Mathematics 2020, 8, 914. [Google Scholar] [CrossRef]
  11. Faydaoglu, S.; Ozis, T. Periodic solutions for certain non-smooth oscillators with high nonlinearities. Appl. Comput. Math. 2021, 20, 366–380. [Google Scholar]
  12. Grzegorzewski, P.; Ladek, K.G. On some dispersion measures for fuzzy data and their robusteness. TWMS J. Pure Appl. Math. 2021, 12, 88–103. [Google Scholar]
  13. Rahmatan, H.; Shokri, A.; Ahmad, H.; Botmart, T. Subordination method for the estimation of certain subclass of analytic functions defined by the q-derivative operator. J. Funct. Spaces 2022, 2022, 5078060. [Google Scholar] [CrossRef]
  14. Majid, Z.A.; Suleiman, M. Predictor-corrector block iteration method for solving ordinary differential equations. Sains Malays. 2011, 40, 659–664. [Google Scholar]
  15. Yashkun, U.; Aziz, N.H.A. A modified 3-point Adams block method of the variable step size strategy for solving neural delay differential equations. Sukkur IBA J. Comput. Math. Sci. 2019, 3, 37–45. [Google Scholar]
  16. Oghonyon, J.G.; Ogunniyi, P.O.; Ogbu, I.F. A computational strategy of variable step, variable order for solving stiff systems of ODEs. Int. J. Anal. Appl. 2021, 19, 929–948. [Google Scholar] [CrossRef]
  17. Oghonyon, J.G.; Okunuga, S.A.; Bishop, S.A. A variable step size block predictor-corrector method for ordinary differential equations. Asian J. Appl. Sci. 2017, 10, 96–101. [Google Scholar] [CrossRef] [Green Version]
  18. Zawawi, I.S.M.; Ibrahim, Z.B.; Othman, K.I. Variable step block backward differentiation formula with independent parameter for solving stiff ordinary differential equations. J. Phys. Conf. Ser. 2021, 1988, 012031. [Google Scholar] [CrossRef]
  19. Soomro, H.; Zainuddin, N.; Daud, H.; Sunday, J.; Jamaludin, N.; Abdullah, A.; Apriyanto, M.; Kadir, E.A. Variable step block hybrid method for stiff chemical kinetics problems. Appl. Sci. 2022, 12, 4484. [Google Scholar] [CrossRef]
  20. Abasi, N.; Suleiman, M.; Fudziah, I.; Ibrahim, Z.B.; Musa, H.; Abbasi, N. A new formula of variable step 3-point block backward differentiation formula method for solving stiff ordinary differential equations. J. Pure Appl. Math. Adv. Appl. 2014, 12, 49–76. [Google Scholar]
  21. Ibrahim, Z.B.; Zainuddin, N.; Othman, K.I.; Suleiman, M.; Zawawi, I.S.M. Variable order block method for solving second order ordinary differential equations. Sains Malays. 2019, 48, 1761–1769. [Google Scholar] [CrossRef]
  22. Ibrahim, Z.B.; Othman, K.I.; Suleiman, M. Variable Step Block Backward Differentiation Formula for Solving First Order Stiff Ordinary Differential Equations. In Proceedings of the World Congress on Engineering, London, UK, 2–4 July 2007. [Google Scholar]
  23. Abasi, N.; Suleiman, M.; Ibrahim, Z.B.; Musa, H.; Rabiei, F. Variable step 2-point block backward differentiation formula for index-1 differential algebraic equations. ScienceAsia 2014, 40, 375–378. [Google Scholar] [CrossRef] [Green Version]
  24. Mehrkanoon, S. A direct variable step block multistep method for solving general third order ordinary differential equations. Numer. Algorithms 2011, 57, 53–66. [Google Scholar] [CrossRef]
  25. Han, Q. Variable step size Adams methods for BSDEs. J. Math. 2021, 2021, 9799627. [Google Scholar] [CrossRef]
  26. Shampine, L.F. Variable order Adams codes. Comput. Math. Appl. 2002, 44, 749–761. [Google Scholar] [CrossRef] [Green Version]
  27. Marciniak, A.; Jankowska, M.A. Interval methods of Adams-Bashforth type with variable step sizes. Numer. Algorithms 2020, 84, 651–678. [Google Scholar] [CrossRef] [Green Version]
  28. Rasedee, A.F.N.; Sathar, M.H.A.; Hamzah, S.R.; Ishak, N.; Wong, T.J.; Koo, L.F.; Ibrahim, S.N.I. Two-point block variable order step size multistep method for solving higher order ordinary differential equations directly. J. King Saud Univ. Sci. 2021, 33, 101376. [Google Scholar] [CrossRef]
  29. Rasedee, A.F.N.; Suleiman, M.; Ibrahim, Z.B. Solving non-stiff higher order ODEs using variable order step size backward difference directly. Math. Probl. Eng. 2014, 2014, 565137. [Google Scholar] [CrossRef]
  30. Iserles, A. A First Course in the Numerical Analysis of Differential Equations; Cambridge University Press: Cambridge, UK, 1996. [Google Scholar]
  31. Krogh, F.T. Algorithms for changing the step size. SIAM J. Num. Anal. 1973, 10, 949–965. [Google Scholar] [CrossRef]
  32. Krogh, F.T. Changing step size in the integration of differential equations using modified divided differences. In Proceedings of the Conference on the Numerical Solution of Ordinary Differential Equations; Springer: Berlin/Heidelberg, Germany, 2006; pp. 22–71. [Google Scholar]
  33. Dahlquist, G.G. A special stability problem for linear multistep methods. BIT Numer. Math. 1963, 3, 27–43. [Google Scholar] [CrossRef]
  34. Lambert, J.D. Computational Methods in Ordinary Differential Equations; John Wiley & Sons, Inc.: New York, NY, USA, 1973. [Google Scholar]
  35. Suleiman, M. Some necessary conditions for the convergence of the gbdf methods. Math. Comput. 1993, 60, 635–649. [Google Scholar] [CrossRef]
  36. Calvo, M.; Vigo-Aguiar, J. A note on the step size selection in Adams multistep methods. Numer. Algorithms 2001, 27, 359–366. [Google Scholar] [CrossRef]
  37. Arevalo, C.; Soderlind, G.; Hadjimichael, Y.; Fekete, I. Local error estimation and step size control in adaptative linear multistep methods. Numer. Algorithms 2021, 86, 537–563. [Google Scholar] [CrossRef]
  38. Musaev, H.K. The Cauchy problem for degenerate parabolic convolution equation. TWMS J. Pure Appl. Math. 2021, 12, 278–288. [Google Scholar]
  39. Shokri, A. The multistep multiderivative methods for the numerical solution of first order initial value problems. TWMS J. Pure. Appl. Math. 2016, 7, 88–97. [Google Scholar]
  40. Shokri, A. An explicit trigonometrically fitted ten-step method with phase-lag of order infinity for the numerical solution of radial Schrodinger equation. Appl. Comput. Math. 2015, 14, 63–74. [Google Scholar]
  41. Omole, E.O.; Jeremiah, O.A.; Adoghe, L.O. A Class of Continuous Implicit Seventh-eight method for solving y = f(x, y) using power series. Int. J. Chem. Math. Phys. (IJCMP) 2020, 4, 39–50. [Google Scholar] [CrossRef]
  42. Li, C.; Ma, C. The singular single-step preconditioned HSS method for singular linear systems. Appl. Comput. Math. 2021, 20, 247–256. [Google Scholar]
  43. Adiguzel, R.S.; Aksoy, U.; Karapinar, E.; Erhan, I.M. On the solutions of fractional differential equations via Geraghty type hybrid contractions. Appl. Comput. Math. 2021, 20, 313–333. [Google Scholar]
Figure 1. VSHBM showing interpolation points.
Figure 1. VSHBM showing interpolation points.
Fractalfract 06 00343 g001
Figure 2. Stability regions of the VSHBM.
Figure 2. Stability regions of the VSHBM.
Fractalfract 06 00343 g002
Figure 3. Flowchart for the proposed VSHBM.
Figure 3. Flowchart for the proposed VSHBM.
Fractalfract 06 00343 g003
Figure 4. Efficiency curves for Kepler problem in terms of time versus maximum error.
Figure 4. Efficiency curves for Kepler problem in terms of time versus maximum error.
Fractalfract 06 00343 g004
Figure 5. Efficiency curves for Kepler problem in terms of number of steps versus maximum error.
Figure 5. Efficiency curves for Kepler problem in terms of number of steps versus maximum error.
Fractalfract 06 00343 g005
Figure 6. Comparison of computation time for constant step size h.
Figure 6. Comparison of computation time for constant step size h.
Fractalfract 06 00343 g006
Figure 7. Maximum error comparison for with constant step size h.
Figure 7. Maximum error comparison for with constant step size h.
Fractalfract 06 00343 g007
Table 1. VSHBM Formulae at different step size ratios.
Table 1. VSHBM Formulae at different step size ratios.
Step-Size RatioFormulae
r = 1 y n + 1 = y n + h ( 11 2520 f n 2 1 24 f n 1 + 173 360 f n + 283 360 f n + 1 88 315 f n + 3 2 + 1 20 f n + 2 )
y n + 3 2 = y n + h ( 69 17920 f n 2 3 80 f n 1 + 591 1280 f n + 339 320 f n + 1 3 140 f n + 3 2 + 87 2560 f n + 2 )
y n + 2 = y n + h ( 1 210 f n 2 2 45 f n 1 + 22 45 f n + 14 15 f n + 1 + 128 315 f n + 3 2 + 19 90 f n + 2 )
r = 2 y n + 1 = y n + h ( 1 2112 f n 2 137 20160 f n 1 + 1159 2880 f n + 41 45 f n + 1 1328 3465 f n + 3 2 + 73 960 f n + 2 )
y n + 3 2 = y n + h ( 3 7040 f n 2 111 17920 f n 1 + 501 1280 f n + 75 64 f n + 1 177 1540 f n + 3 2 + 147 2560 f n + 2 )
y n + 2 = y n + h ( 1 1980 f n 2 1 140 f n 1 + 73 180 f n + 16 15 f n + 1 + 1024 3465 f n + 3 2 + 43 180 f n + 2 )
r = 1 2 y n + 1 = y n + h ( 19 600 f n 2 44 225 f n 1 + 239 360 f n + 239 360 f n + 1 44 225 f n + 3 2 + 19 600 f n + 2 )
y n + 3 2 = y n + h ( 87 3200 f n 2 69 400 f n 1 + 399 640 f n + 609 640 f n + 1 + 21 400 f n + 3 2 + 57 3200 f n + 2 )
y n + 2 = y n + h ( 8 225 f n 2 16 75 f n 1 + 31 45 f n + 4 5 f n + 1 + 112 225 f n + 3 2 + 43 225 f n + 2 )
Table 2. Predictor formulae for the VSHBM at different step size ratios.
Table 2. Predictor formulae for the VSHBM at different step size ratios.
Step-Size RatioFormulae
r = 1 y n + 1 p = y n + h ( 5 12 f n 2 4 3 f n 1 + 23 12 f n )
y n + 3 2 p = y n + h ( 9 8 f n 2 27 8 f n 1 + 15 4 f n )
y n + 2 p = y n + h ( 7 3 f n 2 20 3 f n 1 + 19 3 f n )
r = 2 y n + 1 p = y n + h ( 1 6 f n 2 7 12 f n 1 + 17 12 f n )
y n + 3 2 p = y n + h ( 27 64 f n 2 45 32 f n 1 + 159 64 f n )
y n + 2 p = y n + h ( 5 6 f n 2 8 3 f n 1 + 23 6 f n )
r = 1 2 y n + 1 p = y n + h ( 7 6 f n 2 10 3 f n 1 + 19 6 f n )
y n + 3 2 p = y n + h ( 27 8 f n 2 9 f n 1 + 57 8 f n )
y n + 2 p = y n + h ( 22 3 f n 2 56 3 f n 1 + 40 3 f n )
Table 3. Zeros for the VSHBM.
Table 3. Zeros for the VSHBM.
Step-Size RatioZeros
r = 1 t 1 = t 2 = 0 , t 3 = 1
r = 2 t 1 = t 2 = 0 , t 3 = 1
r = 1 / 2 t 1 = t 2 = 0 , t 3 = 1
Table 4. Performance of the VSHBM on Kepler problem with eccentricity 1 e = 0.0000001 and run time t ϵ [ 0 , 20 ] .
Table 4. Performance of the VSHBM on Kepler problem with eccentricity 1 e = 0.0000001 and run time t ϵ [ 0 , 20 ] .
TOLMethodTSFSMaxEFCNComT
10 2 VSHBM180 4.2456 × 10 3 411452
2PVSPCM300 9.3294 × 10 2 309944
10 4 VSHBM370 1.2477 × 10 5 10211021
2PVSPCM610 1.4804 × 10 3 5131322
10 6 VSHBM930 3.1129 × 10 8 24781892
2PVSPCM1370 1.9884 × 10 5 11212904
10 8 VSHBM2420 6.7189 × 10 9 47813622
2PVSPCM3220 2.0891 × 10 7 20015742
10 10 VSHBM5020 4.3321 × 10 11 67199876
2PVSPCM7810 2.2126 × 10 9 476713906
Table 5. Performance of the VSHBM on Kepler problem at different eccentricities and run time t [ 0 ,   10 8 ] .
Table 5. Performance of the VSHBM on Kepler problem at different eccentricities and run time t [ 0 ,   10 8 ] .
TOLTSFSEccentricityMaxE
10 2 180 1 e = 0.1 6.6112 × 10 2
0 1 e = 0.001 1.5571 × 10 2
0 1 e = 0.00001 9.3294 × 10 3
10 6 930 1 e = 0.1 8.4519 × 10 5
0 1 e = 0.001 4.1562 × 10 5
0 1 e = 0.00001 3.9945 × 10 7
10 10 5020 1 e = 0.1 5.1903 × 10 6
0 1 e = 0.001 5.1984 × 10 8
0 1 e = 0.00001 6.5527 × 10 10
Table 6. Computation time and maximum error of the VSHBM using constant step h and eccentricity 1 e = 0.0000001 .
Table 6. Computation time and maximum error of the VSHBM using constant step h and eccentricity 1 e = 0.0000001 .
h 0.0010.010.1
ComT (ode 15 s) 316.84 126.73 15.69
MaxE (ode 15 s) 0.79 × 10 5 1.14 × 10 3 10.41 × 10 2
ComT (VSHBM) 212.48 73.41 12.23
MaxE (VSHBM) 0.59 × 10 5 1.00 × 10 3 9.89 × 10 2
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Sunday, J.; Shokri, A.; Marian, D. Variable Step Hybrid Block Method for the Approximation of Kepler Problem. Fractal Fract. 2022, 6, 343. https://doi.org/10.3390/fractalfract6060343

AMA Style

Sunday J, Shokri A, Marian D. Variable Step Hybrid Block Method for the Approximation of Kepler Problem. Fractal and Fractional. 2022; 6(6):343. https://doi.org/10.3390/fractalfract6060343

Chicago/Turabian Style

Sunday, Joshua, Ali Shokri, and Daniela Marian. 2022. "Variable Step Hybrid Block Method for the Approximation of Kepler Problem" Fractal and Fractional 6, no. 6: 343. https://doi.org/10.3390/fractalfract6060343

Article Metrics

Back to TopTop