Third order implicit-explicit Runge-Kutta local discontinuous Galerkin methods with suitable boundary treatment for convection-diffusion problems with Dirichlet boundary conditions

Haijin Wang† Qiang Zhang ‡ Chi-Wang Shu§

January 11, 2018

Abstract To avoid the order reduction when third order implicit-explicit Runge-Kutta time discretization is used together with the local discontinuous Galerkin (LDG) spatial discretization, for solving convection-diffusion problems with time-dependent Dirichlet boundary conditions, we propose a strategy of boundary treatment at each intermediate stage in this paper. The proposed strategy can achieve optimal order of accuracy by numerical verification. Also by suitably setting numerical flux on the boundary in the LDG methods, and by establishing an important relationship between the gradient and interface jump of the numerical solution with the independent numerical solution of the gradient and the given boundary conditions, we build up the unconditional stability of the corresponding scheme, in the sense that the time step is only required to be upper bounded by a suitable positive constant, which is independent of the mesh size.

keywords. local discontinuous Galerkin method, implicit-explicit time discretization, convection-diffusion equation, Dirichlet boundary condition, order reduction. AMS. 65M12, 65M15, 65M60

1 Introduction

The local discontinuous Galerkin (LDG) method was introduced by Cockburn and Shu [10], motivated by the work of Bassi and Rebay [4] for solving the compressible Navier-Stokes equations. It was designed for solving convection-diffusion problems initially, and later it gained wide applications in many high order partial differential equations, for example, KdV-type equations [26], bi-harmonic equations [27, 11], the fifth order dispersion equation

†College of Science, Nanjing University of Posts and Telecommunications, Nanjing 210023, Jiangsu Province, P. R. China. E-mail: [email protected]. Research sponsored by NSFC grants 11601241 and 11671199, Foundation of Jiangsu Province grant BK20160877. ‡Department of , Nanjing University, Nanjing 210093, Jiangsu Province, P. R. China. E- mail: [email protected]. Research supported by NSFC grants 11671199 and 11571290. §Division of , Brown University, Providence, RI 02912, U.S.A. E-mail: [email protected]. Research supported by ARO grant W911NF-15-1-0226 and NSF grant DMS-1719410.

1 ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 2

[27], and so on. More applications of the LDG schemes can be found in the review article [25] and the reference therein. With respect to the theoretical studies about LDG schemes, most of them pay attention to model problems with periodic boundary conditions (BCs), as far as the authors know. Since many applications in practice are non-periodic, it is important to study LDG schemes in non-periodic situations. For convection-diffusion problems with Dirichlet BCs, optimal error estimate of the semi-discrete LDG method has been studied in [8]. Wang and Zhang [23] presented an optimal error estimate for a fully-discrete LDG scheme, where the third order total variation diminishing (TVD) explicit Runge-Kutta (RK) method [19, 13] was adopted in time-discretization, and suitable boundary treatment at each intermediate stage of explicit third order RK time marching was proposed. As for convection-diffusion problems, explicit RK methods are stable and efficient for solving convection-dominated problems. However, for problems which are not convection- dominated, explicit time discretization will suffer from a stringent time step restriction for stability [24]. To overcome the small time step restriction, we considered a type of implicit- explicit (IMEX) RK schemes [3] in [21, 22], where the convection and diffusion parts were treated explicitly and implicitly, respectively. The corresponding IMEX-LDG schemes were shown to be unconditionally stable for periodic BCs. In this paper, we consider the third order IMEX RK time-discretization [5] coupled with LDG spatial discretization for one-dimensional convection-diffusion problems with time- dependent Dirichlet BCs. Stability as well as error estimates will be investigated. The main difficulties come from two aspects, one is about how to set numerical flux on element interfaces, the other is about how to avoid the order reduction due to improper boundary treatment at each intermediate stage of high order ( 3) IMEX RK schemes. ≥ The first difficulty has been overcome by Castillo et al. in [8], where a suitable numerical flux was defined to ensure the stability and optimal error estimates of the semi-discrete LDG scheme. In this paper we will adopt a similar numerical flux as in [8], based on which we establish an important relationship between the gradient and interface jump of the numerical solution with the independent numerical solution of the gradient and the given boundary conditions, which plays a key role in stability and error analysis. To put the second difficulty in proper perspective, let us briefly describe the background of order reduction. It occurs when a RK method is used together with the for the fully discretization of an initial boundary value problem [12, 18, 20, 14]. To recover the full order of accuracy, researchers have proposed several strategies of boundary corrections for explicit and implicit RK methods. Some representative works for explicit RK methods are in [7, 1, 17, 6, 28], and a representative work for implicit RK methods is [2]. The ideas of boundary remedies for explicit and implicit methods are essentially the same, i.e, to examine the truncation errors made by the s-th order RK method when no intermediate- stage boundary conditions are enforced, and then to mimic these errors to at least s-th order when prescribing boundary conditions [17]. However, there has been no such work on boundary corrections for IMEX RK methods, to the best of our knowledge. The main difficulty lies in that, the time discretization for convection and diffusion are different, the conversion between spatial and temporal deriva- tives are not trivial, compared with the fully explicit or implicit situations, so it is rather difficult to derive consistent intermediate boundary conditions [7] solely from the physical ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 3 boundary condition and its derivatives. Similar difficulty occurs when using inverse Lax- Wendroff procedure for numerical boundary conditions of convection-diffusion equations [15]. Nevertheless, the ideas of boundary remedies for explicit and implicit methods can be adopted here. In this paper, we will propose a strategy of boundary corrections for the third order IMEX RK method [5]. Even though we are not able to prove the optimal error estimates in time for the proposed scheme, it behaves very well in numerical experiments. The remaining of this paper is organized as follows. In Section 2 we present the semi- discrete and fully-discrete LDG scheme for the model problem. A strategy of boundary treatment and the corresponding numerical results are given in Section 3. Sections 4 is about the stability and error estimates for the corresponding scheme. Finally, we give concluding remarks in Section 5.

2 The LDG method

2.1 The semi-discrete LDG scheme In this subsection we present the definition of semi-discrete LDG schemes for the linear convection-diffusion problem with time-dependent Dirichlet boundary condition

U + cU = dU , (x,t) Q = (a, b) (0, T ], (2.1a) t x xx ∈ T × U(x, 0) = U (x), x Ω = (a, b), (2.1b) 0 ∈ U(a, t)= U (t), U(b, t)= U (t), t (0, T ]. (2.1c) a b ∈ Here the constants c and d> 0 are convection and diffusion coefficients, respectively. With- out loss of generality, we assume c> 0 in this paper. The initial solution U0(x) is assumed to be in L2(Ω). Let Q = √dU and define (hc , hd , h ) := (cU, √dQ, √dU). The LDG scheme starts x U U Q − − from the following equivalent first-order differential system

U + (hc ) + (hd ) = 0, Q + (h ) = 0, (x,t) Q , (2.2) t U x U x Q x ∈ T with the same initial condition (2.1b) and boundary condition (2.1c). N Let = I = (x − ,x ) be the partition of Ω, where x = a and x = b are the Th { j j 1 j }j=1 0 N two boundary endpoints. Denote the cell length as h = x x − for j = 1,...,N, and j j − j 1 define h = max h . We assume is quasi-uniform in this paper, that is, there exists a j j Th positive constant ρ such that for all j there holds h /h ρ, as h goes to zero. j ≥ Associated with this mesh, we define the discontinuous finite element space

V = v L2(Ω) : v (I ), j = 1,...,N , (2.3) h ∈ |Ij ∈ Pk j ∀ where (I ) denotes the space of polynomials in I of degree at most k. Note that the Pk j j functions in this space are allowed to have discontinuities across element interfaces. At each element interface point, for any piecewise function p, there are two traces along the right-hand and left-hand, denoted by p+ and p−, respectively. The jump is denoted by [[p]] = p+ p−. − ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 4

