1 Introduction

The growing interest in the theory and applications of fractional calculus has become the motivation for many researchers in recent years. Fractional calculus has attracted attention of experts from all over the world. Various fractional operators have been introduced in the literature such as [3, 911, 27, 30, 31], and this encourages more extensive researches to be conducted. Solving fractional differential equations (FDEs) using numerical methods has been seen as an ongoing research trend. The analytical solutions of most FDEs are challenging compared to the ordinary (ODEs) and partial differential equations (PDEs) in general. Therefore, numerical solutions are actively being found by proposing new numerical approximation techniques to solve the FDEs. Some notable numerical methods have been developed to solve the fractional partial derivatives problems [1, 2, 14, 19, 20, 29].

Besides that, [12] has presented several interesting MATLAB routines for solving FDEs. The author has provided many solution techniques for solving three identified FDE problems such as the standard FDEs, the multiorder systems of FDEs, and the multiterm FDEs. One of the studies [13] presented several computational cost evaluations for the numerical solutions of FDEs from the point of view of computer science. Based on that work, the computational complexities for the time-fractional, space-fractional, and space–time FDEs are known to be \(O( N^{2} M)\), \(O ( NM^{2} )\), and \(O(NM ( M+N ) )\). The authors have also compared the three mentioned computational costs against \(O(MN)\), which is the cost of finding solutions for the classical partial differential equations using finite-difference methods. Here, M and N denote the number of spatial grid points and time steps, respectively. Moreover, the authors have mentioned that the preconditioner technique is a good alternative to accelerate the computational process in solving FDEs.

In our development of the numerical method to solve FDEs, we are interested in applying the second-order quarter-sweep finite-difference scheme with a preconditioning technique to solve the time-fractional FDE (TFDE). There are several finite difference scheme applications to solve the TFDE [5, 7, 12, 25, 26]. However, the investigation on the efficiency of the numerical method used to solve the TFDE is quite limited. The quarter-sweep finite-difference scheme has been a good computation complexity reduction approach, especially when a large number of mesh points are considered [4, 22, 28]. The quarter-sweep is able to reduce the computational complexity of computing the solutions of a large linear system by computing a quarter of the total number of mesh points without offsetting the solutions’ accuracy. Therefore, this paper investigates the efficiency of the quarter-sweep finite difference scheme with a preconditioning technique called PAOR [26] to solve the TFDE. The PAOR iterative method will be used to compute a quarter of mesh points after quarter-sweep implementation. The remaining mesh points will be estimated by averaging. This efficient numerical method is important to the physicists to aid their investigation on the time-fractional mathematical model, arising from the necessity to sharpen the concepts of equilibrium, stability states, and time evolution in the long time limit [8, 17, 18].

Throughout this paper, we discretized TFDE using the unconditionally stable second-order quarter-sweep implicit finite-difference (QSIFD) scheme. We used Caputo’s fractional partial derivative to form the approximation equation. Usually, the finite-difference approximation equation’s implementation leads to a tridiagonal matrix of the linear system due to its characteristics. The discretized finite-difference approximations also form a large and sparse matrix which is the best alternative to be solved using the iterative method. We have observed the successful iterative methods from many researchers. From many discussions and extensions made in several categories of iterative methods, we find that the preconditioned iterative methods have the unique properties to solve a linear system efficiently [15, 16, 23].

This paper’s main contribution is to present the efficiency of our proposed numerical method, which can be called the quarter-sweep preconditioned accelerated over-relaxation (QSPAOR) iterative method for solving TFDEs. In this paper, the numerical method’s efficiency is evaluated based on the number of iterations and the computation time. The QSPAOR iterative method’s efficiency will be compared against the half-sweep preconditioned accelerated over-relaxation (HSPAOR) and full-sweep preconditioned accelerated over-relaxation (FSPAOR), and the improvement in terms of the reduction of both the number of iterations and computation time will be illustrated. The stability analysis of the quarter-sweep finite difference approximation equation and the AOR iterative method’s convergence analysis are also provided.

