3. Numerical Solutions of Ordinary Differential Equations
The weights of the approximations (
4) and (
5) contain powers of the parameter
b, which makes it possible to use them in constructions of approximations of the fractional derivative satisfying property (
2). Both approximations can be derived from two-point approximations and are suitable for numerical solution of differential equations. In [
1] we showed that, with an appropriate choice of the parameter, the numerical methods using approximation (
4) attain an arbitrary order in
, and that their performance is comparable to standard difference schemes with respect to accuracy and computational time. Depending on the values of the parameters, the numerical solutions of initial- and boundary-value ordinary differential equations have different properties and regions of convergence [
42,
43,
44,
45,
46,
47]. In this section, we consider applications of (
4) and the corresponding right-hand approximation to the numerical solution of initial- and boundary-value ordinary differential equations. In the following we derive a two-point approximation corresponding to approximation
.
Express the formula in the form
Hence
From (
11) we obtain the two-point approximation
Approximation (
4) follows from successive applications of (
12). When
two-point approximation (
12) has a second order accuracy
From Taylor’s theorem we obtain an estimate for the error
where
. We consider an application of (
13) to the numerical solution of first-order ordinary differential equation
By substituting the first derivatives from the equation into (
13), we obtain
Canceling the error term yields a second-order numerical solution of equation (
14).
Example 1.
Consider the following ordinary differential equation
Equation (
17) has a solution
. The experimental results for the maximum error and the order of the numerical solution (
16) of equation (
17) are presented in
Table 1 and
Table 2. The experiments are carried out using Mathematica 13 and the orders of the numerical methods are computed by formula
.
The experimental results in
Table 1 and
Table 2 indicate that (
16) is of second order, and the error of the numerical solution is less than
when the parameter
. The error increases for decreasing values of the parameter
. The results in
Table 2 show that the error of the method becomes very large for
, exceeding
for
. Denote by
the error of (
16) at the point
. From (
15) and (
16) the sequence of the errors
satisfies the recursive formula
In the following we establish the convergence of numerical solution (
16) and obtain an estimate for the error.
Proof. Denote
Formula (
18) for the errors
takes the form
Then
Applying (
20) recursively
times yields
The numbers
satisfy the estimate
Therefore
Using the equality
we obtain
□
Claim 3. Let and . Then the function is decreasing.
Proof.
Since
is increasing and
it follows that
for all
x. Hence,
is decreasing. □
Lemma 4.
Let and . Then
Proof. From Claim 2
The function
is decreasing and has a maximum at
.
□
Lemma 5.
Let and . Then
Proof.
The function
is decreasing with respect to
N and
Therefore
□
Proof. The function
is increasing because its derivative is positive. Then
□
In most practical applications, it is sufficient to compute the solution of a differential equation with an error less than
. The estimate (6) for the error of the numerical method (
16) guarantees that, for
and
, the error of the solution is less than
for parameter values
.
We consider the case
. The results in
Table 2, as well as estimate (
21), show that in this case the error of the numerical solution (
16) of equation (
14) can become very large, exceeding
for
and
. We use the following approach to solve equation (
14) numerically: Consider the boundary-value ODE, which is obtained from equation (
14) by converting the initial condition into a boundary condition.
Equation (
23) is chosen so that its numerical solution can also serve as a numerical solution of equation (
14). This is justified because the difference between the solutions of the two equations is negligible for
. Note that the boundary condition may be specified at a different point, e.g.,
. In the following claim, we provide an estimate of the difference between the solutions of equations (
14) and (
23) on the interval
.
Claim 7.
Let and . Then the difference of the solutions of equations (14) and (23) satisfies the estimate
where .
Proof. The function
satisfies the equation
Therefore
Applying the condition
:
Substituting back:
□
The numerical solutions of the boundary value ordinary differential equation (
23) exhibit high accuracy for negative values of the parameter
L. In Claim 7, it was demonstrated that for negative values of the parameter,
the difference between the solutions of equations (
14) and (
23) is insignificant. These properties enable us to compute a numerical solution of equation (
23) on the interval
and employ this solution for equation (
14) on the interval
. In the following we compute the numerical solution of boundary value problem (
23) using the right approximation of (
11). Let
. The right-hand approximation corresponding to (
11) is obtained by the substitution
.
and has a related two-point approximation
When
and
approximation (
24) has a second order accuracy. We use the two-point approximation (
24) to obtain a numerical solution of equation (
23).
The numerical solution (
) satisfies
The numerical solution
converges when
, since the modulus of the coefficient in front of
is less than one
Denote by
the first half of the values of
, which are used as a numerical solution of equation (
14) on the interval
. The numerical solution
consists of
and has accuracy
, where
and
. The accuracy of
is
when the parameter
.
Example 2.
Consider the following boundary value ODE
The numerical results for the error and order of numerical solution
of equation (
17) and values of the parameter
and
are presented in
Table 3.
The experimental results in
Table 3 show that the error of the numerical method
is less than
. The results in
Table 3 represent a significant improvement over those in
Table 3 for the numerical method (
16). The graphs of the exact solution of equation (
17) on the interval
and numerical solution
are given in Figure 3.
Figure 1.
Graphs of the exact solution of equation (
17) and of the numerical solution
for
and
.
Figure 1.
Graphs of the exact solution of equation (
17) and of the numerical solution
for
and
.
Example 3.
Consider the ordinary differential equation
for , and the corresponding boundary value ordinary differential equation
where
□
Equation (
26) has a solution
. The numerical solution of the initial value ordinary differential equation
which uses 2-point approximation (
24) is computed as
The numerical solution of the boundary value ordinary differential equation
which uses two-point approximation (
24) is computed as
Denote by
the numerical solution (
28) of equation (
26), and by
the first half of the values
of (
29), regarded as a numerical solution of equation (
26). The second column of
Table 4 contains the numerical results for the error and order of numerical solution
. The third and fourth columns contain the results for the error and order of numerical solution
.
The graphs of the solution of equation (
26) and numerical solution (
29) of boundary value ordinary differential equation (
27) are given on
Figure 2. While the numerical results in the second column of
Table 4 show that the numerical solution
is of first order, its error is quite large, making this method impractical for real applications. The applied approach for computing the numerical solutions of the ordinary differential equations (
17) and (
26), which uses the numerical solutions of the boundary value problems (
25) and (
27), allows one to obtain solutions with an error smaller than
, which is sufficient for real-life problems.
Shifted approximations are employed for the solution of nonlinear ordinary differential equations. In order to derive the shifted approximation of (
11), we make use of the two-point approximation (
24).
When
we obtain
From (
11) and (
30) we obtain the shifted approximation of the first derivative
Consider the nonlinear ordinary differential equation
By approximating the first derivative at
with (
31) we obtain
The numerical solution of equation (
32) satisfies
and has initial conditions
The numerical solution (
33) is computed with
operations. The number of computations can be reduced to
in the following way [
1]: Let
The sequence
is computed recursively as
The sequence
and the numerical solution (
33) are computed with
operations by means of the following pseudocode.
Initialization:
Loop: for
n from 3 to
N do
The computational time of the numerical method (
33) is comparable to that of standard difference methods. The numerical solution (
33) has first-order accuracy, and second-order accuracy when
. When the parameter
, the numerical solution (
33) has an accuracy of order
.
Example 4.
Consider the following nonlinear ordinary differential equation
Equation (
34) has the solution
. The experimental results for the error and the order of the numerical solution (
33) of equation (
34) are presented in
Table 5.