Next Article in Journal
Short-Term Scheduling Model of Cluster Tool in Wafer Fabrication
Next Article in Special Issue
Dynamic Analysis of a Fiber-Reinforced Composite Beam under a Moving Load by the Ritz Method
Previous Article in Journal / Special Issue
Sixth-Order Combined Compact Finite Difference Scheme for the Numerical Solution of One-Dimensional Advection-Diffusion Equation with Variable Parameters
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Modified Hybrid Method with Four Stages for Second Order Ordinary Differential Equations

by
Faieza Samat
1,* and
Eddie Shahril Ismail
2
1
GENIUS@Pintar National Gifted Centre, Universiti Kebangsaan Malaysia, Selangor 43600, Malaysia
2
Department of Mathematical Sciences, Faculty of Science and Technology, Universiti Kebangsaan Malaysia, Selangor 43600, Malaysia
*
Author to whom correspondence should be addressed.
Mathematics 2021, 9(9), 1028; https://doi.org/10.3390/math9091028
Submission received: 15 March 2021 / Revised: 24 April 2021 / Accepted: 28 April 2021 / Published: 1 May 2021
(This article belongs to the Special Issue Numerical Analysis and Scientific Computing)

Abstract

:
A modified explicit hybrid method with four stages is presented, with the first stage exactly integrating exp(wx), while the remaining stages exactly integrate sin(wx) and cos(wx). Special attention is paid to the phase properties of the method during the process of parameter selection. Numerical comparisons of the proposed and existing hybrid methods for several second-order problems show that the proposed method gives high accuracy in solving the Duffing equation and Kramarz’s system.

1. Introduction

Many problems that arise in modelling physical phenomena in engineering and applied sciences are in the form of second ordinary initial value problems
y ( t ) = f ( t , y ( t ) ) , y ( t 0 ) = y 0 , y ( t 0 ) = y 0
where the first derivative does not appear explicitly. These problems are often solved by using numerical methods such as Runge–Kutta–Nystrom methods, multistep methods, and hybrid methods (see [1,2,3,4]). The numerical methods can be grouped into two categories: (1) methods with constant coefficients and (2) methods with variable coefficients. The methods with variable coefficients require prior knowledge of the frequency of the problem, in contrast to the methods with constant coefficients in which the frequency of the problem is not needed. In this paper, our purpose is to derive a modified hybrid method with variable coefficients for solving the special second-order initial value problems by paying special attention to the phase properties of the methods.
Consider the class of hybrid methods proposed by Kalogiratou et al. [5]:
y n + 1 = 2 σ s + 1 y n μ s + 1 y n 1 + h 2 j = 1 s b j f ( t n + c j h , g j )
with g i = σ i ( 1 + c i ) y n μ i c i y n 1 + h 2 j = 1 s a i j f ( t n + c j h , g j ) , i = 1 , , s . It is noted that if σ i = 1 and μ i = 1 for i = 1, …, s + 1 then the above class of hybrid methods is reduced to the class of hybrid methods as stated in [6]:
y n + 1 = 2 y n y n 1 + h 2 j = 1 s b j f ( t n + c j h , g j )
with g i = ( 1 + c i ) y n c i y n 1 + h 2 j = 1 s a i j f ( t n + c j h , g j ) .
Coefficients of this class of methods are as shown in Butcher tableau notation below:
c A b T
with c T = ( c 1 c 2 c s ) , b T = ( b 1 b 2 b s ) , and A = [ a i j ] s × s .

2. Phase Lag and Stability Analysis