The general TFDE that we consider as the main problem to be solved can be written as

$$ \frac{\partial ^{\alpha } U ( x,t )}{\partial ^{\alpha } t} =p ( x ) \frac{\partial ^{2} U ( x,t )}{\partial x^{2}} +q ( x ) \frac{\partial U ( x,t )}{\partial x} +r ( x ) U ( x,t ), $$
(1)

where \(p ( x )\), \(q ( x )\), and \(r(x)\) are known functions or coefficients; meanwhile, α is a parameter that determines the degree of fractional order for the time derivative. For the formulation of the finite-difference approximation with Caputo’s derivative, here are the important definitions that we use:

Definition 1

The Riemann–Liouville fractional integral operator, \(J^{\alpha } \), of order-α is defined as

$$ J^{\alpha } f ( x ) = \frac{1}{\Gamma ( \alpha )} \int _{0}^{x} ( x - t )^{\alpha } f ( t ) \,dt,\quad \alpha >0,x>0. $$
(2)

Definition 2

The Caputo’s fractional partial derivative operator, \(D^{\alpha }\), of order-α is defined as

$$ D^{\alpha } f ( x ) = \frac{1}{\Gamma ( m - \alpha )} \int _{0}^{x} \frac{f^{ ( m )} ( t )}{ ( x - t )^{\alpha - m+1}} \,dt, \quad \alpha >0, $$
(3)

with \(m - 1<\alpha \leq m\), \(m \in N\) and \(x>0\).

2 Research methodology

To solve the fractional differential problem shown in Eq. (1), we assume that the solutions exist and satisfy the Dirichlet boundary conditions. Therefore, using Eq. (2), the time-fractional derivative term in Eq. (1) is discretized using

$$ \frac{\partial ^{\alpha } u ( x,t )}{\partial t^{\alpha }} = \frac{1}{\Gamma ( n - 1 )} \int _{0}^{\infty } \frac{\partial u ( x - s )}{\partial t} ( t - s )^{- \alpha } \,ds,\quad t>0, 0< \alpha < 1 . $$
(4)

Using the approximation equation to Eq. (1) employing the finite-difference method and Caputo’s fractional derivative, we develop a C++ code for the simulation of the approximate solutions. We have two examples of the TFDE to examine the iterative methods, i.e., the proposed QSPAOR, HSPAOR, and FSPAOR. The proposed numerical method’s efficiency is examined using the number of iterations (K) and the computation time measured in seconds. The maximum absolute error (MAE) is also observed for accuracy checking. These criteria are compared by using three different order parameters α, i.e., \(\alpha =0.25\), \(\alpha =0.50\), and \(\alpha =0.75\). The convergence tolerance, \(\varepsilon =1 0^{- 10}\), is set to terminate the iteration process.

3 Approximation to the time fractional differential equation

The first-order approximation to the Caputo’s fractional derivative, which is derived from the discrete approximation to the time-fractional derivative term shown in Eq. (4), can be written as

$$ D_{t}^{\alpha } U_{i,n} \cong \sigma _{\alpha ,k} \sum_{j=1}^{n} \omega _{j}^{ ( \alpha )} ( U_{i,n - j+1} - U_{i,n - j} ), $$
(5)

where, from Eq. (5), we define two representations for the sake of simplicity as follows:

$$ \sigma _{\alpha ,k} = \frac{1}{\Gamma ( 1 - \alpha ) ( 1 - \alpha ) k^{\alpha }}, $$

and

$$ \omega _{j}^{ ( \alpha )} = j^{1 - \alpha } - ( j - 1 )^{1 - \alpha }. $$

