1. Introduction
Our interest in this paper is in the solution of a special class of second-order ordinary differential equations (ODEs) whose solution exhibits oscillatory behaviors. In short, the equation together with its boundary conditions (initial value problem (IVP)) takes the following form:
It is a special case of second ODEs because the right-hand-side of the main equation is independent of the
component. Over the years, researchers’ interest in this particular problem (
1) has grown. This is largely due to its applicability in a number of areas in applied sciences including engineering, celestial mechanics, orbital mechanics, chemical kinetics, astrophysics, chemistry, physics and elsewhere [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12]. Unfortunately, as important as the problems are (
1), only a few of them could be solved analytically, hence the need for numerical schemes.
Traditional numerical schemes such as the Runge–Kutta methods, Runge–Kutta–Nyström methods, linear multistep method, etc., for solving second-order ODEs could solve (
1) only with little accuracy and efficiency due to the behaviours of the solution. Research has shown that an adapted form of the traditional schemes could solve (
1) with reduced error and better efficiency [
5].
Recently, refs. [
11,
12] introduced in the literature a new numerical scheme that proved to be more promising in tackling (
1). The methods are developed to be implemented in constant coefficient fashion. The method could perform better if adapted to specifically handle (
1). This is the main motivation of this paper.
The remaining part of the paper is organized as follows: in
Section 2, the proposed scheme is derived; results of numerical experiment are presented in
Section 3; discussion of the results is presented in
Section 4; and finally, the conclusion is given in
Section 5.
2. The Scheme
The general form of the improved hybrid method is
where
and
are approximations for
and
respectively.
and
are coefficients of the method and they are real numbers.
and
, because the method is explicit. The coefficients can be summarized as follows (
Table 1):
2.1. Order Condition of the Scheme
Algebraic order condition of a method or scheme is a set of equations that causes the successive terms in the Taylor series expansion of local truncation error of the method to vanish. The order conditions of the scheme as derived and presented in [
11,
12] can be seen in the
Table 2 below: Note: Conditions are in terms of the general coefficients in
Table 1.
2.2. Trigonometric Conditions
Suppose we apply the scheme (
2) to solve problem (
1) whose solution is a linear combination of
, exactly, where
is real or complex. However, here, we are interested in the complex value. Assume the solution is
, where i is imaginary. Then, the trigonometric conditions are obtained as follows:
where
2.3. Derivation of the Proposed Scheme
The proposed scheme is based on the “Three-step third-order hybrid method” presented in [
11]:
Obviously,
from
Table 3. Now, substitute same in the trig. conditions while holding all the internal coefficients (
and
) constant, we obtain
That is a system of two equations in three unknown parameters, implying one degree of freedom. The one free parameter could be taken from
Table 3 below, but we do not want any of the update stage coefficients to be constant. Hence, we choose one additional equation from
Table 2 to augment the number of equations to be solved. The variable coefficients are obtained as follows:
where
However, observe that as
, there would be heavy cancellations. So, Taylor expansion of the coefficients would be used. The corresponding values after the expansion are:
2.4. Confirmation of Order of Convergence
The order of the scheme can be confirmed by substituting the coefficients back to algebraic order conditions to check the conditions that are recovered.
It can be seen that the order conditions are recovered as
z approaches zero. Hence, by the order of convergence stated in [
11], the scheme is of order three.
3. Numerical Results
In this section, the proposed scheme is validated by solving a few examples of problems with known exact solutions. The problems are:
Source: [
1,
11,
12].
x ∈ [0, 100]
Problem 2 (Duffing Problem)
Source: [
11,
12].
x ∈ [0, 100]
4. Discussion
The proposed scheme is applied on two test problems alongside its base method. The problems are linear nonhomogeneous and nonlinear homogeneous, respectively. The methods maintained a remarkable level of accuracy in solving the problems. It is also obvious that as
h approaches zero, the max. error decreases, which indicates convergence. That is to say, the fitted scheme converges faster, as its error decreases more than that of the base method, especially on Problem 2. See
Table 4 and
Table 5.
5. Conclusions
A fitted numerical scheme for numerical integration of oscillatory problems is proposed and derived. The scheme is validated using test problems whose analytical solutions are known. From the results obtained, it can be concluded that the fitted form of the improved hybrid method can be more promising in tackling oscillatory problems, especially nonlinear ones.
Author Contributions
Conceptualization, Y.D.J.; methodology/Derivation, Y.D.J. and A.I.M.; software, A.I.M.; validation, A.I.M. and Y.D.J.; formal analysis, Y.D.J.; investigation, Y.D.J.; writing—original draft preparation, Y.D.J.; writing—review and editing, I.M. 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
Data sharing is not applicable to this article.
Conflicts of Interest
The authors declare no conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
ThHM | The three-step two-stage improved hybrid method derived in [11] |
TThHM | The proposed scheme presented in this paper |
References
- Al-Khasawneh, R.A.; Ismail, F.; Suleiman, M. Embedded diagonally implicit Runge–Kutta–Nyström 4 (3) pair for solving special second-order IVPs. Appl. Math. Comput. 2007, 190, 1803–1814. [Google Scholar] [CrossRef]
- Alolyan, I.; Simos, T.E. A family of eight-step methods with vanished phase-lag and its derivatives for the numerical integration of the schrödinger equation. J. Math. Chem. 2011, 49, 711–764. [Google Scholar] [CrossRef]
- Bettis, D.G. A Runge-Kutta Nyström algorithm. Celest. Mech. 1973, 8, 229–233. [Google Scholar] [CrossRef]
- Fang, Y.; Wu, X. A New pair of explicit ARKN methods for the numerical integration of general perturbed oscillators. Appl. Numer. Math. 2007, 57, 166–175. [Google Scholar] [CrossRef]
- Van der Houwen, P.J.; Sommeijer, B.P. Explicit Runge-Kutta-Nyström methods with reduced phase errors for computing oscillating solutions. SIAM J. Numer. Anal. 1987, 24, 595–617. [Google Scholar] [CrossRef]
- Franco, J.M. Exponentially fitted explicit Runge–Kutta–Nyström methods. J. Comput. Appl. Math. 2004, 167, 1–19. [Google Scholar] [CrossRef]
- Van de Vyver, H. A 5(3) pair of explicit Runge–Kutta–Nyström methods for oscillatory problems. Math. Comput. Model. 2007, 45, 708–716. [Google Scholar] [CrossRef]
- Senu, N.; Suleiman, M.; Ismail, F. An embedded explicit Runge–Kutta–Nyström method for solving oscillatory problems. Phys. Scr. 2009, 80, 015005. [Google Scholar] [CrossRef]
- Simos, T.E. Exponentially-fitted Runge-Kutta-Nyström method for the numerical solution of initial-value problems with oscillating solutions. Appl. Math. Lett. 2002, 15, 217–225. [Google Scholar] [CrossRef]
- Kalogiratou, Z.; Simos, T.E. Construction of trigonometrically and exponentially fitted Runge–Kutta–Nyström methods for the numerical solution of the schrödinger equation and related problems–a method of 8th algebraic order. J. Math. Chem. 2002, 31, 211–232. [Google Scholar] [CrossRef]
- Yahaya, B.A.; Yusuf, D.J.; Aliyu, I.M.; Abdulkadir, A.; Ismail, M.; Amina, M.T. Two-stage improved hybrid methods for integrating special second ordinary differential equations directly. Caliphate J. Sci. Technol. (CaJoST) 2020, 2, 120–124. [Google Scholar]
- Yusuf, D.J.; Musa, I.; Badeggi, A.Y.; Ma’ali, A.I.; Tako, A.M. Order conditions of a class of three-step hybrid methods for y″=f(x;y). Int. J. Math. Sci. Optim. Theory Appl. 2022, 7, 148–160. [Google Scholar]
Table 1.
General coefficients of the scheme.
Table 1.
General coefficients of the scheme.
−2 | 0 | | | | |
0 | 0 | 0 | | | |
| | | 0 | | |
⋮ | ⋮ | ⋮ | ⋮ | ⋮ | |
| | | ⋯ | | 0 |
| | | ⋯ | | |
Table 2.
Order Conditions.
Table 2.
Order Conditions.
t | | Order Condition |
---|
| 0 | - |
| 1 | - |
| 2 | |
| 3 | |
| 4 | |
| | |
| 5 | |
| | |
| | |
| 6 | |
| | |
| | |
| | |
| | |
| | |
Table 3.
Coefficients of ThHM3.
Table 3.
Coefficients of ThHM3.
−2 | 0 | | |
0 | 0 | 0 | |
| | | 0 |
| | | |
Table 4.
Maximum Error for Problem 1.
Table 4.
Maximum Error for Problem 1.
h | TThMH | ThHM |
---|
| | |
| | |
| | |
| | |
| | |
Table 5.
Maximum Error for Problem 2.
Table 5.
Maximum Error for Problem 2.
h | TThMH | ThHM |
---|
| | |
| | |
| | |
| | |
| | |
| Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).