The standard equation
y ( t ) = λ 2 y ( t ) ,   λ > 0
with exact solution y ( t ) = C 1 exp ( i λ t ) + C 2 exp ( i λ t ) is usually used to study the stability of numerical methods in solving second-order ordinary differential equations. Applying the hybrid methods defined in (1) with coefficients depending on v = wh, where w is the frequency of the problem and h is the step-size, to the differential Equation (3) gives us
y n + 1 S ( H 2 , v ) y n + P ( H 2 , v ) y n 1 = 0
where H = λh, e = ( 1 1 1 ) T , σ ( v ) = ( σ 1 σ 2 σ s ) T , μ ( v ) = ( μ 1 μ 2 μ s ) T , S ( H 2 , v ) = 2 σ s + 1 H 2 b T ( I + H 2 A ) 1 σ ( v ) × ( e + c ) , P ( H 2 , v ) = μ s + 1 H 2 b T ( I + H 2 A ) 1 μ ( v ) × c and the symbol “×” denotes component-wise multiplication. The characteristic polynomial associated with the difference Equation (4) is given by
π ( ς ) = ς 2 S ( H 2 , v ) ς + P ( H 2 , v )
The following definition gives a condition to be satisfied by the region of absolute stability of hybrid methods (refer to [5]).
Definition 1.
For hybrid methods corresponding to Equation (5), a region of absolute stability is the region of the H-v plane throughout which P ( H 2 , v ) < 1 and S ( H 2 , v ) < 1 + P ( H 2 , v ) .
The phase properties of hybrid methods are given by these definitions (refer to [7]).
Definition 2.
For hybrid methods corresponding to Equation (5), the phase-lag or dispersion error is given by ϕ ( H 2 , v ) = H arccos S ( H 2 , v ) / 2 P ( H 2 , v ) and the phase-lag order is q if ϕ ( H 2 , v ) = c ϕ H q + 1 + O ( H q + 3 ) .
Definition 3.
For hybrid methods corresponding to Equation (5), the amplification or dissipation error is given by d ( H 2 , v ) = 1 P ( H 2 , v ) and the dissipation order is u if d ( H 2 , v ) = c d H u + 1 + O ( H u + 3 ) . The method is called zero dissipative if d ( H 2 , v ) = 0

3. Derivation of the New Method