The semi-discrete LDG scheme is defined as follows: for any t > 0, find the numerical solution w(t) := (u(t),q(t)) V V (where the argument x is omitted), such that ∈ h × h (u , v) = (u, v)+ (w, v), (2.4a) t j Hj Lj (q, r) = (u, r), (2.4b) j Kj hold in each cell Ij, j = 1,...,N, for any test functions z = (v, r) Vh Vh. Here ( , )j is 2 ∈ × · · the inner product in L (Ij) and

c c − c + (u, v) = (h , v ) (hˆ ) v + (hˆ ) − v , (2.5a) Hj u x j − u j j u j 1 j−1 d d − d + (w, v) = (h , v ) (hˆ ) v + (hˆ ) − v , (2.5b) Lj u x j − u j j u j 1 j−1 − + (u, r) = (h , r ) (hˆ ) r + (hˆ ) − r , (2.5c) Kj q x j − q j j q j 1 j−1 ˆc ˆd ˆ where hu, hu and hq are numerical flux defined at every element boundary point. Let ga = Ua and gb = Ub be given Dirichlet boundary conditions, we would like to define the numerical flux in the similar way as that in [8, 23], which is listed in Table 1.

Table 1: The definition of the numerical flux at each element boundary point.

j = 0 j = 1, , N 1 j = N · · · − ˆc hu cga cuj− cuN− d + + √d hˆ √dq √dq √d q− (u− gb) u − 0 − j − h N − h N − i hˆq √dga √du− √dgb − − j −

In (2.4) and below, we drop the argument t if there is no confusion. The initial condition u(x, 0) can be taken as any approximation of the given initial solution U0(x), for example, the local Gauss-Radau projection of U0(x). Please refer to (4.24) for more details. We have now defined the semi-discrete LDG scheme. To write the above scheme in compact form, we denote by

N (v, w)= (v, w)j Xj=1 the inner product in L2(Ω), and by

N−1 v, w = v w h i j j Xj=1 2 the L -inner product on all interior mesh grids, and denote g = (ga, gb). Summing up the variational formulations (2.4) over j = 1, 2,...,N, we can get the semi-discrete LDG scheme in global form: for any t> 0, find the numerical solution w = (u, q) V V , such ∈ h × h that (u , v)= (g; u, v)+ (g; w, v), (2.6a) t H L (q, r)= (g; u, r), (2.6b) K ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 5 hold for any z = (v, r) V V . Here Ξ = N Ξ for Ξ = , , . For convenience ∈ h × h j=1 j H L K of further analysis, we would like to divide these operators into two parts, i.e, the interior P part and the boundary part, to be specific

(g; u, v)= (u, v)+ (g; v), H Hint Hbry (g; w, v)= (w, v)+ (g; v), L Lint Lbry (g; u, r)= (u, r)+ (g; r), K Kint Kbry where

(u, v)= c (u, v )+ u−, [[v]] u− v− = c (u , v) [[u]], v+ u+v+ , (2.7a) Hint x h i− N N − x − h i− 0 0 d (w, v)=  √d (q, v )+ q+, [[v]] q− v− + q+v+ u− v− ,  (2.7b) Lint − x h i− N N 0 0 − h N N (u, r)= √d (u, r )+ u−, [[r]] ;  (2.7c) Kint − x h i and   d (g; v)= cg v+, (g; v)= g v− , (g; r)= √d(g r− g r+). (2.7d) Hbry a 0 Lbry h b N Kbry b N − a 0

2.2 Properties of the LDG spatial discretization In this subsection, we give some properties of the LDG scheme (2.6). Let us first introduce some notations. We define

N−1 [v] 2 = [[v]]2 , and [v] 2 = [v] 2 + (v− )2 + (v+)2, (2.8) | |int j−1 | | | |int N 0 Xj=1 for arbitrary v belonging to the (mesh-dependent) broken Sobolev space

H1( )= φ L2(Ω) : φ H1(I ), j = 1,...,N . Th ∈ |Ij ∈ j ∀ For any function v V , we have the inverse inequality ∈ h v µh−1 v , j = 1, 2, , N, (2.9) k k∂Ij ≤ k kIj ∀ · · · p where v = (v+ )2 + (v−)2 is the L2-norm on the boundary of I , v is the L2- k k∂Ij j−1 j j k kIj norm in Ij, and qµ> 0 is the inverse constant which is independent of v, h and j. Next we present the following properties of LDG spatial discretization.

Lemma 2.1. For any w H1( ) and z = (v , r ), z = (v , r ) belonging to H1( ) ∈ Th 1 1 1 2 2 2 Th × H1( ), there hold the following equalities Th c (w, w)= [w] 2, (2.10) Hint −2| | d (z , v )+ (v , r )= v− v− . (2.11) Lint 1 2 Kint 2 1 −h 1,N 2,N ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 6

Proof. From (2.7a), we get

− − 2 int(w, w)= c (w, wx)+ w , [[w]] (wN ) H c h i− =  (w− )2 [[w2]], 1 (w+)2 + c w−, [[w]] c(w− )2 2 N − h i− 0 h i− N c c =  (w− )2 + [[w]], [[w]] + (w+)2 = [w] 2. (2.12) − 2 N h i 0 −2| |   From (2.7b) and (2.7c), we get

(z , v )+ (v , r ) Lint 1 2 Kint 2 1 = √d (r , (v ) )+ (r )+, [[v ]] r− v− + r+ v+ − 1 2 x h 1 2 i− 1,N 2,N 1,0 2,0 h d i √d (v , (r ) )+ (v )−, [[r ]] v− v− − 2 1 x h 2 1 i − h 1,N 2,N d   = v− v− , (2.13) − h 1,N 2,N by integrating by parts.

Corollary 2.1. For any z = (v, r) H1( ) H1( ), we have ∈ Th × Th d (z, v)+ (v, r)= (v− )2. (2.14) Lint Kint −h N By simply using the Cauchy-Schwarz inequality and the inverse inequality (2.9), we can directly obtain the following two lemmas whose proofs are trivial, so we omit the details to save space. Lemma 2.2. For any w, v V , there hold the following inequalities ∈ h (w, v) c w + µh−1([w] + w+ ) v , (2.15a) |Hint |≤ k xk | |int | 0 | k k   (w, v) c v + pµh−1([v] + v− ) w . (2.15b) |Hint |≤ k xk | |int | N | k k  p  Lemma 2.3. For any v, r V , we have ∈ h (g; v) c µh−1 g v , (2.16) |Hbry |≤ | a|k k d (g; v) pg v− , (2.17) |Lbry |≤ h| b|| N | (g; r) √d µh−1( g + g ) r . (2.18) |Kbry |≤ | a| | b| k k The next lemma establishes the importantp relationship between u , [u] and q , which k xk | | k k plays a key role in the stability analysis. Lemma 2.4. Suppose w = (u, q) V V is the solution of the scheme (2.6), then there ∈ h × h exists a positive constant Cµ independent of h but maybe depending on the inverse constant µ, such that

−1 + Cµ −1 − ux + µh ([u] int + u ) q + µh ( ga + gb + u ). (2.19) k k | | | 0 | ≤ √dk k | | | | | N | p p ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 7

Proof. From (2.4b), (2.5c) and the definition of the numerical flux hˆq defined in Table 1, we have √d (u, r ) u−r− + g r+ , j = 1, − x 1 − 1 1 a 0 (q, r) = √d (u, r ) u−r− + u− r+ , j = 2, , N 1, j  −  x j − j j j−1 j−1 · · · −  √d h(u, r ) g r− + u− r+ i , j = N. − x N − b N N−1 N−1 Integrating by parts gives rise to  √ + + d (ux, r)1 + (u0 ga)r0 , j = 1, − + (q, r) = √d (u , r) + [[u]] − r , j = 2, , N 1, (2.20) j   x j j 1 j−1  · · · −  + − −  √d h(u , r) + [[u]] − r i + (g u )r , j = N. x N N 1 N−1 b − N N From Lemma 2.4 in [21], we can get 