Then, we use the common discretization by partitioning the solution domain of Eq. (1) uniformly, subjected by the Dirichlet boundary conditions. The numbers m and n (\(m,n\ni \aleph ^{+} \)) are defined so that the grid framework in space and time is fixed everywhere and has increments denoted as \(h=\Delta x= \frac{\gamma -0}{m}\) and \(k=\Delta t= \frac{T}{n}\), respectively. Based on the developed uniform grid network, the grid points in the space interval \([ 0,\gamma ]\) are represented by \(x_{i} =ih\), for \(i=0,1,2,\ldots,m\), meanwhile the grid points in the time interval \([ 0,T ]\) are labeled as \(t_{j} =jk\) for \(j=0,1,2,\ldots,n\). Therefore, the values of the function \(U ( x,t )\) at the grid points are expressed as \(U_{i,j} =U ( x_{i}, t_{j} )\).

The implementation of QSIFD discretization scheme for Eq. (5) produced the Caputo’s approximation to Eq. (1) at the grid point \(( x_{i}, t_{j} ) = ( i h,jk )\) which can be formulated as

$$ \begin{aligned}[b] & \sigma _{\alpha ,k} \sum_{j=4}^{n-4} \omega _{j}^{ ( \alpha )} ( U_{i,n-j+1} - U_{i,n-j} ) \\&\quad = \frac{p_{i}}{16 h^{2}} ( U_{i - 4,n} - 2 U_{i,n} + U_{i+4,n} ) + \frac{q_{i}}{8 h} ( U_{i+4,n} - U_{i - 4,n} ) + r_{i} U_{i,n}, \end{aligned} $$
(6)

for \(i=4, 8,\ldots,m-4\).

When the approximation in Eq. (6) is applied on the specified time level \(n \geq 2\), Eq. (6) can be expressed as

$$ \sigma _{\alpha ,k} \sum_{j=4}^{n} \omega _{j}^{ ( \alpha )} ( U_{i,n - j+1} - U_{i,n - j} ) = p '_{i} U_{i - 4,n} + q '_{i} U_{i,n} + r '_{i} U_{i+4,n}, $$
(7)

and the coefficients are represented by

$$ p'_{i} = \frac{p_{i}}{16 h^{2}} - \frac{q_{i}}{8 h}, \quad\quad q '_{i} = r_{i} - \frac{p_{i}}{8 h^{2}}, \quad\quad r '_{i} = \frac{p_{i}}{16 h^{2}} + \frac{q_{i}}{8 h}. $$

In addition to this, for \(n=1\), we have

$$ - p '_{i} U_{i - 4,1} + q_{i}^{*} U_{i,1} - r '_{i} U_{i+4,1} = f_{i,1},\quad i=4,6,\ldots,m - 4, $$
(8)

