
Numerical Experiments 123
For the two equations (6.4) and (6.5), we can derive the analytical solutions
as
u
i
(t)=exp(−λ
1
t) u
i
(0) +
λ
2
λ
1
u
approx,i−1
(t)(exp(−λ
1
t) − 1), (6.6)
u
i+1
(t)=
λ
1
λ
2
u
approx,i
(t)(exp(−λ
2
t) − 1) + exp(−λ
2
t) u
i+1
(0), (6.7)
where the initial conditions are u
i+1
(0) = u
0
and u
i
(0) = u
0
with the index
i =1, 3, 5,...,2m + 1. The time interval is t ∈ [0,T]. The starting solutions
are fixed as u
0
(t) = 0. Further, u
approx,i−1
are the approximated solutions for
the last iterative solution u
i−1
, which has at least an accuracy of O(τ
2m+1
)
(with τ is the time-step).
Based on these solutions, we compare the results of the iterative splitting
method with the analytical solution of the complex equation, see also [86].
We perform the time discretization with the trapezoidal rule, which is a
second-order method.
The combination by handling both the iteration steps and the time par-
titions is therefore important. We assume a time interval [0,T] and divide
it in n intervals with the length τ
n
=
T
n
. We could improve the results by
using smaller time-steps and more iteration steps. The optimal relation is an
adequately large time-step with fewer iteration steps. Because of the approxi-
mation of our initial function, we can conclude that two to four iteration steps
are sufficient, cf. Theorem 3.1.
For our example we chose λ
1
=0.25 , λ
2
=0.5, and T =1.0, such that we
obtain our exact solution with u
exact
=exp(−0.75) ≈ 0.4723665 .
For the simulation we use MATLAB 7.0 on a single CPU (2.1 GHZ).
In Table 6.1 we have the errors at time T =1.0 between the analytical and
numerical results, and the computational time in [sec], for the nonsplitting
method. In the Table 6.2 we have the errors at time T =1.0 and the compu-
tational time in [sec], for the splitting method.
TABLE 6.1: Numerical results for the first
example with nonsplitting method and second-order
trapezoidal rule.
Number of err = |u
exact
− u
num
| Comput.
time partitions n time [sec]
100 1.5568e-12 1.82e-02
1000 1.0547e-15 1.41e-01
For the splitting method we obtain for few time partitions and much iter-
ation steps the best results, see n =1andi = 100, but we have to deal with
© 2009 by Taylor & Francis Group, LLC