−1 Cµ ux I + µh [[u]]j−1 q I , (2.21) k k j | |≤ √dk k j p for j = 2, , N 1. Similarly, we can derive · · · − −1 + Cµ −1 ux I1 + µh u q I1 + µh ga . (2.22) k k | 0 |≤ √dk k | | p p To obtain the result for j = N, we first take

k + r(x)= u (x) ( 1) u (x − )L (ξ), x − − x N 1 k 2x−(xN 1+xN ) in (2.20) for j = N, with ξ = − , where L (ξ) is the standard Legendre polyno- hN k 2 mial of degree k in [ 1, 1]. It is obvious that (ux, r)N = ux since (ux,Lk)N = 0, and − k kIN r+ = 0, r− = (u )− ( 1)k(u )+ because L ( 1) = ( 1)k and L (1) = 1. Then we N−1 N x N − − x N−1 k − − k have

2 1 − − ux I = (q, r)N (gb u )r k k N √d − − N N

Cµ −1 − q I ux I + µh ( u + gb ) ux I , ≤ √dk k N k k N | N | | | k k N p due to the inverse inequality (2.9) and the fact that L Ch1/2. Hence k kkIN ≤

Cµ −1 − ux I q I + µh ( u + gb ). (2.23) k k N ≤ √dk k N | N | | | p Then taking r = 1 in (2.20) for j = N, we obtain

1 − [[u]]N−1 = (q, 1)N (ux, 1)N (gb u ). √d − − − N Thus it follows from Cauchy-Schwarz inequality that

1/2 1 − [[u]] − Ch q + u + ( u + g ). | N 1|≤ √ k kIN k xkIN | N | | b|  d  ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 8

As a result, from (2.23) we have

−1 Cµ −1 − ux I + µh [[u]]N−1 q I + µh ( u + gb ). (2.24) k k N | |≤ √dk k N | N | | | p p At last, combining the above results and summing up over j = 1, , N, we get the · · · desired result (2.19).

2.3 Fully discrete IMEX LDG scheme In this paper we would like to adopt the third order IMEX RK time marching method [5] to update the semi-discrete LDG scheme (2.6). We call the corresponding fully-discrete LDG scheme as the IMEX-RK3-LDG scheme in this paper. Let tn = nτ M be an uniform partition of the time interval [0, T ], with time step τ. { }n=0 The time step could actually change from step to step, but in this paper we take it as a constant for simplicity. Given (un,qn), we would like to find the numerical solution at the next time level tn+1, through three intermediate solutions (un,ℓ,qn,ℓ), ℓ = 1, 2, 3. In detail, for any function (v, r) V V ∈ h × h 3 (un,ℓ, v) = (un, v)+ τ a (gn,i; un,i, v) +a ˆ (gn,i; wn,i, v) , (2.25a) ℓiH ℓiL Xi=0 3   (un+1, v) = (un, v)+ τ b (gn,i; un,i, v)+ ˆb (gn,i; wn,i, v) , (2.25b) iH iL Xi=0 h i (qn,ℓ, r)= (gn,ℓ; un,ℓ, r), for ℓ = 1, 2, 3, (2.25c) K where the coefficients are given in the following table

γ 0 0 0 0 γ 0 0 a 1+γ α α 0 0 0 1−γ γ 0 aˆ ℓi 2 − 1 1 2 ℓi (2.26) 0 1 α α 0 0 β β γ − 2 2 1 2 bi 0 β1 β2 γ 0 β1 β2 γ ˆbi

The left half of the table lists aℓi and bi, with the columns from left to right corresponding to i = 0, 1, 2, 3, and the first three rows from top to bottom corresponding to ℓ = 1, 2, 3. Similarly, the right half listsa ˆℓi and ˆbi. Noting that we use explicit time discretization for the operator since a = 0 for all i ℓ, and we use diagonally implicit time discretization H ℓi ≥ for the operator , wherea ˆ = γ anda ˆ = 0 for all i>ℓ. L ii ℓi In the above time discretization scheme, γ 0.435866521508459 is the middle root of 3 2 3 2 ≈ 1 3 2 5 6x 18x + 9x 1 = 0. And β1 = 2 γ + 4γ 4 , β2 = 2 γ 5γ + 4 . The parameter − − 1 2 − − − −2γ −2β2α1γ α is chosen as 0.35 and α = 3 . Compared with other third order IMEX-RK 1 − 2 γ(1−γ) schemes [3, 16], the advantage of this scheme is that there are fewer intermediate stages for the implicit part, and hence it is more efficient. n,ℓ n,ℓ n,ℓ The notation g = (ga , gb ) is used to represent the numerical boundary conditions at x = a and x = b, at each intermediate time level tn,ℓ. As we have mentioned, improper boundary treatment may affect the accuracy of the scheme. So the setting of gn,ℓ is one of the most important aspects of this paper, which will be discussed in next section. ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 9

3 Strategy of boundary treatment

In this section, we will propose a boundary treatment strategy for the IMEX-RK3-LDG scheme (2.25), by firstly studying the boundary treatment for purely implicit third order scheme, i.e, the implicit part of (2.25). To simplify notations, we use u(x,t) to denote the exact solution and g(t) to denote the given boundary condition in this section, these notations are only valid in this section.

3.1 The purely implicit case To make the idea clear enough, we consider the linear diffusion problem

ut = uxx with boundary conditions u = g(t). |∂Ω The third order implicit scheme implemented in interior reads as follows

n,1 n n,1 u = u + γτuxx , (3.1a) 1 γ un,2 = un + − τun,1 + γτun,2, (3.1b) 2 xx xx n,3 n n,1 n,2 n,3 u = u + β1τuxx + β2τuxx + γτuxx , (3.1c) un+1 = un,3, (3.1d)

n,ℓ n,ℓ where β1 + β2 + γ = 1. Replacing uxx with ut (only consider intermediate stages), we get

n,1 n n,1 u = u + γτut , (3.2a) 1 γ un,2 = un + − τun,1 + γτun,2, (3.2b) 2 t t n,3 n n,1 n,2 n,3 u = u + β1τut + β2τut + γτut . (3.2c)

Letting un,ℓ u (tn,ℓ) and extending the above scheme up to boundary, we get the strategy t ≈ t of boundary treatment at intermediate stages

n,1 n n,1 gim = g(t )+ γτgt(t ), (3.3a) 1 γ gn,2 = g(tn)+ − τg (tn,1)+ γτg (tn,2), (3.3b) im 2 t t n,3 n n,1 n,2 n,3 gim = g(t )+ β1τgt(t )+ β2τgt(t )+ γτgt(t ), (3.3c)

n,1 n n,2 n 1+γ n,3 n where t = t + γτ,t = t + 2 τ,t = t + τ. Suppose u is smooth enough so that Taylor expansion can be carried out. From (3.2), we get un,ℓ = u (tn,ℓ)+ (τ 2) by Taylor expansion, so we have t t O gn,ℓ = gn,ℓ + (τ 3), (3.4) im O where gn,ℓ is the corresponding reference boundary condition. ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 10

In Table 2 we list errors and orders of accuracy for the IMEX-RK3-LDG scheme (2.25) with the boundary treatment (3.3), for solving u = u on [ 1, 1] with Dirichlet boundary t xx − conditions which are given by the exact solution u(x,t) = e−t sin(x). The computing time is T = 5, time step is τ = 0.5h and piecewise quadratic polynomials are used in the spatial discretization. We also test the conventional treatment

n,ℓ n,ℓ gex = g(t ), for ℓ = 1, 2, 3 (3.5) as a comparison. From the table we can observe that the conventional treatment will lose accuracy while the proposed strategy (3.3) can recover the third order accuracy.

Table 2: Errors and orders of accuracy of strategies (3.3) and (3.5) for ut = uxx.