Consider the coefficients of a class of four-stage explicit hybrid methods defined in (1) as stated in Table 1.
Using these coefficients, P ( H 2 , v ) is given by
P ( H 2 , v ) = H 2 μ 2 ( ( H 2 a 43 ) b 4 b 3 ) ( H 2 a 32 ) + H 2 ( H 2 a 43 ) b 4 c 3 μ 3 + H 2 ( H 2 a 42 ) b 4 μ 2 + ( b 3 c 3 μ 3 b 4 c 4 μ 4 b 2 μ 2 ) H 2 + μ 5
Setting b 1 = 0 , a 32 = 0 , a 42 = 0 , and a 43 = 0 , then solving the order conditions for fourth-order hybrid method as listed in [6]
b 1 + b 2 + b 3 + b 4 = 1 b 2 + b 3 c 3 + b 4 c 4 = 0 b 2 + b 3 c 3 2 + b 4 c 4 2 = 1 6 b 2 a 21 + b 3 a 31 + b 3 a 32 + b 4 a 41 + b 4 a 42 + b 4 a 43 = 1 12 b 2 + b 3 c 3 3 + b 4 c 4 3 = 0 b 2 a 21 + b 3 c 3 a 31 + b 3 c 3 a 32 + b 4 c 4 a 41 + b 4 c 4 a 42 + b 4 c 4 a 43 = 1 12 b 3 a 32 + b 4 a 42 + b 4 a 43 c 3 = 0
yields
b 2 = 6 c 4 2 1 6 ( 1 + c 4 ) ( 7 c 4 + 2 ) , b 3 = 216 c 4 3 + 108 c 4 2 + 18 c 4 + 1 6 ( 7 c 4 + 2 ) ( 6 c 4 2 + 2 c 4 + 1 ) ,   b 4 = 5 6 ( 1 + c 4 ) ( 6 c 4 2 + 2 c 4 + 1 )
a 31 = 2 5 c 4 + 7 c 4 2 + a 21 ( 2 12 c 4 2 ) 2 ( 1 + 6 c 4 ) 2 ,
a 4 1 = 7 10 c 4 2 + 6 5 c 4 2 a 21 + 1 2 c 4 + 1 5 1 5 a 21 ,
c 3 = c 4 + 1 1 + 6 c 4
where c 4 and a 21 are free parameters. By experiment, we choose c 4 = 1 2 to make P ( H 2 , v ) as close as possible to 1 as v 0 . In order to obtain a 21 , σ i and μ i , we associate each stage formula of the method with linear operator L y ( t ) as follows:
L 1 y ( t ) = y ( t + h ) 2 σ 2 y ( t ) + μ 2 y ( t h ) h 2 a 21 y ( t ) L 2 y ( t ) = y ( t + c 3 h ) σ 3 ( 1 + c 3 ) y ( t ) + μ 3 c 3 y ( t h ) h 2 ( a 31 y ( t ) + a 32 y ( t + h ) ) L 3 y ( t ) = y ( t + c 4 h ) σ 4 ( 1 + c 4 ) y ( t ) + μ 4 c 4 y ( t h ) h 2 ( a 41 y ( t ) + a 42 y ( t + h ) + a 43 y ( t + c 3 h ) ) L 4 y ( t ) = y ( t + h ) 2 σ 5 y ( t ) + μ 5 y ( t h ) h 2 ( b 1 y ( t ) + b 2 y ( t + h ) + b 3 y ( t + c 3 h ) + b 4 y ( t + c 4 h ) )
Assume that v = wh. Setting L 1 e w x = 0 , L 1 sin ( w x ) = 0 and L 1 cos ( w x ) = 0 results in
a 21 = e 2 v 2 e v + 1 e v v 2 , σ 2 = e 2 v + 2 cos ( v ) e v 2 e v + 1 2 e v ,   μ 2 = 1
This implies a 31 = ( e 2 v 2 e v + 1 ) 8 e v v 2 + 9 32 and a 41 = 9 40 + e 2 v 2 e v + 1 10 e v v 2 . Finally, by setting
L 2 sin ( w x ) = 0 ,   L 2 cos ( w x ) = 0 ,   L 3 sin ( w x ) = 0 ,   L 3 cos ( w x ) = 0 ,   L 4 sin ( w x ) = 0 ,   and   L 4 cos ( w x ) = 0
we have
σ 3 = 1 40 sin ( v ) e v ( 9 e v v 2 sin ( v ) + 32 cos ( v / 4 ) sin ( v ) e v + 32 sin ( v / 4 ) cos ( v ) e v 4 sin ( v ) e 2 v + 8 sin ( v ) e v 4 sin ( v ) )
σ 4 = 1 20 sin ( v ) e v ( 9 e v v 2 sin ( v ) + 40 cos ( v / 2 ) sin ( v ) e v 40 sin ( v / 2 ) cos ( v ) e v + 4 sin ( v ) e 2 v 8 sin ( v ) e v + 4 sin ( v ) )
σ 5 = 1 27 sin ( v ) ( cos ( v ) sin ( v ) v 2 + 8 cos ( v ) sin ( v / 4 ) v 2 5 cos ( v ) sin ( v / 2 ) v 2 + 8 sin ( v ) cos ( v / 4 ) v 2 + 5 sin ( v ) cos ( v / 2 ) v 2 + 27 cos ( v ) sin ( v ) )
μ 3 = 4 sin ( v / 4 ) sin ( v ) ,   μ 4 = 2 sin ( v / 2 ) sin ( v ) ,
μ 5 = 1 27 sin ( v ) ( v 2 sin ( v ) + 16 v 2 sin ( v / 4 ) 10 v 2 sin ( v / 2 ) + 27 sin ( v ) )
The resulting method is denoted by MEHM. This method has the following quantities:
P ( H 2 , v ) = ( 2 H 2 + 2 v 2 + 54 ) cos 3 ( v / 4 ) + ( 6 H 2 6 v 2 27 ) cos ( v / 4 ) 4 H 2 + 4 v 2 54 cos 3 ( v / 4 ) 27 cos ( v / 4 )
S ( H 2 , v ) = 1 108 ( 2 cos 3 ( v / 4 ) cos ( v / 4 ) ) ( 128 cos 7 ( v / 4 ) v 2 + 3456 cos 7 ( v / 4 ) 192 cos 5 ( v / 4 ) v 2 + 256 cos 4 ( v / 4 ) v 2 5184 c o s 5 ( v / 4 ) + 80 cos 3 ( v / 4 ) v 2 192 cos 2 ( v / 4 ) v 2 + 2160 cos 3 ( v / 4 ) + 12 cos ( v / 4 ) v 2 + 16 v 2 216 cos ( v / 4 ) + ( 128 cos 7 ( v / 4 ) + 192 cos 5 ( v / 4 ) 18 cos 3 ( v / 4 ) v 2 256 cos 4 ( v / 4 ) 80 cos 3 ( v / 4 ) + 9 cos ( v / 4 ) v 2 + 192 cos 2 ( v / 4 ) 12 cos ( v / 4 ) 16 ) H 2 + ( 18 cos 3 ( v / 4 ) 9 cos ( v / 4 ) ) H 4 )
It is also noted that lim v 0 P ( H 2 , v ) = 1 and lim v 0 S ( H 2 , v ) = H 2 + 1 12 H 4 + 2 , with S ( H 2 , v ) 2 being the rational approximation for the cosine as v → 0. The method is considered to be zero dissipative whenever v → 0. Solving H 2 + 1 12 H 4 + 2 < 2 for H > 0, we obtain H < 2 3 . It is also observed that the local truncation error is O(h6) as v → 0. The region of absolute stability of this method depicted using Maple 2020 software is shown below in Figure 1.

