1. Introduction
In this work, we consider the initial value problem
For the numerical integration of this system of an ordinary differential equation, apart from classical methods, the construction of special methods that take into consideration properties of the solution of specific problems has been proposed by many researchers and are still of great interest. A frequent characteristic of many physical phenomena is the oscillatory or exponential behavior. This is the case in many areas of applied science, such as chemistry, molecular dynamics, celestial mechanics. When working with oscillatory problems, special attention should be given to the frequency as well as the phase of the oscillation. The first multistep method to be considered for the integration of the problems with oscillatory behavior of the solution was proposed by Gautschi, who developed special linear multistep methods [
1] based on trigonometric polynomials. Lyche [
2] gave the theoretical framework for exponential/trigonometrical (EF/TF) fitting multistep methods, which was followed by the work of Raptis and Allison [
3], who derived EF/TF methods for the numerical solution of the Schrödinger equation. Since then, a lot of work has been devoted to the EF/TF multistep methods, especially for second-order ODEs. These methods have variable coefficients dependent on the frequency; therefore, a good estimate of the frequency is needed. EF/TF Runge–Kutta (RK) methods first appeared quite later in 1998 by Paternoster [
4], Simos [
5] and Vanden Berghe et al. [
6]. The idea of phase-lag appears for the first time in the literature in the work of Brusa and Nigro [
7]. Van der Houwen and Sommeijer [
8] provided a definition for the phase-lag and dissipation for RK methods based on the stability function and constructed RK methods to address problems with oscillating solution. An estimate of the frequency is not needed since these methods have constant coefficients. Simos [
9] derived an RK method with a phase-lag of order infinity (phase-fitted) with frequency-dependent coefficients.
Runge–Kutta methods have been used for the numerical integration of problem (
1) since the beginning of the previous century. Also, RK-type methods have been developed as Runge–Kutta-Nyström (RKN), Partition Runge–Kutta (PRK), and two-step hybrid Runge–Kutta methods (TSRK). An important category of RK-type methods are the Two-Derivative Runge–Kutta methods (TDRK), which were introduced by Chan and Tsai in [
10], where also an order of conditions that were derived in the framework of Butcher’s theory [
11]. These methods also include the computation of the second derivative
at intermediate points. The order of a TDRK method can be achieved using significantly fewer stages compared to RK methods. Also, a special class of explicit TDRK (SETDRK) methods was considered when the computation of
f values at intermediate points was not used. Apart from TDRK methods, researchers also presented Two-Derivative Runge–Kutta-Nyström methods [
12] and Two-Derivative Two-Step Runge–Kutta Methods [
13].
A lot of research has been devoted to the construction of SETDRK methods for oscillatory problems in a similar manner to RK methods. At first, trigonometrically fitted SETDRK methods were considered by Zhang et al. [
14], and Fang et al. [
15], Fang and You [
16], who constructed phase-fitted SETDRK methods. Also, phase-fitted and amplification-fitted SETDRK methods were constructed by Ahmad et al. [
17]. Additionally, methods with reduced phase error and amplification error were considered by Fang et al. [
18].
For the first time general explicit TDRK methods, that use several
f evaluations at each step, for oscillatory problems were considered by Monovasilis et al. in [
19] and trigonometrically fitting conditions were derived. Kalogiratou et al. in [
20] constructed methods with constant coefficients of the general case and algebraic order five as well as modified trigonometrically fitted methods. Conditions for algebraic order six were given by the authors in [
21].
In this work, we focus on modified explicit TDRK methods of algebraic order six with special properties. We construct a phase fitted and amplification-fitted method, trigonometrically fitted methods based on two approaches: each stage approach and Simos’ approach [
5,
6]. The necessary background theory is given in
Section 2 and
Section 3; in
Section 2 we give a brief presentation of TDRK methods, while in
Section 3 we revise the theory of exponentially fitted TDRK methods. New methods are constructed in
Section 4 and numerical results that illustrate the performance of the new methods are presented in
Section 5.
2. Explicit Two Derivative Runge–Kutta Methods
TDRK methods defined in [
10] are RK-type methods that also include the computation of the second derivative
at intermediate points.
An
s stage TDRK method is in the form of
where the associated Butcher tableau is
where
A and
are
matrices, and
b and
,
c are
vectors.
Let T be the set of rooted trees, then the real-valued functions are the order, symmetry, density, and elementary weight, respectively. Also, let be the vector of elementary weight functions. As in the case of Runge–Kutta methods the order conditions are derived by comparison of the Taylor series of the exact and the numerical solution, this implies that a method is of algebraic order p if for all rooted trees t with .
The vector of elementary weight functions is defined for the empty tree and for the tree of first order as
,
and for the trees of order
by the recursion formula
where
is the tree of order
that results from
by subtracting the root
and
is the tree of order
that results from
by subtracting the second-order tree
.
The elementary weight for the tree of first order is defined as
and for trees of order
as
The stability function is
For periodic initial value problems it is important to consider the stability on the imaginary axis. The test problem
with
is used. As in the case of explicit RK methods the stability function can be written as
where
and
,
are polynomials in
of degree
s. Generalizing the ideas of Van der Houwen and Sommeijer [
8] for RK methods, the definition of the dispersion (or phase error)
and the dissipation (or amplification error)
for (
2) are
where
. For explicit methods
Vanden Berghe et al. in [
6] introduced EF/TF RK methods that integrate exactly exponential functions at each internal stage. Following this idea, the authors in [
19] considered explicit TDRK methods and gave the following conditions:
for each stage
and for the final stage
where
,
z is the frequency of the problem.
3. New Methods
In this section, for the first time, we present the necessary theoretical results for constructing modified TDRK methods. In [
5], Simos proposed modified RK methods for problems with oscillating or periodic solution, generalizing the ideas introduced by Lyche [
2] for multistep methods.
Following the ideas in [
5], method (
2) is associated with the operator
where
z is a continuously differentiable function.
The following definition is given in [
5]
Definition 1. A method is called exponential of order q if the associated linear operator L vanishes for any linear combination of the linearly independent functions where are real or complex numbers.
Remark 1. If for then the operator L vanishes for any linear combination of .
We give the following theorem.
Theorem 1. The TDRK method (2) is exponential of order q ifwhere , when for , and for and . Proof. Let
and
,
the elementary weight vector of elementary weight functions associated with these trees
Then,
For
let
then
,
, we want the linear operator
L to vanish and obtain the following conditions
Since
for
,
, we ask for the operator
L to vanish for
. Working similarly we obtain
for
.
This generalizes the result given by the authors in [
20]. □
For with real, the following trigonometrically fitting conditions are derived: ().
The operator
L vanishes for
if the conditions are satisfied
The operator
L vanishes for
and
if the conditions are also satisfied
4. Construction of the New Methods
Based on the methodology developed in [
21], we constructed a sixth order method that will be used as the reference method.
For this method
,
and
are
From Equation (
3), we modify the coefficients
and
for
. In order to satisfy Equation (
4), we modify two of the coefficients
or
for
. We modify the above method using the each stage approach and found the following coefficients:
We refer to this method as
NewTF1.
Applying Simos’ approach, we derive two modified methods. For the first modified method the linear operator
L disappears for
, i.e., satisfies (
5). We refer to this method as
NewTF2. For the second method, the linear operator
L disappears for
and
, i.e., satisfies (
5) and (
6). We refer to this method as
NewTF3.
The elementary weights
can be found in terms of the elementary weight functions which for a method with
stages are as follows:
For the new methods:
NewTF2: we modify the coefficients
from conditions (
5),
,
,
NewTF3: we modify the coefficients
from conditions (
5), (
6).
For
NewTF2, the modified coefficients are as follows:
For
NewTF3, the modified coefficients are as follows:
The next method is constructed so that the phase-lag error
and the amplification error
are nullified. We refer to this method as
NewPF.
5. Numerical Results
In order to demonstrate the efficiency of the new modified methods
NewTF1, NewTF2, NewTF3, NewPF we have tested them as well as the method with constant coefficients presented in the begining of the previous section (
New) and the method constructed in [
21] (
Meth2). The last method (
Meth2) was constructed by nullifying two extra terms of the phase-lag error and one term of the amplification error
and
.
The problems used are the inhomogeneous equation studied by van der Houwen and Sommeijer [
8], the oscillatory linear system studied by Franco in [
22], the almost periodic orbit problem studied by Stiefel and Bettis in [
23] and the two body problem.
5.1. Problem 1
The inhomogeneous equation in [
8]
where
. The exact solution is
. We choose
and integration interval
. In
Figure 1, we see the efficiency of the methods (the maximum error of the solution) vs. CPU time for the inhomogeneous equation. Methods
NewTF2 and
NewTF3 constructed via the Simos’ approach are the most efficient followed by
NewTF1 constructed via the each stage approach and the phase-fitted and amplification-fitted method
NewPF. All variable coefficients methods have superior performance compared to the constant coefficients methods.
5.2. Problem 2
We consider the oscillatory linear system in [
22]
The exact solution is
In
Figure 2, the maximum error of the solution is presented in the interval
.
As we have seen in Problem 1, all modified methods have superior performance compared to the constant coefficients methods. The trigonometrically fitted methods have similar performance followed by NewPF.
5.3. Problem 3
We consider the Stiefel and Bettis problem:
The exact solution is
In
Figure 3, the maximum error of the solution is presented
.
Here, again all modified methods have superior performance.
5.4. Problem 4
We consider the two body problem:
The exact solution is
For this problem method,
NewTF1, constructed via the Vanden Berghe approach, shows excellent performance and gives an error order of
for any step up to
. All other methods have similar performance the error is
for step
.