strategy (3.3) strategy (3.5) N 2 2 2 2 L∞ error L∞ order L error L order L∞ error L∞ order L error L order 20 1.16E-07 - 4.15E-08 - 2.14E-07 - 1.18E-07 - 40 1.42E-08 3.02 5.19E-09 3.00 4.37E-08 2.29 2.20E-08 2.42 80 1.78E-09 3.00 6.51E-10 2.99 9.54E-09 2.20 4.32E-09 2.35 160 2.22E-10 3.00 1.02E-11 2.99 2.24E-09 2.09 8.76E-10 2.30 320 2.78E-11 3.00 1.02E-11 3.00 5.43E-10 2.05 1.81E-10 2.28 640 3.48E-12 3.00 1.28E-12 3.00 1.33E-10 2.03 3.76E-11 2.26

3.2 The implicit-explicit case In this subsection, we consider the simple linear convection-diffusion model problem

ut = cux + duxx with boundary condition u = g(t), |∂Ω where c and d> 0 are coefficients of convection and diffusion, respectively. The third order IMEX RK scheme implemented in interior reads

n,1 n n n,1 u = u + γτcux + γτduxx , (3.6a) 1+ γ 1 γ un,2 = un + ( α )τcun + α τcun,1 + − τdun,1 + γτdun,2, (3.6b) 2 − 1 x 1 x 2 xx xx un,3 = un + (1 α )τcun,1 + α τcun,2 + β τdun,1 + β τdun,2 + γτdun,3, (3.6c) − 2 x 2 x 1 xx 2 xx xx n+1 n n,1 n,1 n,2 n,2 n,3 n,3 u = u + β1τ(cux + duxx )+ β2τ(cux + duxx )+ γτ(cux + duxx ). (3.6d) We only need to consider the intermediate stages, we would like to take the first stage as n,1 n,1 n,1 an example to show the idea. Note that ut = cux + duxx , so from (3.6a) we have un,1 = un + γτcun,1 + γτdun,1 γτc(un,1 un) x xx − x − x = un + γτun,1 γτc(un,1 un). t − x − x ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 11

Taking derivative with respect to x on both sides of (3.6a) we get

un,1 = un + γτcun + γτdun,1 = un + γτ(cun + dun )+ (τ 2). x x xx xxx x xx xxx O Hence

un,1 = un + γτun,1 γ2τ 2c(cun + dun )+ (τ 3). (3.7a) t − xx xxx O Similarly, 1 γ un,2 = un + − τun,1 + γτun,2 + (α 1)γτ 2c(cun + dun )+ (τ 3), (3.7b) 2 t t 1 − xx xxx O un,3 = un + β τun,1 + β τun,2 + γτun,3 + χτ 2c(cun + dun )+ (τ 3), (3.7c) 1 t 2 t t xx xxx O where χ = (α β ) 1+γ (α + β )γ. 2 − 2 2 − 2 1 Remark 3.1. Notice that the expressions in (3.7) contain derivatives with respect to spatial n n n n variable, so we have to approximate these derivatives uxx = uxx(t ), uxxx = uxxx(t ) by their inner approximations when extending the above scheme to boundary. These extra terms prevent us from obtaining boundary corrections which solely contain the physical boundary condition and its derivatives, compared with fully explicit or implicit cases. Moreover, the approximations must be at least first order (in time) to recover third order accuracy of the scheme. However, approximations of these derivatives are done in space, hence, certain restrictions on the time step with respect to the mesh size may be required. n,ℓ n,ℓ Letting ut ut(t ) and extending the inner scheme (3.7) up to the boundary, by ≈ n n taking suitable approximations for uxx and uxxx, we get the strategy of boundary treatment for the third order IMEX RK scheme (4.19), which is a modification of (3.3) and is given as n,ℓ n,ℓ 2 n gimex = gim + Aℓτ R , for ℓ = 1, 2, 3, (3.8) where 1+ γ A = γ2, A = (α 1)γ, A = χ = (α β ) (α + β )γ 1 − 2 1 − 3 2 − 2 2 − 2 1 n n n and R is any first order approximation of c(cuxx + duxxx). Next we will give a method to n n approximate uxx and uxxx at the boundaries. n Approximation for uxx. Since piecewise quadratic polynomials are always adopted in the spatial discretization to match the third order accuracy in time, we can approximate uxx by u (x ) P ′′(x ), u (x ) P ′′ (x ), (3.9) xx a ≈ 1 a xx b ≈ N b where xa and xb are the boundary points, and P1 and PN are the quadratic polynomials in the first and the last cells, respectively. This approximation is of order (h), so, to O ensure the first order approximation in time, we require the time step τ = (h) in the O computation. n Approximation for uxxx. Since k = 2, the second derivative of the numerical solution is piecewise constant on each cell, we can use the difference quotient of the second order ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 12

derivatives in neighboring cells to approximate uxxx on the boundaries. For example, we can simply adopt u (x ) (P ′′ P ′′)/h, u (x ) (P ′′ P ′′ )/h. (3.10) xxx a ≈ 2 − 1 xxx b ≈ N − N−1 In Tables 3 and 4 we list the errors and orders of accuracy for the IMEX-RK3-LDG scheme (2.25) with the boundary treatment (3.8), for solving u = cu + u on [ 1, 1] with t x xx − Dirichlet boundary conditions given by the exact solution u(x,t) = e−t sin(x + ct). The computing time is T = 5, time step is τ = 0.1h for c = 1 and τ = 0.5h for c = 0.1, piecewise quadratic polynomials is used in the spatial discretization. We also test the conventional treatment (3.5) as a comparison. From these tables we can observe that the conventional treatment will lose accuracy while the proposed strategy (3.8) can recover the third order accuracy.

Table 3: Errors and orders of accuracy of strategies (3.8) and (3.5) for ut = ux + uxx.

strategy (3.8) strategy (3.5) N 2 2 2 2 L∞ error L∞ order L error L order L∞ error L∞ order L error L order 20 1.00E-07 - 2.66E-08 - 5.65E-06 - 1.72E-06 - 40 1.28E-08 2.97 3.32E-09 3.00 1.57E-06 1.85 3.70E-07 2.22 80 1.62E-09 2.98 4.14E-10 3.00 4.22E-07 1.89 7.94E-08 2.22 160 2.05E-10 2.99 5.18E-11 3.00 1.11E-07 1.92 1.70E-08 2.22 320 2.58E-11 2.99 6.47E-12 3.00 2.90E-08 1.94 3.63E-09 2.23 640 3.24E-12 2.99 8.10E-13 3.00 7.45E-09 1.96 7.71E-10 2.23

Table 4: Errors and orders of accuracy of strategies (3.8) and (3.5) for ut = 0.1ux + uxx.

strategy (3.8) strategy (3.5) N 2 2 2 2 L∞ error L∞ order L error L order L∞ error L∞ order L error L order 20 1.18E-07 - 4.37E-08 - 4.55E-07 - 1.42E-07 - 40 1.51E-08 2.97 5.51E-09 2.99 1.15E-07 1.98 2.76E-08 2.37 80 1.95E-09 2.95 6.90E-10 3.00 2.92E-08 1.99 5.56E-09 2.31 160 2.51E-10 2.96 8.63E-11 3.00 7.34E-09 1.99 1.15E-09 2.28 320 3.11E-11 3.01 1.08E-11 3.00 1.85E-09 1.99 2.39E-10 2.26 640 3.26E-12 3.26 1.34E-12 3.01 4.63E-10 1.99 5.02E-11 2.25

4 Stability and error estimates

In this section, we would like to present the stability and error estimates of the IMEX-RK3- LDG scheme proposed in the previous sections. To this end, we first give some notations which will be used throughout the remaining of this paper. ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 13