4. Results

The new and existing codes are abbreviated as follows.
MEHM: The modified explicit hybrid method with four stages derived in this paper.
EHM5IIPA: The phase-fitted and amplification-fitted explicit hybrid method with four stages derived in [8]. This method was derived based on the fifth-order hybrid method of the form (2).
Several problems are used to provide numerical comparisons in a constant step-size setting. Maximum global errors produced by each method are tabulated in Table 2, Table 3, Table 4 and Table 5. All numerical computations have been done in Maple 2020 software with 20 precision digits.
  • Problem 1 (Prothero–Robinson problem)
Source: D’Ambrosio et al. [9]
y ( t ) = ( y ( t ) e μ t ) ) + μ 2 e ( μ t ) , y ( 0 ) = 1 , y ( 0 ) = μ , 0 t 10
Exact solution: y ( t ) = e μ t . We use v = h in computing the numerical solutions for μ = 1, with MEHM and EHM5IIPA codes.
  • Problem 2 (Duffing equation)
Source: Yusufoğlu [10]
y ( t ) + 3 y ( t ) 2 y 3 ( t ) = cos ( t ) sin ( 2 t ) , y ( 0 ) = 0 , y ( 0 ) = 1 , 0 t 20
Exact solution: y ( t ) = sin ( t ) . For MEHM and EHM5IIPA codes, v = h was used.
  • Problem 3 (The well-known two-body problem)
Source: Franco [11]
y 1 = y 1 ( y 1 2 + y 2 2 ) ( 3 / 2 ) , y 1 ( 0 ) = 1 e , y 1 ( 0 ) = 0 , y 2 = y 2 ( y 1 2 + y 2 2 ) ( 3 / 2 ) , y 2 ( 0 ) = 0 , y 2 ( 0 ) = 1 + e 1 e , 0 t 20
Exact solution: y 1 ( t ) = cos ( R ) e , y 2 ( t ) = 1 e 2 sin ( R ) , where R satisfies the Kepler’s equation t = R e sin ( R ) and e is the eccentricity of the orbit. In this numerical experiment, we consider the case e = 0.03. For MEHM and EHM5IIPA codes, v = h.
  • Problem 4 (Kramarz’s system)