where \(\omega _{j}^{ ( \alpha )} =1\), \(q_{i}^{*} = \sigma _{\alpha ,k} - q'_{i}\), and \(f_{i,1} = \sigma _{\alpha ,k} U_{i,1}\).

When a certain number of grid points is considered based on Eq. (8), a system of linear equations is obtained, which can be expressed in the form matrix as follows:

$$ A \mathop{U}\limits_{\sim} = \mathop{f}\limits_{\sim}, $$
(9)

where

$$\begin{aligned}& A= \begin{bmatrix} q_{4}^{*} & - r '_{4} & & & & \\ - p '_{8} & q_{8}^{*} & - r '_{8} & & & \\ & - p '_{12} & q_{12}^{*} & - r '_{12} & & \\ & & \ddots & \ddots & \ddots & \\ & & & - p '_{m - 8} & q_{m - 8}^{*} & - r '_{m - 8}\\ & & & & - p '_{m - 4} & q_{m - 4}^{*} \end{bmatrix}_{ ( ( \frac{m}{4} ) - 1 ) x ( ( \frac{m}{4} ) - 1 )}, \\& \mathop{U}\limits_{\sim} = \begin{bmatrix} U_{4,1} & U_{8,1} & U_{12,1} & \cdots & U_{m - 8,1} & U_{m - 4,1} \end{bmatrix}^{T}, \end{aligned}$$

and

$$ \mathop{f}\limits_{\sim} = \begin{bmatrix} U_{4,1} + p '_{1} U_{01} & U_{8,1} & U_{12,1} & \cdots & U_{m - 8,1} & U_{m - 4,1} + p '_{m - 4} U_{m,1} \end{bmatrix}^{T}. $$

4 Analysis of stability

In this section, the stability analysis on the formulated Caputo’s finite-difference approximation in Eq. (6) is considered based on von Neumann’s approach and the Lax equivalence theorem [21, 24, 33].

Theorem 4.1

The fully IFD approximation to the solution of Eq. (1) with \(0<\alpha <1\) on the finite domain \(0\leq x\leq 1\), with zero boundary condition \(U ( 0,t ) =U ( \ell, t ) =0\) for all \(t \geq 0\), is consistent and unconditionally stable.

Proof

Writing the solution of Eq. (1) in the form \(U_{j}^{n} = \xi _{n} e^{i\omega j h}\), \(i= \sqrt{- 1}\), ω is real, Eq. (1) becomes

$$ \begin{aligned}[b] &\sigma _{\alpha ,k} \xi _{n-1} e^{i\omega jh} - \sigma _{\alpha ,k} \sum_{j=2}^{n} \omega _{j}^{ ( \alpha )} \bigl( \xi _{n-j+1} e^{i\omega jh} - \xi _{n-j} e^{i\omega jh} \bigr) \\ &\quad = - p_{i} \xi _{n} e^{i\omega ( j - 4 ) h} + ( \sigma _{\alpha ,k} - q_{i} ) \xi _{n} e^{i\omega j h} - r_{i} \xi _{n} e^{i\omega ( j+4 ) h} . \end{aligned} $$
(10)

By simplifying and reordering Eq. (10), we get

$$ \sigma _{\alpha ,k} \xi _{n-1} - \sigma _{\alpha ,k} \sum _{j=2}^{n} \omega _{j}^{ ( \alpha )} ( \xi _{n-j+1} - \xi _{n-j} ) = \xi _{n} \bigl( \bigl( ( - p_{i} - r_{i} ) \cos ( \omega h ) \bigr) + ( \sigma _{\alpha ,k} - q_{i} ) \bigr). $$
(11)

Eventually, from Eq. (11), we reduce to

$$ \xi _{n} = \frac{\xi _{n - 1} + \sum_{j=2}^{n} \omega _{j}^{ ( \alpha )} ( \xi _{n - j} - \xi _{n - j+1} )}{ ( 1+ \frac{ ( p_{i} + r_{i} )}{\sigma _{\alpha ,k}} \cos ( \omega h ) + \frac{q_{i}}{\sigma _{\alpha ,k}} )}. $$
(12)

Hence, from Eq. (12), it can be observed that

$$ \biggl( 1+ \frac{ ( - p_{i} - r_{i} )}{\sigma _{\alpha ,k}} \cos ( \omega h ) - \frac{q_{i}}{\sigma _{\alpha ,k}} \biggr) \geq 1, $$
(13)

for all α, n, ω, h, and k; then we have the inequality \(\xi _{1} \leq \xi _{0}\), and

$$ \xi _{n} \leq \xi _{n - 1} + \sum _{j=2}^{n} \omega _{j}^{ ( \alpha )} ( \xi _{n - j} - \xi _{n - j+1} ), \quad n \geq 2. $$
(14)

Based on Eq. (14), for \(n=2\), we obtain

$$ \xi _{2} \leq \xi _{1} + \omega _{2}^{ ( \alpha )} ( \xi _{0} - \xi _{1} ). $$
(15)

Then, by repeating the same process as in Eq. (15), we can get

$$ \xi _{j} \leq \xi _{j - 1}, \quad j=1,2,\ldots,n-1. $$
(16)

From Eq. (16), we finally have

$$ \xi _{n} \leq \xi _{n - 1} + \sum _{j=2}^{n} \omega _{j}^{ ( \alpha )} ( \xi _{n - j} - \xi _{n - j+1} ) \leq \xi _{n - j} . $$
(17)

Since each term in the sum shown in Eq. (17) is negative, it implies that the inequalities in Eqs. (16) and (17) can be generalized into

$$ \xi _{n} \leq \xi _{n - 1} \leq \xi _{n - 2} \leq \cdots \leq \xi _{1} \leq \xi _{0}. $$
(18)

Thus, \(\xi _{n} = \vert U_{j}^{n} \vert \leq \xi _{0} = \vert U_{j}^{0} \vert = \vert f_{j} \vert \), which entails \(\Vert U_{j}^{n} \Vert \leq \Vert f_{j} \Vert \), and we have stability. It follows that the numerical solution of the approximation equation to Eq. (1) converges to the exact solution as \(h,k \rightarrow 0\). □

5 QSPAOR iterative method

In this section, we discuss solving the tridiagonal linear system as in Eq. (9). To formulate the QSPAOR iterative method, first convert the initial linear system into the preconditioned system in the form of

$$ A^{*} \mathop{x}\limits_{\sim} = \mathop{f}\limits_{\sim}^{*}. $$
(19)

Referring to Eq. (19), the new coefficient matrix is obtained by

$$ A^{*} =PA P^{T}, $$
(20)

then the right-hand side functional vector is

$$ \mathop{f}\limits_{\sim}^{*} =P \mathop{f}\limits_{\sim}, $$
(21)

and lastly, the approximate solutions are calculated using

$$ \mathop{U}\limits_{\sim} = P^{T} \mathop{x}\limits_{\sim}. $$
(22)

Based on the transformation that we use in Eqs. (20)–(22), the matrix P is defined as a preconditioning matrix, that is,

$$ P=I+S, $$
(23)

where

$$ S= \begin{bmatrix} 0 & - r '_{1} & 0 & 0 & 0 & 0\\ 0 & 0 & - r '_{2} & 0 & 0 & 0\\ 0 & 0 & 0 & - r '_{3} & 0 & 0\\ 0 & 0 & \ddots & \ddots & \ddots & 0\\ 0 & 0 & 0 & 0 & 0 & - r '_{m - 1}\\ 0 & 0 & 0 & 0 & 0 & 0 \end{bmatrix}_{ ( m - 1 ) \times ( m - 1 )}, $$

and the matrix I is an identity matrix.

Next, we let the coefficient matrix \(A^{*}\) in Eq. (19) be given in the form of a sum as follows:

$$ A^{*} =D - L - V. $$
(24)

Based on the sum of three matrices in Eq. (24), we represent D, L, and V as the diagonal, the lower and the upper triangular matrices, respectively. Hence, using the preconditioned system in Eq. (19) and matrices in Eq. (24), the proposed iterative method for solving TFDE, QSPAOR, can be generally formulated as

$$ \mathop{x}\limits_{\sim}^{ ( K+1 )} = ( D - \omega L )^{-1} \bigl[ \beta V+ ( \beta - \omega ) D+ ( 1 - \beta ) D \bigr] \mathop{x}\limits_{\sim}^{ ( K )} +\beta ( D - \omega L )^{-1} \mathop{f}\limits_{\sim}^{*}, $$
(25)

where \(\mathop{x}\limits_{\sim}^{ ( K+1 )}\) denotes the vector to be determined at the \((K+1)\)th iteration.

The operation of the QSPAOR method is executed as in Algorithm 1.

Algorithm 1

(QSPAOR method)

  1. i.

    Initialize \(\mathop{U}\limits_{\sim} \leftarrow 0\) and \(\varepsilon \leftarrow 1 0^{- 10}\).

  2. ii.

    For \(j=4, 8,\ldots,n-4\) and for \(i=4, 8,\ldots,m-4\), calculate \(\mathop{x}\limits_{\sim}^{ ( K+1 )} = ( D - \omega L )^{- 1} [ \beta V+ ( \beta - \omega ) D+ ( 1 - \beta ) D ] \mathop{x}\limits_{\sim}^{ ( K )} +\beta ( D - \omega L )^{- 1} \mathop{f}\limits_{\sim}^{*}\), and then \(\mathop{U}\limits_{\sim}^{ ( K+1 )} = P^{T} \mathop{x}\limits_{\sim}^{ ( K+1 )}\).

  3. iii.

    Convergence criterion \(\Vert \mathop{U}\limits_{\sim}^{ ( K+1 )} - \mathop{U}\limits_{\sim}^{ ( K )} \Vert \leq \varepsilon \). If the process converged, go to Step (iv). Otherwise, repeat Step (i).

  4. iv.

    Display approximate solutions.

6 Convergence of AOR method

As the QSPAOR iterative method has been formulated, in this section, we discuss the convergence of AOR method that we implement for the solution process to solve Eq. (1). Therefore, let us consider the AOR method [32]:

$$ \mathop{x}\limits_{\sim}^{ ( K+1 )} = ( D-\omega L )^{-1} \bigl[ \beta V+ ( \beta -\omega ) L+ ( 1-\beta ) D \bigr] \mathop{x}\limits_{\sim}^{ ( K )} +\beta ( D-\omega L )^{-1} \mathop{f}\limits_{\sim}^{*}, $$
(26)

with \(n =0,1, 2,\ldots \) , where

$$ L_{\omega ,\beta } = ( D - \omega L )^{-1} \bigl[ ( 1 - \beta ) D+ ( \beta - \omega ) L+\beta V \bigr] =D - \beta ( D - \omega L )^{-1} A. $$
(27)

Theorem 6.1

If the AOR method (16) converges (\(\rho ( L_{\omega ,\beta } ) <1\)) for some \(\beta ,\omega \neq 0\), then exactly one of the following statements holds:

  1. (i)

    \(\omega \in ( 0,2 )\) and \(\beta \in ( -\infty ,0 ) \cup ( 0,+ \infty )\),

  2. (ii)

    \(\omega \in ( -\infty ,0 ) \cup ( 2,+\infty )\) and \(\beta \in ( \frac{2\omega }{ ( 2 - \omega )},0 ) \cup ( 0,2 )\).

Proof

It is known that the eigenvalues \(\lambda _{j}\) of \(L_{\omega ,\beta }\) (\(\beta ,\omega \neq 0 \)) are connected with the eigenvalues \(\xi _{j}\) of \(L_{\omega ,\omega } \equiv L_{\omega } \) (\(L_{\omega }\) is the SOR iteration matrix) by the relationship

$$ \lambda _{j} = \biggl( 1 - \frac{\beta }{\omega } \biggr) + \frac{\beta }{\omega } \xi _{j}, \quad j= 2 ( 2 ) m-2. $$
(28)

From Eq. (28), we get \(\xi _{j} =1- \frac{\omega }{\beta } + \frac{\omega }{\beta } \lambda _{j}\), \(j=2 ( 2 ) m-2\). We also note that \(\prod_{j=2,4,\ldots}^{m-2} \xi _{j} = ( 1-\omega )^{n} \).

Therefore, \(\prod_{j=2,4,\ldots}^{m-2} ( 1- \frac{\omega }{\beta } + \frac{\omega \lambda _{j}}{\beta } ) - ( 1-\omega )^{n}\) and since \(\vert \lambda _{j} \vert <1\), \(j=2(2)m - 2\) from hypothesis, we obtain

$$\begin{aligned}& \begin{aligned}[b] \bigl\vert ( 1 - \omega )^{n} \bigr\vert &= \prod_{j=2,4,\ldots}^{m - 2} \biggl\vert 1 - \frac{\omega }{\beta } + \frac{\omega }{\beta } \lambda _{j} \biggr\vert \leq \prod_{j=2,4,\ldots}^{m - 2} \biggl( \biggl\vert 1 - \frac{\omega }{\beta } \biggr\vert + \biggl\vert \frac{\omega }{\beta } \vert \lambda _{j} \vert \biggr\vert \biggr) \\ &< \prod_{j=2,4,\ldots}^{m-2} \biggl( \biggl\vert 1- \frac{\omega }{\beta } \biggr\vert + \biggl\vert \frac{\omega }{\beta } \biggr\vert \biggr) = \biggl( \biggl\vert 1- \frac{\omega }{\beta } \biggr\vert + \biggl\vert \frac{\omega }{\beta } \biggr\vert \biggr)^{n}, \end{aligned} \end{aligned}$$
(29)

that is,

$$ \vert 1 - \omega \vert < \biggl\vert 1 - \frac{\omega }{\beta } + \biggl\vert \frac{\omega }{\beta } \biggr\vert \biggr\vert , $$
(30)

or equivalently,

$$ \bigl\vert \beta ( 1 - \omega ) \bigr\vert < \vert \beta - \omega \vert + \vert \omega \vert . $$
(31)

It can be shown that Eq. (31) holds if and only if exactly one of the following statements holds:

  1. (i)

    \(\omega \in ( 0,2 )\) and \(\beta \in ( -\infty ,0 ) \cup ( 0,+ \infty )\),

  2. (ii)

    \(\omega \in ( -\infty ,0 ) \cup ( 2,+\infty )\) and \(\beta \in ( \frac{2\omega }{ ( 2 - \omega )},0 ) \cup ( 0,2 )\),

and the proof is completed. □

Theorem 6.2

If the AOR method with \(\omega =0\) converges (\(\rho ( L_{0,\beta } ) <1 \)) then \(0<\beta <2\).

Proof

If \(\omega =0\), then \(L_{0,\beta } = ( 1 - \beta ) D+\beta ( L+U ) = ( 1 - \beta ) D+\beta B\). If \(\mu _{j}\), \(j=2 ( 2 ) m-2\) are the eigenvalues of B, then for the eigenvalues \(\lambda _{j}\) of \(L_{0,\beta } \) we get

$$ \lambda _{j} =1 - \beta +\beta \mu _{j},\quad j=2 ( 2 ) m - 2, $$
(32)

which implies

$$ \mu _{j} = \frac{1}{\beta } ( \beta - 1+ \lambda _{j} ), \quad j=2 ( 2 ) m - 2. $$
(33)

But since \(B=0\), we get

$$ \sum_{j=2,4,\ldots}^{m - 2} \mu _{j} =0 = \sum_{j=2,4,\ldots}^{m - 2} \frac{1}{\beta } ( \beta - 1+ \lambda _{j} ). $$
(34)

From Eq. (34) we have

$$ \sum_{j=2,4,\ldots}^{m - 2} \lambda _{j} = \biggl( \frac{m}{2} - 1 \biggr)\cdot ( 1 - \beta ), $$
(35)

and consequently,

$$ \biggl\vert \biggl( \frac{m}{2} - 1 \biggr) ( 1 - \beta ) \biggr\vert = \Biggl\vert \sum_{j=2,4,\ldots}^{m - 2} \lambda _{j} \Biggr\vert \leq \sum_{j=2,4,\ldots}^{m - 2} \vert \lambda _{j} < n \vert . $$
(36)

Since \(\vert \lambda _{j} \vert <1\), \(j=2(2)m - 2\) from the hypothesis, \(\vert ( \frac{m}{2} -1 ) ( 1-\beta ) \vert < n\), or \(0<\beta <2\). □

7 Time-fractional diffusion examples

For the numerical simulation, we consider two examples of the TFDE problems to evaluate the efficiency of the proposed QSPAOR against the previously developed iterative methods in our research, namely HSPAOR and FSPAOR. The three criteria, as mentioned in Sect. 2, are compared for each of the three different values of α, i.e., \(\alpha =0.25\), \(\alpha =0.50\), and \(\alpha =0.75\). The iteration cycle for the running program based on Algorithm 1 is limited by the tolerance \(\varepsilon = 1 0^{- 10}\). We consider the following two TFDE examples, namely the time-fractional initial boundary value problems from [6]:

Example 1

$$ \frac{\partial ^{\alpha } U ( x,t )}{\partial t^{\alpha }} = \frac{\partial ^{2} U ( x,t )}{\partial x^{2}}, \quad 0< \alpha \leq 1, 0 \leq x \leq \gamma , t>0. $$
(37)

The boundary conditions that we implement are stated in fractional terms as follows:

$$ U ( 0,t ) = \frac{2k t^{\alpha }}{\Gamma ( \alpha +1 )}, \quad\quad U ( \ell,t ) = \ell^{2} + \frac{2k t^{\alpha }}{\Gamma ( \alpha +1 )}, $$
(38)

and to initiate the approximate solutions, we set the initial condition

$$ U ( x,0 ) = x^{2}. $$
(39)

Example 2

$$ \frac{\partial U ( {x},{t} )}{\partial t} =\Gamma ( 1.2 ) x^{\beta } \frac{\partial ^{\beta } U ( {x},{t} )}{\partial x^{\beta }} +3 x^{2} ( 2{x}-1 ) e^{-{t}} . $$
(40)

For the example of Eq. (40), we initiate the approximate solutions using the initial condition \(U ( x,0 ) = x^{2} - x^{3}\) and implement the zero Dirichlet conditions. Meanwhile, the exact solution to this problem is \(U ( {x},{t} ) = x^{2} ( 1-{x} ) e^{-{t}}\).

All-important numerical results from the implementation of QSPAOR, HSPAOR, and FSPAOR methods to solve the numerical examples in Eqs. (37) and (40) are recorded in Tables 1 and 2. For the consistency inspection, we run the numerical simulation by increasing the values of mesh sizes, that is, \(m= 128, 256, 512, 1024\), and 2048. Based on the results tabulated in Tables 1 and 2, we found that QSPAOR required the least number of iterations and the shortest computation time to finish computing the two examples’ solutions compared to the HSPAOR and FSPAOR. The numerical results are similar for all values of mesh sizes and parameter α. These results attribute the significant improvement in computing efficiency to the quarter-sweep technique, which computes a quarter of the total number of mesh points using PAOR instead of all mesh points in the solution domain.

Table 1 Numerical results for Example 1
Table 2 Numerical results for Example 2

The results can be summarized as follows. For Example 1, the number of iterations and computation time have declined by 80.25–85.36% and 71.89–81.78%, respectively, if QSPAOR method is compared to the FSPAOR method. When QSPAOR is compared to HSPAOR, the number of iterations and the computation time have reduced by about 49.20–54.74% and 44.18–57.27%, respectively. For Example 2, QSPAOR has reduced the number of iterations and the computation time of FSPAOR by about 72.13–84.16% and 67.16–80.90% respectively. When compared to HSPAOR, these improvements became 43.57–64.35% and 38.57–57.28%, respectively. Overall, the accuracy of the three numerical methods, i.e., QSPAOR, HSPAOR, and FSPAOR, is comparable.

8 Conclusion

This paper solved a one-dimensional TFDE by applying the quarter-sweep finite-difference scheme and the PAOR iterative method. Using the quarter-sweep technique and PAOR iterative method, the computational complexity of computing the solutions of the TFDE has been successfully reduced. The quarter-sweep calculated only a quarter of the total mesh points by using PAOR while averaging the remaining mesh points, and the result is promising. The numerical experiments demonstrated the efficiency of the proposed QSPAOR method, in which the number of iterations and computation time have been reduced significantly, compared to the HSPAOR and FSPAOR methods. In addition to that, the accuracy of the three tested methods is almost identical. The study found that the computational complexity reduction by the quarter-sweep and the PAOR method can be an efficient numerical method to solve TFDE.