For vector-valued function v = (v , v , , v )⊤, we denote 1 2 · · · ℓ ℓ ℓ v 2 = v2 and v 2 = v 2, | | i k k k ik Xi=1 Xi=1 where is the L2-norm in Ω. We use the standard norms and semi-norms in Sobolev k · k spaces, and also use the notation L∞(Hs) to represent the set of functions v such that max ≤ ≤ v( ,t) s < . 0 t T k · kH (Ω) ∞ Throughout this paper, we denote C as a generic positive constant which is independent of h and τ, also we use ε > 0 to represent an arbitrary small constant, they may have different values in different occurrence.

4.1 Stability analysis For the convenience of analysis, we would like to introduce a series of notations following [21, 22]

E wn = wn,1 wn; E wn = wn,2 2wn,1 + wn; 1 − 2 − E wn = 2wn,3 + wn,2 3wn,1; E wn = wn+1 wn,3, (4.1) 3 − 4 − for arbitrary w, and after some algebraic manipulations we can rewrite scheme (2.25) into the following compact form

n (Eℓu , v)=Φℓ(gn; un, v)+Ψℓ(gn; wn, v), for ℓ = 1, 2, 3, 4, (4.2a) (qn,ℓ, r)= (gn,ℓ; un,ℓ, r), for ℓ = 1, 2, 3 (4.2b) K n n,1 n,2 n,3 n n,1 n,2 n,3 n,1 n,2 n,3 where un = (u , u , u , u ), gn = (g , g , g , g ) and wn = (w , w , w ).

3 Φ (g ; u , v)= δ τ (gn,i; un,i, v), (4.3) ℓ n n ℓi H Xi=0 Ψ (g ; w , v)= θ τ (gn,1; wn,1, v)+ θ τ[ (gn,2; wn,2, v) 2 (gn,1; wn,1, v)] ℓ n n ℓ1 L ℓ2 L − L + θ τ (gn,3; wn,3, v), (4.4) ℓ3 L for ℓ = 1, 2, 3, 4. The coefficients δℓi and θℓi are listed in Table 5. See [21, 22] for more details.

Theorem 4.1. There exists a positive constant τ0 independent of h, such that the solution of (2.25) satisfies n−1 un 2 enτ u0 2 + Cτ h−1 gm 2 , (4.5) k k ≤ k k | | ! mX=0 m 2 3 m,ℓ 2 m,ℓ 2 where C is independent of h and τ, g = ga + g . | | ℓ=1 | | | b | Proof. Along the same line as the proof in [21],P we take the test functions v = un,1, un,2 ℓ − 2un,1, un,3 and 2un+1 in (4.2), for ℓ = 1, 2, 3, 4, respectively. Adding them together, we get the equation un+1 2 un 2 + = + , (4.6) k k − k k S Tc Td ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 14

Table 5: The coefficients δℓi and θℓi in (4.3) and (4.4).

δℓi θℓi H H i H 0 1 2 3 1 2 3 ℓ HH 1 γ 0 0 0 γ 0 0 1 3γ 1 γ 2 − α1 α1 0 0 − γ 0 2 − 2 1 5γ 9 11 γ 3 − α1 2(1 α2)+ α1 2α2 0 2( γ β1) 2(1 β1 ) 2γ 2 − − 4 − 4 − − − 2 4 0 α2 β2 γ β2 α2 γ 0 0 0 − − − where 1 = E un 2 + E un + E un 2 + E un 2 + 2 E un 2 (4.7) S 2 k 1 k k 2 k k 31 k k 32 k k 4 k is the stability term coming from the time-marching, with E un = un,3 + un,2 2un,1, 31 − E un = un,3 un,1, and 32 − 4 4 = Φ (g ; u , v ), = Ψ (g ; w , v ). (4.8) Tc ℓ n n ℓ Td ℓ n n ℓ Xℓ=1 Xℓ=1 We will first estimate the term . By the definition (4.4), we get Td = θ τ (gn,1; wn,1, un,1)+ θ τ (gn,1; wn,1, un,2 2un,1)+ θ τ (gn,1; wn,1, un,3) Td 11 L 21 L − 31 L + θ τ[ (gn,2; wn,2, un,2 2un,1) 2 (gn,1; wn,1, un,2 2un,1)] 22 L − − L − + θ τ[ (gn,2; wn,2, un,3) 2 (gn,1; wn,1, un,3)] + θ τ (gn,3; wn,3, un,3). 32 L − L 33 L Furthermore, by the division of the operator , we get L = int + bry, Td Td Td where

int = θ τ (wn,1, un,1)+ θ τ (wn,1, un,2 2un,1)+ θ τ (wn,1, un,3) Td 11 Lint 21 Lint − 31 Lint + θ τ (wn,2 2wn,1, un,2 2un,1)+ θ τ (wn,2 2wn,1, un,3) 22 Lint − − 32 Lint − + θ τ (wn,3, un,3), 33 Lint bry = θ τ (gn,1; un,1)+ θ τ (gn,1; un,2 2un,1)+ θ τ (gn,1; un,3) Td 11 Lbry 21 Lbry − 31 Lbry + θ τ (gn,2 2gn,1; un,2 2un,1)+ θ τ (gn,2 2gn,1; un,3) 22 Lbry − − 32 Lbry − + θ τ (gn,3; un,3). 33 Lbry Denote by

bry′ = θ τ (gn,1; qn,1)+ θ τ (gn,1; qn,2 2qn,1)+ θ τ (gn,1; qn,3) Td 11 Kbry 21 Kbry − 31 Kbry + θ τ (gn,2 2gn,1; qn,2 2qn,1)+ θ τ (gn,2 2gn,1; qn,3) 22 Kbry − − 32 Kbry − + θ τ (gn,3; qn,3). 33 Kbry ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 15

Owing to (2.11) and (4.2b), we can derive d int = τun ⊤Aun τ qn⊤Aqndx + bry′ , (4.9) Td −h N N − Td ZΩ where un = ((un,1)−, (un,2)− 2(un,1)−, (un,3)−)⊤, qn = (qn,1,qn,2 2qn,1,qn,3)⊤, and N N N − N N − 2θ θ θ 1 11 21 31 A = θ 2θ θ . (4.10) 2  21 22 32  θ31 θ32 2θ33   Since all the leading principal minors of A are positive, we can conclude that A is positive definite. In fact we can show in the same way that A γ I is positive definite, where I is − 4 the identity matrix. So γ d int τ un 2 + qn 2 + bry′ . (4.11) Td ≤− 4 h| N | k k Td   From Lemma 2.3 and the Young’s inequality we obtain d bry + bry′ ετ un 2 + qn 2 + Cdh−1τ gn 2. (4.12) |Td Td |≤ h| N | k k | |   Hence γ d ε τ un 2 + qn 2 + Cdh−1τ gn 2. (4.13) Td ≤ − 4 h| N | k k | |     Next, we are going to estimate . Notice that Tc 4 3 4 3 = δ τ (un,i, v )+ δ τ (gn,i; v )= int + bry. Tc ℓi Hint ℓ ℓi Hbry ℓ Tc Tc Xℓ=1 Xi=0 Xℓ=1 Xi=0 Along the similar line as [21], we get

3 c 3γ 1 5(1 γ) int = τ [un,1] 2 + − [un,2 2un,1] 2 + − [un,3] 2 + T , (4.14) Tc − 2 | | 2 | − | 2 | | i   Xi=1 where we have used the property (2.10), and Ti are given as T = 2(β α γ)τ (un,1, E un) γτ (E un, un,1), 1 2 − 2 − Hint 4 − Hint 1 T = 2(β α )τ (un,2 2un,1, E un)+ α τ (E un, un,2 2un,1), 2 2 − 2 Hint − 4 1 Hint 1 − 1 3γ + − τ (E un, un,2 2un,1) 2 Hint 2 − T = 2γτ (un,3, E un) + 2β (E un, un,3) 3 Hint 4 2Hint 2 1 5γ 5 9γ + α + 2β − τ (E un, un,3) − τ (E un, un,3). 1 2 − 2 Hint 1 − 2 Hint 32   Denote C⋆ as the maximum of the absolute value of all the coefficients in the expression of Ti for i = 1, 2, 3, and denote T = E un + E un + E un + E un , 0 k 1 k k 2 k k 4 k k 32 k ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 16 then by the aid of Lemmas 2.2 and 2.4, we can derive