Source: D’Ambrosio et al. [12]
y ( t ) = μ 2 2 μ 2 1 μ 1 2 μ y ( t ) , y ( 0 ) = 2 1 , y ( 0 ) = 0 0
where μ = 2500 and 0 t 5 .
Exact solution: y 1 ( t ) = 2 cos ( t ) , y 2 ( t ) = cos ( t ) . For both codes, v = h is used.

5. Discussion and Conclusions

In this paper, a modified explicit hybrid method with four stages was proposed. The derivation of the method is based on the modified formula of hybrid method given in (1) while taking into consideration lim v 0 P ( H 2 , v ) . For this method, it was our intention to achieve lim v 0 P ( H 2 , v ) = 1 in such a way that S ( H 2 , v ) 2 is the rational approximation for the cosine, as studied by Coleman [13]. Moreover, the first stage of the modified formula is imposed to exactly integrate e w x , while the remaining stages are imposed to exactly integrate sin(wx) and cos(wx) where wC. The maximum global errors of the new method were tabulated and compared with that of the phase-fitted and amplification fi-ted hybrid method in [8]. From the numerical results, the new method was observed to achieve high accuracy in solving the Duffing equation and Kramarz’s system. Furthermore, the new method performs with better accuracy for bigger step-sizes than that of the existing method for solving both the Prothero and Robinson and the two-body problems. Hence, this study offers evidence that, by taking into account lim v 0 P ( H 2 , v ) , the resulting modified explicit hybrid method is capable of solving second-order ordinary differential equations y ( t ) = f ( t , y ) .

Author Contributions

Conceptualization: F.S.; Methodology: F.S.; Investigation: F.S.; Funding acquisition: F.S.; Writing—original draft preparation: F.S.; Writing—review and editing: E.S.I. and F.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Universiti Kebangsaan Malaysia, grant number GP-2020-K021142.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Simos, T.E.; Williams, P.S. New insights in the development of Numerov-type methods with minimal phase-lag for the numerical solution of the Schrodinger equation. Comput. Chem. 2001, 25, 77–82. [Google Scholar] [CrossRef]
  2. Simos, T.E.; Dimas, E.; Sideridis, A.B. A Runge-Kutta-Nystrom method for the numerical integration of special second-order periodic initial-value problem. J. Comput. Appl. Math 1994, 51, 317–326. [Google Scholar] [CrossRef] [Green Version]
  3. Li, J.; Wang, X. Multi-step Runge–Kutta–Nyström methods for special second-order initial value problems. Appl. Numer. Math 2017, 113, 54–70. [Google Scholar] [CrossRef]
  4. Li, J.; Lu, M.; Qi, X. Trigonometrically fitted multi-step hybrid methods for oscillatory special second-order initial value problems. Int. J. Comput. Math 2018, 95, 979–997. [Google Scholar] [CrossRef]
  5. Kalogiratou, Z.; Monovasilis, T.; Ramos, H.; Simos, T.E. A new approach on the construction of trigonometrically fitted two step hybrid methods. J. Comput. Appl. Math 2016, 303, 146–155. [Google Scholar] [CrossRef]
  6. Coleman, J.P. Order conditions for a class of two-step methods for y″ = f(x,y). IMA J. Numer. Anal. 2003, 23, 197–220. [Google Scholar] [CrossRef]
  7. Van de Vyver, H. An explicit Numerov-type method for second-order differential equations with oscillating solutions. Comput. Math. Appl. 2007, 53, 1339–1348. [Google Scholar] [CrossRef] [Green Version]
  8. Samat, F.; Ismail, F.; Suleiman, M. Phase fitted and amplification fitted hybrid methods for solving second-order ordinary differential equations. IAENG Int. J. Appl. Math. 2013, 43, 99–105. [Google Scholar]
  9. D’Ambrosio, R.; Paternoster, B.; Santomauro, G. Revised exponentially fitted Runge-Kutta-Nystrom methods. Appl. Math. Lett. 2014, 30, 56–60. [Google Scholar] [CrossRef]
  10. Yusufoğlu, E. Numerical solution of Duffing equation by the Laplace decomposition algorithm. Appl. Math. Comput. 2006, 177, 572–580. [Google Scholar]
  11. Franco, J.M. A class of explicit two-step hybrid methods for second-order IVPs. J. Comput. Appl. Math 2006, 187, 41–57. [Google Scholar] [CrossRef] [Green Version]
  12. D’ Ambrosio, R.; Ferro, M.; Paternoster, B. Two step hybrid collocation methods for y″ = f(x,y). Appl. Math. Lett. 2009, 22, 1076–1080. [Google Scholar] [CrossRef] [Green Version]
  13. Coleman, J.P. Numerical methods for y″ = f(x,y) via rational approximations for the cosine. IMA J. Numer. Anal. 1989, 9, 145–165. [Google Scholar] [CrossRef]
