EIT Agent
登录
← 校园网页目录

校园网页 · 学校官网

Efficient spectral–Galerkin methods for fractional partial differential equations with variable coefficients

Journal of Computational Physics 307 (2016) 243–261 Contents lists available at ScienceDirect Journal of Computational Physics www.elsevier.com/locate/jcp Efficient spectral–Galerkin methods for fractional partial differential equations with variable coefficients Zhiping Maoa,1, Jie Shena,b,∗ a Fujian Provincial Key Laboratory on Mathematical Modeling & High Performance Scientific Computing and School of Mathematical Sciences, Xiamen University, Xiamen, Fujian 361005, PR China b Department of Mathematics, Purdue University, West Lafayette, IN 47907-1957, USA a r t i c l e i n f o a b s t r a c t Article history: Received 19 February 2015 Received in revised form 17 November 2015 Accepted 22 November 2015 Available online 11 December 2015 Keywords: Fractional PDE Spectral–Galerkin method Error estimates Preconditioned iterative method Efficient spectral–Galerkin algorithms are developed to solve multi-dimensional fractional elliptic equations with variable coefficients in conserved form as well as non-conserved form. These algorithms are extensions of the spectral–Galerkin algorithms for usual elliptic PDEs developed in [24]. More precisely, for separable FPDEs, we construct a direct method by using a matrix diagonalization approach, while for non-separable FPDEs, we employ a preconditioned BICGSTAB method with a suitable separable FPDE with constant-coefficients as preconditioner. The cost of these algorithms is of O(Nd+1) flops where d is the space dimension. We derive rigorous weighted error estimates which provide more precise convergence rate for problems with singularities at boundaries. We also present ample numerical results to validate the algorithms and error estimates. © 2015 Elsevier Inc. All rights reserved. 1. Introduction Fractional partial differential equations (FPDEs) appear in the investigation of transport dynamics in complex systems which are governed by the anomalous diffusion and non-exponential relaxation patterns [17]. Anomalous, or non-Fickian, dispersion has been an active area of research in the physics community since the introduction of continuous time random walks (CTRW) by Montroll and Weiss [18]. They have attracted considerable attention recently due to their ability to model certain processes which cannot be adequately described by usual partial differential equations. The classical 1-D diffusion equation ∂tp(x,t) − ∂x[D(x)∂xp(x,t)]= 0, x ∈ (a,b), (1.1) is derived from the conservation of mass ∂tp(x,t) + ∂xF =0, (1.2) and the Fick’s first law F =− D(x)∂xp(x,t), (1.3) * Corresponding author. E-mail addresses:maozhiping2005@sina.com (Z. Mao), shen@math.purdue.edu (J. Shen). 1 This work is supported in part by NSFC grants 11371298 and 11421110001. The work of J.S. is also supported in part by an AFOSR grant. http://dx.doi.org/10.1016/j.jcp.2015.11.047 0021-9991/© 2015 Elsevier Inc. All rights reserved. 244 Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 where p is the density of the diffusing material at location x, F is the flux of the diffusing material, and D(x) is the collective diffusion coefficient for density. Recently, scientists found that the classical Fick’s law (1.3) is not adequate to describe anomalous diffusion which occurred in field and laboratory studies, such as transport of a solute in heterogeneous porous media. Instead, a fractional Fick’s law is proposed [22] F =− D(x) (1 2(1 + κ)a∂ν x p(x,t) − 1 2(1 − κ)x∂ν b p(x,t) ) (1.4) via Eulerian derivation, where 1/2 < ν< 1, and −1 ≤ κ≤ 1i s a parameter describing the relative probabilities of parti- cle travel ahead or behind the mean velocity, a∂ν x p(·, t) and x∂ν b p(·, t) are fractional derivatives which will be defined in Section 2. Combining the above with mass conservation (1.2), we arrive at the following fractional diffusion equation (FDE): ∂tp(x,t) − ∂x [ D(x) (1 2(1 + κ)a∂ν x p(x,t) − 1 2(1 − κ)x∂ν b p(x,t) )] =0. (1.5) On the other hand, we can also consider the following fractional mass conservation for a fluid in porous media [30]: ∂tp(x,t) +a∂μ x F =0, (1.6) where 1/2 < μ <1. Combining the above with (1.4), we arrive at another kind of FDE: ∂tp(x,t) − a∂μ x [ D(x) (1 2(1 + κ)a∂ν x p(x,t) − 1 2(1 − κ)x∂ν b p(x,t) )] =0. (1.7) If κ=− 1, i.e. solute disperses preferentially at velocities ahead of the mean velocity, and let μ = ν, we have ∂tp(x,t) +a∂ν x [ D(x)x∂ν b p(x,t)) ] =0. (1.8) In the above, only one-sided fractional derivatives are considered. More generally, we can consider the following FDE with fractional derivatives from both sides: ∂tp(x,t) +a∂ν x [ d+(x)x∂ν b p(x,t) ] +x∂ν b [ d− (x)a∂ν x p(x,t) ] =0. (1.9) Note that in [21] and [4], the authors considered another class of conserved FDEs which is different from the above but shares similar mathematical properties. FPDEs in various forms have been numerically studied extensively in the last decade. An unconditionally stable first order finite difference method (FDM) is developed in [16], and a second order FDM is pro- posed in [26]. Some other FDMs have been studied in [14,19]. Pioneer works with finite element analysis are carried out in [21] and [4]. More refined analyses which take into account the singular behavior of FPDEs have been established recently in [10,9]. Moreover, some fast solvers for FD/FE approximations to FPDEs have been developed in [27–29]and [11,20] by exploiting their Toepliz structures. On the other hand, spectral methods for some fractional PDEs have been proposed in [12,13] where the well-posedness of some FPDEs and their spectral approximations have been established. Recently, some efficient spectral/spectral-element DG methods for a class of one-dimensional FPDEs with constant-coefficients and one- sided fractional derivatives have been proposed in [31,33] by using eigenfunctions of fractional Sturm–Liouville problems as basis functions. Related spectral algorithms and their rigorous error analyses have been established in [3]. However, these results cannot extended to more general FPDEs with two-sided fractional derivatives and variable coefficients. Due to the non-local feature of the fractional derivatives, local methods such as FDM and FEM loss a big advantage that they enjoy for usual PDEs. On the other hand, the main disadvantage of global methods such as spectral methods is no longer an issue for fractional PDEs. Moreover, for fractional PDEs with constant coefficients, spectral methods with suitable basis functions can even result in sparse linear systems [31,3]. The main purpose of this paper is to develop some efficient spectral algorithms to solve a class of fractional elliptic equations. In particular, we shall extend most of the solution techniques in [24] for usual PDEs to fractional PDEs. More precisely, for separable fractional PDEs, we shall apply the matrix diagonalization methods (i.e., discrete separation of variables) [15,8,24] to reduce a (discrete) multi-dimensional problem to a sequence of (discrete) one-dimensional problems or to a diagonal system with a total cost of just a few Nd+1 flops (d is the space dimension); for non-separable fractional PDEs, we shall apply a preconditioned BICGSTAB iterative method using (i) a related fractional separable problem with constant-coefficients as preconditioned, and (ii) a fast matrix-free algorithm for the matrix–vector multiplication, so that the total cost is still O(Nd+1). Thus, the cost of a spectral method for fractional PDEs is essentially the same as that for usual PDEs. The rest of the paper is organized as follows. We describe some basic notations and properties for fractional derivatives in Section 2. We present the Legendre Spectral–Galerkin method, derive an error estimate in weighted norms, and carry out numerical tests for 1D FDE in Section 3 and for 2-D in Section 4. Then, we discuss about some extensions of the algorithms to other situations in Section 5, and conclude with some remarks in the final section. Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 245 2. Preliminaries We first introduce some notations which will be used hereafter. To fix the idea, we shall restrict ourselves in this paper to the finite interval /Lambda1 = (−1, 1). Let ω(x) > 0 (x ∈ /Lambda1)be a weight function, we denote by L2 ω(/Lambda1)the usual weighted Hilbert space with the inner product and norm defined by (u,v)/Lambda1,ω = ∫ /Lambda1 uv ωdx, ∥u∥ω,/Lambda1= (u,u) 1 2 ω,/Lambda1, ∀u,v ∈L2 ω(/Lambda1). (2.1) We denote by Hs ω(/Lambda1)and Hs 0,ω(/Lambda1)(with s ≥ 0) the usual weighted Sobolev spaces with norm ∥ ·∥ s,ω,/Lambda1and semi-norm | ·|s,ω,/Lambda1. Given a Banach space X with norm ∥ ·∥ X and s >0. We define Hs ω(/Lambda1;X) := { v |∥ v(·,x)∥X ∈Hs ω(/Lambda1) } , (2.2) endowed with the norm: ∥v∥Hsω(/Lambda1;X) = ∥v(·,x)∥X  s,ω,/Lambda1. Let /Omega1 = /Lambda1 × /Lambda1. We also define Hs,γ ω (/Omega1):= Hs ω(/Lambda1;L2 ω(/Lambda1))∩L2 ω(/Lambda1;Hγ ω(/Lambda1)), (2.3) and for s, γ >1/2, Hs,γ 0,ω(/Omega1):= {v ∈Hs,γ ω (/Omega1),v |∂/Omega1=0}, (2.4) endowed with the norm: ∥v∥Hs,γ ω (/Omega1):= ( ∥v∥2 Hsω(/Lambda1;L2ω(/Lambda1))+∥v∥2 L2ω(/Lambda1;Hγ ω(/Lambda1)) )1 2 . When ω ≡ 1, we will drop ω from the above notations, and we will also drop /Lambda1and/or /Omega1from the notations if no confusion arises. Let c be a generic positive constant independent of any functions and of any discretization parameters. We use the expression A ≲ B (respectively A ≳ B) to mean that A ⩽cB (respectively A ⩾cB), and use the expression A ∼= B to mean that A ≲ B ≲ A. We recall below some notations and properties fractional derivatives. Definition 1. Let s ∈[n − 1, n) with n ∈ N+. The left-sided and right-sided Riemann–Liouville fractional integrals −1Is x and xIs 1 of order s are defined as −1Is xv(x) := 1 /Gamma1(s) x∫ −1 v(τ) (x − τ)1−s dτ, ∀x ∈ /Lambda1, (2.5) and xIs 1v(x) := 1 /Gamma1(s) 1∫ x v(τ) (τ− x)1−s dτ, ∀x ∈ /Lambda1, (2.6) respectively, where /Gamma1(·) is the Gamma function. Definition 2. Let s ∈[n − 1, n) with n ∈ N+. The left-sided and right-sided Riemann–Liouville fractional derivatives −1Ds x and xDs 1 of order s are defined as −1Ds xv(x) := 1 /Gamma1(n − s) dn dxn x∫ −1 v(τ) (x − τ)s−n+1dτ, ∀x ∈ /Lambda1, (2.7) and xDs 1v(x) := (−1)n /Gamma1(n − s) dn dxn 1∫ x v(τ) (τ− x)s−n+1dτ, ∀x ∈ /Lambda1, (2.8) respectively. 246 Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 One easily verifies that (−1Ds x −1Is x f )(x) = f (x)and (xDs 1 xIs 1 f )(x) = f (x). (2.9) In addition to the Riemann–Liouville fractional derivatives, the following Caputo fractional derivatives are also commonly used. Definition 3. Let s ∈[n − 1, n) with n ∈ N+. The left-sided and right-sided Caputo fractional derivatives C −1Ds x and C x Ds 1 of order s are defined as C −1Ds xv(x) := 1 /Gamma1(n − s) x∫ −1 v(n)(τ) (x − τ)s−n+1dτ, ∀x ∈ /Lambda1, (2.10) and C x Ds 1v(x) := (−1)n /Gamma1(n − s) 1∫ x v(n)(τ) (τ− x)s−n+1dτ, ∀x ∈ /Lambda1, (2.11) respectively. The following lemma exhibits the relationship between Riemann–Liouville fractional derivatives and Caputo fractional derivatives. Lemma 1. Let s ∈[n − 1, n)with n ∈ N+. Then, −1Ds x f (x) =C −1Ds x f (x) + n−1∑ j=0 f (j)(−1) /Gamma1(1 + j − s)(1 +x)j−s; (2.12) xDs 1 f (x) =C x Ds 1 f (x) + n−1∑ j=0 (−1)j f (j)(1) /Gamma1(1 + j − s) (1 − x)j−s. (2.13) The following two lemmas (cf. [5,13]) play fundamental roles for the analysis of well-posedness for fractional elliptic PDEs. Lemma 2. Let 1 <s <2, s ̸=1. We have ⟨ −1Ds xw,v ⟩ /Lambda1= ( −1D s 2 x w,xD s 2 1 v ) /Lambda1, ∀w, v ∈H s 2 0 (/Lambda1); (2.14) ⟨ xDs 1w,v ⟩ /Lambda1= ( xD s 2 1 w,−1D s 2 x v ) /Lambda1, ∀w, v ∈H s 2 0 (/Lambda1). (2.15) Lemma 3. Let s > 1 2, s ̸=n − 1 2, n ∈ N+. We have ∥−1Ds xv∥L2(/Lambda1)∼= ∥v∥Hs(/Lambda1), ∀v ∈Hs 0(/Lambda1); (2.16) ∥xDs 1v∥L2(/Lambda1)∼ = ∥ v∥Hs(/Lambda1), ∀v ∈Hs 0(/Lambda1). (2.17) 3. One-dimensional case After a suitable time discretization of (1.9) and assume a homogeneous Dirichlet boundary condition, we are led to solve, at each time step, a fractional elliptic problem of the following kind: (1 < α<2): ρ(x)u +x∂ α 2 1 [ d+(x)−1∂ α 2 x u ] + −1∂ α 2 x [ d− (x)x∂ α 2 1 u ] = f , u(±1) =0, (3.1) with ρ, d± ∈C(/Lambda1)satisfying ¯ρ≥ ρ(x) ≥ 0, ¯d ≥ d±(x) ≥ d >0. (3.2) Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 247 3.1. Spectral–Galerkin method and error estimates Thanks to Lemma 2, its weak formulation is: find u ∈H α 2 0 (/Lambda1), such that A(u,v) := (ρ(x)u,v) + (d+(x)−1∂ α 2 x u,−1∂ α 2 x v) + (d− (x)x∂ α 2 1 u,x∂ α 2 1 v) = (f ,v), ∀v ∈H α 2 0 (/Lambda1). (3.3) Lemma 3immediately implies that A(·, ·) is continuous and coercive in H α 2 0 (/Lambda1) × H α 2 0 (/Lambda1), i.e., A(u,v) ≲ ∥u∥Hα/2 ∥v∥Hα/2 ;∥ u∥2 Hα/2 ≲ A(u,u), ∀u,v ∈H α 2 0 (/Lambda1). (3.4) Hence, the problem (3.3) admits a unique solution satisfying ∥u∥Hα/2 ≲ ∥f ∥(Hα/2 0 )′ , (3.5) where (Hα/2 0 )′ is the dual space of Hα/2 0 . Let PN be the space of polynomials of degree less than or equal to N, and let XN ={ v ∈ PN : v(±1) =0}. The spectral– Galerkin approximation for (3.1) is: Find uN ∈ XN such that A(uN,vN) := (ρuN,vN) + (d+(x)−1∂ α 2 x uN,−1∂ α 2 x vN) + (d− (x)x∂ α 2 1 uN,x∂ α 2 1 vN) = (f ,vN), ∀vN ∈ XN. (3.6) Since XN ⊂ Hs 0 for any s >1/2, it is clear that the problem (3.6) admits a unique solution satisfying ∥uN ∥Hα/2 ≲ ∥f ∥(Hα/2 0 )′. Furthermore, we have from (3.3) and (3.6) that A(u − uN,vN) =0 ∀vN ∈ XN. We derive immediately from (3.4) and Lemma 3 that we have the following error estimate ∥u − uN∥Hα/2 ≲ inf vN ∈XN ∥u − vN∥Hα/2 . (3.7) Hence, we only have to estimate the best approximation for u in XN. Let ωa,b(x) = (1 − x)a(1 +x)b. We define the non-uniformly weighted Sobolev spaces Hm ω,∗(/Lambda1):= {u ∈H1 0(/Lambda1): ∂k xu ∈L2 ωk−1,k−1 (/Lambda1),1 ≤ k ≤ m}. (3.8) Let /Pi11,0 N : H1 0(/Lambda1) → XN be defined by (∂x(u − /Pi11,0 N u),∂xvN) =0, ∀vN ∈ XN. (3.9) Then, it is well-known (cf. Thm. 3.39 in [23]) that the following estimate holds ∥u − /Pi11,0 N u∥Hs ≲ Ns−m∥∂m x u∥ωm−1,m−1 , ∀u ∈Hm ω,∗(/Lambda1),s =0,1. (3.10) Then by using a standard argument of space interpolation [1], it can be shown that the above estimate holds as well for all s ∈ (0, 1). Combining the above result with (3.7), we arrive at the following: Theorem 1. Let ua n d uN be the solution of problem (3.3)and (3.6)respectively, and we assume that u ∈Hm ω,∗(/Lambda1). Then we have ∥u − uN∥ H α 2 ≲ N α 2 −m∥∂m x u∥ωm−1,m−1 . (3.11) Remark 1. Unlike the cases with one-sided fractional derivatives considered in [3], it is not clear how the regularity of u for the problem (3.3) depends on the data. Hence, we provide error estimates by assuming u in some non-uniformly weighted Sobolev spaces, namely, u ∈ Hm ω,∗(/Lambda1). This type of error estimates provides more precise convergence rates, than the estimates with usual Sobolev spaces Hm(/Lambda1), for solutions with singularities at the endpoints, such as the problem (3.3). This is very important since this type of FDEs usually exhibit singularities at the endpoints. See Example 2 below. 248 Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 3.2. Efficient implementation and numerical results 3.2.1. Efficient implementation A main difficulty in implementing a variational based numerical scheme for fractional PDEs, particularly for those with variable coefficients, is how to compute the mass and stiffness matrices efficiently and accurately. We show below how to do this using various properties of Jacobi polynomials. Setting φk(x) =Lk(x) − Lk+2(x), then, we have XN =span{φk(x) :k =0,1,··· ,N − 2}. Denote uN = N−2∑ k=0 ˜ukφk(x), ¯u = (˜u0, ˜u1,··· , ˜uN−2)T ; (sα +)kj = ∫ /Lambda1 d+(x)−1D α 2 x φj(x)−1D α 2 x φk(x)dx, Sα + = ( (sα +)kj )N−2 k,j=0; (sα − )kj = ∫ /Lambda1 d− (x)xD α 2 1 φj(x)xD α 2 1 φk(x)dx, Sα − = ( (sα − )kj )N−2 k,j=0; mkj = ∫ /Lambda1 ρ(x)φk(x)φj(x)dx, M = (mkj )N−2 k,j=0; fk = (IN f ,φk(x)), ¯f = (f0, f1,··· , fN−2)T , where IN : C(/Lambda1) → PN is the interpolation operator based on Legendre–Gauss–Lobatto points. Then, (3.6) reduces to the matrix system (M + Sα + + Sα − )¯u = ¯f . (3.12) Next, we shall show how to compute Sα + and Sα − efficiently. We shall first prove the following lemma. Lemma 4. Let 0 < μ <2. We have −1Dμ x ˆLn(x) = /Gamma1(n +2) /Gamma1(n − μ +2)(1 +x)1−μ Jμ,1−μ n (x); (3.13) xDμ 1 ˜Ln(x) = /Gamma1(n +2) /Gamma1(n − μ +2)(1 − x)1−μ J1−μ,μ n (x), (3.14) where ˆLn(x) =Ln(x) +Ln+1(x), ˜Ln(x) = Ln(x) − Ln+1(x). (3.15) Proof. First by the property (A.8), we have ˆLn(x) =Ln(x) +Ln+1(x) = (1 +x)J0,1 n (x), (3.16) and ˜Ln(x) =Ln(x) − Ln+1(x) = (1 − x)J1,0 n (x). (3.17) Then by the definition of left-sided Riemann–Liouville fractional integral (2.5) and Jacobi Property (A.7), Equation (A.10) can be rewritten as: −1Iμ x { (1 +x)β Jα,β n (x) } = /Gamma1(n + β+1) /Gamma1(n + β+ μ +1)(1 +x)β+μ Jα−μ,β+μ n (x). (3.18) Setting α= μ and β =1 − μ, equation (3.18) becomes −1Iμ x { (1 +x)1−μ Jμ,1−μ n (x) } = /Gamma1(n − μ +2) /Gamma1(n +2) (1 +x)J0,1 n (x). (3.19) Applying the left-sided Riemann–Liouville fractional derivative on both sides of the equation (3.19) gives (3.13). Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 249 Fig. 1. H α 2 and L2 errors with Galerkin method for variable coefficients (left:α=1.2, right: α=1.8). By the definition of right-sided Riemann–Liouville integral (2.6) and (A.7), equation (A.11) can be written as xIμ 1 { (1 − x)α Jα,β n (x) } = /Gamma1(n + α+1) /Gamma1(n + α+ μ +1)(1 − x)α+μ Jα+μ,β−μ n (x). (3.20) Similarly, the second equation of Lemma 5 gives xIμ 1 { (1 − x)1−μ J1−μ,μ n (x) } = /Gamma1(n − μ +2) /Gamma1(n +2) (1 − x)J1,0 n (x), (3.21) when α=1 − μ and β = μ. Applying the right-sided Riemann–Liouville fractional derivative on both sides of the equation (3.21) gives the right-sided Riemann–Liouville fractional derivative (3.14). 2 Using equations (3.13) and (3.14), we obtain (sα +)kj = ∫ /Lambda1 d+(x)−1D α 2 x φj(x)−1D α 2 x φk(x)dx = 1∫ −1 (1 +x)2−αd+(x) ˆφj(x) ˆφk(x)dx, (3.22) (sα − )kj = ∫ /Lambda1 d− (x)xD α 2 1 φj(x)xD α 2 1 φk(x)dx = 1∫ −1 (1 − x)2−αd− (x) ˜φj(x) ˜φk(x)dx, (3.23) where ˆφj(x) =aj J α 2 ,1− α 2 j (x) − aj+1 J α 2 ,1− α 2 j+1 (x), (3.24) ˜φj(x) =aj J 1− α 2 , α 2 j (x) +aj+1 J 1− α 2 , α 2 j+1 (x), (3.25) with aj = /Gamma1(j+2) /Gamma1(j− α 2 +2). Hence, (3.22) and (3.23) can be efficiently computed by Jacobi–Gauss quadrature formula [25,23]. 3.2.2. Numerical results Example 1 (Smooth solution). We take ρ≡ 1, d+(x) =d− (x) =1 +sin2 x and set the exact solution to be u =sin(πx). The results are presented in Fig. 1. We observe that all errors decay exponentially, as is expected for spectral approxima- tions to smooth functions. 250 Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 Fig. 2. Convergent rates for singular solutions: Left,u(t) =xγ(1 − x2);R i g h t ,u(t) = (1 +x)γ(1 − x). Example 2 (Non-smooth solutions). We take ρ ≡ 0, d+(x) = d− (x) ≡ 1w i t h the exact solution to be (1 + x)γ(1 − x) or xγ(1 − x2). Consider first u(x) = xγ(1 − x2) with γ > 0n o t an integer. The solution has a singularity at x = 0 and we have u ∈ Hγ+1 2 −ϵ for any small ϵ >0. Hence, the error estimate (3.11) indicates that the error in Hα/2 should converge with a rate γ+ 1 2 − α 2 . The results with α=1.8, for different γ are plotted in the left figure of Fig. 2. We observe that the convergence rate is roughly 0.93, 2.93 and 4.93 for γ = 4 3, γ = 10 3 and γ = 16 3 , respectively. These results agree well with (3.11). Now, consider u(x) = (1 +x)γ(1 − x). Of course, we still have u ∈ Hγ+1 2 −ϵ, but by a direct computation, we also have u ∈ Hk ωk−1,k−1 with k < 2γ − 1 2. Hence, the result in (3.11) indicates that we can expect a convergence rate of 2γ − 1 2. Hence, the weighted error estimate in (3.11) provides much improved convergence rate for solutions with singularities at the endpoints. The results for this case are presented in the right of Fig. 2. We observe that the observed convergence rate matches well with the predicted one by (3.11). 4. Two-dimensional case In this section, we consider the two dimensional generalization of (3.1): ρ(x,y)u(x,y) +x∂ α 2 1 [ d+(x,y)−1∂ α 2 x u(x,y) ] + −1∂ α 2 x [ d− (x,y)x∂ α 2 1 u(x,y) ] + y∂ β 2 1 [ e+(x,y)−1∂ β 2 y u(x,y) ] + −1∂ β 2 y [ e− (x,y)y∂ β 2 1 u(x,y) ] = f (x,y), ( x,y) ∈ /Omega1, (4.1) where 1 < α, β< 2, /Omega1 = (−1, 1) × (−1, 1), 0 ≤ ρ(x, y) ≤ ¯ρ, 0 <d ≤ d+(x, y), d− (x, y) ≤ ¯d and 0 <e ≤ e+(x, y), e− (x, y) ≤ ¯e, subjected to u|∂/Omega1=0. (4.2) 4.1. Spectral–Galerkin method and error estimates We define the following bilinear form H α 2 , β 2 0 (/Omega1) × H α 2 , β 2 0 (/Omega1) → R: A(u,v) := (ρ(x,y)u,v) + (d+(x,y)−1∂ α 2 x u,−1∂ α 2 x v) + (d− (x,y)x∂ α 2 1 u,x∂ α 2 1 v) + (e+(x,y)−1∂ β 2 y u,−1∂ β 2 y v) + (e− (x,y)y∂ β 2 1 u,y∂ β 2 1 v). (4.3) Then, a weak formulation for (4.1) with (4.2) is: Given f ∈H α 2 , β 2 0 (/Omega1)′, find u ∈H α 2 , β 2 0 (/Omega1), such that A(u,v) = <f ,v>/Omega1, ∀v ∈H α 2 , β 2 0 (/Omega1), (4.4) where ⟨·, ·⟩/Omega1stands for the duality between H α 2 , β 2 0 (/Omega1)′ and H α 2 , β 2 0 (/Omega1). Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 251 Thanks to the Lemma 3, we can prove the following: Theorem 2. The problem (4.4)admits a unique solution satisfying ∥u∥ H α 2 , β 2 (/Omega1) ≲ ∥f ∥ H α 2 , β 2 (/Omega1)′ . (4.5) Proof. First of all, it is clear from (4.3) that the bilinear form A(·, ·) is self-adjoint, i.e., A(u, v) = A(v, u). Next, we show that it is continuous and coercive in H α 2 , β 2 0 (/Omega1) × H α 2 , β 2 0 (/Omega1). Apply Lemma 3, we find that ∀u, v ∈H α 2 , β 2 0 (/Omega1), we have |A(u,v)|≤ ¯ρ∥u∥L2(/Omega1)∥v∥L2(/Omega1)+ ¯d∥−1D α 2 x u∥L2(/Omega1)∥−1D α 2 x v∥L2(/Omega1) + ¯d∥xD α 2 1 u∥L2(/Omega1)∥xD α 2 1 v∥L2(/Omega1)+ ¯e∥−1D β 2 y u∥L2(/Omega1)∥−1D β 2 x v∥L2(/Omega1) + ¯e∥yD β 2 1 u∥L2(/Omega1)∥yD β 2 1 v∥L2(/Omega1) ≲ ∥u∥ H α 2 (/Lambda1;L2(/Lambda1))∥v∥ H α 2 (/Lambda1;L2(/Lambda1))+∥u∥ L2(/Lambda1;H β 2 ) ∥v∥ L2(/Lambda1;H β 2 ) ≲ ∥u∥ H α 2 , β 2 (/Omega1) ∥v∥ H α 2 , β 2 (/Omega1) . (4.6) This gives the continuity of A. For the coercivity, we use Lemma 3 to derive that for all u ∈H α 2 , β 2 0 (/Omega1), A(u,u) = (ρ(x,y)u,u) + (d+(x,y)−1∂ α 2 x u,−1∂ α 2 x u) + (d− (x,y)x∂ α 2 1 u,x∂ α 2 1 u) + (e+(x,y)−1∂ β 2 y u,−1∂ β 2 y u) + (e− (x,y)y∂ β 2 1 u,y∂ β 2 1 u)) ≳d∥−1D α 2 x u∥2 L2(/Omega1)+d∥xD α 2 1 u∥L2(/Omega1)+e∥−1D β 2 y u∥2 L2(/Omega1)+e∥yD β 2 1 u∥L2(/Omega1) ≳ ∥u∥2 H α 2 (/Lambda1;L2(/Lambda1)) +∥u∥2 L2(/Lambda1;H β 2 ) ≳ ∥u∥2 H α 2 , β 2 (/Omega1) . (4.7) Thanks to the Lax–Milgram lemma, the problem (4.4) admits a unique solution. Finally, taking v =u in (4.3) and using (4.7), we obtain ∥u∥2 H α 2 , β 2 (/Omega1) ≲ ⟨f ,u⟩/Omega1≲ ∥f ∥ H α 2 , β 2 (/Omega1)′ ∥u∥ H α 2 , β 2 (/Omega1) . 2 (4.8) To simplify the presentation, we take the same number of modes in each direction. Then, the spectral–Galerkin approxi- mation to (4.4) is: find uN ∈ XN = XN × XN, such that A(uN,vN) = (f ,vN), ∀vN ∈ XN. (4.9) Since XN ⊂ H α 2 , β 2 0 (/Omega1), the well-posedness of (4.9) can be established as in Theorem 2, and one derives immediately from Theorem 2that we have the following error estimate: ∥u − uN∥ H α 2 , β 2 (/Omega1) ≲ inf vN ∈XN ∥u − vN∥ H α 2 , β 2 (/Omega1) . (4.10) To describe the error in a more precise form, we define the non-uniformly weighted Sobolev spaces (cf. (8.4.30) in [23] with α= β =0 and d =2): ˆBr(/Omega1):= {u ∈L2(/Omega1): ∂r1 x ∂r2 x u ∈L2 ω max(r1,1)−1 x ω max(r2,1)−1 y (/Omega1),∀0 ≤ r1,r2 ≤ r}, (4.11) where ωa x = (1 − x2)a and ωb y = (1 − y2)b, with the semi-norm and norm defined by |u|2 ˆBr = ∑ 0≤r1,r2≤r ∥∂r1 x ∂r2 x u∥2 L2 ωmax(r1,1)−1 x ωmax(r2,1)−1 y , ∥u∥2 ˆBr =∥u∥2 L2 +|u|2 ˆBr . (4.12) 252 Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 Let /Pi11,0 N : H1 0(/Omega1) → XN be defined by (∇(u − /Pi11,0 N u),∇vN) =0, ∀vN ∈ XN. (4.13) Then, it is shown (cf. Thms. 8.2 & 8.3 in [23]) that the following estimate holds: ∥u − /Pi11,0 N u∥Hs(/Omega1)≲ Ns−m|u|ˆBm , ∀u ∈ ˆBm(/Omega1)∩ H1 0(/Omega1),s =0,1. (4.14) Then by using a standard argument of space interpolation [1], it can be shown that the above estimate holds as well for all s ∈[0, 1]. Combining the above result with (4.10), we arrive at the following: Theorem 3. Let ua n d uN be the solution of problem (4.4) and (4.9) respectively, and we assume that u ∈ ˆBm(/Lambda1) ∩ H1 0(/Omega1). Then we have ∥u − uN∥ H α 2 , β 2 ≲ Nmin( α 2 , β 2 )−m|u|ˆBm . (4.15) 4.2. Efficient implementation 4.2.1. Separable case We consider first the separable case. More precisely, we assume in (4.1) that ρ(x,y) = ρ1(x)ρ2(y), d+(x,y) =d+(x), d− (x,y) =d− (x), e+(x,y) =e+(y), e− (x,y) =e− (y). (4.16) Let φk(·) =Lk(·) − Lk+2(·) and denote uN = N−2∑ k,j=0 ˜ukj φk(x)φj(y), U = (˜ukj )N−2 k,j=0; fkj = (IN f ,φi(x)φj(y)), F = (fkj )N−2 k,j=0, sx kj = ∫ /Lambda1 d+(x) −1D α 2 x φj(x)−1D α 2 x φk(x) +d− (x)xD α 2 1 φk(x)xD α 2 1 φj(x)dx; sy kj = ∫ /Lambda1 e+(y) −1D β 2 y φj(y)−1D β 2 y φk(y) +e− (y) yD β 2 1 φk(y)yD β 2 1 φj(y)dy; mx kj = ∫ /Lambda1 ρ1(x)φk(x)φj(x)dx, my kj = ∫ /Lambda1 ρ2(y)φk(y)φj(y)dy; Mx = (mx kj )N−2 k,j=0, My = (my kj )N−2 k,j=0, Sx = ( sx kj )N−2 k,j=0, Sy = ( sy kj )N−2 k,j=0, (4.17) where IN :C(/Omega1) → PN ×PN is the interpolation operator associated with tensor product of Legendre–Gauss–Lobatto points. Since Sx, Sy, Mx, My are all symmetric, we find that (4.9) with (4.16) is equivalent to the following linear system: MxUM y + SxUM y +MxUS y = F. (4.18) Even when d+(x), d− (x), e+(x) and e− (x) are constants, the stiffness matrices Sx and Sy are full, so a direct inversion of the above system would be very expensive. However, this cost can be significantly reduced by using a discrete version of “separation of variables” — the matrix decomposition/diagonalization method [15,8,24]. To this end, we consider the following generalized eigenvalue problems: Mxv = λxSxv, (4.19) Myw = λySyw. (4.20) Let /Lambda1x (respectively /Lambda1y) be the diagonal matrix whose diagonal entries λx (respectively λy) are the eigenvalues of (4.19) (respectively (4.20)), and let Ex (respectively Ey) be the matrix whose columns are the corresponding eigenvectors of (4.19) (respectively (4.20)), then we have MxEx = SxEx/Lambda1x, (4.21) MyEy = SyEy/Lambda1y. (4.22) Since Sx, Sy, Mx, My are all symmetric and positive definite, the eigenvalues, λx and λy, are all real and positive, and (Ex)−1 = (Ex)T and (Ey)−1 = (Ey)T . Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 253 Fig. 3. H α 2 , β 2 and L2 errors with spectral decomposition method for separable variable coefficients. Left:α=1.2, β =1.2; right: α=1.2, β =1.8. Setting U = ExV (Ex)T in (4.18), we get MxExV (Ey)T My + SxExV (Ey)T My +MxExV (Ey)T Sy = F. (4.23) Multiplying the left (resp. right) of the above equation by (ExSx)−1 (resp. (EySy)−T ), then using (4.21) and (4.22), we arrive at ρ/Lambda1xV /Lambda1y +V /Lambda1y + /Lambda1xV = (ExSx)−1F(EySy)−T := H, (4.24) which is equivalent to (ρλx i λy j + λy j + λx i )vij =hij , 0 ≤ i, j ≤ N − 2, (4.25) where vij and hij are entries of V and H. In summary, the matrix diagonalization method for solving (4.18) consists of the following steps: 1. Pre-processing: compute the eigenvalues and eigenvectors of the generalized eigenvalue problem (4.19), (4.20) and compute (ExSx)−1, (EySy)−T ; 2. Compute the expansion coefficients of IN f (backward Legendre transform); 3. Compute F = (fij ) with fij = (IN f , φi(x)φj(y)); 4. Compute G = (ExSx)−1F(EySy)−T ; 5. Obtain V by solving (4.25); 6. Set U = ExV (Ey)T ; 7. Compute the values of uN at Legendre Gauss–Lobatto points (forward Legendre transform). The above procedure consists of several matrix–matrix multiplications so the total cost is a small multiple of N3. We now present some numerical results. Example 3 (Smooth solution). We take ρ(x, y) =1, d+(x) =1 +sin2(πx), d− (x) =1 +cos2(πx) and e+(y) =1 +sin2(πy), e− (y) =1 +cos2(πy), and consider the exact analytical solution u(x,y) =sin(πx)sin(πy). In Fig. 3, we plot the error in L2-norms and H α 2 , β 2 -norms vs. N in semi-log scale. We observe that the errors converge exponentially. Example 4 (Non-smooth solutions). We take ρ≡ 0, d+(x) =d− (x) =e+(x) =e− (x) ≡ 1w i t h the exact solution to be (1 + x)γ(1 − x) sin y or xγ(1 − x2) sin y. The left figure of Fig. 4 shows that the convergence rate is N−5.23 for α = β = 1.2 and N−4.93 for α = β = 1.8w i t h γ =16/3 which is coincide with the estimate (4.15). We also present the convergence rate for u(x) = (1 +x)γ(1 − x) in the right figure of Fig. 4. We observe that the convergence rates also agree with our error estimates. 254 Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 Fig. 4. Convergent rates for singular solutions: Left:u(x) =x16/3(1 − x2)sin y; Right: u(x) = (1 +x)16/3(1 − x)sin y. 4.2.2. Non-separable case Now let us consider the non-separable problem (4.1)–(4.2). Since the problem is non-separable, we can no longer use the matrix diagonalization method presented above. Let uN = ∑N−2 k,j=0 ˜ukj φk(x)φj(y) ∈ XN be the solution of (4.9), and set ¯u to be the vector consisting {˜ukj }N−2 k,j=0. Taking vN = φk(x)φj(y) in (4.9), we can rewrite (4.9) as a linear system: A¯u = ¯f . (4.26) However, it is too expensive to form the matrix A explicitly and solve the above linear system by a direct method. Hence, we shall use the same iterative approach for the regular PDEs with a suitable separable problem as a preconditioner [24]. The key for the efficiency of this approach is to compute ¯u → A¯u efficiently. A direct approach for computing ¯u → A¯u will cost at least O(N4) which is too expensive. A direct application of the usual transform approach [7,24] does not lead to much savings due to the fact that ∂ α 2 x φj is no longer a polynomial. Below, we describe a procedure to compute ¯u → A¯u in O(N3) by using Lemma 4. To simplify the presentation, we shall only consider the part of A¯u related to the term (d+(x,y)−1∂ α 2 x uN,−1∂ α 2 x vN) in (4.9), since other three terms can be computed in a similar fashion. Taking uN = ∑N−2 k,j=0 ˜ukj φk(x)φj(y) and vN = φl(x)φi(y) in the above, and using Lemma 4, we find: (d+(x,y)−1∂ α 2 x uN,−1∂ α 2 x φl(x)φi(y)), = ( d+(x,y) N−2∑ k,j=0 ˜ukj −1∂ α 2 x φk(x)φj(y),−1∂ α 2 x φl(x)φi(y) ) , = (d+(x,y) N−2∑ k,j=0 ˜ukj ˆφk(x)φj(y), ˆφl(x)φi(y))w0,2−α(x). (4.27) Now we can use the following algorithms to compute the above: Pre-computation: Compute the Gauss–Jacobi–Lobatto points and weights {xj, wx j}N j=0 with respect to weight w0,2−α(x), and the Gauss–Legendre–Lobatto points and weights {yj, wy j }N j=0. Write ˆφl(x) in the form: ˆφl(x) = l∑ m=0 φlm J0,2−α m (x), (4.28) and compute ˆφl(xj) for 0 ≤ l, j ≤ N. Step 1: Compute ˜u(xm,yn) = N−2∑ k,j=0 ˜ukj ˆφk(xm)φj(yn), m,n =0,1,··· ,N. Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 255 Table 1 Number of iterations for solving (4.26). N #o fi t e r a t i o n α=1.2, β =1.2 α=1.2, β =1.8 α=1.8, β =1.8 without Precon. with Precon. without Precon. with Precon. without Precon. with Precon. 20 209 13 217 13 138 13 30 433 13 447 13 269 14 40 730 14 723 14 416 15 50 1036 14 1049 15 588 15 60 1459 14 1427 15 722 15 70 1948 14 1876 15 981 15 Step 2: (Discrete Jacobi–Legendre transform) Determine { ˜wkj }N k,j=0 from IN(d+ ˜u)(xm,yn) = N∑ k,j=0 ˜wkj J0,2−α k (xm)Lj(yn), m,n =0,1,··· ,N. This can be done by using the Gauss–Jacobi and Gauss–Legendre quadrature [23] in O(N3) flops. Step 3: Finally, thank to (A.1), we have ( d+ N−2∑ k,j=0 ˜uk ˆφk(x)φj(y), ˆφl(x)φi(y) ) w0,2−α(x) = ( N∑ k,j=0 ˜wkj J0,2−α k Lj(y), l∑ m=0 (φlm J0,2−α m )φi(y) ) w0,2−α(x) = N∑ j=0 l∑ k=0 ( ˜wkj γ0,2−α k φlk)(Lj(y),φi(y)), i,l =0,1,··· ,N − 2. Note that (Lj(y), φi(y)) ̸=0o n l y if j =i, i +2s o all steps above can be compute in O(N3) flops with matrix matrix product. Let ¯ρ, ¯d± and ¯e± be some average constants of ρ(x), d±(x) and e±(x), respectively. We define a bilinear form XN → R by ˜A(uN,vN) := ¯ρ(uN,vN) + ¯d+(−1∂ α 2 x uN,−1∂ α 2 x vN) + ¯d− (x∂ α 2 1 uN,x∂ α 2 1 vN) + ¯e+(−1∂ β 2 y uN,−1∂ β 2 y vN) + ¯e− (y∂ β 2 1 uN,y∂ β 2 1 vN). Then, it can be easily shown that there exist constants c1, c2 >0s u c h that c1 ≤ A(uN,uN) ˜A(uN,uN) ≤ c2, (4.29) which implies that the matrix associated to the bilinear form ˜A(·, ·) is an optimal preconditioner for the matrix A associated to the bilinear form A(·, ·), i.e., the linear system (4.26) for a 2-D non-separable problem can also be solved, within any given accuracy threshold ϵ, in O(N3) flops. We now present a numerical example to show the effectiveness of this iterative approach. Example 5. We consider the problem (4.1)–(4.2) with a random function f and ρ(x, y) =1, d+(x, y) =d− (x, y) =1 +sin2 x + sin2 y, e+(x, y) =e− (x, y) =1 +cos2 x +cos2 y. We set the threshold ϵ =10−8 and list in Table 1 the iteration numbers of the CG method for solving (4.26) directly or using the system with ρ = d± = e± = 1a s the preconditioner. We observe that the iteration numbers are bounded independent of N if the preconditioner is used. 5. Various extensions We discuss in this section several direct extensions of the algorithms presented above. 256 Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 5.1. Fractional PDEs in non-conserved form We explain below how the algorithms presented in the previous section can be extended to deal with fractional PDEs in non-conservative form: ρu(x,y) − d+(x,y)−1∂α x u(x,y) − d− (x,y)x∂α 1 u(x,y) − e+(x,y)−1∂β y u(x,y) − e− (x,y)y∂β 1 u(x,y) = f (x,y), ( x,y) ∈ /Omega1, (5.1) with boundary condition (4.2). We consider first the separable case, i.e., the coefficients satisfying (4.16). We define a non-symmetric bilinear form A(u,v) := ρ(u,v) − (−1∂ α 2 x u,x∂ α 2 1 (d+(x) v)) − (x∂ α 2 1 u,−1∂ α 2 x (d− (x) v)) − (−1∂ β 2 y u,y∂ β 2 1 (e+(y) v)) − (y∂ β 2 1 u,−1∂ β 2 y (e− (y) v)). (5.2) Then, a spectral–Galerkin approximation to (5.1) with (4.2) is: Find uN ∈ XN, such that A(uN,vN) = (IN f ,vN), ∀vN ∈ XN. (5.3) If we replace sx kj and sy kj in (4.17) by sx kj =− ∫ /Lambda1 −1D α 2 x φj(x)xD α 2 1 (d+(x)φk(x)) +xD α 2 1 φj(x)−1D α 2 x (d− (x)φk(x))dx, Sx = ( sx kj )N−2 k,j=0; sy kj =− ∫ /Lambda1 −1D β 2 y φj(y)yD β 2 1 (e+(y)φk(y)) + yD β 2 1 φj(y)−1D β 2 y (e− (y)φk(y))dy, Sy = ( sy kj )N−2 k,j=0. Then, taking vN = φm(x)φn(y) in (5.3) for m, n =0, 1, ··· , N − 2, we find that (5.3) reduces to the following linear system: MxUM y + SxUM y +MxU(Sy)T = F. (5.4) Thanks to Lemma 4, the entries sx kj can be computed as follows: sx kj =− ∫ /Lambda1 (−1D α 2 x φj(x)xD α 2 1 (d+(x)φk(x)) +xD α 2 1 φj(x)−1D α 2 x (d− (x)φk(x)))dx =− 1∫ −1 (−1Dα x φj(x)(d+(x)φk(x)) +xDα 1 φj(x)(d− (x)φk(x)))dx =− 1∫ −1 ((1 +x)1−α ˇφj(x)(d+φk(x)) + (1 − x)1−α ˘φj(x)(d− φk(x)))dx, (5.5) where ˇφj(x) =bj Jα,1−α j (x) − bj+1 Jα,1−α j+1 (x), (5.6) ˘φj(x) =bj J1−α,α j (x) +bj+1 J1−α,α j+1 (x), (5.7) with bj = /Gamma1(j+2) /Gamma1(j−α+2). Hence, the above integration can be easily computed by using Gauss–Jacobi quadratures. Similarly, one can compute sy kj. The matrix equation (5.4) is of the same form as (4.18), except that Sx and Sy are no longer symmetric. However, we can still apply the matrix diagonalization approach to solve (5.4) as long as the eigenvalues of Sx and Sy are all non-zero. This should be true under the condition that the original fractional PDE (5.1) with (4.2) admits a unique solution. 5.1.1. Numerical results We consider (5.1)–(4.2) with the same coefficients and exact solution as in Example 3. We first compute all the eigen- values of Sx and display them in Fig. 5. We observe that all eigenvalues have positive real part, indicating that the discrete problem (5.3) is well-posed. In Figs. 6, we plot the errors in L2-norm and H α 2 , β 2 -norm in semi-log scale by using the matrix diagonalization method. We observe that, as in the conserved-form, the errors converge exponentially. Next, we consider the problem (5.1)–(4.2) with general coefficients. As for the non-separable equation in conserved form, we shall use an iterative method. Since the problem is no longer symmetric, we shall use the preconditioned BICGSTAB Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 257 Fig. 5. Distribution of eigenvalues. Fig. 6. H α 2 , β 2 and L2 errors. Left: α=1.2, β =1.2; Right: α=1.2, β =1.8. Table 2 Number of iterations for solving (5.1)–(4.2). N #o fi t e r a t i o n α=1.2, β =1.2 α=1.2, β =1.8 α=1.8, β =1.8 without Precon. with Precon. without Precon. with Precon. without Precon. with Precon. 20 124 14 170 14 100 14 30 148 14 342 14 138 16 40 166 14 486 14 198 16 50 186 14 588 14 226 16 60 192 14 802 14 218 16 70 192 14 778 14 258 16 method [6] with, once again, a problem with suitable constant coefficients as preconditioner. With reasonable conditions on the coefficients, one can expect that the convergence rate of the preconditioned BICGSTAB method will be independent of N. We take (5.1)–(4.2) with the same coefficients and exact solution as in Example 4, and list in Table 2 the number of iterations needed with a threshold ϵ =10−8. We also observe that the iteration numbers are bounded independent of N if a preconditioner is used. 5.2. Three or more dimensional problems We only presented details of our algorithms and analysis for fractional elliptic PDEs in two-dimensional rectangular domains. However, it is clear that these approaches can be extended directly to fractional elliptic PDEs in three or more dimensional rectangular domains with a cost of O(Nd+1) (where d is the dimension). We leave the details to the interested readers. 258 Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 5.3. Time–space fractional diffusion equation (TSFDE) To illustrate the idea, we consider the following 1-D TSFDE C 0 ∂α t u(x,t) − d+(x)−1∂β x u(x,t) − d− (x)x∂β 1 u(x,t) = f (x,t), ( x,t) ∈ /Omega1= /Lambda1×I, u(x,0) =u0(x), x ∈ /Lambda1, u(−1,t) =u(1,t) =0, ∀t ∈I, (5.8) where 0 < α<1, 1 <β< 2, and d+(x), d− (x) ⩾c >0a r e given functions. Note that we consider here the time fractional derivative in Caputo form which allows us to deal with non-zero initial conditions. Thanks to Lemma 1 and following [13], a weak formulation of (5.8) is: for f ∈ H α 2 , β 2 (/Omega1)′, find u ∈ H α 2 , β 2 (/Omega1), such that (0∂ α 2 t u,t∂ α 2 T v) − (−1∂ β 2 x u,x∂ β 2 1 (d+(x) v)) − (x∂ β 2 1 u,−1∂ β 2 x (d− (x) v)) = F(v), ∀v ∈ H α 2 , β 2 (/Omega1), (5.9) where Hs,σ(/Omega1)= Hs(I,L2(/Lambda1))∩L2(I,Hσ 0 (/Lambda1)),and F(v) = <f ,v> + (u0(x)t−α /Gamma1(1 − α),v ) . Let us denote XM,N := P0 M × PN =span{φk(x)Lj(y) :0 ≤ k ≤ M − 2, 0 ≤ j ≤ N}. Then, the spectral–Galerkin approximation for (5.9) is: Find uM,N ∈ XM,N such that (0∂ α 2 t uM,N,t∂ α 2 T vM,N) − (−1∂ β 2 x uM,N,x∂ β 2 1 (d+(x) vM,N)) − (x∂ β 2 1 u,−1∂ β 2 x (d− (x) vM,N)) = F(vM,N), ∀vM,N ∈ XM,N. (5.10) Denote uM,N = M−2∑ k=0 N∑ j=0 ˜ukj φk(x)Lj(t), U = (˜ukj )M−2,N k,j=0 ; fkj = F(φk(x)Lj(t)), F = (fkj )M−2,N k,j=0 ; st kj = ∫ I 0D α 2 t Lj(t)tD α 2 T Lk(t)dt, St = ( st kj )N k,j=0; sx kj =− ∫ /Lambda1 −1D β 2 x φj(x)xD β 2 1 (d+(x)φk(x)) +xD β 2 1 φj(x)−1D β 2 x (d− (x)φk(x))dx, Sx = ( sx kj )M−2 k,j=0; mt kj = ∫ I Lk(t)Lj(t)dt, Mt = (mt kj )N k,j=0; mx kj = ∫ /Lambda1 φk(x)φj(x)dx, Mx = (mx kj )M−2 k,j=0. Taking v = φm(x)Ln(t) in (5.10), m =0, 1, ··· , M − 2, n =0, 1, ··· , N, we find that (5.10) is equivalent to the following linear system: MxU(St)T + SxUMt = F. (5.11) The above matrix system can once again be efficiently solved by the matrix diagonalization method using the following generalized eigenvalue problems: Mx ¯x = λxSx ¯x, Mt¯t = λtSt¯t. (5.12) Since Sx is the same as in Subsection 5.1, we only examine the eigenvalues {λt} which are displayed in Fig. 7. We observe that since St is non-symmetric, the eigenvalues are not real but they all have positive real part. Hence, the system (5.11) can be solved by using the matrix diagonalization method in O(N3) operations. Although we only considered 1-D TSFDEs above, it is clear that we can deal with multi-dimensional TSPDEs by combining the approaches here with those in previous sections. Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 259 Fig. 7. Distribution of eigenvalues{λt }. Fig. 8. H α 2 , β 2 and L2 errors with spectral decomposition method for TDFDE,α=0.8, β =1.8. Example 6. Consider (5.8) with T =1, d+(x) =1 +x2, d− (x) =e−x, and the exact solution uex(x, t) =e−t sin(πx). The convergence w.r.t. to N with M =18 is shown in Fig. 8. Since the solution is analytic, we have once again exponential convergence. 6. Concluding remarks We developed in this paper efficient spectral–Galerkin algorithms and error analyses to solve multi-dimensional fractional elliptic equations with variable coefficients in conserved form as well as non-conserved form. The main idea was to extend the approach in [24] for usual PDEs to fractional PDEs. If the FPDEs are separable, we constructed a direct method by using a matrix diagonalization approach with a small multiple of Nd+1 flops, where d is the dimension; while for non-separable FPDEs, we showed that the (matrix-free) matrix–vector product can be computed in O(Nd+1), and with a suitable separable FPDE with constant-coefficients as a (optimal) preconditioner, we can still solve the corresponding linear system with a preconditioned BICGSTAB method in O(Nd+1) flops. Hence, we have shown that multi-dimensional fractional PDEs can be solved with a spectral–Galerkin algorithm in essentially the same cost as related usual PDEs. We also discussed the extension of these approaches to deal with time–space FDEs. We derived rigorous weighted error estimates which provide more precise and improved convergence rate than the usual non-weighted estimates for solutions with singularities at the boundary. We presented ample numerical results to validate our algorithms and error estimates. We note that similar algorithms, based on Petrov–Galerkin methods, have been proposed in [32] for multi-dimensional FPDEs with one-sided fractional derivatives and constant-coefficients, as opposed to spectral–Galerkin methods for multi- dimensional FPDEs with double-sided fractional derivatives and variable-coefficients presented in this paper. The algorithms in [32] and our algorithms in this paper were both presented at the 2014 International Conference on Spectral and High- Order Methods which was held at Salt Lake City during June 23–27, 2014. 260 Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 Appendix A. Jacobi polynomials and related properties Due to the similarity between the Jacobi weights and the kernel function in the definitions of the fractional inte- grals/derivatives, Jacobi polynomials play essential roles in developing efficient spectral methods for FPDEs. We recall below some properties of Jacobi polynomials. Let Jα,β n (x) (α, β> −1) be the Jacobi polynomials which are orthogonal with respect to the weight function wα,β(x) = (1 − x)α(1 +x)β over (−1, 1), i.e. 1∫ −1 Jα,β n (x)Jα,β m (x)wα,β(x) = γα,β n δmn, (A.1) where γα,β n =∥ Jα,β n (x)∥2 wα,β(x), α, β> −1. The Jacobi polynomials satisfy the three-term recurrence relation: ⎧ ⎪⎨ ⎪⎩ Jα,β 0 (x) =1, Jα,β 1 (x) = 1 2 (α+ β+2)x + 1 2 (α− β), Jα,β n+1(x) = (Aα,β n x − Bα,β n )Jα,β n (x) − Cα,β n Jα,β n−1(x), n ≥ 1, (A.2) where Aα,β n = (2n + α+ β+1)(2n + α+ β+2) 2(n +1)(n + α+ β+1) , (A.3) Bα,β n = (α2 − β2)(2n + α+ β+1) 2(n +1)(n + α+ β+1)(2n + α+ β), (A.4) Cα,β n = (n + α)(n + β)(2n + α+ β+2) (n +1)(n + α+ β+1)(2n + α+ β). (A.5) In particular, we have the Legendre polynomials Ln(x) = J0,0 n (x). Below, we list some useful properties of the Jacobi polyno- mials that will be used later (cf. [23,25]): Jα,β n (−x) = (−1)n Jβ,α n (x). (A.6) Jα,β n (1) = /Gamma1(n + α+1) j!/Gamma1(α+1) , Jα,β n (−1) = (−1)n /Gamma1(n + β+1) j!/Gamma1(β+1) . (A.7) Jα+1,β n (x) = 2 2n + α+ β+2 (n + α+1)Jα,β n (x) − (n +1)Jα,β n+1(x) 1 − x . (A.8) Jα,β+1 n (x) = 2 2n + α+ β+2 (n + β+1)Jα,β n (x) + (n +1)Jα,β n+1(x) 1 +x . (A.9) Next, we recall some useful properties of the Jacobi polynomials in relation to fractional integrals/derivatives. Lemma 5. (See [2].) Let μ >0 and ∀x ∈[ −1, 1], we have (i) For α> −1, β ∈ R (1 +x)β+μ Jα−μ,β+μ n (x) Jα−μ,β+μ n (−1) = /Gamma1(β+ μ +1) /Gamma1(β+1)/Gamma1(μ)Jα,β n (−1) x∫ −1 (1 +s)β Jα,β n (s) (x − s)1−μ ds, (A.10) (ii) For α∈ R, β> −1 (1 − x)α+μ Jα+μ,β−μ n (x) Jα+μ,β−μ n (1) = /Gamma1(α+ μ +1) /Gamma1(α+1)/Gamma1(μ)Jα,β n (1) 1∫ x (1 − s)α Jα,β n (s) (s − x)1−μ ds. (A.11) Z. Mao, J. Shen / Journal of Computational Physics 307 (2016) 243–261 261 References [1] R.A. Adams, Sobolev Spaces, Academic Press, New York, 1975. [2] Ric hard Askey, James Fitch, Integral representations for Jacobi polynomials and some applications, J. Math. Anal. Appl. 26 (2) (1969) 411–437. [3] Sheng Chen, Jie Shen, Li-Lian Wang, Generalized Jacobi functions and their applications to fractional differential equations, Math. Comput. (2015), in press. [4] Vincent J. Ervin, Norbert Heuer, John Paul Roop, Numerical approximation of a time dependent, nonlinear, space-fractional diffusion equation, SIAM J. Numer. Anal. 45 (2) (2007) 572–591. [5] Vincent J. Ervin, John Paul Roop, Variational formulation for the stationary fractional advection dispersion equation, Numer. Methods Partial Differ. Equ. 22 (3) (2006) 558–576. [6] G.H. Golub, C.F. Van Loan, Matrix Computations, The John Hopkins University Press, Baltimore, 1989. [7] D. Gottlieb, S.A. Orszag, Numerical Analysis of Spectral Methods: Theory and Applications, SIAM–CBMS, Philadelphia, 1977. [8] D.B. Haidvogel, T.A. Zang, The accurate solution of Poisson’s equation by expansion in Chebyshev polynomials, J. Comput. Phys. 30 (1979) 167–180. [9] Bangti Jin, Raytcho Lazarov, Joseph Pasciak, Zhi Zhou, Error analysis of a finite element method for the space-fractional parabolic equation, SIAM J. Numer. Anal. 52 (5) (2014) 2272–2294. [10] B.T . Jin, R. Lazarov, Z. Zhou, Error estimates for a semidiscrete finite element method for fractional order parabolic equations, SIAM J. Numer. Anal. 51 (1) (2013) 445–466. [11] Siu-Long Lei, Hai-Wei Sun, A circulant preconditioner for fractional diffusion equations, J. Comput. Phys. 242 (2013) 715–725. [12] X. Li, C. Xu, A space–time spectral method for the time fractional diffusion equation, SIAM J. Numer. Anal. 47 (3) (2009) 2108–2131. [13] X. Li, C. Xu, Existence and uniqueness of the weak solution of the space–time fractional diffusion equation and a spectral method approximation, Commun. Comput. Phys. 8( 5 ) (2010) 1016. [14] Faw ang Liu, V. Anh, I. Turner, Numerical solution of the space fractional Fokker–Planck equation, J. Comput. Appl. Math. 166 (1) (2004) 209–219. [15] R.E. Lynch, J.R. Rice, D.H. Thomas, Direct solution of partial differential equations by tensor product methods, Numer. Math. 6 (1964) 185–199. [16] M.M. Meerschaert, H.P. Scheffler, C. Tadjeran, Finite difference methods for two-dimensional fractional dispersion equation, J. Comput. Phys. 211 (1) (2006) 249–261. [17] R. Metzler, J. Klafter, The random walk’s guide to anomalous diffusion: a fractional dynamics approach, Phys. Rep. 339 (1) (2000) 1–77. [18] Ellio tt W. Montroll, George H. Weiss, Random walks on lattices. II, J. Math. Phys. 6( 2 ) (1965) 167–181. [19] Dieg o A. Murio, Implicit finite difference approximation for time fractional diffusion equations, Comput. Math. Appl. 56 (4) (2008) 1138–1145. [20] Hong-K ui Pang, Hai-Wei Sun, Multigrid method for fractional diffusion equations, J. Comput. Phys. 231 (2) (2012) 693–703. [21] John Paul Roop, Computational aspects of fem approximation of fractional advection dispersion equations on bounded domains in r2, J. Comput. Appl. Math. 193 (1) (2006) 243–268. [22] Rina Schumer, David A. Benson, Mark M. Meerschaert, Stephen W. Wheatcraft, Eulerian derivation of the fractional advection–dispersion equation, J. Contam. Hydrol. 48 (1) (2001) 69–88. [23] J. Shen, T. Tang, L.L. Wang, Spectral Methods: Algorithms, Analysis and Applications, Springer, 2011. [24] Jie Shen, Efficient spectral-Galerkin method I. Direct solvers for second- and fourth-order equations by using Legendre polynomials, SIAM J. Sci. Comput. 15 (1994) 1489–1505. [25] G. Szego, Orthogonal Polynomials, Amer. Math. Soc. Colloq. Publ., vol. 23, Amer. Math. Soc., Providence, RI, 1975. [26] C. Tadjeran, M.M. Meerschaert, A second-order accurate numerical method for the two-dimensional fractional diffusion equation, J. Comput. Phys. 220 (2) (2007) 813–823. [27] H. Wang, T.S. Basu, A fast finite difference method for two-dimensional space-fractional diffusion equations, SIAM J. Sci. Comput. 34 (5) (2012) 2444–2458. [28] H. Wang, K. Wang, An o(n log2 n) alternating-direction finite difference method for two-dimensional fractional diffusion equations, J. Comput. Phys. 230 (21) (2011) 7830–7839. [29] H. Wang, K. Wang, T. Sircar, A direct o(n log2 n) finite difference method for fractional diffusion equations, J. Comput. Phys. 229 (21) (2010) 8095–8104. [30] St ephen W. Wheatcraft, Mark M. Meerschaert, Fractional conservation of mass, Adv. Water Resour. 31 (10) (2008) 1377–1381. [31] M. Zayernouri, G.E. Karniadakis, Fractional Sturm–Liouville eigen-problems: theory and numerical approximation, J. Comput. Phys. 252 (2013) 495–517. [32] Mohsen Zayernouri, Mark Ainsworth, George Em Karniadakis, A unified Petrov–Galerkin spectral method for fractional PDEs, Comput. Methods Appl. Mech. Eng. 283 (2015) 1545–1569. [33] Mohsen Zayernouri, George Em Karniadakis, Discontinuous spectral element methods for time- and space-fractional advection equations, SIAM J. Sci. Comput. 36 (4) (2014) B684–B707.

采集于

查看校方原文 ↗