1. Introduction
In recent years, many mathematical models with time-fractional multi-term derivatives have been studied in physics, hydrology, chemistry, etc. Hilfer [
1] provided a collection of fractional calculus applications in physics. Molz [
2] reviewed some fundamental properties of fractional motion and applications in hydrology. Singh [
3] analyzed a chemical kinetics system pertaining to a fractional derivative. Furthermore, the applications of fractional equations can also be found in [
4]. The well-known cable equations with fractional-order temporal operators belong to this class. They were introduced to model electronic properties of spiny neuronal dendrites [
5,
6]. The time-fractional partial differential equations (TFPDEs) can also include the Sobolev equations, which have been used to model many phenomena, such as the migration of moisture in soil, thermodynamics, and the motion of fluid in various media [
7,
8]. The equations of different models of heat transfer, whether the classical or dual-phase-lagging ones, undoubtedly also fall into this group [
9]. Fractional differential equations have broad applications for the fact that fractional operators can describe physical phenomena more precisely than classical integral operators for some practical problems. The collection of real world applications of fractional differential equations can be seen in [
10] and references therein.
Solutions to fractional partial differential equations are crucial for representing physical phenomena. Some analytical methods have been proposed that can be useful for parametric study. Liu carried out an analytical study for magnetohydrodynamic flow using fractional derivatives [
11]. Ming derived the analytical solution for the problems containing multi-term time-fractional diffusion [
12]. Ding proposed an analytical solution to the multi-term TFPDEs considering the non-local damping term [
13] and also the fractional delay PDEs with mixed boundary conditions [
14]. Jong used the analytic expression of the multi-term fractional integral operators to obtain the analytical expressions for the fractional equations [
15]. Jiang investigated the multi-term fractional diffusion equations and obtained the analytical solutions by the method of separation variables [
16]. In [
17], the Laplace transform method was used to derive the solution to the time-fractional distributed-order heat conduction law. The Adomian decomposition method was also being used in [
18]. Despite the fact that so many analytical techniques have been developed, the explicit forms of analytical or semi-analytical solutions are rare only for some problems under certain idealized conditions. For the further prospects of engineering applications, the numerical methods are still necessary and useful tools in this field. Numerical methods have already been used to observe some important mathematical models. Liu investigated the fluid mechanics for semiconductor circuit breakers based on finite element analysis [
19]. Yang, Liu, and Xu applied functional differential equations to analyze the problems in financial accounting [
20,
21,
22]. A computational heuristic was designed to solve the nonlinear Lienard differential model [
23]. The nonuniform difference scheme was applied to study the distributed-order fractional parabolic equations with fractional Laplacian in [
24]. A fast Fourier spectral exponential time-differencing method was used to solve time-fractional mobile–immobile equations [
25]. A fast difference scheme was proposed to solve the fractional equations considering non-smooth data [
26]. Some other works can be found in [
27,
28,
29] and references therein. Among them, the most popular methods are mesh-based methods. Some of the references and studies are listed below. Dehghan [
30] proposed a high-order numerical algorithm based on the finite difference scheme for multi-term time-fractional diffusion wave problems. The Galerkin finite element method [
31] was proposed for the approximation of the multi-term time-fractional diffusion equations. The finite difference and the finite element method were used to solve the multi-term time-fractional equations that are mixed by the sub-diffusion and diffusion-wave equation [
32]. The fast algorithm combined with the finite difference method was used to solve multi-term time-fractional reaction–diffusion wave equations with stability analysis and error analysis [
33]. The second-order numerical method was proposed for the problems with non-smooth solutions [
34]. As implied by the name, mesh-based methods require the mesh of the whole domain and also information about the nodal topology that may introduce some unreasonable constraints on the problems. The automatic and efficient approach to constructing mesh for 3D complicated domains has long been the challenge for computational mechanics. Spectral methods [
35,
36] and spectral-based methods, especially those based on the collocation method, have been published recently [
37,
38]. The spectral-based method has also been used to solve the distributed order time-fractional diffusion equations in [
39]. A pseudo-spectral method based on the reproducing kernel has been proposed to study the time-fractional diffusion-wave equation [
40].
In this paper, considering the advantages of analytical and numerical methods, a novel analytical–numerical method is proposed for solving multi-term TFPDEs with boundary conditions of general kinds. First, we apply the Fourier method, which can also be regarded as an expansion method over the eigenfunctions, in order to remove the partial derivatives with respect to the space variables and transform the original TFPDE into fractional ordinary differential equations (FODEs) without truncation error. In the general case of the time-dependent non-homogeneous boundary conditions, the solutions with the features of separation of spatial variables are not available naturally. The time-dependent non-homogeneous term in the equation also poses a problem for the application of the Fourier method. To deal with the time dependence boundary conditions and the source term, the Green function method and the operational methods such as the Laplace transform method are used [
41]. A similar technique has been proposed for the time-fractional PDEs [
42,
43]. Then, we apply the recently proposed meshless collocation method, the backward substitution method (BSM) [
44,
45,
46], to solve each FODE individually. In [
44], the BSM was also applied to solve systems of FODEs. The BSM technique can also deal with the non-homogeneous time-dependent source term. The BSM is a newly developed meshless method. By introducing special analytical functions or numerical approximations that satisfy the boundary conditions, the original problem is degenerated into a homogeneous one. Then, the BSM attempts to form an orthogonal basis system that satisfies the homogeneous boundary conditions in a general way. The approximated solution is formed using the proposed basis system where the weighted parameters are determined by backward substituting the approximation into the governing equations. This improvement has significantly increased the accuracy and stability of the usual collocation methods. Recently, some variants of the BSM have been proposed, such as the space-time BSM [
47], the localized BSM [
48], and the Fourier-based BSM [
49]. In order to apply the BSM for the fractional differential equations, some special bases should be used. Firstly, the solution of the fractional equations can contain the fractional-power terms where the common bases cannot be used for such purpose. Secondly, in terms of the BSM, the collocation method is applied. In order to apply the collocation method, it is critical that derivatives of the trial functions should be approximated by the same trial bases where the common polynomial bases cannot be used. In order to match the two requirements, the Müntz polynomials can be considered as alternative bases. The reasons behind this is to apply the critical feature that a fractional derivative of a Müntz polynomial is again a Müntz polynomial. Therefore, we can hope to obtain a good approximation for the fractional derivatives by the Müntz polynomial approximation. Due to these outstanding features, Müntz polynomials have been widely used for the solution of fractional equations in literature. Esmaeili [
50] provided the solution for fractional differential equations with the Müntz polynomial collocation method. Mokhtary [
51] solved the fractional problems with the Müntz polynomial Tau method. Bahmanpour discussed the Müntz polynomial wavelets collocation method for fractional equations [
52]. Recently, Maleknejad discussed the Müntz–Legendre wavelet approach [
53]. The Müntz polynomial has also been absorbed in the BSM to solve fractional equations [
46].
The remainder of this paper is organized as follows.
Section 2 contains a brief definition of the problems to be solved and also a brief description of the solution process.
Section 3 contains the derivation of the analytical approximations satisfying the general boundary conditions. This technique for the orthogonal basis is described in detail in
Section 4. Following the main algorithm in
Section 5, numerical examples that illustrate the presented procedure are placed in
Section 6. Finally, a brief conclusion is drawn in
Section 7.
2. Preliminaries
In the present work, our goal is to find an effective solution to the following multi-dimensional multi-term time-fractional partial differential equations (TFPDEs):
where
in which
,
,
is the identical operator, and
,
. Some initial conditions (ICs) should be prescribed in advance for the time-dependent problems
where
l is the highest integer derivative of the considered problem.
The operator
, which has the following form,
is the Caputo fractional derivative of the order
. In particular, if
is the power function
, we have
, and
if
. Further,
denotes the set of all non-negative integers.
In order to solve Equation (
1), suitable boundary conditions have to be prescribed to ensure the solvability of the problems. In the present work, we address general forms of boundary conditions:
where
denotes differentiation along the outward unit normal direction of the surface boundary, and
, for
,
for
, and
for
It is known to all that in mathematics and engineering applications, the Fourier expansion in eigenfunctions of the differential operator is an efficient numerical method in the case of homogeneous BCs when the solution can be represented as a linear combination of eigenfunctions
,
and the unknowns can be determined by substituting the expression into the initial conditions using the orthogonality property of eigenfunctions with different eigenvalues. It should be emphasized that, for the application of the Fourier method, we have to transform the original problem into a homogeneous problem. In this case, our main goal is to calculate the analytic function
that exactly satisfies the boundary conditions of Equation (
7) for any given
,
,
at each
t in Equation (
7). This function can be used to solve the problem of the non-homogeneous boundary conditions cardinally. Suppose that the solution can be approximated by the following approximation:
Substituting the above equation into Equations (
1), (
3), and (
7), we have:
It is evident that the boundary conditions have been transformed into the homogeneous one, which makes it possible to use the Fourier-series expansion as follows:
where the orthonormal basis
is corresponding to the BC Equation (
12), which satisfies
This orthonormal basis will be described in
Section 4. By substituting Equation (
13) into Equation (
10) and projecting
, we have
for the approximation of each
, which will be described in detail in the following several sections.
4. Orthogonal Basis for the Fourier Expansion
This section deals with the application of the Fourier method to the solution of corresponding homogeneous problems. As mentioned earlier, once we obtain the function
, the original equation can be transformed into the following homogeneous system by substituting the
into the governing equations and boundary conditions
which satisfies homogeneous BC
where the solution can now be approximated with the following functional form,
over the orthonormal basis
, corresponding to BC Equation (
60),
In this section, we describe the orthonormal basis and begin with the -dimensional problem as an example.
4.1. (1 + 1)-Dimensional Problems
Let us consider the following Sturm–Liouville problem:
where we describe some possible forms of the eigenfunctions corresponding to Equations (
63) and (
64).
First, let us consider the general case
,
. We write the boundary conditions in the traditional form for transport problems:
The change of the sign is connected to the different direction of the outward normal at the endpoints
and
[
41].
From Equation (
63), it follows:
Using Equation (
65), one gets:
Thus, under the condition
, the values of
are positive, and we denote
. The function
where
and where
is the
solution that can be obtained by solving the following system of transcendental equation
where
constructs an orthonormal basis in the Hilbert space
, and the following identity holds for different bases
- 2.
Let us consider the case
,
. We get the Dirichlet condition at the left endpoint
:
The function
is an eigenfunction of Sturm–Liouville Problems (
63) and (
72). Here
and
is the
solution of the transcendental equation
Function satisfies .
- 3.
Let us consider the case
,
. We get the Dirichlet condition at the right endpoint
:
The function
is an eigenfunction of Sturm–Liouville Problems (
63) and (
76). Here
and
is the
solution of the transcendental equation
Function satisfies .
- 4.
The case
,
corresponds to the Dirichlet conditions at both endpoints of the interval
. The function
also satisfies the property
.
- 5.
Finally, let us consider the following case
,
,
,
. Using Equation (
65), the boundary conditions can be expressed as
Thus, we get the Neumann condition at the left-hand side endpoint. The function
satisfies
. Here
and
is the
solution of the transcendental equation
4.2. and -Dimensional Problems
We use the products
and
as the basis function for solving
and
-dimensional problems. Here, the first index
, 5 indicates the type of the basis function as described in the last subsection; the second index
indicates the harmonic number. These functions satisfy the equations:
Below they are used in the Fourier transformation of governing Equation (
59).
6. Numerical Examples
In this section, the feasibility of the proposed method is experimentally verified. The maximum absolute error (MAE) and the
error containing the derivatives were used as numerical criteria, as shown below:
where
indicates the approximate solutions obtained by the presented analytical–numerical method for the compared solution
, and
is the total number of test nodes.
For the 1D problems, we used the number of test nodes , where N is the number of spatial harmonics; i.e., we use 4 testing nodes per harmonic. For the 2D examples, the errors were carried using the test nodes distributed in the solution domain. For the 3D problem, we have transformed it into the FODE analytically so that we only have to check the solution accuracy in the time domain.
As for the total number of collocation nodes, we have to illustrate that, in this paper, the derivation of can be done analytically. Therefore, we do not have to place nodes on the boundary. Using the approximate solution in the form of the Fourier series over the eigenfunction, we transform the TFPDE into the set of the FODEs for each of the Fourier harmonics. Therefore, we do not have to place collocation nodes inside the domain. The collocation nodes are placed in the time domain only.
The collocation points , in the time interval are used to form the collocation system for solving each FODE. In all the examples, we use the number of collocation nodes in the time domain, where M is the number of the Müntz polynomials that are used in the approximate solution of the FODEs. The parameter M defines the accuracy of the approximation in time.
6.1. -Dimensional Problem
6.1.1. Example 1
For the first example, the following time fractional cable equation is studied under the Dirichlet boundary condition
where the source term
can be computed by substituting the analytic solution
into the governing equation, which yields
Thus, the problem considered is a special 1D case with a single spatial harmonic, which was considered in
Section 4.1. As it is shown there, the problem can be reduced to a single FODE,
for the sole harmonic.
To illustrate the effects of the error in
M,
Table 1 shows the behavior of the maximum absolute error with respect to
M for the approximation of the source terms in Equations (
97), (
98), and (
107). The approximate solution is sought as a truncated series Equation (
107) over the function
:
and so belongs to the linear span
. In the case considered,
and
. For
,
Therefore, as it comes from Equation (
153), the exact solution
belongs to
for
. The data in
Table 1 demonstrate that, for this particular case, the results of the proposed analytical–numerical method converge to the exact solution for the parameter
and reach the computer rounding errors. Let us consider the case
. Here,
belongs to
for
. The data in
Table 1 illustrate this situation.
It is easy to verify that for
(the bottom row of the table), there is no such
M that the exact solution
belongs to
. As a result, for
, the error decreases gradually with the growth of
M, while for
and
, it decreases sharply when the exact solution belongs to the corresponding range
. The calculations have been performed for
,
and
which have produced the same results. Thus, if the parameters
of the Müntz polynomial basis are chosen in such a way that exact solution belongs to
then the present method provides the exact solution up to the rounding errors of the computer. This problem has been considered by Yang, Jiang, and Zhang in [
54] using the spectral Legendre–Tau method. The most accurate result that has been achieved there has the error E
= 9.3019 × 10
when 13 Legendre’s polynomials were used for the spatial and temporal approximations.
6.1.2. Example 2
Let us consider the following problem that has been studied using the time-space spectral tau method in [
54]:
subjected to the following conditions:
The BCs, the source term, and the IC can be computed from the corresponding exact solution:
In order to show the effects of
N and
M on the accuracy,
Table 2 displays the MAE, elapsed computational time, and the order of convergence with respect to parameter
N:
for
and
with
,
, and
. From this table, it is clearly seen that, for the case
, the error decreases shapely with the increase of parameter
N up to the value
. For larger
, the results of the proposed method do not change, and the solution accuracy remains at
. In the case of
, the error decreases monotonically over the whole range of
N, and the final accuracy comes to
. The order of convergence is three.
Table 2 tabulates the solutions given in [
54] by the usage of the spectral Legendre–Tau method for comparison. The data correspond to the case where 13 Legendre’s polynomials are used for the spatial and temporal approximations. From the comparison, it can be seen obviously that the proposed analytical–numerical method leads to a better solution even for small values of
M and
N from the point of view of standard accuracy.
Table 3 displays the MAE and convergence order with respect to the parameter
M for the fixed values
N = 32, 128, 512. Here the convergence order is defined as:
When M is small enough, it defines the accuracy of the approximate solution for all values of N. For , the accuracy remains the same for the growth of . On the other hand, when , the calculated error decreases with the increase of M in the whole range . This means that 512 Fourier’s harmonics provide an accurate approximation and the main error here is caused by the solving of FODEs. From the last row of this table, it can be seen evidently that the proposed method has high rates of convergence for the MAE, which provides reasonably accurate approximations for the unknown variables. It should be noted here that, with the increasing of M and N, the CO becomes flat, which means that the errors do not change for very large M or N. The proposed algorithm converges to the stable results.
In
Figure 1, the observed behavior of the error is shown in more detail. Let us consider the left-hand side of
Figure 1. The graphics
have the same origin for all fixed
M. With the growth of
N, the curves
change shape depending on the fixed value of
M.
6.1.3. Example 3
The third example solved here is the high order TFPDE
where
,
,
,
,
=
. As far as
, the TFPDE needs the following five ICs:
The equation is subjected to the BC
where the functions
,
,
,
can be easily computed from the following exact solution
Table 4 presents the maximum absolute errors of the solution and its first derivative in time with the increase in
N for
and
. In the case when
, the errors decrease sharply for
. For
, the errors are the same for
. In
Figure 2, this behavior of the error is shown in more detail.
6.2. -Dimensional Problems
6.2.1. Example 4
Let us consider the following two-dimensional multi-term time-fractional mixed sub-diffusion and diffusion-wave equation defined in the unit square
with the exact solution
for the case
,
, and
.
The initial and Dirichlet boundary conditions of function
conform the exact solution. Thus, we get the TFPDE with a single spatial harmonic corresponding to the eigenfunction
. As it is shown above, the problem can be reduced to the single FODE
with initial conditions
Table 5 shows the behavior of the MAE versus the
M in
. As shown in the previous section (see Equations (
97), (
98) and (
107)), the approximate solution
belongs to the linear span
. It is easy to check that for
,
, there is no such
M that the exact
(see Equation (
167)) belongs to
. On the other hand,
and
. The data placed in
Table 5 illustrate this situation. For
, the error decreases step-by-step with the growth of
M, while it decreases sharply for
and
when the exact solution belongs to the corresponding manifold
. Feng, Liu, and Turner have considered this problem [
32] and constructed two finite element schemes for its numerical solution. Ezz-Eldien et al. [
55] have studied this problem by the use of the combination of the shifted Legendre polynomials with the time-space spectral collocation method. The comparison of the two methods presented in
Table 4 of [
55] shows that most accurate result that has been achieved there has the error
for the first technique and
for the second one.
6.2.2. Example 5
In this example, the problem solved here is to show the applicability of the proposed algorithm for the multi-term time-fractional diffusion-wave equation in the unit square
[
56]
The initial conditions, the Dirichlet BC, and the source term
f correspond to the exact solution
The data shown in
Table 6 are obtained using
,
,
, and the numbers of the Müntz polynomials are
and
. The same problem was considered by Shen, Liu, and Anh in [
56] using an implicit difference method. From this table, it is clearly stated that our new approach is generally more accurate than others, even with a small number of
N and
M.
6.3. -Dimensional Problems
Example 6
Let us consider the following time-fractional telegraph equation in three dimensions
in the domain
with zero Dirichlet boundary conditions and the source term corresponding to the exact solution
Using the transform
, the equation is transformed into
with the solution
Thus, we get a single spatial harmonic TFPDE. Substituting
we get the FODE
with the source term and ICs corresponding to the exact solution
Table 7 shows the behavior of the absolute errors with the growth of
M for two cases:
and
. The results tabulated in the table are obtained by using
As shown above (see Equations (
97), (
98) and (
107)), the approximate solution
belongs to the linear span
. It is easy to check that for
there is no such
M that the exact solution
belongs to
. On the other hand,
. Indeed,
The data placed in the table illustrate this situation. For
, the error decreases step-by-step with the growth of
M, while it decreases sharply for
when the exact solution belongs to the corresponding manifold
. Yang et al. have considered this problem in [
57] using an ADI finite difference scheme. The most accurate result shown in
Table 2 of the reference has the error
.