Figure 1. Region of absolute stability of the proposed method.
Figure 1. Region of absolute stability of the proposed method.
Mathematics 09 01028 g001
Table 1. Coefficients of a class of four-stage explicit hybrid methods defined in (1).
Table 1. Coefficients of a class of four-stage explicit hybrid methods defined in (1).
0000000
1 σ 2 μ 2 a 21 000
c 3 σ 3 μ 3 a 31 a 32 00
c 4 σ 4 μ 4 a 41 a 42 a 43 0
σ 5 μ 5 b 1 b 2 b 3 b 4
Table 2. Maximum global error in solving Problem 1.
Table 2. Maximum global error in solving Problem 1.
Step-SizeMEHMEHM5IIPA
0.48.12463 × 10−63.03912 × 10−5
0.24.72859 × 10−71.19831 × 10−6
0.12.80407 × 1084.23368 × 108
0.051.69979 × 10−91.41116 × 10−9
0.0251.04445 × 10−104.55621 × 10−11
Table 3. Maximum global error in solving Problem 2.
Table 3. Maximum global error in solving Problem 2.
Step-SizeMEHMEHM5IIPA
0.42.48225 × 10−141.02736
0.25.51845 × 10−132.71483 × 10−1
0.12.95522 × 10−13 8.20955 × 10−2
0.053.76672 × 10−122.97346 × 10−3
0.0254.66915 × 10−129.77418 × 10−5
Table 4. Maximum global error in solving Problem 3.
Table 4. Maximum global error in solving Problem 3.
Step-SizeMEHMEHM5IIPA
0.41.42361 × 10−22.29762 × 10−1
0.29.29187 × 10−41.98607 × 10−3
0.16.00156 × 10−51.82083 × 10−4
0.053.81442 × 10−66.89947 × 10−6
0.0252.40430 × 10−72.27004 × 10−7
Table 5. Maximum global error in solving Problem 4.
Table 5. Maximum global error in solving Problem 4.
Step-SizeMEHMEHM5IIPA
0.051.16031 × 10−161.74602 × 10−16
0.0251.72165 × 10−161.67037 × 10−15
0.01255.41637 × 10−155.97021 × 10−16
0.006257.41002 × 10−151.49427 × 10−14
0.0031252.45548 × 10−145.03433 × 10−14
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Samat, F.; Ismail, E.S. Modified Hybrid Method with Four Stages for Second Order Ordinary Differential Equations. Mathematics 2021, 9, 1028. https://doi.org/10.3390/math9091028

AMA Style

Samat F, Ismail ES. Modified Hybrid Method with Four Stages for Second Order Ordinary Differential Equations. Mathematics. 2021; 9(9):1028. https://doi.org/10.3390/math9091028

Chicago/Turabian Style

Samat, Faieza, and Eddie Shahril Ismail. 2021. "Modified Hybrid Method with Four Stages for Second Order Ordinary Differential Equations" Mathematics 9, no. 9: 1028. https://doi.org/10.3390/math9091028

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop