EIT Agent
登录
← 校园网页目录

校园网页 · 学校官网

P:\TEX\SINUM\42-1\42206\42206

ERROR ANALYSIS FOR MAPPED LEGENDRE SPECTRAL AND PSEUDOSPECTRAL METHODS JIE SHENy AND LI-LIAN WANGz SIAM J. NUMER. ANAL. c 2004 Society for Industrial and Applied Mathematics Vol. 42, No. 1, pp. 326{349 Abstract. A general framework is introduced to analyze the approximation properties of mapped Legendre polynomials and of interpolations based on mapped Legendre{Gauss{Lobatto points. Optimal error estimates featuring explicit expressions on the mapping parameters for several popular mappings are derived. These results not only play an important role in numerical analysis of mapped Legendre spectral and pseudospectral methods for di erential equations but also provide quantitative criteria for the choice of parameters in these mappings. Key words. spectral approximation, mapped Legendre polynomials, interpolation, orthogonal system AMS subject classi cations. 65N35, 65N15, 65N50 DOI. 10.1137/S0036142903422065 1. Introduction. In a spectral method, global polynomials are used as trial functions to approximate solutions of partial di erential equations (PDEs); if the un- derlying solutions are smooth throughout the domain, the spectral method will pro- vide very accurate approximations with signi cantly fewer degrees of freedom when compared with nite di erence or nite element methods (cf. [13, 8, 7]). However, if the solutions of PDEs exhibit localized rapid variations such as spikes, sharp inter- faces, or internal layers, standard spectral methods usually fail to produce accurate approximations with a reasonable number of degrees of freedom, for the grid is xed in a standard spectral method and does not take into account the localized solution behaviors. Thus, for problems with localized rapid variations, it is advisable to use a grid adapted to the localized solution behaviors rather than a standard xed grid. However, unlike in a nite di erence or nite element method, spectral methods cannot gracefully handle an arbitrarily locally re ned grid, for the spectral accuracy will usually be lost due to the fact that the locally re ned grid cannot, in general, be \smoothly" mapped to the standard spectral grid. Thus the adaptivity for spectral methods is best realized through a \smooth" map which transforms a function having sharp interfaces in the physical domain to a slow varying function on the computa- tional domain. Hence two questions need to be addressed: (i) what is the in uence of the mapping on the accuracy of the spectral methods? (ii) how do we adaptively determine a suitable mapping? In this paper, we aim to provide a complete answer to the rst question, which is a rst step toward a long-term goal of designing a robust adaptive spectral method for solving PDEs. In general, a coordinate transformation takes the form x =g(y;); y 2 [1; 1];  2D;(1.1) Received by the editors January 27, 2003; accepted for publication (in revised form) July 5, 2003; published electronically March 3, 2004. http://www.siam.org/journals/sinum/42-1/42206.html yDepartment of Mathematics, Purdue University, West Lafayette, IN 47907 (shen@math.purdue. edu). The work of this author is partially supported by NFS grants DMS-0074283 and DMS-0311915. zDepartment of Mathematics, Purdue University, West Lafayette, IN 47907 (lwang@math.purdue. edu), and Department of Mathematics, Shanghai Normal University, Shanghai, P.R. China. The work of this author is partially supported by The Shanghai Natural Science Foundation N.00JC14057 and The Shanghai Natural Science Foundation for Youth N. 01QN85. 326 MAPPED LEGENDRE METHODS 327 such that g0(y;)> 0; g(1;) = 1;  2D;(1.2) where  is a parameter vector and D is the feasible domain of , and 0 denotes the derivative with respect to y so (1.1) maps the interval [1; 1] univalently onto itself. Without loss of generality, we assume that the mapping (1.1) is explicitly invertible and denote y =g1(x;) :=h(x;); x;y 2 [1; 1];  2D: Several interesting mappings have been proposed and implemented in practice. In particular, Koslo and Tal-Ezer [20] introduced the one-parameter mapping x =g(y;) = arcsin(y) arcsin ; 0<< 1:(1.3) This mapping stretches the Chebyshev{Gauss{Lobatto grid toward a uniform grid as  ! 1: Bayliss et al. [3] used a mapped Chebyshev method to treat the boundary layer problem with the mapping x =g(y;) = (4=) arctan(tan((y 1)=4)=) + 1; > 0:(1.4) The mapping clusters more and more points near x = 1 (resp., x = 1) as  ! 0+ (resp., as  ! +1). Bayliss and Turkel [4] introduced a two-parameter mapping x =g(y;) =2 + tan(a1(y a0))=1; 1 > 0; 1 2 < 1;(1.5) where a0 and a1 are chosen to satisfy (1.2). Here, as 1 increases, more and more points are clustered near x = 2. These mappings have been successfully used to treat some practical problems with localized rapid variations. We note that in [1], the authors used properties special to Chebyshev polynomials to derive some error estimates on projection and interpolation errors of the mapped Chebyshev methods with the mapping (1.3). However, as far as we know, there is neither a systematic framework for analyzing the mapped spectral methods for solving PDEs nor a precise rigorous analysis on how the mapping parameter(s) would a ect the accuracy. For example, there have been controversies as to whether  (with  close to 1) in [20] would degrade the accuracy [20, 9, 1, 23]. The main purposes of this paper are: (i) to establish a general framework for analyzing the mapped Legendre spectral methods as a rst step toward an ecient adaptive spectral method; (ii) to provide precise information on how the mapping parameters a ect the accuracy of the mapped spectral method. For a given mapping, there are essentially two approaches to implement (and analyze) a mapped spectral method. In the rst approach, we use x = g(y;) to transform the original equation (with localized rapid variations in x) to a mapped equation (with smooth behaviors in y), and then apply a standard spectral method (iny) to the mapped equation (see, for instance, [14, 17]). The main advantage of this approach is that standard spectral approximation results can be used for the analysis, but its main disadvantage is that the mapped equation is usually very complicated and its analysis is often cumbersome. In the second approach, we do not transform the equation, but we approximate its solution using a new family of orthogonal functions fpk(h(x;))g, which are obtained by applying the mapping y = h(x;) to classical 328 JIE SHEN AND LI-LIAN WANG orthogonal polynomials fpk(y)g (see, for instance, [6, 18, 16]) and which are suitable for capturing the localized rapid variations in the solution of the given problem. The analysis of this approach will require approximation results by using the new family of orthogonal functions. The advantage of this approach is that once these approxima- tion results are established, it can be directly (i.e., without using a transform) applied to a large class of problems. We shall take the second approach and establish approx- imation results for the mapped Legendre polynomials. We emphasize that the two approaches will yield essentially the same approximate solutions (although the two implementations can be quite di erent). Hence the dependence of the error estimates on the mapping parameters established here for the second approach is essentially valid for the rst approach. The remainder of the paper is organized as follows. In the next section, we introduce the general framework for the mapped Legendre spectral and pseudospectral approximations. In section 3, we apply our general results to the speci c mappings (1.3){(1.5). In section 4, we consider the mapped Legendre approximations for a model problem and present some illustrative numerical results. Some concluding remarks are given in section 5. 2. The general framework. In this section, we introduce a general framework for the error analysis of Legendre spectral methods using mapping (1.1) with (1.2). We assume that for a certain positive integer r  1; h(x;) 2C r((1; 1));  2D:(2.1) 2.1. Preliminaries. We rst introduce some notation. LetI = (1; 1); and let (x)> 0 be a given weight function on I. We de ne L2 (I) = fv j v is measurable on I and kvk < 1g; equipped with the following inner product and norm: (u;v) = Z I u(x)v(x) (x)dx; kvk = (v;v) 1 2 : The weighted Sobolev spaces H m (I) and H m 0; (I) are de ned as usual. The norm of H m (I) is de ned as kvkm; = mX k=0 k@k xvk2 ! 1 2 : In case (x)  1, we shall drop the subscript in the notation for the sake of simplicity. Let! ; (x) = (1 x) (1 +x) be the Jacobi weight function and N be the set of all nonnegative integers. For anym 2 N, we de ne the nonuniformly weighted Hilbert space Am(I) = fv j @k xv 2L2 !k;k(I); 0 k mg(2.2) equipped with the inner product, the seminorm, and the norm as follows: (u;v)m;A = mX k=0 (@k xu;@k xv)!k;k; jvjm;A = k@m x vk!m;m; kvkm;A = (v;v) 1 2 m;A: MAPPED LEGENDRE METHODS 329 For any real r> 0; we de ne the space Ar(I) and its norm by space interpolation. We shall use the expression A . B to mean that there exist a generic positive constantc, independent of any function,N, and the parameters of the mappings, such that A cB. Let Ll(y) be the Legendre polynomial of degree l; which is the eigenfunction of the Sturm{Liouville problem @y((1 y2)@yv(y)) +v(y) = 0; y 2I;(2.3) with the corresponding eigenvalues l = l(l + 1); l = 0; 1; 2;::: : We have Ll(1) = (1)l and the following recurrence relations: Ll+1(y) = 2l + 1 l + 1 yLl(y) l l + 1Ll1(y); l  1;(2.4) (2l + 1)Ll(y) =@yLl+1(y) @yLl1(y); l  1:(2.5) The set of Legendre polynomials forms an L2(I)-orthogonal system, i.e., Z I Ll(y)Lm(y)dy = ll;m; with l = 2 2l + 1:(2.6) For any v 2L2(I); we write v(y) = 1X l=0 ^vlLl(y); with ^vl = 1 l (v;Ll): We have the following equivalence (see [17]): k@r yvk!r;r  1X l=r r l ^v2 l l ! 1 2 8v 2Ar(I):(2.7) We now recall some results on the Legendre spectral approximations. Let PN be the set of all polynomials of degree less than or equal to N and P0 N = f 2 PN : (1) = 0g. We de ne bPN :L2(I) ! PN the L2(I)-orthogonal projector by (bPNv v; ) = 0 8 2 PN:(2.8) The following result was proved in [11] (see also [2, 15]). Lemma 2.1. k@ y (bPNv v)k!; .N rk@r yvk!r;r; 0  r; v 2Ar(I):(2.9) We de ne the H1(I)-orthogonal projector bP 1 N :H1(I) ! PN by (bP 1 Nv v; )1 = 0 8 2 PN(2.10) and the H1 0(I)-orthogonal projector bP 1;0 N :H1 0(I) ! P0 N by (@y(bP 1;0 N v v);@y ) = 0 8 2 P0 N:(2.11) 330 JIE SHEN AND LI-LIAN WANG As two special cases of Theorem 3.1 and Theorem 3.4 in Guo and Wang [19], we have the following lemma. Lemma 2.2. If v 2H1(I) and @r yv 2L2 !r1;r1(I); then kbP 1 Nv vk .N rk@r yvk!r1;r1; 0   1 r:(2.12) If v 2H1 0(I) and @r yv 2L2 !r1;r1(I); then kbP 1;0 N v vk .N rk@r yvk!r1;r1; 0   1 r:(2.13) Next, let N;j; 0 j N; be the Legendre{Gauss{Lobatto (LGL) points, which are the zeros of (1 y2)@yLN(y): We assume that they are arranged in ascending order. There exists a unique set of Christo el numbers f!N;jg such that Z I (y)dy = NX j=0 (N;j)!N;j 8 2 P2N 1:(2.14) In fact, we have !N;0 =!N;N = 2 N(N + 1); !N;j = 2 N(N + 1)(LN(N;j))2; 1 j N 1: (2.15) We de ne the discrete inner product and discrete norm as (u;v)N = NX j=0 u(N;j)v(N;j)!N;j; kvkN = (v;v) 1 2 N: Note that we have (see, for instance, formula (21.8) of Bernardi and Maday [5]) k k  k kN  p 2 +N 1k k 8 2 PN:(2.16) On the other hand, we also have (see Theorem 4.9 of Guo and Wang [15]) kvkN . kvk +N 1k@yvk!1;1 8v 2H1 0(I):(2.17) 2.2. Mapped Legendre orthogonal approximations. For a given mapping y =h(x;), we de ne the mapped Legendre polynomials by L() l (x) =Ll(y) =Ll(h(x;)); l = 0; 1; 2;::: :(2.18) Due to h(1;) = 1; we have L() l (1) = (1)l. We denote the weight function !(x) :=h0(x;) = 1 g0(y;):(2.19) Thanks to (2.5), we have the recurrence relation (2l + 1)!(x)L() l (x) =@xL() l+1(x) @xL() l1(x); l  1:(2.20) MAPPED LEGENDRE METHODS 331 By virtue of (2.6), the set fL() l g1 l=0 forms a complete orthogonal system in L2 !(I); and consequently, for any v 2L2 !(I); we can write v(x) = 1X l=0 ^v() l L() l (x); with ^v() l = 1 l (v; L() l )!:(2.21) Moreover, L() l is the eigenfunction of the Sturm{Liouville problem w1  (x)@x(~!(x)@xL() l (x)) +lL() l (x) = 0; x 2I; with ~!(x) = (1h2(x;))!1  (x): This implies that f@xL() l g1 l=1 forms an orthogonal system in L2 ~!(I), i.e., Z I @xL() l (x)@xL() m (x)~!(x)dx =l ll;m:(2.22) We now consider error estimates for approximations using the orthogonal system fL() l g1 l=0: For 2D; we set VN; = spanfL() 0 ; L() 1 ;::: ; L() N g: LetPN; :L2 !(I) ! VN; be the L2 !(I)-orthogonal projector de ned by (PN;v v; )! = 0 8 2 VN;:(2.23) For clarity, the following notation will be used in what follows: V(y) =v g(y;) =v(x); (y) = g(y;) = (x); x;y 2I;  2D:(2.24) For  2D and r 2 N; we de ne Ar (I) = fv 2L2 !(I) j jvjAr  = k(1 y2) r 2@r yVk< 1; y =h(x;)g(2.25) and Br (I) = fv 2L2 !(I) j jvjBr  = k(1 y2) r1 2 @r yVk< 1; y =h(x;)g:(2.26) The following is a fundamental result for the mapped Legendre spectral approxi- mations. Theorem 2.1. For any v 2Ar (I);  2D, and r  1; k@x(PN;v v)k~! +N kPN;v vk! .N1rjvjAr  :(2.27) Moreover, for r> 1; jPN;v(1) v(1)j .N1rjvjAr  :(2.28) Proof. For v 2L2 !(I), we have V 2L2(I), so we can write v(x) = 1X l=0 ^v() l L() l (x) = 1X j=0 bV () l Ll(y) =V(y)(2.29) with ^v() l = 1 l (v; L() l )! = 1 l (V;Ll) = bV () l :(2.30) 332 JIE SHEN AND LI-LIAN WANG Let bPN and PN; be the projectors de ned in (2.8) and (2.23). We derive from (2.30) and Lemma 2.1 with  = 0 that kPN;v vk2 ! = 1X l=N+1 (^v() l )2 l = 1X l=N+1 (bV () l )2 l = kbPNV Vk2 .N 2rk(1 y2) r 2@r yVk2 =N 2rjvj2 Ar  : (2.31) On the other hand, since f@yLlg isL2 !1;1(I)-orthogonal, we derive from (2.22), (2.30), and Lemma 2.1 with  = 1 that k@x(PN;v v)k2 ~! = 1X l=N+1 l l(^v() l )2 = 1X l=N+1 l l(bV () l )2 = k@y(bPNV V)k2 !1;1 .N2(1r)jvj2 Ar  : Next, since jL() l (1)j = 1; we derive from (2.7), (2.29), and (2.30) that jPN;v(1) v(1)j  1X l=N+1 jbV () l j CN;r 1X l=N+1 r l (bV () l )2 l ! 1 2 .CN;rk@r yVk!r;r .CN;rjvjAr  ; where for r> 1; CN;r = 1X l=N+1 r l 1 l ! 1 2 . 1X l=N+1 l12r ! 1 2 . Z 1 N x12rdx ! 1 2 .N1r: The proof is complete. When analyzing mapped Legendre spectral methods for numerical solutions of PDEs, we often need to consider the H1 !(I)-orthogonal projection P 1 N; :H1 !(I) ! VN; de ned by (P 1 N;v v; )1;! = 0 8 2 VN;: Theorem 2.2. For any v 2H1 !(I) \Br (I);  2D; and r  1; kP 1 N;v vk1;! . (d;1 + 1)N1rjvjBr  ;(2.32) where d;1 = maxx2I j!(x)j: Proof. By (2.19) and (2.24), k vk2 1;! = Z I (@y((y) V(y)))2 dy dx 2 dy + Z I ((y) V(y))2dy  (d;1 + 1)2k Vk2 1: (2.33) Next, we take (x) = (y) = bP 1 NV(y) in (2.33), where bP 1 N is de ned in (2.10), and we obtain from the projection theorem and Lemma 2.2 that kP 1 N;v vk1;! = inf 2VN; k vk1;!  (d;1 + 1)kbP 1 NV Vk1 . (d;1 + 1)N1rk@r yVk!r1;r1 . (d;1 + 1)N1rjvjBr  : MAPPED LEGENDRE METHODS 333 Next, we consider the bilinear form a() ! (u;v) =1(@xu;@x(v!)) +2(u;v)! (where  = (1;2) and i > 0;i = 1; 2) associated to the mapped Legendre spectral approximation of the model elliptic equation 1vxx +2v =f; v(1) = 0:(2.34) Due to the nonuniform weight function!(x); the bilinear forma() ! (u;v) is not sym- metric. We rst study its continuity and coercivity. Lemma 2.3. For any u;v 2H1 !(I); a() ! (u;v) 1(d;2 + 1)juj1;! kvk1;! +2kuk! kvk!;(2.35) where d;2 = max x2I j!1  (x)@x!(x)j:(2.36) For any v 2H1 0;!(I); a() ! (v;v) 1jvj2 1;! +  2 1 2 d;3  kvk2 !;(2.37) where d;3 = max x2I f!1  (x)@2 x!(x)g:(2.38) Proof. By the Cauchy inequality, a() ! (u;v) 1j(@xu;@xv)! + (@xu;v@x!)j +2j(u;v)! j 1(juj1;! jvj1;! + max x2I j!1  (x)@x!(x)jjuj1;! kvk!) +2kuk! kvk! 1(d;2 + 1)juj1;! kvk1;! +2kuk! kvk!: On the other hand, a() ! (v;v) =1jvj2 1;! +2kvk2 ! + 1 2 Z I @x(v2(x))@x!(x)dx =1jvj2 1;! +2kvk2 ! 1 2 Z I v2(x)@2 x!(x)dx 1jvj2 1;! +  2 1 2 d;3  kvk2 !: (2.39) This lemma indicates that if2 > 1 2d;3; then kjvkj1;! := q a() ! (v;v) is a norm for the space H1 0;!(I). Next, we set V0 N; =H1 0;!(I) \ VN; and de ne the orthogonal projector P 1;0 N; : H1 0;!(I) ! V0 N; by a() ! (P 1;0 N;v v; ) = 0 8 2 V0 N;:(2.40) 334 JIE SHEN AND LI-LIAN WANG Theorem 2.3. If 2 > 1 2d;3; then for any v 2H1 0;!(I) \Br (I);  2D; and r  1; kjP 1;0 N;v vkj1;! . ( 1 2 1 (d;1 + 1)(d;2 + 1) 1 2 + 1 2 2N 1)N1rjvjBr  ;(2.41) where d;i;i = 1; 2; 3; are the same as before. Proof. By the projection theorem, (2.33), and (2.35), kjP 1;0 N;v vkj2 1;! = inf 2V0 N; kj vkj2 1;! 1(d;2 + 1)j vj1;! k vk1;! +2k vk2 ! 1(d;1 + 1)2(d;2 + 1)k Vk2 1 +2k Vk2: (2.42) Let bP 1;0 N be the H1 0(I)-orthogonal projection as in Lemma 2.2. Hence, by taking (x) = (y) = bP 1;0 N V(y) in (2.42), where bP 1;0 N is de ned in (2.11), we can obtain the desired result thanks to Lemma 2.2. 2.3. Mapped Legendre pseudospectral approximations. In this subsec- tion, we consider the interpolation operator based on the mapped Legendre{Gauss{ Lobatto (MLGL) points. Let fN;jgN j=0 and f!N;jgN j=0 be the LGL points and weights. The MLGL points and weights are de ned by () N;j =g(N;j;); !() N;j =!N;j; 0 j N;  2D:(2.43) It is clear that () N;0 = 1 and () N;N = 1, and thanks to (2.14), Z I (x)!(x)dx = Z I (g(y;))dy = NX j=0 (() N;j)!() N;j 8 2 V2N 1;:(2.44) Let the discrete inner product and discrete norm be de ned as (u;v)!;N = NX j=0 u(() N;j)v(() N;j)!() N;j; kvk!;N = (v;v) 1 2 !;N: We have from (2.16) that k k!  k k!;N   2 + 1 N  1 2 k k! 8 2 VN;:(2.45) Let IN;v be the interpolation of v(x) in VN; at points () N;j. We rst establish a result on the stability of IN;. Lemma 2.4. For any v 2L2 !(I) \H1 ~!(I) and  2D; kIN;vk! . kvk! +N 1(jv(1)j + jv(1)j + jvj1;~!):(2.46) Proof. By (2.15), (2.43), and (2.45), kIN;vk2 !  kIN;vk2 !;N = 2 N(N + 1)(v2(1) +v2(1)) + N 1X j=1 v2(() N;j)!() N;j = 2 N(N + 1)(v2(1) +v2(1)) + N 1X j=1 V 2  (N;j)!N;j: (2.47) MAPPED LEGENDRE METHODS 335 Thanks to (2.17), we have from (2.24) that N 1X j=1 V 2  (N;j)!N;j  kVk2 N . kVk2 +N 2k@yVk2 !1;1 . kvk2 ! +N 2jvj2 1;~!: (2.48) This completes the proof. Remark 2.1. For the treatment of nonlinear problems, we often need to estimate the terms such as IN; with 2 V0 M;;M >N: By the formula (5.9) in [5], we have the following inverse inequality: j j1;~! = jj1;!1;1  p 2N kk = p 2N k k! 8 2 VN;:(2.49) So we obtain from (2.46) that for any 2 V0 M; and 2 V0 L;; kIN; k! . k k! +N 1j j1;~! .  1 + M N  k k!:(2.50) On the other hand, by (2.45), j( ; )!;N j = j(IN; ; IN; )!;N j  kIN; k!;N kIN; k!;N   2 + 1 N  kIN; k! kIN; k! .  1 + M N  1 + L N  k k! k k!: (2.51) The following is the main result on the MLGL interpolation. Theorem 2.4. For any v 2Ar (I);  2D, and r> 1; k@x(IN;v v)k~! +N kIN;v vk! .N1rjvjAr  :(2.52) Proof. By (2.27), (2.28), and (2.46), kIN;v PN;vk! = kIN;(PN;v v)k! . kPN;v vk! +N 1(jPN;v(1) v(1)j + jPN;v(1) v(1)j + k@x(PN;v v)k~!) .N rjvjAr  : (2.53) Due to (2.49), we obtain from (2.53) that jIN;v PN;vj1;~! .N kIN;v PN;vk! .N1rjvjAr  : We then derive from (2.27) that jIN;v vj1;~! +N kIN;v vk!  jIN;v PN;vj1;~! +N kIN;v PN;vk! + jPN;v vj1;~! +N kPN;v vk! .N1rjvjAr  : Remark 2.2. As a direct consequence, we can estimate the di erence between the continuous and discrete inner products. In fact, we deduce from (2.27), (2.44), (2.45), and (2.52) that for any v 2Ar (I) and 2 VN; with r> 1 and  2D; j(v; )! (v; )!;N j  j(v; )! (PN 1;v;v)! j + j(PN 1;v; )!;N (IN;v; )!;N j  kPN 1;v vk! k k! + kPN 1;v IN;vk!;N k k!;N .N rjvjAr  k k!: (2.54) 336 JIE SHEN AND LI-LIAN WANG 3. The upper bounds of jvjAr  and jvjBr  . In this section, we provide upper bounds of jvjAr  and jvjBr  in terms of derivatives ofv(x) for the mappings (1.3){(1.5). We also derive explicit bounds on the positive constants d;i (i = 1; 2; 3) de ned in the previous section. These bounds provide, in particular, explicit information on how the mapping parameters a ect the accuracy of the mapped Legendre approximation. 3.1. The mapping (1:3). In this case, we haveD = (0; 1): The inverse of the mapping (1.3) is y =h(x;) = sin(ax)  ; a = arcsin;  2 (0; 1):(3.1) Moreover, !(x) = dy dx = a  cos(ax) = dx dy 1 = a  p 1 2y2:(3.2) Since a ! as  ! 0;  a is uniformly bounded for  2 (0; 1): For clarity, let Ql(y;) be a polynomial of degree l with respect to y: Then for any integer k  1; dkx dyk =  a k1X j=0 k 1 j  (1 y) 1 2 (j) (1 +y) 1 2 (kj1) = k1X j=0 Ek j ()(1 y) 1 2 j(1 +y) 1 2+jk = (1 2y2) 1 2 k k1X j=0 Ek j ()(1 y)k1j(1 +y)j = (1 2y2) 1 2 kQk1(y;); (3.3) where Ek j () is a constant in terms of j;k; and : By direct calculations, @yV(y) =@xv(x)dx dy = (1 2y2) 1 2Q0(y;)@xv(x); @2 yV(y) =@2 xv(x) dx dy 2 +@xv(x)d2x dy2 = (1 2y2)1Q0(y;)@2 xv(x) + (1 2y2) 3 2Q1(y;)@xv(x); @3 yV(y) =@3 xv(x) dx dy 3 + 3@2 xv(x)dx dy d2x dy2 +@xv(x)d3x dy3 = (1 2y2) 3 2Q0(y;)@3 xv(x) + (1 2y2)2Q1(y;)@2 xv(x) + (1 2y2) 5 2Q2(y;)@xv(x): (3.4) Thus an induction argument leads to @k yV(y) = kX j=1 (1 2y2) j 2 kQkj(y;)@j xv(x); k  1;(3.5) where Ql(y;) (0 l k) are uniformly bounded for all y 2 I and  2 (0; 1): Then, by the de nition of jvjAr  ; we derive from (3.5) that for r  1; jvj2 Ar  = k@r yVk2 !r;r . rX j=1 Z I (1 2y2)j2r(1 y2)r(@j xv(x))2!(x)dx;(3.6) MAPPED LEGENDRE METHODS 337 wherey =g(x;) 2 I: Since 1 y2  1 2y2 andA0 (I) =L2 !(I); we conclude that jvjAr  . (1 2) 1 2 r 2 kvkr;!; r  0;  2 (0; 1):(3.7) Similarly, we derive from by the de nition of Br (I) that jvjBr  . (1 2) r 2 kvkr;!; r  1;  2 (0; 1):(3.8) Next, we derive from (3.1) and (3.2) that the values of d;i; 1 i  3; in (2.32), (2.35), and (2.38) are d;1 = a ; d;2 = ap 1 2; d;3 = a2:(3.9) In summary, we have proved the following results. Corollary 3.1. For any v 2H r !(I);  2 (0; 1), and r  1; k@x(PN;v v)k~! +N kPN;v vk! . (1 2) 1 2 r 2N1rkvkr;!;(3.10) kP 1 N;v vk1;! . (1 2) r 2N1rkvkr;!;(3.11) and for r> 1; k@x(IN;v v)k~! +N kIN;v vk! . (1 2) 1 2 r 2N1rkvkr;!:(3.12) If 1;2 > 0 and v 2H1 0;!(I) \H r !(I) with r  1; then kjP 1;0 N;v vjk1;! . ( 1 2 1 (1 2) 1 4 + 1 2 2N 1)(1 2) r 2N1rkvkr;!:(3.13) Remark 3.1. For  = 0; (1.3) becomes the identity map. So we obtain the same results as in the standard Legendre case, i.e., jvjAr  . k(1 x2) r 2@r xvk; jvjBr  . k(1 x2) r1 2 @r xvk;  ! 0: Remark 3.2. For  = 1; (1.3) becomes y = sin(x=2). This mapping has singu- larities at x = 1, and therefore, (3.7){(3.8) are no longer valid. However, we nd from (3.1), (3.2), and (3.6) that jvjAr 1 . rX j=1 Z I (1 y2)jr(@j xv(x))2!(x)dx ! 1 2 . rX j=1 Z I (1 x2)jr+ 1 2 (@j xv(x))2dx ! 1 2 : This implies that jvjAr 1 is bounded if v 2H r(I) and for some < 1, (1 x2)jr+ 1 2 (@j xv(x))2 . 1 (1 x2) as jxj ! 1; 1 j r:(3.14) In particular, one can verify that (3.14) is satis ed if @j xv(1) = 0; 1 j r 2; v 2H r(I):(3.15) 338 JIE SHEN AND LI-LIAN WANG Indeed, by the Hardy's inequality (see [12]), we have that for < 1; Z I u2(x)(1 x2) 1dx . Z I u2(x)(1 x2) 2dx . Z I (@xu(x))2(1 x2) dx; provided thatu(1) = 0 and the right-hand side of the inequality is nite. Using this equality and the condition (3.15), we have for 1 j r 2; Z I (@j xv(x))2 (1 x2)jr+ 1 2dx . Z I (@j+1 x v(x))2(1 x2)jr+ 3 2dx .    . Z I (@r1 x v(x))2(1 x2) 1 2dx: Then, by the inequality (13.5) in [5], we have that for > 1; Z I u2(x)(1 x2) 2dx . Z I ((@xu(x))2 +u2(x))(1 x2) dx; which implies that Z I (@r1 x v(x))2(1 x2) 1 2dx . Z I ((@r xv(x))2 + (@r1 x v(x))2)(1 x2) 3 2dx: A combination of the above estimates show that under the condition (3.15), we have jvjAr 1 . (k(1 x2) 3 4@r1 x vk + k(1 x2) 1 4@r xvk):(3.16) Similar results can also be derived for jvjBr 1: The estimates indicate, in particular, that, for the mapping (1.3) with = 1, the convergence rate of the mapped Legendre method is of orderr if (3.15) is satis ed. In particular, only a second-order convergence rate can be expected if the function does not vanish at the end-points. Remark 3.3. If the parameter  was chosen as (cf. [1] and [10])  =(N;) = sech  j lnj N  = 2 1=N +1=N  1 1 2(ln2)N 2 for N 1;(3.17) where  is the desired accuracy, then we nd from (3.7) and (3.8) that for any v 2 H r !(I); jvjAr   (j lnj)1rN r1; jvjBr   (j lnj)rN r; which, along with Corollary 3.1, implies that kPN;v vk!  j lnj1rN 1; kP 1 N;v vk1;!  j lnjrN: Thus a lower order (< r) of accuracy is expected by choosing (3.17), except when  and N are such that  . exp( N); > 0: 3.2. The mapping (1:4). In this case, D = f j > 0g; and (1.4) is y =h(x;) = (4=) arctan( tan((x 1)=4)) + 1; > 0;(3.18) !(x) = dy dx =  1 + (2 1) sin2((x 1)=4):(3.19) MAPPED LEGENDRE METHODS 339 In particular, h(x;) =x and !(x) = 1 for  = 1: Let us denote C = ( 1; 0<  1; ; > 1; C1 = ( 1; 0<  1; 2; > 1; C2 = ( 2; 0<  1; 1; > 1: We have C1; C2  1 for > 0; and by (3.19), dx dy = (cos2((x 1)=4) +2 sin2((x 1)=4))= =C(C1 cos2((x 1)=4) +C2 sin2((x 1)=4)): (3.20) We set Tl = spanfcos(k(x 1)=4); sin(k(x 1)=4); 1 k lg; l 2 N: For j  1; we denote by Tk;j(x) some functions in Tl with coecients in terms of C1 and C2: Then, by (3.18) and (3.20), @yV(y) =@xv(x)dx dy =CT2;1(x)@xv(x); @2 yV(y) = d(@yV(y)) dx dx dy =C2 (T4;2(x)@2 xv(x) +T4;1(x)@xv(x)): Hence, by an induction argument, we nd that for k  1; @k yV(y) =C k  kX j=1 Tk;j(x)@j xv(x);(3.21) where Tk;j(x) (1 j k) are uniformly bounded for all x 2 I and > 0: Let !(r)  (x) :=!(x)(1 y2)r =!(x)(1 h2(x;))r (.!(x); x 2I; > 0): By (3.18) and (3.20), lim x!1 1 h(x;) 1 x =; lim x!1 1 +h(x;) 1 +x =1: By virtue of (3.21) and the de nitions of jvjAr  and jvjBr  ; we derive that jvjAr  .C r kvkr;!(r)  ; jvjBr  C r kvkr;!(r1)  ; > 0:(3.22) Next, we deduce from (3.18){(3.20) that the values of the constantsd;i; 1 i  3; are d;1 =C; d;2 = =4j2 1k sin((x 1)=2)j cos2((x 1)=4) +2 sin2((x 1)=4)  j2 1j 4 ; d;3 = 8 > > > > > > < > > > > > > : maxf 2 8 (1 2);S(z0)g if 0< e0; 2 8 (1 2) if e0 <  1; 2(21) 82 if 1< e1; maxf 2(21) 82 ;S(z0)g if >e1; (3.23) 340 JIE SHEN AND LI-LIAN WANG where e0 = q p 975 6 ;e1 = q 5 3;z0 = 523 3(14); and S(z) = 2b(2bz2 + (3b 2)z + 1) 8(1 bz)2 ; with b = 1 2: The estimate ond;2 is derived using a simple inequalitya2 +b2  2ab. The estimate on d;3 is nontrivial and its derivation is given in Appendix A. In summary, we obtained the following approximation results for mapping (1.4). Corollary 3.2. For any v 2H r !(r)  (I);  2 (0; 1), and r  1; k@x(PN;v v)k~! +N kPN;v vk! .C r N1rkvkr;!(r)  ;(3.24) and for r> 1; k@x(IN;v v)k~! +N kIN;v vk! .C r N1rkvkr;!(r)  ;(3.25) while for any v 2H r !(r1)  (I) and r  1; kP 1 N;v vk1;! .C r+1  N1rkvkr;!(r1)  :(3.26) If, in addition, 2 > 1 2d;3 and v 2H1 0;!(I); then jjjP 1;0 N;v vjjj1;! . ( 1 2 1 (d;1 + 1)(d;2 + 1) 1 2 + 1 2 2N 1)N1rkvkr;!(r1)  ;(3.27) where d;i;i = 1; 2; 3 are given in (3.23). 3.3. The mapping (1:5). In this case,  = (1;2) and D = f(1;2) j 1 > 0; 1 2 < 1g: The mapping (1.5) is explicitly invertible: y =h(x;) =a0 + arctan(1(x 2))=a1:(3.28) The values of a0 and a1 are a0 =a0() = 1 2 1 +2 ; a1 =a1() = 1 +2 2 ;(3.29) where 1 = arctan(1(1 +2)); 2 = arctan(1(1 2)):(3.30) With the above choice, we nd that 1 a0 < 1; 0<a1 <  2:(3.31) The weight functions are !(x) = dy dx = 1 a1(1 +2 1(x 2)2) = dx dy 1 = 1 a1 cos2(a1(y a0));(3.32) ~!(x) =a1 1 1 1 (1 q(x;))(2 +q(x;))(1 +2 1(x 2)2);(3.33) MAPPED LEGENDRE METHODS 341 where q(x;) = arctan(1(x 2)): For simplicity, we rewrite (3.32) as dx dy = a1(1 + 1)2 1 1 (1 + 1)2 + 2 1 (1 + 1)2 (x 2)2 ! :=C(D1 +D2(x 2)2): (3.34) Since a1 !1 as 1 ! 0; we have that for all  2D; C .1 + 1; 0<C 1  ;D1;D2  1:(3.35) Let us denote by Ql(x 2) a polynomial of degree l with respect to x 2 with coecients in terms of D1;D2, and C 1  : Then, by (3.28) and (3.34), @yV(y) =@xv(x)dx dy =CQ2(x 2)@xv(x); @2 yV(y) = d(@yV(y)) dx dx dy =C2 (Q4(x 2)@2 xv(x) +Q3(x 2)@xv(x)): Hence, by an induction argument, we nd that for k  1; @k yV(y) =C k  kX j=1 Qk+j(x 2)@j xv(x);(3.36) whereQk+j(x 2) (1 j k) are uniformly bounded for allx 2 I and 2D: Let us denote S(x;r) := (1 y2)r = 1 a2r 1  2 arctan(1(x 2)) r 1 + arctan(1(x 2)) r : (3.37) We have S(x;r)  1; and lim x!1 2 arctan(1(x 2)) 1 x = 1 1 +2 1(1 2)2; lim x!1 1 + arctan(1(x 2)) 1 +x = 1 1 +2 1(1 +2)2: Consequently, lim jxj!1 S(x;r) =Gr (1 x2)r with G = 2 1 a2r 1 (1 +2 1(1 2)2)(1 +2 1(1 +2)2): (3.38) Next, let $(r)  (x) :=!(x)S(x;r) .!(x); x 2I;  2D: By the de nition of jvjAr  and (3.35), jvjAr  . (1 + 1)rkvkr;$(r)  ; r  0;  2D:(3.39) 342 JIE SHEN AND LI-LIAN WANG Similarly, we deduce that jvjBr  . (1 + 1)rkvkr;$(r1)  ; r  1;  2D:(3.40) Remark 3.4. We nd from (3.28){(3.30) and (3.32) that a0 !2; a1 ! 1; h(x;) !x; !(x) ! 1; as 1 ! 0: So we have the same estimate as for the standard Legendre case: jvjAr  . k(1 x) r 2@r xvk; jvjBr  . k(1 x) r1 2 @r xvk: Remark 3.5. We observe from the derivation of (3.36) that if the function v possesses certain special properties as speci ed below, more precise estimates can be derived. For instance, if the rapid variational region ofv(x) is contained inO"(2) := (2 ";2 +") for some "> 0, we can assume sup x2I j@j xv(x)j (")C r  ; 0 j r; where I" = I nO"(2); and (") is a small positive number corresponding to ". Then jvjAr  .  (") +ar 1r 1 (1 +2 1"2)rkvkH r !(r)  (O"(2))  : In particular, if suppf@j xv(x)g  O"(2)  [1; 1]; 0 j r; then we have jvjAr  .  ar 1r 1 (1 +2 1"2)rkvkH r !(r)  (O"(2))  : The above analysis is also valid for jvjBr  : Next, we compute the values of d;i;i = 1; 2; 3: Using (3.28) and (3.32) yields d;1 =a11 1 ; d;2 = max x2I 22 1jx 2j 1 +2 1(x 2)2 1; d;3  3 22 1:(3.41) The derivation of d;3 is a little complicated, so we defer it to Appendix B. A combination of Theorems 2.1{2.4 and the above estimates leads to the following approximation results. Corollary 3.3. For any v 2H r $(r)  (I);  2D, and r  1; k@x(PN;v v)k~! +N kPN;v vk! . (1 + 1)rN1rkvkr;$(r)  ;(3.42) and for r> 1; k@x(IN;v v)k~! +N kIN;v vk! . (1 + 1)rN1rkvkr;$(r)  ;(3.43) while for any v 2H r $(r1)  (I) and r  1; kP 1 N;v vk1;! . (1 + 1)rN1rkvkr;$(r1)  :(3.44) If, in addition, 2 > 1 2d;3 and v 2H1 0;!(I); then jjjP 1;0 N;v vjjj1;! . ( 1 2 1 (d;1 + 1)(d;2 + 1) 1 2 + 1 2 2N 1)N1rkvkr;$(r1)  ;(3.45) where d;i;i = 1; 2; 3, are given in (3.41). MAPPED LEGENDRE METHODS 343 3.4. Some other mappings. We consider here several useful mappings which do not quite t into our framework. Let us consider rst the mapping C(s) = (1 b)sinh(s) sinh() +btanh((s + 1=2)) tanh(=2) 2tanh(=2) ; s 2 [1; 0];(3.46) which was rst introduced by Song and Haidvogel [26] as part of the so-called s- coordinates in their ocean circulation model. The two parameters 0    20 and 0 b  1 are used to t the surface and bottom topography. In order to apply our general framework, we set s = y1 2 , x = 2C(s) + 1, 1 =, and 2 =b in (3.46) to get x =g(y;) = 2(1 2)sinh(1(y 1)=2) sinh(1) +2 tanh(1y=2) tanh(1=2) tanh(1=2) + 1; y 2 [1; 1]; 1  0; 0 2  1: (3.47) Clearly, it maps the interval [1; 1] univalently onto itself withg(1;) = 1; and it is an identity mapping when1 = 0: However, this mapping is not explicitly invertible. For simplicity, we consider only the special case 2 = 0 and denote  := 1: In this case, the weight function is !(x) = dx dy 1 = sinh  sech((y 1)=2)> 0; x;y 2I; > 0:(3.48) One can verify readily that tanh  !(x)  sinh  ; x 2I; > 0: To estimate the corresponding upper bounds of jvjAr  and jvjBr  (cf. section 2), we can follow the same procedure as for the mapping (1.3). Since dkxdyk = 2 sinh  2 k ( sinh((y 1)=2) if k is even; cosh((y 1)=2) if k is odd; we nd dkx dyk .kcoth; x 2 I; > 0; k  1: As in the derivations of (3.4){(3.6), we obtain that for any v 2H r !(I); jvjAr  ; jvjBr  .r(coth)rjjvjjr;!:(3.49) In view of the facts coth 1 if  1; coth  1 if  1; we conclude that for small; this mapping is close to the identity mapping, while for large ; an extra factor r appears in the error estimates. 344 JIE SHEN AND LI-LIAN WANG The mapping techniques have been successfully used in spectral methods to re- solve boundary layers. For instance, the following mapping is used in [21] and [22]: x =g(y;m) = 1 +m Z y 1 (1 t2)mdt; with m = 2 .Z 1 1 (1 y2)mdy; m 2 N: (3.50) Clearly, we have g(1;m) = 1; and !m(x) =1 m (1 y2)m; x;y 2I:(3.51) As m increases, more and more Gauss-type collocation points are clustered near the end-points 1 so it is suitable for resolving very thin boundary layers. However, the mapping is singular at the end-points, which implies in particular thatd;1 = 1. The same is true for the iterated mappings introduced by Tang and Trummer [27], x0 =y; xm = sin  2xm1  ; m  1;(3.52) which are very e ective mappings for problems with thin boundary layers. Hence we cannot directly apply our general framework to these mappings. Although it is possible to derive some special estimates as we did in Remark 3.2, the computations would be very tedious. However, we shall consider in a forthcoming paper the mapped Jacobi method in which we will be able to handle mappings with singularities at the end-points. 4. The mapped Legendre methods for a model equation. To illustrate how the results we developed in previous sections can be applied to analyze the mapped Legendre spectral and pseudospectral methods for PDEs, we consider the following model equation: ( "@2 xu(x) +u(x) =f(x); x 2I; u(1) = 0: (4.1) Let 1 = " and 2 = 1 and !(x); a() ! (; ) be the same as in section 2. A weighted variational formulation for (4.1) is to nd u 2H1 0;!(I) such that a() ! (u;v) = (f;v)! 8v 2H1 0;!(I):(4.2) It is clear from Lemma 2.3 that, if "d;3 < 2 and f 2L2 !(I); (4.2) admits a unique solution. 4.1. Error estimates. The mapped Legendre spectral approximation for (4.2) is to nd uN 2 V0 N; such that a() ! (uN;vN) = (f;vN)! 8vN 2 V0 N;:(4.3) Let P 1;0 N; be the projector as in Theorem 2.3. Then, by (2.40), (4.2), and (4.3), a() ! (u uN;vN) =a() ! (P 1;0 N;u uN;vN) = 0 8vN 2 V0 N;: As a consequence of Theorem 2.3, we have the following theorem. MAPPED LEGENDRE METHODS 345 Theorem 4.1. Let u and uN be, respectively, the solutions of (4.2) and (4.3). If "d;3 < 2; u 2H1 0;!(I) \Br (I);  2D, and r  1; then jjju uN jjj1;! . (" 1 2 (d;1 + 1)(d;2 + 1) 1 2 +N 1)N1rjujBr  ;(4.4) where d;i;i = 1; 2; 3; are the same as in Theorem 2.3. For the mappings (1.3){(1.5), the upper bound of jujBr  and the values of d;i;i = 1; 2; 3; are given in section 3. Unlike in the standard Legendre{Galerkin method, where the linear system can be made sparse by choosing suitable basis functions [24], the linear system associated to (4.3) is in general full (unless a very special mapping is used), and furthermore, it is very costly to evaluate the entries of the linear system. Hence it is often convenient to use the mapped Legendre collocation method: nd uN 2 V0 N; such that "@2 xuN(() N;j) +uN(() N;j) =f(() N;j); 1 j N 1;(4.5) where f() N;jgN j=0 are the mapped LGL points de ned in (2.43). Taking the discrete inner product of (4.5) with any vN 2 V0 N;; thanks to (2.44), we nd that (4.5) is equivalent to the following: nd uN 2 V0 N; such that "(@xuN;@x(!vN)) + (uN;vN)!;N = (f;vN)!;N 8vN 2 V0 N;:(4.6) We note that the linear system associated with the above formulation is full and ill conditioned. However, as demonstrated in [24, 25], it can be eciently solved by using a preconditioned conjugate gradient{type iterative method with the standard Legendre{Galerkin method for (4.1) as a preconditioner. Note that with the collo- cation approach, there is no additional cost involved if the original PDE (4.1) has variable coecients. Theorem 4.2. Let u and uN be, respectively, the solutions of (4.2) and (4.6). If "d;3 < 2; u 2H1 0;!(I) \Br (I), and f 2As (I); 2D with r  1 and s> 1; then jjju uN jjj1;! . (" 1 2 (d;1 + 1)(d;2 + 1) 1 2 +N 1)N1rjujBr  +N sjf jAs  ;(4.7) where d;i;i = 1; 2; 3; are the same as in Theorem 2.3. For the mappings (1.3){(1.5), the upper bounds of jujBr  ; jf jAs  and the values of d;i;i = 1; 2; 3; are given in section 3. Proof. Let UN =P 1;0 N;u and ^eN =UN uN: Then by (2.40), (4.2), and (4.6), "(@x^eN;@x(!vN)) + (^eN;vN)!;N = (UN;vN)!;N (UN;vN)! +(f;vN)! (f;vN)!;N 8vN 2 V0 N;: (4.8) Taking vN = ^eN in (4.8), we have from (2.45) that a()  (^eN; ^eN) "(@x^eN;@x(!^eN)) + k^eN k2 !;N  j(UN; ^eN)!;N (UN; ^eN)! j + j(f; ^eN)! (f; ^eN)!;N j: (4.9) By Remark 2.3, j(f; ^eN)! (f; ^eN)!;N j .N sjf jAs  k^eN k!: 346 JIE SHEN AND LI-LIAN WANG −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 10 1 2 3 4 5 6 ζ64,j and ξ64,j (λ) Mapping (1.5) (λ1=16,λ2=0) Mapping (1.4) (λ=10) Mapping (1.4) (λ=0.1) Mapping (1.3) (λ=0.99) LGL nodes Fig. 1. LGL vs. MLGL points. 0.9 0.91 0.92 0.93 0.94 0.95 0.96 0.97 0.98 0.99 1 10 −14 10 −12 10 −10 10 −8 10 −6 10 −4 10 −2 10 0 λ Errors Fig. 2. Errors for mapping (1.3). Moreover, by (2.44), (2.45), and Theorem 2.3, j(UN; ^eN)!;N (UN; ^eN)! j  j(UN P 1;0 N 1;u; ^eN)!;N j + j(UN P 1;0 N 1;u; ^eN)! j . kUN P 1;0 N 1;uk! keN k! . (jjjUN ujjj1;! + jjjP 1;0 N 1;u ujjj1;!)k^eN k! . (" 1 2 (d;1 + 1)(d;2 + 1) 1 2 +N 1)N1rjujBr  k^eN k!: The desired results follow from the above estimates. 4.2. Numerical results. We now present some numerical results with emphasis on how the accuracy depends on the choice of the parameters in the mappings (1.3){ (1.5). We rst illustrate the e ects of the parameters on the distributions of the MLGL points. In Figure 1, we plot the LGL points vs. the MLGL points (N = 64) with several typical parameters. It is clear that the mapping (1.3) stretches the grid evenly as  ! 1; the mapping (1.4) clusters the points to x = 1 (resp., x = 1) for  < 1 (resp., > 1); and the mapping (1.5) clusters the points to x =2 for 1 > 1: Example 1. We consider (4.1) with the exact solution u(x) = e(1+x)=p" e(1+x)=p" e2=p" e2=p" 1 +x 2 : This solution exhibits a boundary layer of width O(p") at x = 1. We rst take" = 0:1 so the solution is smoothly varying throughout the domain. We use (4.5) with the mapping (1.3) and N = 100 to approximate (4.1). In Figure 2, we plot the maximum absolute errors between u and uN at the MLGL points with  2 [0:9; 1]: We see that the error increases very quickly as  ! 1; which is in agreement with the theoretic analysis in Corollary 3.1 and Theorem 4.2. Hence it is not advisable to use mapping (1.3) with  close to 1. Next we take " = 108 so the solution has a thin boundary layer at x = 1, and we use (4.5) with the mapping (1.4) and N = 100 to approximate (4.1). We plot in Figure 3 the errors with  2 [20; 200]: The results indicate that the errors grow as  increases, as predicted by Corollary 3.2 and Theorem 4.2. Example 2. We take u(x) = tanh(ax) with a = 150. This solution has a large derivative at x = 0; see Figure 4. We use (4.5) with mapping (1.5) and N = 100. In MAPPED LEGENDRE METHODS 347 20 40 60 80 100 120 140 160 180 200 10 −13 10 −12 10 −11 10 −10 10 −9 10 −8 10 −7 10 −6 λ Errors Fig. 3. Errors for mapping (1.4). −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1 −1.1 −0.9 −0.7 −0.5 −0.3 −0.1 0.1 0.3 0.5 0.7 0.9 1.1 x u(x) Fig. 4. Solution in Example 2. 0 10 20 30 40 50 60 70 80 90 100 10 −12 10 −10 10 −8 10 −6 10 −4 10 −2 10 0 λ1 Errors −0.2 −0.15 −0.1 −0.05 0 0.05 0.1 0.15 0.2 10 −12 10 −10 10 −8 10 −6 10 −4 10 −2 10 0 10 2 λ2 Errors Fig. 5. Errors for mapping (1.5) with 2 = 0 and various 1 (left), and with 1 = 51 and various 2 (right). Figure 5, we plot the maximum absolute errors at the MLGL points with2 = 0 and various1 (left panel) and with1 = 51 and di erent2 (right panel). Note that the accuracy is very sensitive to the choice of the parameter 2; which should be at the location of large variation, but less sensitive to the values of1, which represents the intensity of the mapping at x = 2. Again, the numerical results are in agreement with Corollary 3.3 and Theorem 4.2. 5. Concluding remarks. We presented a general framework for analyzing the approximation properties of mapped Legendre polynomials and of interpolations based on MLGL points and derived optimal error estimates for general mappings. More precisely, we introduced a new family of orthogonal functions which are obtained by applying the mapping to Legendre polynomials, and we analyzed various projection and interpolation operators based on these mapped Legendre functions. As an application of our general results, we considered the popular mappings (1.3){(1.5) introduced in [20, 3, 4] and derived error estimates featuring explicit ex- pressions on the mapping parameters. We used a model equation to show that these results not only play an important role in numerical analysis of mapped Legendre spectral and pseudospectral methods for di erential equations but also provide quan- titative criteria for the choice of parameters in these mappings. This paper is a rst step toward a long-term goal of designing a robust adaptive spectral method for solving PDEs. 348 JIE SHEN AND LI-LIAN WANG Appendix A. The derivation of d;3 in (3:23). For = 1; we haved;3  0: We next consider  6= 1: For simplicity, let z = sin2((x 1)=4) and b = 1 2: By (3.19) and a direct calculation, we nd that S(z) :=!1  (x)@2 x!(x) = 2b(2bz2 + (3b 2)z + 1) 8(1 bz)2 and S0 (z) = 2b(3b(b 2)z + 5b 2) 8(1 bz)3 : Let us denote z0 = 5b 2 3b(b 2) = 52 3 3(1 4); e0 = s p 97 5 6 ; e1 = r 5 3: We nd that if 0< e0 or  e1; then jz0j  1: Hence d;3 = max z2[0;1] S(z) = maxfS(0);S(z0);S(1)g = 8 > > > > > > < > > > > > > : maxf 2 8 (1 2);S(z0)g if 0< e0; 2 8 (1 2) if e0 <  1; 2(21) 82 if 1< e1; maxf 2(21) 82 ;S(z0)g if >e1: Appendix B. The derivation of d;3 in (3:41). By (3.28), (3.32), and a direct calculation, we nd W(x) :=!1  (x)@2 x!(x) = 22 1(32 1(x 2)2 1) (1 +2 1(x 2)2)2 and @xW(x) = 42 1(x 2)(5 32 1(x 2)2) (1 +2 1(x 2)2)3 : Clearly,W(2) = 22 1; and ifx is such that2 1(x 2)2 = 5 3; we haveW(x) = 9 82 1: Hence W(2) W(1) = 22 1(32 1(1 2)2 1) (1 +2 1(1 2)2)2  62 1  1j  1 2j 1 +2 1(1 2)2 2  3 22 1: Therefore, 22 1 W(x)  3 22 1; x 2 I: This completes the proof. MAPPED LEGENDRE METHODS 349 REFERENCES [1] M. R. Abril-Raymundo and B. Garci-Archilla, Approximation properties of a mapped Chebyshev method, Appl. Numer. Math., 32 (2000), pp. 119{136. [2] I. Babuska and B. Guo, Optimal estimates for lower and upper bounds of approximation errors in the p-version of the nite element method in two dimensions, Numer. Math., 85 (2000), pp. 219{255. [3] A. Bayliss, D. Gottlieb, B. J. Matkowsky, and M. Minkoff, An adaptive pseudospectral method for reaction di usion problems, J. Comput. Phys., 81 (1989), pp. 421{443. [4] A. Bayliss and E. Turkel, Mappings and accuracy for Chebyshev pseudo-spectral approxi- mations, J. Comput. Phys., 101 (1992), pp. 349{359. [5] C. Bernardi and Y. Maday, Spectral method, in Handbook of Numerical Analysis Vol. 5, Handb. Numer. Anal. 5, P. G. Ciarlet and L. L. Lions, eds., North{Holland, Amsterdam, 1997, pp. 209{485. [6] J. P. Boyd, Orthogonal rational functions on a semi-in nite interval, J. Comput. Phys., 70 (1987), pp. 63{88. [7] J. P. Boyd, Chebyshev and Fourier Spectral Methods, 2nd ed., Dover Publications, Mineola, NY, 2001. [8] C. Canuto, M. Y. Hussaini, A. Quarteroni, and T. A. Zang, Spectral Methods in Fluid Dynamics, Springer-Verlag, New York, 1987. [9] P. G. Dinesen, J. S. Hesthaven, and J. P. Lynov, A pseudospectral collocation time-domain method for di ractive optics, in Proceedings of the Fourth International Conference on Spectral and High Order Methods (Herzliya, 1998), Appl. Numer. Math., 33 (2000), pp. 199{206. [10] W. S. Don and D. Gottlieb, Spectral simulation of supersonic reactive ows, SIAM J. Numer. Anal., 35 (1998), pp. 2370{2384. [11] D. Funaro, Polynomial Approximations of Di erential Equations, Springer-Verlag, New York, 1992. [12] J. E. Littlewood, G. H. Hardy, and G. Polya, Inequalities, Cambridge University Press, Cambridge, UK, 1952. [13] D. Gottlieb and S. A. Orszag, Numerical Analysis of Spectral Methods: Theory and Appli- cations, CBMS-NSF Regional Conf. Ser. in Appl. Math. 26, SIAM, Philadelphia, 1977. [14] C. E. Grosch and S. A. Orszag, Numerical solution of problems in unbounded regions: Coordinates transforms, J. Comput. Phys., 25 (1977), pp. 273{296. [15] B.-Y. Guo and L. L. Wang, Jacobi interpolation approximations and their applications to singular di erential equations, Adv. Comput. Math., 14 (2001), pp. 227{276. [16] B.-Y. Guo, J. Shen, and Z.-Q. Wang, Chebyshev rational spectral and pseudospectral methods on a semi-in nite interval, Internat. J. Numer. Methods Engrg., 53 (2002), pp. 65{84. [17] B.-Y. Guo, Jacobi approximations in certain Hilbert spaces and their applications to singular di erential equations, J. Math. Anal. Appl., 243 (2000), pp. 373{408. [18] B.-Y. Guo, J. Shen, and Z.-Q. Wang, A rational approximation and its applications to di erential equations on the half line, J. Sci. Comput., 15 (2000), pp. 117{147. [19] B.-Y. Guo and L.-L. Wang, Jacobi approximations in certain Besov spaces, J. Approx. Theory, submitted. [20] D. Kosloff and H. Tal-Ezer, A modi ed Chebyshev pseudospectral method with an o(n1) time step restriction, J. Comput. Phys., 104 (1993), pp. 457{469. [21] W. B. Liu and J. Shen, A new ecient spectral-Galerkin method for singular perturbation problems, J. Sci. Comput., 11 (1996), pp. 411{437. [22] W. B. Liu and T. Tang, Error analysis for a Galerkin spectral method with coordinate trans- formation for solving singularly perturbed problems, Appl. Numer. Math., 38 (2001), pp. 315{345. [23] J. L. Mead and R. A. Renaut, Accuracy, resolution, and stability properties of a modi ed Chebyshev method, SIAM J. Sci. Comput., 24 (2002), pp. 143{160. [24] J. Shen, Ecient spectral-Galerkin method I. Direct solvers of second- and fourth-order equa- tions using Legendre polynomials, SIAM J. Sci. Comput., 15 (1994), pp. 1489{1505. [25] J. Shen, Ecient Chebyshev-Legendre Galerkin methods for elliptic problems, in Proceedings of ICOSAHOM'95, A. V. Ilin and R. Scott, eds., Houston J. Math., Houston, 1996, pp. 233{240. [26] Y. H. Song and D. Haidvogel, A semi-implicit ocean circulation model using a generalized topography-following coordinate system, J. Comput. Phys., 115 (1994), pp. 228{244. [27] T. Tang and M. R. Trummer, Boundary layer resolving pseudospectral methods for singular pertubation problems, SIAM J. Sci. Comput., 17 (1996), pp. 430{438.

采集于

查看校方原文 ↗