T C cτ (un,1) + µh−1([un,1] + (un,1)+ + (un,1)− ) T | 1|≤ ⋆ k xk | |int | 0 | | N | 0   Cµ n,1 p −1 n,1 n,1 n,1 − C⋆cτ q + µh ( ga + g + (u ) ) T0. ≤ √dk k | | | b | | N |  p  Similarly,

Cµ n,2 n,1 −1 n,2 n,1 n,2 n,1 T2 C⋆cτ q 2q + µh ( ga 2ga + g 2g | |≤ √dk − k | − | | b − b |  p + (un,2)− 2(un,1)− ) T , | N − N | 0  Cµ n,3 −1 n,3 n,3 n,3 − T3 C⋆cτ q + µh ( ga + g + (u ) ) T0. | |≤ √dk k | | | b | | N |  p  Then using the Young’s inequality, we obtain

3 d d c2 T ετ qn 2 + un 2 + gn 2 + C τ , (4.15) | i|≤ k k h| N | h| | d S Xi=1   where is defined in (4.7). Furthermore, from Lemma 2.3 and the Young’s inequality we S obtain

4 bry ετ v 2 + Cc2h−1τ gn 2 ετ un 2 + + Cc2h−1τ gn 2. (4.16) |Tc |≤ k ℓk | | ≤ k k S | | ℓ=1 X   Thus d c2 ετ un 2 + qn 2 + un 2 + C τ + C(c2 + d)h−1τ gn 2. (4.17) Tc ≤ k k k k h| N | d S | |   γ As a result, owing to (4.6), (4.13) and (4.17), and by choosing ε 8 and letting τ τ0 d ≤ ≤ for some τ 2 , we can get 0 ∝ c un+1 2 un 2 ετ un 2 + Cτh−1 gn 2. (4.18) k k − k k ≤ k k | | Thus the use of discrete Gronwall’s inequality yields (4.5).

4.2 Error estimates 4.2.1 Reference function and the main result To proceed with the error analysis, we follow [21] to introduce four reference functions, denoted by W (ℓ) = (U (ℓ),Q(ℓ)), ℓ = 0, 1, 2, 3, associated with the third order IMEX RK time discretization. In detail, U (0) = U is the exact solution of the problem (2.1) and then we define 3 (ℓ) (0) (i) √ (i) U = U + τ (aℓicUx +a ˆℓi dQx ), for ℓ = 1, 2, 3 (4.19a) Xi=0 ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 17 where (ℓ) √ (ℓ) Q = dUx , for ℓ = 1, 2, 3. (4.19b) For any indices n and ℓ under consideration, the reference function at each stage time level is defined as W n,ℓ = (U n,ℓ,Qn,ℓ)= W (ℓ)(x,tn). Assume the exact solution U satisfies the following smoothness:

DℓU L∞(Hk+2), (ℓ = 0, 1), D2U L∞(Hk+1) and D4U L∞(L2), (4.20) t ∈ t ∈ t ∈ ℓ where Dt U is the ℓ-th order time derivative of U. We have the following lemma. Lemma 4.1. Let W = (U, Q) be the solution of problem (2.1), assume U satisfies the n,1 n,2 n,3 n n,1 n,2 n,3 smoothness assumption (4.20). Denote Wn = (W , W , W ) ,Un = (U , U , U , U ) and G = (Gn, Gn,1, Gn,2, Gn,3). Then for any function (v, r) V V , there hold n ∈ h × h n n (EℓU , v)=Φℓ(Gn; Un, v)+Ψℓ(Gn; Wn, v)+ δ4ℓ(ζ , v), for ℓ = 1, 2, 3, 4, (4.21a) (Qn,ℓ, r)= (Gn,ℓ; U n,ℓ, r) for ℓ = 1, 2, 3, (4.21b) K n,ℓ ℓ n ℓ n where G = (Ua(t ), Ub (t )) is the reference boundary condition. Here δ4ℓ is the Kro- necker symbol and ζn is the local truncation error in each step of the third order IMEX RK time-marching (4.19). Besides, there exists a bounding constant C > 0 depending on the regularity of U, independent of n, h and τ, such that

ζn Cτ 4. (4.22) k k≤ Proof. The proof is straightforward by the considered PDE and the definitions of the ref- erence functions (4.19), so we omit it. Similar analysis can be found in [29, 30, 23].

Theorem 4.2. Let U be the exact solution of problem (2.1) which satisfies the smoothness assumption (4.20), and un is the numerical solution of scheme (2.25). There exists a positive constant τ0 depending only on the convection and diffusion coefficients but not on h, such that if τ τ , then there holds the following error estimate ≤ 0 n−1 max U(tn) un 2 enτ C(c2 + d)τ h−1 θm 2 + C(h2k+2 + τ 6) , (4.23) nτ≤T k − k ≤ | | " m=0 # X where T is the final computing time and the bounding constant C > 0 is independent of h m 2 3 m,ℓ 2 m,ℓ 2 m,ℓ m,ℓ m,ℓ m,ℓ and τ, θ = θa + θ with (θa ,θ )= G g the error due to the | | ℓ=1 | | | b | b − boundary treatment. P   Remark 4.1. From this theorem we see that, optimal error estimates in both space and time n,ℓ n,ℓ 1/2 3 can be obtained if the boundary errors θa ,θ are of order (h τ ). It is not easy to b O satisfy this condition in practice, actually the order of boundary errors can be relaxed to (τ 3) in computation, see the numerical results in Section 3. For the boundary treatment O strategy proposed in Section 3, we could not show the optimal error estimate in time, the main reason is that the inverse inequality (2.9) is used to deal with boundary terms. ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 18

4.2.2 Proof of Theorem 4.2 We will use two Gauss-Radau projections, from H1( ) to V , denoted by π− and π+ Th h h h respectively. For any function p H1( ), the projection π±p is defined as the unique ∈ Th h element in V such that, for any j = 1, 2, , N h · · · − − − − (π p p, v) = 0, v − (I ), (π p) = p ; (4.24a) h − Ij ∀ ∈ Pk 1 j h j j + + + + (π p p, v) = 0, v − (I ), (π p) = p . (4.24b) h − Ij ∀ ∈ Pk 1 j h j−1 j−1 Denote by η = p π±p the projection error. By a standard scaling argument [9], it is − h easy to obtain the following approximation property

1/2 min(k+1,s) η + h η T Ch p s , (4.25) k k k k∂ h ≤ k kH (Ω) 2 where the bounding constant C > 0 is independent of h and p, ∂T = . k · k h j k · k∂Ij At each stage time, we denote the error between the exact (reference)qP solution and n,ℓ n,ℓ n,ℓ n,ℓ n,ℓ n,ℓ n,ℓ the numerical solution by e = (eu , eq ) = (U u ,Q q ). As the standard − − treatment in finite element analysis, we would like to divide the error in the form e = ξ η, − where

η = (η , η ) = (π−U U, π+Q Q), ξ = (ξ ,ξ ) = (π−U u, π+Q q), (4.26) u q h − h − u q h − h − ± here we have dropped the superscripts n and ℓ for simplicity, and πh are Gauss-Radau projections defined in (4.24). Thus, owing to (2.7) and the definition of Gauss-Radau projections, we have

(η , v) = 0, (η , v) = 0, (η, v)= √dη− v− , (4.27) Hint u Kint u Lint q,N N for any v Vh. And by the smoothness assumption (4.20), it follows from (4.25) and the ∈ ± linearity of the projections πh that the stage projection errors and their evolutions satisfy ηn,ℓ + ηn,ℓ + h1/2( ηn,ℓ + ηn,ℓ ) Chk+1, (4.28a) k u k k q k | u,N | | q,N | ≤ E ηn Chk+1τ, (4.28b) k ℓ+1 u k≤ for any n and ℓ = 0, 1, 2, 3 under consideration. In what follows we will focus our attention on the estimate of the error in the finite element space, say, ξ V V . To this end, we need to set up the error equations about ∈ h × h ξn,ℓ. Subtracting those variational forms in Lemma 4.1 from those in the scheme (4.2), in the same order, we obtain the following error equations

(E ξn, v)=Φ (G ; U , v) Φ (g ; u , v)+Ψ (G ; W , v) Ψ (g ; w , v) ℓ u ℓ n n − ℓ n n ℓ n n − ℓ n n E n n + ( ℓηu + δ4ℓζ , v), for ℓ = 1, 2, 3, 4, (4.29a) (ξn,ℓ, r)= (Gn,ℓ; U n,ℓ, r) (gn,ℓ; un,ℓ, r) + (ηn,ℓ, r), for ℓ = 1, 2, 3. (4.29b) q K − K q n,ℓ n,ℓ n,ℓ n,ℓ n,ℓ For the convenience of analysis, we denote θ = G g = (θa ,θ ) as the error − b due to the boundary treatment. Then (4.29b) becomes

(ξn,ℓ, r)= (θn,ℓ; r)+ (ξn,ℓ, r) + (ηn,ℓ, r), for ℓ = 1, 2, 3, (4.30) q Kbry Kint u q ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 19 since (η , r) = 0 by (4.27). Kint u Based on (4.30) and along the similar argument as Lemma 2.4 we get the following important relationship:

−1 + Cµ −1 − (ξu)x + µh ([ξu] int + ξ ) ( ξq + ηq )+ µh ( ξ + θa + θb ), k k | | | u,0| ≤ √d k k k k | u,N | | | | | p p (4.31) where we omit the superscript n,ℓ for notational simplicity. Next we are going to estimate ξ by the energy method, whose procedure is similar n,1 n,2 n,1 n,3 n+1 as in the stability analysis. Takingv ˜ = ξu ,ξu 2ξu ,ξu and 2ξ in (4.29a), for ℓ − u ℓ = 1, 2, 3, 4 respectively, and adding them together, we obtain the energy equation

ξn+1 2 ξn 2 + = + + , (4.32) k u k − k u k S Tc Td Tp where 1 e e f = E ξn 2 + E ξn + E ξn 2 + E ξn 2 + 2 E ξn 2 . (4.33) S 2 k 1 u k k 2 u k k 31 u k k 32 u k k 4 u k  c and d represente the error of the convection and diffusion parts, respectively, which are T T given as e f 4 = Φ (G ; U , v˜ ) Φ (g ; u , v˜ ), (4.34) Tc ℓ n n ℓ − ℓ n n ℓ Xℓ=1 e 4 = Ψ (G ; W , v˜ ) Ψ (g ; w , v˜ ). (4.35) Td ℓ n n ℓ − ℓ n n ℓ Xℓ=1 is related to the projectionf errors which is given as Tp 4 = (E ηn + δ ζn, v˜ ). (4.36) Tp ℓ u 4ℓ ℓ Xℓ=1 A simple use of the Cauchy-Schwarz inequality, the Young’s inequality and (4.28) leads to

4 4 C ετ v˜ 2 + E ηn + δ ζn 2 ετ( ξn 2 + )+ C(h2k+2τ + τ 7). (4.37) Tp ≤ k ℓk τ k ℓ u 4ℓ k ≤ k u k S Xℓ=1 Xℓ=1 e 1 n,1 n,1 Next we take the term = Ψ (G ; W ,ξu ) Ψ (g ; w ,ξu ) as an example to Td 1 n n − 1 n n illustrate the estimate for d. Noticing that T f 1 n,1 n,1 n,1 n,1 n,1 n,1 d = γτ fint(ξ ,ξ ) int(η ,ξ )+ bry(θ ; ξ ) . (4.38) T L u −L u L u   Owing to Corollaryf 2.1 and (4.30) we get d (ξ,ξ )= (ξ− )2 (ξ ,ξ ) Lint u − h u,N − Kint u q d = (ξ− )2 ξ 2 + (η ,ξ )+ (θ; ξ ), (4.39) − h u,N − k qk q q Kbry q ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 20 where we have omitted the superscript n,ℓ for the simplicity of notations. Thus owing to (4.27) we have

1 d = γτ((ξn,1 )−)2 γτ ξn,1 2 + V + V , (4.40) Td −h u,N − k q k 1 2 where f V = γτ(ηn,1,ξn,1) √dγτ(ηn,1 )−(ξn,1 )−, 1 q q − q,N u,N V = γτ (θn,1; ξn,1)+ γτ (θn,1; ξn,1). 2 Kbry q Lbry u Proceeding with similar arguments for the remaining terms and similarly as the estimate for in the previous section, we can obtain Td d = τξn ⊤Aξn τ ξn⊤Aξn dx + V + V Td − h u,N u,N − q q p b ZΩ γ d f τ ξn 2 + ξn 2 + V + V , (4.41) ≤ − 4 h| u,N | k q k p b   n n,1 − n,2 n,1 − n,3 − ⊤ n n,1 n,2 n,1 n,3 ⊤ where ξ = ((ξ ) , (ξ 2ξ ) , (ξ ) ) and ξ = (ξq ,ξq 2ξq ,ξq ) . In u,N u,N u,N − u,N u,N q − (4.41), Vp and Vb are related to the projection errors and the boundary terms in the following forms:

V = √dτηn ⊤Aξn + τ ηn⊤Aξn dx, (4.42) p − q,N u,N q q ZΩ bry bry V = + ′ , (4.43) b Td Td n n,1 − n,2 n,1 − n,3 − ⊤ n n,1 n,2 n,1 n,3 ⊤ bry where ηq,N = ((ηq,N ) , (ηq,N f2ηq,N )f, (ηq,N ) ) and ηq = (ηq , ηq 2ηq , ηq ) , d bry − − T ′ n,ℓ n,ℓ n,ℓ n,ℓ n,ℓ n,ℓ bry bry′ and are replacing (g , u ,q ) with (θ ,ξu ,ξq ) in and . Using of the Td Td Td f Cauchy-Schwarz inequality, the Young’s inequality and (4.28) leads to f d V ετ ξn 2 + ξn 2 + Cτ ηn 2 + h ηn 2 p ≤ h| u,N | k q k k q k | q,N |   d  ετ ξn 2 + ξn 2 + Ch2k+2τ, ≤ h| u,N | k q k   for arbitrary ε> 0. Owing to Lemma 2.3 and the Young’s inequality we can derive d V ετ ξn 2 + ξn 2 + Cdh−1τ θn 2, b ≤ h| u,N | k q k | |   n 2 3 n,ℓ 2 n,ℓ 2 where θ = θa + θ . As a consequence, | | ℓ=1 | | | b |   P γ d 2ε τ ξn 2 + ξn 2 + Cdh−1τ θn 2 + Ch2k+2τ. (4.44) Td ≤ − 4 h| u,N | k q k | |     We are nowf in the position of estimating . Noting that Tc (G; U, v) (g; u, v)= (ξ , v)+ (θ; v), H −H eHint u Hbry ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 21

since int(ηu, v) = 0 by (4.27). Hence proceeding along the similar line as the estimate for H n,ℓ n,ℓ n,ℓ n,ℓ in the previous section, by replacing u with ξu and g with θ , we get Tc d c2 ετ ξn 2 + ξn 2 + ξn 2 + C τ + C(c2 + d)h−1τ θn 2 + Ch2k+2τ, (4.45) Tc ≤ k u k k q k h| u,N | d S | |   wheree the last term Ch2k+2τ is obtained by adoptinge the relationship (4.31). γ d Taking ε small enough such that 3ε , and letting τ τ for some τ 2 , then ≤ 4 ≤ 0 0 ∝ c owing to (4.32), (4.37), (4.44) and (4.45) we have

