Abstract
In this paper, we develop a Bernstein dual-Petrov–Galerkin method for the numerical simulation of a two-dimensional fractional diffusion equation. A spectral discretization is applied by introducing suitable combinations of dual Bernstein polynomials as the test functions and the Bernstein polynomials as the trial ones. We derive the exact sparse operational matrix of differentiation for the dual Bernstein basis which provides a matrix-based approach for the spatial discretization. It is shown that the method leads to banded linear systems that can be solved efficiently. The stability and convergence of the proposed method is discussed. Finally, some numerical examples are provided to support the theoretical claims and to show the accuracy and efficiency of the method.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Bernstein polynomial basis plays an important role in computer graphics for geometric modeling, curve and surface approximation. Some interesting features have been investigated for this basis in the last decades; for instance, it is proven to be an optimal stable basis among nonnegative bases in a sense described in Farouki and Goodman (1996). Also, it provides some optimal shape-preserving features (Carnicer and Pena 1993). We refer to Farin et al. (2002), Farouki and Rajan (1988), Farouki (1991) for detailed properties and applications in computer-aided geometric design (CAGD).
Bernstein basis has also been used for the numerical solution of differential, integral, integro-differential and fractional differential equations; see e.g., Behiry (2014), Javadi et al. (2016a), Javadi et al. (2016b), Maleknejad et al. (2012), Saadatmandi (2014) and the references therein. However, it is not orthogonal and so leads to dense linear systems when using in numerical methods. Some numerical approaches implement the orthogonalized Bernstein basis. However, as we will see in the next section, it fails to keep some interesting properties of the Bernstein basis. Another approach uses the dual Bernstein polynomials (DBP) introduced by Juttler (1998). To the best of our knowledge, the DBP basis has been only discussed from the CAGD point of view (see the works of Lewanowicz and Wozny e.g. Lewanowicz and Wozny 2011, Wozny and Lewanowicz 2009). So, it is of interest to explore some new aspects of this basis to facilitate the numerical methods for differential equations that are based on Bernstein polynomials and to present a method for time fractional diffusion equation in two dimensions.
Fractional partial differential equations (FPDEs) have been widely used for the description of some important physical phenomena in many applied fields including viscoelastic materials, control systems, polymer, electrical circuits, continuum and statistical mechanics; see, for instance Dabiri and Butcher (2017), Goychuk (2009), Metzler and Klafter (2004), Moghaddam and Machado (2017), 2016 and the references therein. The subdiffusion equation is a FPDE describing the behavior of anomalous diffusive systems with the probability density of particles diffusing proportional to the mean square displacement \(\chi ^{2}(t)\propto t^{\alpha }\) with \(0<\alpha <1\) (Gao et al. 2012). Anomalous diffusion equations have been used for modeling transport dynamics, especially the continuous time random walk, the contamination in porous media, viscoelastic diffusion, etc (Gao et al. 2012, 2015; Goychuk 2009; Metzler and Klafter 2004; Wang and Wang 2016). For the numerical solution of the one-dimensional problem, we refer to Jin et al. (2016), Ren et al. (2013), Stokes et al. (2015), Zhou and Gong (2016) and the references therein. Some classic numerical methods for PDEs have been developed for the simulation of two-dimensional subdiffusion equation, for example the finite difference schemes (Gao et al. 2015; Pang and Sun 2016; Ren et al. 2013), meshless methods (Shirzadi et al. 2012; Yang et al. 2015), finite element method (Zhao et al. 2016) and alternating direction implicit methods (Zhang 2011; Zhang et al. 2012).
In this paper, deriving some new aspects of DBPs, we present suitable combinations of these functions to develop a dual-Petrov–Galerkin method for solving the following 2D subdiffusion equation (Wang and Wang 2016; Yang et al. 2015; Yang and Zhang 2014; Zhang 2011; Zhang et al. 2012; Zhao et al. 2016).
with the following initial and boundary conditions:
where \(\varOmega =\left( 0,1\right) ^{2}\subset {\mathbb {R}}^{2}\), \(\varDelta \) is the Laplacian operator, \(T>0\), \(\kappa \) is the diffusion coefficient and S is the source function. Here, \({D_{t}^{\alpha }}u\) denotes the Caputo fractional derivative of order \(\alpha ,\) \(0<\alpha <1\), with respect to t defined as
The main contribution of our work is the development of an accurate Bernstein dual-Petrov–Galerkin method and the application for the numerical simulation of the 2D subdiffusion equation. It is shown that the method leads to sparse linear systems. To give a matrix approach of the method, we present some results concerning the DBPs including a recurrence formula for the derivative, constructing a new basis using DBPs, deriving the operational matrix of differentiation and also providing the transformation matrices between the DBPs and the new basis.
The paper is organized as follows: Sect. 2 presents some new aspects of DBPs and provides modal basis functions and the associated transformation matrices between the bases. Section 3 is devoted to the Bernstein spectral formulation of the subdiffusion problem (1.1)–(1.3) and the stability and convergence results are discussed in Sect. 4. Numerical examples are provided in Sect. 5. The paper ends with some concluding remarks in Sect. 6.
2 Bernstein polynomials and DBPs
The Bernstein polynomials with degree N on the unit interval are defined by
The set \(\left\{ \phi _{i}\left( x\right) :\,i=0,\dots ,N\right\} \) forms a basis for \({\mathbb {P}}_{N}\), with the space of polynomials of degree not exceeding N.
These polynomials possess end-point interpolation property, i.e.,
Also, the summation is one and the integral over the unit interval is constant, namely
The derivative enjoys the three-term recurrence relation (Jani et al. 2017)
where we adopt the convention that \(\phi _{i}\left( x\right) \equiv 0\) for \(i<0\) and \(i>N\).
As we mentioned in the preceding section, the Bernstein basis is not orthogonal. The corresponding orthogonalized basis, obtained e.g., by the Gram–Schmidt process fails to keep some interesting aspects of the original basis. We will not consider this basis in the present work. Instead, we turn to the dual basis.
The DBPs are defined as
with the coefficients given by
It is verified that they satisfy the biorthogonal system (Juttler 1998, Theorem 3)
It is worth noting that less than a quarter of the entries of transformation matrix between the Bernstein and dual Bernstein basis \(C=[c_{i,j}]\), are to be computed directly by (2.5), for it is bisymmetric, i.e., symmetric about both of the main diagonal and antidiagonal.
Another property which is used later is that the sum of the entries for each row (column) is equal to the order of the matrix, i.e.,
In the next lemma, we present some properties of the DBPs.
Lemma 1
Let N be a nonnegative integer. The following statements hold.
-
(i)
For all \(x\in [0,1]\), \({\tilde{\psi }}_{N-i}\left( x\right) ={\tilde{\psi }}_{i}\left( 1-x\right) \), \(0\le i\le N\).
-
(ii)
For all \(x\in [0,1]\), \(\sum _{i=0}^{N}{{\tilde{\psi }}_{i}\left( x\right) }=N+1.\)
-
(iii)
The basis functions have the same definite integral, i.e.,\(\int _{0}^{1}{\tilde{\psi }}_{i}\left( x\right) \mathrm{d}x=1,\quad 0\le i\le N\).
Proof
The first statement is an immediate consequence of the similar formula for Bernstein polynomials, i.e., \(\phi _{N-i}(x)=\phi _{i}(1-x).\) From (2.4), (2.7) and (2.2), we have
Statement (iii) is also verified similarly. \(\square \)
The property (i) implies that \({\tilde{\psi }}_{i}\), for \(\left[ \frac{N}{2}\right] +1\le i\le N,\) need not to be computed directly by (2.4)–(2.5). It especially gives \({\tilde{\psi }}_{i}\left( 0\right) ={\tilde{\psi }}_{N-i}\left( 1\right) \).
2.1 Modal basis functions
One may choose a suitable compact combinations of orthogonal polynomials as the trial and test basis for the Galerkin and Petrov–Galerkin methods for BVPs in such a way leading to sparse linear systems for some special problems (see e.g., Goubet and Shen 2007; Yuan et al. 2008). Here, we use this idea for the non-orthogonal Bernstein polynomials to present a simple and accurate dual-Petrov–Galerkin spectral method for two-dimensional subdiffusion equation. Following Shen et al. (2007, 2011, Section 1.3), we will refer to such basis functions as the modal basis functions.
Proposition 1
Let \(N\ge 2\) be an integer, \(\{{\tilde{\psi }}_{i}:\,0\le i\le N\}\) be the dual Bernstein basis and \({\mathbb {P}}_{N}^{0}=\{u\in {\mathbb {P}}_{N}:\,u(0)=0,u(1)=0\}.\) Set
for \(0\le i\le N-2,\) where
Then, the polynomials \({\tilde{\psi }}_{i}(x)\) vanish at 0 and 1, so the set \(\{\psi _{i}\left( x\right) \}_{i=0}^{N-2}\) forms a basis for \({\mathbb {P}}_{N}^{0}\).
Proof
From Lemma 1, we infer that
By (2.10) and (2.11), we obtain
for \(0\le i\le N-2.\) It is easy to see that \(\{\psi _{i}\left( x\right) \}_{i=0}^{N-2}\) is linearly independent. Since \(\mathrm {dim}{\mathbb {P}}_{N}^{0}=N-1\), this set is a basis for \({\mathbb {P}}_{N}^{0}\). This completes the proof. \(\square \)
Figure 1 illustrates the DBPs and the modal basis functions for \(6\le N\le 8\). It is seen that the modal basis functions have less values than the corresponding dual functions on the unit interval, expecting less round-off errors.
2.2 Transformation matrices and the operational matrix for derivatives
For \(N\ge 2\), consider the \((N+1)\)-vector \({\tilde{{\varvec{\Psi }}}}\) and the \((N-1)\)-vector \({\varvec{\Psi }}\) consisting of dual functions given by (2.4) and the modal basis functions given by (2.8), respectively:
For simplicity, we ignore the dependence of the vectors on the variable. First, note that
where \({\mathbf {G}}=[g_{i,j}]\) is an \(\left( N-1\right) \times \left( N+1\right) \) matrix with three diagonals as
To derive a formula for the derivative of the modal basis functions, we first prove the following result.
Lemma 2
The operational matrix for derivative of the DBPs, \({\mathbf {P}}\) satisfies
where the matrix \({\mathbf {P}}=[p_{i,j}:\,0\le i,j\le N]\) is given by
Proof
The DBPs \({\tilde{{\varvec{\Psi }}}}\) is a basis for \(P_{N}\), so we expand \({\tilde{\psi }}_{i}^{\prime }\left( x\right) \) for \(0\le i\le N\) as
Integration by parts and (2.3) imply that
The biorthogonality (2.6) gives
Now, the result is proved by considering (2.10) and (2.11). \(\square \)
Remark 1
The matrix \({\mathbf {P}}\) is a sparse matrix of order \(N+1\) with \(p_{i,j}=0\) for \(|i-j|>1,\) \(j\ne 0,N\); for instance, see the matrix given below.
Corollary 1
Set \(\alpha _{i,0}=-(-1)^{i}(N+1)\left( {\begin{array}{c}N+1\\ i+1\end{array}}\right) +N\delta _{i,0}+\delta _{i,1}\) for \(0\le i\le N.\) Then, from (2.15), we infer that the following five-term recurrence relation is deduced:
where we set \({\tilde{\psi }}_{i}\equiv 0\) for \(i<0\) and \(i>N.\)
We derive the transformation matrices that map the Bernstein and Chebyshev coefficients.
Now, we derive the transformation matrix that maps the derivative of modal basis functions to DBPs. This facilitates the use of the Galerkin method in the next section. In the following, \((p,q)-band\) matrix stands for a matrix with p and q nonzero diagonals below and above the main diagonal, respectively.
Lemma 3
Let the vectors \({\varvec{\Psi }}\) and \({\tilde{{\varvec{\Psi }}}}\) be defined as in (2.12) and (2.13), respectively. Then,
where \({\mathbf {Q}}\) is an \(\left( N-1\right) \times \left( N+1\right) ,\) \(\mathrm {(1,3)-band}\) matrix given by \({\mathbf {Q}}={\mathbf {GP}}.\)
Proof
Combining (2.14) with (2.15) implies \({\mathbf {Q}}={\mathbf {GP}}.\) To prove that \({\mathbf {Q}}\) is a \(\mathrm {(1,3)-band}\) matrix, it is sufficient to show that \(q_{i,0}=0\) for \(i>1\) and \(q_{i,N}=0\) for \(i<N-2,\)
and for \(i<N-2,\) by (1)
Note that \(\psi _{i}\)’s vanish at the boundary values according to Proposition 1. The proof is complete.
To see the sparsity of the transformation matrices, \({\mathbf {P}}\), \({\mathbf {G}}\) and \({\mathbf {Q}}\) for \(N=6\) are shown in the following
3 Variational formulation of the problem (1.1) and the spectral discretization
In this section, at first the problem (1.1)–(1.3) is discretized in time. Then we develop a matrix approach Bernstein dual-Petrov–Galerkin method using the results of the previous section.
3.1 Time discretization
Consider the subdiffusion Eq. (1.1) at \(t=t_{k+1},\,k\ge 0\) as
Let \(u^{k}\) be an approximation of u at \(t=t_{k}=k\tau \) for \(k=0,1,\ldots ,M,\) where \(\tau =\frac{T}{M}\) is the time step length. The time fractional derivative can be approximated by definition (1.4) and using forward difference for the derivative inside as
where \(\mu =\frac{1}{\tau ^{\alpha }\varGamma \left( 2-\alpha \right) }\) and \(b_{j}=\left( j+1\right) ^{1-\alpha }-j^{1-\alpha }\) for \(k\ge 0\) and \(0\le j\le k\). The error is bounded by
where the coefficient \({\tilde{c}}_{u}\) depends only on u (Deng 2008). The time discretization (3.2) is referred to as L1 approximation (see e.g., Deng 2008; Ramezani et al. 2015). Substituting from (3.2) into (3.1) and multiplying both sides by \(\tau ^{\alpha }\varGamma \left( 2-\alpha \right) \) and dropping (x, y), the following time-discrete scheme is obtained:
with \(\alpha _{0}=\frac{k}{\mu }\) and \(u^{0}=g\) is given by the initial condition (1.2) with the error
For \(k=0,\) it reads as
The boundary conditions for the semidiscrete problem is \(u^{k+1}=0\) on \(\partial \varOmega \).
3.2 Weak and spectral formulation
Consider the problem (3.4) with \(\varOmega =I{}^{2},\,I=\left( 0,1\right) \) and the homogeneous Dirichlet boundary conditions \(u^{k+1}|_{\partial \varOmega }=0\). We seek an approximate solution in the Sobolev space \(H_{0}^{1}\left( \varOmega \right) =\{u\in H^{1}(\varOmega ),u=0,\,\text {on} {\partial \varOmega }\}\). A weak formulation of the problem (3.4) is to find \(u^{k+1}\in H_{0}^{1}(\varOmega )\) such that \(\forall v\in H_{0}^{1}(\varOmega )\):
Let \({\mathbb {P}}_{N}\) be the space of polynomials over I with degree not exceeding N and \(({\mathbb {P}}_{N}^{0})^{2}=\{v\in ({\mathbb {P}}_{N})^{2}:\,v=0,\, \text {on}\,\partial \varOmega \}\).
The Galerkin formulation of the (3.7) is to find \(u_{N}^{k+1}\in ({\mathbb {P}}_{N}^{0})^{2}\) such that \(\forall v_{N}\in ({\mathbb {P}}_{N}^{0})^{2}\):
with \(\left( f,g\right) \) being the standard inner product and \(I_{N}\) an interpolation operator.
3.2.1 Bernstein dual-Petrov–Galerkin method
Since \(\dim {\mathbb {P}}_{N}^{0}=N-1\), and due to (2.1), we choose a basis for it by removing the first and last Bernstein polynomials of degree N, i.e.,
Using (2.3), it is easy to verify that
where \({\mathbf {D}}=\mathrm {tridiag}(N-i+1,2i-N,-(i+1))\) is a tridiagonal matrix of order \(N-1\) and \(\mathbf {d}=N\left[ \phi _{0},0,\dots ,0,-\phi _{N}\right] ^{\mathrm{T}}\) is an \((N-1)\)-vector.
Assuming \(N_{x}=N_{y}=N,\) we use the tensor product of the basis functions of \({\mathbb {P}}_{0}^{N}\) as a basis for two-dimensional case, \(\left\{ \phi _{i}(x)\phi _{j}(y):1\le i,j\le N-1\right\} \) and consider an approximate solution of (3.4) as
where \({\varvec{\Phi }}\left( \cdot \right) =\left[ \phi _{i}(\cdot ):\,1\le i\le N-1\right] ^{\mathrm{T}}\) and \({\mathbf {U}}^{k+1}=[\hat{u}_{i,j}^{k+1}]\). Let us use the following notations.
for \(1\le j\le N-1,\,0\le i\le N-2.\)
Taking the test functions of (3.8) as \(v=\psi _{l}(x)\psi _{m}(y)\) for \(l,m=0,1,\dots ,N-2,\) it is seen that the spectral form (3.8) is equivalent to the following linear system:
which can be equivalently written as a Sylvester equation, but it requires computing the inverse of \({\mathbf {B}}\). Although \({\mathbf {B}}\) has only three nonzero diagonals, it can be shown that its inverse is a dense matrix and so we avoid transforming to the Sylvester equation. Instead, we use the equivalent tensor product form:
with \(\mathbf {f=}\left[ f_{1,0,\ldots },f_{q,0};f_{1,1\ldots }, f_{q,1};\dots ;f_{1,q-1,\ldots },f_{q,q-1}\right] ^{\mathrm{T}},\,q=N-1\). It is worth noting that the coefficient matrix of the linear system (3.13) is the same for all time steps, so it is to be evaluated just once for all \(k\ge 0\).
In terms of the trial vector (3.9), and test vector (2.13), we may write
To facilitate the computations, in what follows, these matrices are related to the transformation matrices introduced in Sect. 2.2. First, note that by the biorthogonality (2.6), we have
Now from (2.14), and writing \({\mathbf {G}}\) as \({\mathbf {G}}=[\mathbf {g}_{0},\mathbf {g}_{1},\dots ,\mathbf {g}_{N}]\), we get
So \({\mathbf {B}}\) is a tridiagonal matrix whose entries are given by
where \(a_{i}\)s and \(b_{i}\)s are easily computed by (2.9). On the other hand, from Lemma 3, the Bernstein operational matrix of differentiation (3.10) and (3.14), we obtain
where \({\mathbf {Q}}=[{\mathbf {q}}_{0},{\mathbf {q}}_{1},\dots ,{\mathbf {q}}_{N}]\) is a \(\mathrm {(1,3)-band}\) matrix introduced Lemma 3. Hence, \({\mathbf {Q}}{\tilde{\mathbf {I}}}\) is a pentadiagonal matrix and \({\mathbf {A}}\) is the product of a pentadiagonal and a tridiagonal matrix plus a sparse matrix. From Lemma 3 and (3.16), it is seen that \({\mathbf {A}}\) is a seven-diagonal matrix.
Notice that the solution of linear system (3.13) requires the matrices \({\mathbf {A}}\) and \({\mathbf {B}}.\) \({\mathbf {A}}\) is obtained by a sparse matrix–matrix multiplication (3.16) and entries of \({\mathbf {B}}\) are given by (3.15).
Remark 2
Since the coefficient matrix of the linear system (3.13) remains intact for a fixed \(\tau \), only the RHS vector needs to be computed for different time steps, \(k=0,1,\dots \) up to a desired time. So it is efficient to use a band-LU factorization for solving the system. It is remarkable that for a \((2p+1)\)-band matrix, the LU-factorization can be done with \(O(Np^{2})\) flops and backward substitutions require O(Np) flops Golub and Ortega (1992, Section 4.3).
4 Stability and convergence analysis
For the error analysis, we assume the problem (1.1) to be homogeneous, \(S=0\).
For \(\alpha \ge 0,\) the bilinear form \(a\left( u,v\right) =\left( \nabla u,\nabla v\right) +\alpha (u,v)\) in (3.8) is continuous and coercive in \(H_{0}^{1}\left( \varOmega \right) \times H_{0}^{1}\left( \varOmega \right) \). The existence and uniqueness of the solution for both the weak form (3.8) and the Galerkin form (3.8) is guarantied by the well-known Lax–Milgram lemma.
We define the following inner product and the associated energy norm on \(H_{0}^{1}(\varOmega )\):
Theorem 1
The weak form (3.7) is unconditionally stable:
Proof
Let \(v=u^{1}\) in (3.7). Then,
giving (4.2) for \(k=1,\) by the definition (4.1), the Schwarz inequality and the inequality \(\Vert v\Vert \le \Vert v\Vert _{1}\). By mathematical induction, assume (4.2) holds for \(k=0,\dots ,n.\) Let \(v=u^{n+1}\) in (3.7), i.e.,
It is easy to see that the RHS coefficients in (3.4) are positive. So we obtain
So the proof is done. \(\square \)
Theorem 2
Let u be the solution of the equation (1.1) with conditions (1.2)–(1.3) and \(u^{k}\) be the solution of the the semidiscrete problem (3.4). Then,
Proof
The idea of the proof comes from Lin and Chuanju (2007). We first prove
in which \(e^{k}:=u(t_{k})-u^{k}.\) For \(v=e^{1}\) and by using \(e^{0}=0\), \(\Vert v\Vert \le \Vert v\Vert _{1}\) and (3.5), we get
i.e., (4.5) holds for \(k=1\). By induction, assume (4.5) holds for \(k\le n\). Using (1.1) and (3.4), we get
For \(v=e^{n+1}\), it reads as
proving (4.5) for \(k=n+1\) that completes the proof of (4.5).
Consider \(f(t)=t^{1-\alpha }\), then there exists a\(\xi ,\) \(k-1<\xi <k\le M\) such that
which gives
Now using this along with (4.5) proves (4.3).
To derive (4.4), we first prove
By (4.6), the inequality (4.8) holds for \(k=1\). Assume that (4.8) holds for \(k=1,\dots ,n,\,n\le M-1\). Then, from (1.1), (3.4) and (3.5), we obtain
So (4.8) holds for \(k=n+1\). From \(k\tau \le T\) and (4.8), we get (4.4). \(\square \)
4.1 Convergence of the full discretization scheme
Let \(\pi _{N}^{1,0}\) be the \(H^{1}\)-orthogonal projection operator from \(H_{0}^{1}(\varOmega )\) into \(({\mathbb {P}}_{N}^{0})^{2}\) associated with the energy norm \(\Vert \cdot \Vert _{1}\) defined in (4.1). Due to the equivalence of this norm with the standard \(H^{1}\) norm, we have the following error estimation Lin and Chuanju (2007, Relation (4.3))
The idea of the proof for the following result comes from the paper (Lin and Chuanju 2007).
Theorem 3
Let \(u^{k},k=0,\dots ,M\) be the solution of the variational formulation (3.7) and \(u_{N}^{k}\) be the solution of the scheme (3.8), assuming \(u^{0}=\pi _{N}^{1,0}u^{0}\) and \(u^{k}\in H^{m}(\varOmega )\cap H_{0}^{1}(\varOmega )\) for some \(m>1.\) Then,
for \(k=1,\dots ,M\), where c depends only on \(T^{\alpha }\).
Proof
We have \((u^{k+1}-\pi _{N}^{1,0}u^{k+1},v_{N})_{1}=0,\,\forall v_{N}\in ({\mathbb {P}}_{N}^{0})^{2}\) by the projection operator. By definition of the norm (4.1), we get
By the weak form (3.7), the RHS of the above equation is replaced as
Subtracting (4.11) from (3.8), we have
where \(e_{N}^{k+1}=u^{k+1}-u_{N}^{k+1}\) and \(\tilde{e}_{N}^{k+1}=\pi _{N}^{1,0}u^{k+1}-u_{N}^{k+1}\). Let \(v_{N}=\tilde{e}_{N}^{k+1}\), then
With \(\Vert e_{N}^{k+1}\Vert _{1}\le \Vert \tilde{e}_{N}^{k+1}\Vert _{1}+\Vert u^{k+1} -\pi _{N}^{1,0}u^{k+1}\Vert _{1}\), we obtain
As in the proof of Theorem 2, it is first proved by induction that:
for \(0\le k\le M.\) Then, by using (4.7) and the projection error (4.9) the desired result is derived. \(\square \)
The following theorem is obtained by the triangle inequality \(||u(\cdot ,t_{k})-u_{N}^{k}||_{1}\le ||u(\cdot ,t_{k})-u^{k}||_{1}+||u^{k}-u_{N}^{k}||_{1}\) along with the inequalities (4.3) and (4.10).
Theorem 4
Let u be the solution of the problem (1.1) with the initial and boundary conditions given by (1.2)–(1.3) and \(u_{N}^{k}\) be the solution of the scheme (3.8). Then, assuming \(u_{N}^{0}=\pi _{N}^{1,0}u^{0}\) and \(u\in H^{m}(\varOmega )\cap H_{0,}^{1}(\varOmega )\), we have
The constants C and c are independent of \(\tau \), T, N.
It is seen that the method has the so-called spectral convergence in space and the order of convergence \(O(\tau ^{2-\alpha })\) in time.
5 Numerical examples
Here, some numerical experiments are provided to show the accuracy of the proposed method. For the computations, we use Maple 18 on a laptop with CPU core i3 1.9 GHz and RAM 4 running Windows 8.1 platform. To compute the errors, we use the discrete \(L^{2}\) and \(L^{\infty }\) errors defined as
respectively, where u is the exact solution of the problem (1.1)–(1.3), \(u_{N}^{m}\) is the approximation solution (3.11) at \(t=t_{m}=m\tau ,\) \(x_{i}=\frac{i}{{\mathcal {N}}},\,y_{j}=\frac{j}{N}\) and \({\mathcal {N}}=100\). Also, the convergence rates in space and time are, respectively, computed by
where \(E(h,\tau )\) is the error with \(h=1/N,\) where N stands for the dimension of basis and \(\tau \) is the time-step size. However, as it is common in the literature, we will show the spectral convergence of the proposed method by logarithmic scaled error plots.
It is worth mentioning that as we derived the operational matrices in Sect. 2.2 with special structures, and the proposed method finally leads to the linear system (3.13) that is sparse and banded. To see the sparsity and bandedness, the nonzero entries of the coefficinet matrix of (3.13) are depicted in Fig. 2 using the sparsematrixplot command of Maple. It is seen that the density decreases rapidly as N increases.
Example 1
Consider the problem (1.1) with \(\kappa =1\) and the exact solution \(u(x,y,t)=\sin {(\pi x)}\sin {(\pi y)}t^{2}\). Table 1 shows the convergence of the method in space for \(\tau =\varDelta t=0.01\) for fractional orders \(\alpha =0.25,0.50,0.75\). \(N_{x}\) and \(N_{y}\) stand for the number of basis in the x and y direction. Figure 3 demonstrates the logarithmic scale error plot in terms of \(H^{1}\)-norm for \(\alpha =1/2\) for some ts. It is seen that the method preserves the spectral convergence at different time rows \(t<1\) and \(t>1\). Table 2 reports the convergence in time by considering \(N_{x}=N_{y}=N=8\) as \(\tau \) decreases at time rows \(t=0.1\) and \(t=1\). It verifies the \(O(\tau ^{2-\alpha })\) temporal rate of convergence.
Example 2
To see whether the method works for the case in which there is no source term, consider the problem (1.1)–(1.3) with the initial condition \(u(x,y,0)=x(x-1)\sin {(2\pi y)}\), \(\kappa =1\) and no source term (Yang and Zhang 2014).
The spectral convergence in space is seen from Fig. 4 in which the time step length is considered to be \(\tau =0.01.\) The solution with \(N_{x}=N_{y}=10\) is treated as the exact solution. The errors are reported at \(t=1\) with the \(H^{1}\)-norm.
The numerical examples present the spectral convergence in space and fixed convergence of \(O(\tau ^{2-\alpha })\) in time, confirming the theoretical claims. It should be noted that we have used the eight-point Gauss–Legendre quadrature rule to perform the integrals (3.12) in the right hand side of the linear system (3.13).
6 Conclusion
In this paper, some new aspects of the dual Bernstein polynomials have been discussed. A suitable compact combinations of these polynomials has been derived for developing a dual-Petrov–Galerkin variational formulation for the numerical simulation of the two-dimensional subdiffusion equation. It is shown that the method leads to sparse linear systems. The illustrated numerical examples have been provided to show the accuracy of the method. It is important to note that the transformation matrices and the operational matrix for differentiation of dual Bernstein polynomials that have been obtained in this work can be used similarly for developing Bernstein-based dual-Petrov–Galerkin Galerkin methods for other fractional partial differential equations on bounded domains.
References
Behiry SH (2014) Solution of nonlinear Fredholm integro-differential equations using a hybrid of block pulse functions and normalized Bernstein polynomials. J Comput Appl Math 260:258–265
Carnicer JM, Pena JM (1993) Shape preserving representations and optimality of the Bernstein basis. Adv Comput Math 1:173–196
Dabiri A, Butcher EA (2017) Efficient modified Chebyshev differentiation matrices for fractional differential equations. Commun Nonlinear Sci Numer Simul. doi:10.1016/j.cnsns.2017.02.009
Deng W (2008) Finite element method for the space and time fractional Fokker–Planck equation. SIAM J Numer Anal 47:204–226
Farin GE, Hoschek J, Kim MS (2002) Handbook of computer aided geometric design. Elsevier, Amsterdam
Farouki RT, Rajan VT (1988) Algorithms for polynomials in Bernstein form. Comput Aided Geom Des 5:1–26
Farouki RT (1991) On the stability of transformations between power and Bernstein polynomial forms. Comput Aided Geom Des 8:29–36
Farouki RT, Goodman TNT (1996) On the optimal stability of the Bernstein basis. Math Comput 64:1553–1566
Gao GH, Sun ZZ, Zhang YN (2012) A finite difference scheme for fractional sub-diffusion equations on an unbounded domain using artificial boundary conditions. J Comput Phys 231:2865–2879
Gao GH, Sun HW, Sun ZZ (2015) Stability and convergence of finite difference schemes for a class of time-fractional sub-diffusion equations based on certain superconvergence. J Comput Phys 280:510–528
Golub GH, Ortega JM (1992) Scientific computing and differential equations: an introduction to numerical methods. Academic Press, San Diego
Goubet O, Shen J (2007) On the dual Petrov–Galerkin formulation of the KDV equation on a finite interval. Adv Differ Equ 12:221–239
Goychuk I (2009) Viscoelastic subdiffusion: from anomalous to normal. Phys Rev E 80:046125
Jani M, Babolian E, Javadi S, Bhatta D (2017) Banded operational matrices for Bernstein polynomials and application to the fractional advection-dispersion equation. Numer Algorithms. doi:10.1007/s11075-016-0229-1
Javadi S, Babolian E, Taheri Z (2016) Solving generalized pantograph equations by shifted orthonormal Bernstein polynomials. J Comput Appl Math 303:1–14
Javadi S, Jani M, Babolian E (2016) A numerical scheme for space-time fractional advection-dispersion equation. Int J Nonlinear Anal Appl 7:331–343
Jin B, Lazarov R, Zhou Z (2016) Two fully discrete schemes for fractional diffusion and diffusion-wave equations with nonsmooth data. SIAM J Sci Comput 38:A146–A170
Juttler B (1998) The dual basis functions for the Bernstein polynomials. Adv Comput Math 8:345–352
Lewanowicz S, Wozny P (2011) Bezier representation of the constrained dual Bernstein polynomials. Appl Math Comput 218:4580–4586
Lin Y, Chuanju X (2007) Finite difference/spectral approximations for the time-fractional diffusion equation. J Comput Phys 225:1533–1552
Maleknejad K, Basirat B, Hashemizadeh E (2012) A Bernstein operational matrix approach for solving a system of high order linear Volterra-Fredholm integro-differential equations. Math Comput Modell 55:1363–1372
Metzler R, Klafter J (2004) The restaurant at the end of the random walk: recent developments in the description of anomalous transport by fractional dynamics. J Phys A Math Gen 37:R161–R208
Moghaddam BP, Machado JAT (2017) A stable three-level explicit spline finite difference scheme for a class of nonlinear time variable order fractional partial differential equations. Comput Math Appl. doi:10.1016/j.camwa.2016.07.010
Mustapha K, Nour M, Cockburn B (2016) Convergence and superconvergence analyses of HDG methods for time fractional diffusion problems. Adv Comput Math 42:377–393
Pang HK, Sun HW (2016) Fourth order finite difference schemes for time—space fractional sub-diffusion equations. Comput Math Appl 71:287–1302
Ramezani M, Mojtabaei M, Mirzaei D (2015) DMLPG solution of the fractional advection—diffusion problem. Eng Anal Bound Elem 59:36–42
Ren J, Sun ZZ, Zhao X (2013) Compact difference scheme for the fractional sub-diffusion equation with Neumann boundary conditions. J Comput Phys 232:456–467
Saadatmandi A (2014) Bernstein operational matrix of fractional derivatives and its applications. Appl Math Model 38:1365–1372
Shen J, Tang T, Wang LL (2011) Spectral methods: algorithms, analysis and applications. Springer, Berlin
Shirzadi A, Ling L, Abbasbandy S (2012) Meshless simulations of the two-dimensional fractional-time convection—diffusion—reaction equations. Eng Anal Bound Elem 36:1522–1527
Stokes PW, Philippa B, Read W, White RD (2015) Efficient numerical solution of the time fractional diffusion equation by mapping from its Brownian counterpart. J Comput Phys 282:334–344
Wang T, Wang YM (2016) A compact LOD method and its extrapolation for two-dimensional modified anomalous fractional sub-diffusion equations. Comput Math Appl 71:147–170
Wozny P, Lewanowicz S (2009) Multi-degree reduction of Bezier curves with constraints, using dual Bernstein basis polynomials. Comput Aided Geom Des 26:566–579
Yang X-J, Tenreiro Machado JA, Srivastava HM (2016) A new numerical technique for solving the local fractional diffusion equation: two-dimensional extended differential transform approach. Appl Math Comput 274:143–151
Yang JY, Zhao YM, Liu N, Bu WP, Xu TL, Tang YF (2015) An implicit MLS Meshless method for 2D time dependent fractional diffusion-wave equation. Appl Math Model 39:1229–1240
Yang X, Zhang H, Da Xu (2014) Orthogonal spline collocation method for the two-dimensional fractional sub-diffusion equation. J Comput Phys 256:824–837
Yuan JM, Shen J, Wu J (2008) A dual-Petrov-Galerkin method for the Kawahara-type equations. J Sci Comput 34:48–63
Zhang YN, Sun ZZ (2011) Alternating direction implicit schemes for the two-dimensional fractional sub-diffusion equation. J Comput Phys 230:8713–8728
Zhang YN, Sun ZZ, Zhao X (2012) Compact alternating direction implicit scheme for the two-dimensional fractional diffusion-wave equation. SIAM J Numer Anal 50:1535–1555
Zhao Y, Zhang Y, Shi D, Liu F, Turner I (2016) Superconvergence analysis of nonconforming finite element method for two-dimensional time fractional diffusion equations. Appl Math Lett 59:38–47
Zhou Z, Gong W (2016) Finite element approximation of optimal control problems governed by time fractional diffusion equation. Comput Math Appl 71:301–318
Author information
Authors and Affiliations
Corresponding author
Additional information
Communicated by José Tenreiro Machado.
Rights and permissions
About this article
Cite this article
Jani, M., Javadi, S., Babolian, E. et al. Bernstein dual-Petrov–Galerkin method: application to 2D time fractional diffusion equation. Comp. Appl. Math. 37, 2335–2353 (2018). https://doi.org/10.1007/s40314-017-0455-8
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s40314-017-0455-8
Keywords
- Fractional PDEs
- Bernstein polynomials
- 2D subdiffusion
- Dual-Petrov–Galerkin
- Dual Bernstein basis
- Operational matrix