ξn+1 2 ξn 2 τ ξn 2 + C(c2 + d)h−1τ θn 2 + C(h2k+2τ + τ 7). (4.46) k u k − k u k ≤ k u k | | Then by the aid of the discrete Gronwall’s inequality, we can derive

n−1 n 2 nτ 0 2 2 −1 m 2 2k+2 6 ξu e ξu + C(c + d)τ h θ + C(h + τ ) . (4.47) k k ≤ "k k | | # mX=0 0 Noting that ξu = 0, and owing to (4.28) and the triangle inequality, we get the main error estimate (4.23).

5 Concluding remarks

We discuss a fully-discrete IMEX-RK3-LDG scheme for the one-dimensional convection- diffusion problems with Dirichlet boundary conditions in this paper, where the order reduc- tion phenomenon of the third order IMEX RK method is discussed and a proper boundary treatment strategy at each intermediate stage is proposed to recover the third order accuracy of the scheme. In addition, by suitably defining numerical flux at boundary, we establish an important relationship between the gradient and interface jump of the numerical solution with the independent numerical solution of the gradient and the given boundary conditions, by which we get the unconditional stability of the corresponding scheme. The results of this paper can also be extended to multi-dimensional convection-diffusion problems with Dirichlet boundary conditions. We will consider other boundary conditions in future work.

References

[1] S. Abarbanel, D. Gottlieb and M. H. Carpenter, On the removal of boundary errors caused by Runge-Kutta integration of nonlinear partial differential equations, SIAM J. Sci. Comput., 17 (1996), pp. 777-782.

[2] I. Alonso-Mallo, Runge-Kutta methods without order reduction for linear initial boundary value problems, Numer. Math., 91 (2002), pp. 577-603.

[3] U. M. Ascher, S. J. Ruuth and R. J. Spiteri, Implicit-explicit Runge-Kutta meth- ods for time-dependent partial differential equations, Appl. Numer. Math., 25 (1997), pp. 151–167. ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 22

[4] F. Bassi and S. Rebay, A high-order accurate discontinuous finite element method for the numerical solution of the compressible Navier-Stokes equations, J. Comput. Phys. 131 (1997), pp. 267–279.

[5] M. P. Calvo, J. de Frutos and J. Novo, Linearly implicit Runge-Kutta methods for advection-reaction-diffusion equations, Appl. Numer. Math., 37 (2001), pp. 535– 549.

[6] M. P. Calvo, C. Palencia, Avoiding the order reduction of Runge-Kutta methods for linear initial boundary value problems, Math. Comput., 71 (2001), pp. 1529-1543.

[7] M. H. Carpenter, D. Gottlieb, S. Abarbanel and W. S. Don, The theoretical accuracy of Runge-Kutta time discretizations for the initial boundary value problem: a study of the boundary error, SIAM J. Sci. Comput., 16 (1995), pp. 1241-1252.

[8] P. Castillo, B. Cockburn, D. Schotzau¨ and C. Schwab, Optimal a priori error estimates for the hp-version of the local discontinuous Galerkin method for convection- diffusion problems, Math. Comp., 71 (2001), pp. 455–478.

[9] P. G. Ciarlet, The for Elliptic Problems, North–Holland, Amsterdam, New York, 1978.

[10] B. Cockburn and C.-W. Shu, The local discontinuous Galerkin method for time- dependent convection-diffusion systems, SIAM J. Numer. Anal., 35 (1998), pp. 2440– 2463.

[11] B. Dong and C.-W. Shu, Analysis of a local discontinuous Galerkin methods for lin- ear time-dependent fourth-order problems, SIAM J. Numer. Anal., 47 (2009), pp. 3240– 3268.

[12] D. Gottlieb, M. Gunzburger and E. Tadmor, On numerical boundary treatment of hyperbolic systems for finite difference and finite element methods, SIAM J. Numer. Anal., 19 (1982), pp. 671–682.

[13] S. Gottlieb, C.-W. Shu and E. Tadmor, Strong stability-preserving high-order time discretization methods, SIAM Rev., 43 (2001), pp. 89–112.

[14] T. Koto, IMEX Runge-Kutta schemes for reaction-diffusion equations, J. Comput. Appl. Math., 215 (2008), pp. 182-195.

[15] J. Lu, J. Fang, S. Tan, C.-W. Shu and M. Zhang, Inverse Lax-Wendroff procedure for numerical boundary conditions of convection-diffusion equations, J. Comput. Phys., v317 (2016), pp. 276-300.

[16] L. Pareschi, G. Russo, Implicit-explicit Runge-Kutta schemes for stiff systems of differential equations, In: Trigiante, D. (ed.) Recent Trends in , Advances Theory Computational Mathematics, vol. 3, pp. 269-288. Nova Sci. Publ., Huntington, NY (2001) ANALYSIS OF IMEX RK LDG METHODS WITH DIRICHLET B.C. 23

[17] D. Pathria, The correct formulation of intermediate boundary conditions for Runge- Kutta time integration of initial boundary value problems, SIAM J. Sci. Comput., 18 (1997), pp. 1255-1266. [18] J. M. Sanz-Serna, J. G. Verwer and W. H. Hundsdorfer, Convergence and order reduction of Runge-Kutta schemes applied to evolutionary problems in partial differential equations, Numer. Math., 50 (1986), pp. 405-418. [19] C.-W. Shu and S. Osher, Efficient implementation of essentially non-oscillatory shock capturing schemes, J. Comput. Phys., 77 (1988), pp. 439-471. [20] J. G. Verwer, Convergence and order reduction of diagonably implicit Runge-Kutta schemes in the method of lines, in Proc. Dundee Numerical Analysis Conference 1985, Pitman Research Notes in Math. 140 (1986), pp. 220-237. [21] H. J. Wang, C.-W. Shu and Q. Zhang, Stability and error estimates of local discon- tinuous Galerkin methods with implicit-explicit time-marching for advection-diffusion problems, SIAM J. Numer. Anal., 53 (2015), 206-227. [22] H. J. Wang, C.-W. Shu and Q. Zhang, Stability analysis and error estimates of local discontinuous Galerkin methods with implicit-explicit time-marching for nonlinear convection-diffusion problems, Appl. Math. Comput., 272 (2016), 237-258. [23] H. J. Wang and Q. Zhang, Error estimate on a fully discrete local discontinuous Galerkin method for linear convection-diffusion problem, J. Comput. Math., 31 (2013), pp. 283-307. [24] Y. H. Xia, Y. Xu and C.-W. Shu, Efficient time discretization for local discontinuous Galerkin methods, Discrete Contin. Dyn. Syst. Ser. B, 8 (2007), pp. 677–693. [25] Y. Xu and C.-W. Shu, Local discontinuous Galerkin methods for high-order time- dependent partial differential equations, Commun. Comput. Phys., 7 (2010), pp. 1–46. [26] J. Yan and C.-W. Shu, A local discontinuous Galerkin method for KdV type equa- tions, SIAM J. Numer. Anal., 40 (2002), pp. 769–791. [27] J. Yan and C.-W. Shu, Local discontinuous Galerkin methods for partial differential equations with higher order derivatives, J. Sci. Comput., 17 (2002), pp. 27–47. [28] Q. Zhang, Third order explicit Runge-Kutta discontinuous Galerkin method for linear conservation law with inflow boundary condition, J. Sci. Comput., 46 (2011), pp. 294- 313. [29] Q. Zhang and C.-W. Shu, Error estimates to smooth solution of Runge-Kutta dis- continuous Galerkin methods for scalar conservation laws, SIAM J. Numer. Anal., 42 (2004), pp. 641-666. [30] Q. Zhang and C.-W. Shu, Stability analysis and a priori error estimates to the third order explicit Runge-Kutta discontinuous Galerkin method for scalar conservation laws, SIAM J. Numer. Anal., 48 (2010), pp. 1038-1063.