Open Access
Issue
Wuhan Univ. J. Nat. Sci.
Volume 30, Number 2, April 2025
Page(s) 139 - 149
DOI https://doi.org/10.1051/wujns/2025302139
Published online 16 May 2025

© Wuhan University 2025

Licence Creative CommonsThis is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

0 Introduction

The definite integration plays an important role in calculus. It is usually calculated by the well-known Newton-Leibniz formula. However, when the integrand cannot be represented by fundamental functions, the primitive function is complicated or the integrand has no analytic expression (e.g., some discrete point values are known), numerical integration becomes a practical necessity.

To date, the common numerical integrations are based on the composite Newton-Cotes formula. If the integrand is sufficiently smooth, the error of the composite trapezoidal and Simpson rule can attain O(h2) and O(h4), where h is the cell size. Otherwise, the composite Newton-Cotes formula based on the uniform mesh will produce very large errors.

Consider the numerical approximation for the following definite integration

I ( u ) = 0 1 u ( x )   d x (1)

Assume that the function u(x) can be decomposed as

u ( x ) = u ¯ ( x ) + u ε , l ( x ) + u ε , r ( x ) ,       x ( 0,1 ) (2)

where u¯(x) is the regular component, uε,l(x) and uε,r(x) are the two boundary layer components, which satisfy

{ | u ¯ ( j ) ( x ) | C , | u ε , l ( j ) ( x ) | C ε - j / 2 e - β x / ε , | u ε , r ( j ) ( x ) | C ε - j / 2 e - β ( 1 - x ) / ε , (3)

for any x[0,1],where ε1 is a small positive parameter, β is a given positive constant and j0 is an integer. It is obvious that the function u(x) exhibits a typical boundary layer, namely it has large gradients at the boundary ends x=0 and x=1.

Such function of (2) can be viewed as the solution of the singularly perturbed reaction-diffusion problem

- ε u ( x ) + b ( x ) u ( x ) = f ( x ) ,      u ( 0 ) = u ( 1 ) = 0 (4)

where b(x)>β2>0,b(x) and f(x) are smooth functions. The problem (4) has wide applications in such fields as optimal control, chemical reactions, fluid dynamics and so on. It is of great scientific significance to study the corresponding numerical solutions[1].

Regarding the solution to the singularly perturbed convection-diffusion problem, there are abundant results on the numerical integration. For example, it was shown in Refs. [2-3] that the composite trapezoidal and Simpson rule on the uniform mesh will lead to an integration error of order O(h). Ref. [4] studied the Lagrange interpolation of piecewise polynomials of degree k and the composite Newton-Cotes formula on a piecewise-uniform Shishkin mesh[5]. The convergence rate is O((N-1lnN)k+1), where N is the number of total elements. In Ref. [6], the results were extended to the Bakhvalov mesh[7-8], the interpolation error was proved to be O(N-(k+1)) and the integration error was O(N-k). Furthermore, a new k point interpolation formula was discussed in Ref. [9]. The interpolation error was proved to be O(hk) when ε=1, but increased to O(hk-1) if ε is small. Ref. [10] showed the error of the Gauss integral formula using k nodes on the Shishkin mesh, the convergence rate is O(N-2k).

However, all the above results were obtained for the integrand with one-sided boundary layer. There are very few results on the numerical integration for the solution of the singularly perturbed reaction-diffusion problem (4) with twin boundary layers. In this paper, we address this problem and present three types of numerical integrations on the Shishkin mesh. We derive some error estimates that are uniform in the perturbation parameter ε. The contributions of this paper are the following:

1) We prove that the Lagrange interpolation on the Shishkin mesh converges at a rate of order O((N-1lnN)k+1), when piecewise polynomials of degree k and total element number N are used. Consequently, we obtain an integral error O((N-1lnN)k+1) for the Newton-Cotes formula on the Shishkin mesh, see Theorems 1 and 2.

2) Based on the local L2 projection for the integrand, we obtain an integral error of order O((N-1lnN)k+1), see Theorems 3 and 4.

3) We prove that the Gauss integral formula using k nodes on the Shishkin mesh can attain a convergence order O(N-2k), see Theorem 5.

1 Shishkin Mesh

Define the mesh transition parameter

σ = m i n { 1 4 , τ ε β l n N } (5)

where τ>0 is a user-chosen parameter whose value will be discussed later. The mesh points are given by

x i = { 4 σ i N ,    i = 0,1 , , N 4 , σ + 2 ( 1 - 2 σ ) ( i N - 1 4 ) ,    i = N 4 + 1 , N 4 + 2 , , 3 N 4 , 1 - 4 σ ( 1 - i N ) ,    i = 3 N 4 + 1 , 3 N 4 + 2 , , N .

Set the Shishkin mesh as ΩN={Ii}i=1N with element Ii=[xi-1,xi]. Set the mesh size hi=xi-xi-1 and then we have

h i = { h : = 4 σ N ,   i = 1,2 , , N 4 , 3 N 4 + 1 , , N , H : = 2 ( 1 - 2 σ ) N ,   i = N 4 + 1 , N 4 + 2 , , 3 N 4 . (6)

Denote ΩN=ΩcΩf, where Ωc:=[σ,1-σ] is the coarse domain and Ωf:=[0,σ][1-σ,1] is the refined domain. Figure 1 shows a Shishkin mesh for N=16.

thumbnail Fig. 1 The Shishkin mesh (N=16)

2 The Newton-Cotes Formula and Its Error Estimate

The common numerical integration is based on the Newton-Cotes formula using the Lagrange interpolation for the integrand. However, for the function (2) with boundary layer, the traditional method on the uniform mesh will result in a large error. This section presents the Lagrange interpolation and the Newton-Cotes formula on the Shishkin mesh. We will establish optimal-order error estimates that are independent of the small parameter ε.

2.1 The Lagrange Interpolation

Assume that N is a multiple of 4k, and divide the domain [0,1] into N/k subintervals

[ 0,1 ] = i = 0 , k N - k K i : = i = 0 , k N - k [ x i , x i + k ]

where i=0,kN-kKi represents the set of cell K0, Kk, K2k, ,

K N - k . On each interval Ki=[xi,xi+k], we define the Lagrange interpolation of u(x) by

L i , k ( u ) = n = i i + k u n P n , i ( x ) : = n = i i + k u n j = i j n i + k x - x j x n - x j (7)

where Pn,i(x) is the base function with degree k.

Define the Lebesgue constant of Ki as

λ i , k + 1 = m a x x K i n = i i + k | P n , i ( x ) | (8)

Since N is a multiple of 4k, we have KiΩc or KiΩf. Therefore, the subinterval Ki=[xi,xi+k] is uniform. From Ref. [11], one has

2 k - 2 ( k + 1 ) - 3 / 2 λ i , k + 1 2 k (9)

Lemma 1   Let hi be the mesh size of the interval Ki. Denote ωk+1(x)=(x-xi)(x-xi+1)(x-xi+k), then one has

| ω k + 1 ( x ) | 1 4 h i k + 1 k !   ,     x K i (10)

Proof   Without loss of generality, let xKi=[xi,xi+k]. For any j=i+2, i+3, , i+k, one has |x-xj|(j-i)hi and

| ( x - x i ) ( x - x i + 1 ) | = ( x - x i ) ( x i + 1 - x ) ( x - x i + x i + 1 - x 2 ) 2 = h i 2 4 ,

thus |ωk+1(x)|hi24×2hi×3hi××khi=14hik+1k!.

This finishes the proof.

2.2 Error Estimate of the Lagrange Interpolation

Lemma 2   One has the following interpolation error

| u ( x ) - L i , k ( u ) | h i k + 1 4 ( k + 1 ) m a x x [ x i , x i + k ] | u ( k + 1 ) ( x ) | (11)

Proof   From Ref. [12], one has

| u ( x ) - L i , k ( u ) | | ω k + 1 ( x ) | ( k + 1 ) ! m a x x [ x i , x i + k ] | u ( k + 1 ) ( x ) | (12)

Then (11) follows from Lemma 1.

Theorem 1   Suppose that u(x) satisfies (2) and (3) and set τ=k+1. Then one has the following interpolation error estimates.

If σ<1/4 and Ki=[xi,xi+k]Ωf, then

  | u ( x ) - L i , k ( u ) | C ( N - 1 l n N ) k + 1 (13)

If σ<1/4 and Ki=[xi,xi+k]Ωc, then

| u ( x ) - L i , k ( u ) | C N - ( k + 1 ) (14)

If σ=1/4, then

| u ( x ) - L i , k ( u ) | C m i n { ( ε N ) - ( k + 1 ) , ( N - 1 l n N ) k + 1 } (15)

Here the bounding constant C>0 is independent of ε and N.

Proof   From (3) and (11), one has

| u ¯ ( x ) - L i , k ( u ¯ ) | C h i k + 1 , x K i

then

| u ¯ ( x ) - L i , k ( u ¯ ) | C N - ( k + 1 ) ,       x K i (16)

To bound the interpolation error for the left boundary layer component uε,l(x),we proceed from the following two situations.

Case 1 σ < 1 / 4

For KiΩf, it follows from (3) and (6) that

h i = h = 4 σ N = 4 ( k + 1 ) ε β l n N N (17)

Noticing

| u ε , l ( k + 1 ) ( x ) | C ε - ( k + 1 ) / 2 e - β x / ε , x [ x i , x i + k ] (18)

and Lemma 2, one obtains

| u ε , l ( x ) - L i , k ( u ε , l ) | C ( h / ε ) k + 1 e - β x / ε (19)

namely,

| u ε , l ( x ) - L i , k ( u ε , l ) | C ( N - 1 l n N ) k + 1 (20)

For KiΩc, due to (3) and τ=k+1, one obtains

| u ε , l ( x ) | C e - β σ / ε = C N - ( k + 1 ) (21)

From (7), (8) and (21), one gets

| L i , k ( u ε , l ) | C N - ( k + 1 ) λ i , k + 1

Hence

| u ε , l ( x ) - L i , k ( u ε , l ) | | u ε , l ( x ) | + | L i , k ( u ε , l ) | C N - ( k + 1 ) ( 1 + λ i , k + 1 ) .

Using (9) yields

| u ε , l ( x ) - L i , k ( u ε , l ) | C N - ( k + 1 ) (22)

Case 2 σ = 1 / 4

The partition ΩN is uniform and hi=N-1. By (11), one has

| u ε , l ( x ) - L i , k ( u ε , l ) | C N - ( k + 1 ) ε - ( k + 1 ) / 2 = C ( ε N ) - ( k + 1 )

If εβ4(k+1)lnN, then

| u ε , l ( x ) - L i , k ( u ε , l ) | C m i n { ( ε N ) - ( k + 1 ) , ( N - 1 l n N ) k + 1 }

In a similar manner, one can bound the interpolation error for the right boundary layer component uε,r(x). This finishes the proof.

2.3 Error Estimate of the Newton-Cotes Formula

Let

I ( u ) = 0 1 u ( x ) d x = i = 0 , k N - k x i x i + k u ( x ) d x = i = 0 , k N - k I i , k ( u ) (23)

where u(x) satisfies (2) and (3). On the Shishkin mesh ΩN with τ=k+1, we introduce the Newton-Cotes formula with k+1 nodes

S k ( u ) = i = 0 , k N - k S i , k ( u ) = i = 0 , k N - k x i x i + k L i , k ( u ) d x (24)

Theorem 2   Suppose that u(x) satisfies (2) and (3) and set τ=k+1. Then one has the following integral error estimates.

If ε<β4(k+1)lnN, then

| I ( u ) - S k ( u ) | C [ N - ( k + 1 ) + ε ( N - 1 l n N ) k + 1 ] (25)

If εβ4(k+1)lnN, then

| I ( u ) - S k ( u ) | C m i n { ( ε N ) - ( k + 1 ) , ( N - 1 l n N ) k + 1 } (26)

Proof   We proceed from the following two situations.

Case 1 ε < β 4 ( k + 1 ) l n N

Now one has σ=min{14,τεβlnN}=τεβlnN<14.

By (16), one has

i = 0 , k N - k x i x i + k | u ¯ ( x ) - L i , k ( u ¯ ) |   d x i = 0 , k N - k C h i N - ( k + 1 ) C N - ( k + 1 )

Using (19) and (22) yields

i = 0 , k N - k x i x i + k | u ε , l ( x ) - L i , k ( u ε , l ) |   d x i = 0 , k N / 4 - k C ( N - 1 l n N ) k + 1 x i x i + k e - β x / ε d x + i = N / 4 , k 3 N / 4 - k x i x i + k C N - ( k + 1 ) d x + i = 3 N / 4 , k N - k C ( N - 1 l n N ) k + 1 x i x i + k e - β x / ε d x C ε ( N - 1 l n N ) k + 1 + C N - ( k + 1 ) .

Analogously,

i = 0 , k N - k x i x i + k | u ε , r ( x ) - L i , k ( u ε , r ) |   d x C ε ( N - 1 l n N ) k + 1 + C N - ( k + 1 ) ,

Collecting the above estimates gives

| I ( u ) - S k ( u ) | C [ N - ( k + 1 ) + ε ( N - 1 l n N ) k + 1 ] (27)

Case 2 ε β 4 ( k + 1 ) l n N

Now one has σ=min{14,τεβlnN}=14.

Using (15), one obtains

| I ( u ) - S k ( u ) | i = 0 , k N - k | I i , k ( u ) - S i , k ( u ) | i = 0 , k N - k k h i m a x x [ x i , x i + k ] | u ( x ) - L i , k ( u ) | C N - ( k + 1 ) m i n { ε - ( k + 1 ) / 2 , l n k + 1 N } (28)

This finishes the proof.

3 Numerical Integration Based on Local L2 Projection

It is common to use the projection polynomials to approximate the integrand. Local L2 projection can realize element orthogonality and is widely used in the approximation theory and finite element error analyses. In this section, we discuss the numerical integration using the local L2 projection for the integrand.

3.1 Local L2 Projection

Let Pk(Ii) be the space composed with piecewise degree of at most k on the subinterval Ii=[xi-1,xi]. For any zL2(Ii), define πzPk(Ii) by

I i π z v d x = I i z v   d x ,      v P k ( I i ) .

Denote L(Ii) by the usual maximum-norm on the cell Ii. We have the following projection error estimates on the Shishkin mesh.

Lemma 3[13] There exists a constant C>0 independent of u and hi such that

u - π u L ( I i ) C h i k + 1 u ( k + 1 ) L ( I i ) (29)

u - π u L ( I i ) C u L ( I i ) (30)

3.2 Error Estimate

Theorem 3   Suppose that u(x) satisfies (2) and (3) and set τ=k+1. Then one has the following projection error estimates.

If σ<1/4 and Ii=[xi-1,xi]Ωf, then

u - π u L ( I i ) C ( N - 1 l n N ) k + 1 (31)

If σ<1/4 and Ii=[xi-1,xi]Ωc, then

u - π u L ( I i ) C N - ( k + 1 ) (32)

If σ=1/4, then

u - π u L ( I i ) C m i n { ( ε N ) - ( k + 1 ) , ( N - 1 l n N ) k + 1 } (33)

Here the bounding constant C>0 is independent of ε and N.

Proof   Recall u(x)=u¯(x)+uε,l(x)+uε,r(x). From (3) and (29), one has

u ¯ - π u ¯ L ( I i ) C h i k + 1 u ¯ ( k + 1 ) L ( I i ) C N - ( k + 1 ) (34)

Now we turn to bound the projection error for the left boundary layer component uε,l(x).

Case 1 σ < 1 / 4

For Ii=[xi-1,xi]Ωf, it follows from (17) and (29) that

u ε , l - π u ε , l L ( I i ) C h i k + 1 u ε , l ( k + 1 ) L ( I i ) C ( N - 1 l n N ) k + 1 e - β x / ε , (35)

namely,

u ε , l - π u ε , l L ( I i ) C ( N - 1 l n N ) k + 1 (36)

For Ii=[xi-1,xi]Ωc, the inequalities (21), (30) and τ=k+1 give

u ε , l - π u ε , l L ( I i ) C u ε , l L ( I i ) C e - β σ / ε = C N - ( k + 1 ) (37)

Case 2 σ = 1 / 4

The partition ΩN is uniform and hi=N-1. By (11), one has

u ε , l - π u ε , l L ( I i ) C h i k + 1 u ε , l ( k + 1 ) L ( I i ) C ( ε N ) - ( k + 1 )

Note that σ=1/4 implies εβ4(k+1)lnN, then one gets

u ε , l - π u ε , l L ( I i ) C N - ( k + 1 ) m i n { ε - ( k + 1 ) / 2 , ( l n N ) k + 1 } (38)

In a similar manner, one can bound the projection error for the right boundary layer component uε,r(x). This finishes the proof.

Theorem 4   Define T(u)=i=1NIiπu(x)dx. Suppose that u(x) satisfies (2) and (3) and set τ=k+1. Then one has the following integral error estimates.

If ε<β4(k+1)lnN, then

| I ( u ) - T ( u ) | C [ N - ( k + 1 ) + ε ( N - 1 l n N ) k + 1 ] (39)

Ifεβ4(k+1)lnN, then

| I ( u ) - T ( u ) | C m i n { ( ε N ) - ( k + 1 ) , ( N - 1 l n N ) k + 1 } (40)

Proof   We proceed from the following two situations.

Case 1 ε < β 4 ( k + 1 ) l n N

Now one has

σ = m i n { 1 4 , τ ε β l n N } = ( k + 1 ) ε β l n N < 1 4

From (34), one obtains

i = 1 N x i - 1 x i | u ¯ ( x ) - L i , k ( u ¯ ) |   d x i = 1 N C N - ( k + 1 ) h i C N - ( k + 1 )

From (35) and (37), one has

i = 1 N x i - 1 x i | u ε , l ( x ) - L i , k ( u ε , l ) |   d x i = 1 N / 4 C ( N - 1 l n N ) k + 1 x i - 1 x i e - β x / ε d x + i = N / 4 + 1 3 N / 4 x i - 1 x i C N - ( k + 1 ) d x + i = 3 N / 4 + 1 N C ( N - 1 l n N ) k + 1 x i - 1 x i e - β x / ε d x C ε ( N - 1 l n N ) k + 1 + C N - ( k + 1 ) .

Likewise, one gets

i = 1 N x i - 1 x i | u ε , r ( x ) - L i , k ( u ε , r ) |   d x C ε ( N - 1 l n N ) k + 1 + C N - ( k + 1 ) .

Collecting the above estimates gives

| I ( u ) - T ( u ) | C [ N - ( k + 1 ) + ε ( N - 1 l n N ) k + 1 ] (41)

Case 2 ε β 4 ( k + 1 ) l n N

Now one has σ=min{14,τεβlnN}=14. It follows from (33) that

| I ( u ) - T ( u ) | i = 1 N k h i m a x x [ x i - 1 , x i ] | u ( x ) - π u ( x ) | C N - ( k + 1 ) m i n { ε - ( k + 1 ) / 2 , l n k + 1 N } . (42)

This finishes the proof.

4 Gauss Integration and Its Error Estimate

Gauss integration has the highest algebraic accuracy with the same number of interpolation nodes, and is favored by numerical analysts in the practical computation. In this section, we consider the Gauss integration formula on the Shishkin mesh and derive some uniform error estimates.

4.1 Gauss Integration

Define the Gauss integration formula with m nodes for the element Ii=[xi-1,xi],

G i , m ( u ) = x i - x i - 1 2 n = 1 m D n u ( x i , n ) , x i , n = x i - 1 + x i 2 + x i - x i - 1 2 d n , (43)

where Dn is the Gauss weight and dn is the root of the Legendre polynomial of degree m in the interval [-1,1]. Consider the Gauss formula

G m ( u ) = i = 1 N G i , m ( u ) (44)

which approximates

I ( u ) = i = 1 N I i u ( x )   d x = i = 1 N x i - 1 x i u ( x )   d x (45)

In the following we assume that β=2m in the inequality (3) and τ=2m in (5).

4.2 Error Estimate of the Gauss Integration

Lemma 4[14] Let hi be the mesh size of element Ii=[xi-1,xi], then one has the following error estimate

| I i ( u ) - G i , m ( u ) | h i 2 m + 1 ( m ! ) 4 [ ( 2 m ) ! ] 3 ( 2 m + 1 ) m a x x [ x i - 1 , x i ] | u ( 2 m ) ( x ) | . (46)

Theorem 5   Suppose that u(x) satisfies (2) and (3). Then one has the following integral error estimates.

If ε<β8mlnN, then

| I ( u ) - G m ( u ) | C [ N - 2 m + ε ( N - 1 l n N ) 2 m ] (47)

If εβ8mlnN, then

| I ( u ) - G m ( u ) | C m i n { ( ε N ) - 2 m , ( N - 1 l n N ) 2 m } (48)

Proof   Due to hi<2N-1 and Lemma 4, one has

| I i ( u ¯ ) - G i , m ( u ¯ ) | C N - ( 2 m + 1 )

namely,

| I ( u ¯ ) - G m ( u ¯ ) | C N - 2 m (49)

Now we deal with the integration error of uε,l(x).

Case 1 ε < β 8 m l n N

Note that β=τ=2m, one has

σ = m i n { 1 4 , τ ε β l n N } = m i n { 1 4 , ε l n N } = ε l n N < 1 4

For Ii=[xi-1,xi]Ωf, due to (3), one gets

h i = 8 m ε β l n N N ,    | u ε , l ( 2 m ) ( x ) | C ε - m e - β x / ε (50)

By Lemma 4, one has

| I i ( u ε , l ) - G i , m ( u ε , l ) | C ε ( N - 1 l n N ) 2 m + 1 e - β x i - 1 / ε (51)

hence

i = 1 N / 4 | I i ( u ε , l ) - G i , m ( u ε , l ) | C ε ( N - 1 l n N ) 2 m + 1 i = 1 N / 4 e - β x i - 1 / ε .

The geometric series gives

i = 1 N / 4 e - β x i - 1 / ε 1 1 - e - β h / ε C ( N - 1 l n N ) - 1 ,

due to 1-e-βh/ε=O(h/ε)=O(N-1lnN).

Then, one has

i = 1 N / 4 | I i ( u ε , l ) - G i , m ( u ε , l ) | C ε ( N - 1 l n N ) 2 m

For Ii=[xi-1,xi]Ωc, the inequality (3) gives

| u ε , l ( x ) | C e - β σ / ε C N - 2 m (52)

Since Dn>0 and n=1mDn=2 due to (43), so one has

G i , m ( u ε , l ) = x i - x i - 1 2 n = 1 m D n u ε , l ( x i , n ) C h i u ε , l ( x i , n ) C h i N - 2 m . (53)

Combining (52) and (53) yields

i = N / 4 + 1 3 N / 4 | I i ( u ε , l ) - G i , m ( u ε , l ) | i = N / 4 + 1 3 N / 4 [ | I i ( u ε , l ) | + | G i , m ( u ε , l ) | ] i = N / 4 + 1 3 N / 4 C h i N - 2 m C N - 2 m .

Case 2 ε β 8 m l n N

Now one has σ=1/4. By (3) and (46), one has

| I i ( u ) - G i , m ( u ) | C ( N - ( 2 m + 1 ) ε m ) - 1

Since εβ8mlnN, one obtains

| I i ( u ) - G i , m ( u ) | C N - ( 2 m + 1 ) l n 2 m N (54)

Similarly, one can obtain the integration error for uε,r(x). This proves Theorem 5.

5 Numerical Experiments

Consider a function

u ( x ) = c o s ( 2 π x ) - e - x / ε + e ( x - 1 ) / ε 1 + e - 1 / ε ,    x [ 0,1 ] (55)

which exhibits twin boundary layers at x=0 and x=1, see Fig. 2.

thumbnail Fig. 2 A function with twin boundary layers

In this section, we present the numerical results for the composite Newton-Cotes formula, piecewise discontinuous L2 projection and Gauss integration formula on the Shishkin mesh. Set τ=k+1, β=1 for the former two cases and τ=β=2m for the last case.

5.1 Newton-Cotes Formula

Consider the composite Newton-Cotes formula with four points

S 3 ( u ) = x 0 x 3 u ( x ) d x + x 3 x 6 u ( x ) d x + + x N - 3 x N u ( x ) d x          = x 3 - x 0 8 ( u 0 + 3 u 1 + 3 u 2 + u 3 )            + + x N - x N - 3 8 ( u N - 3 + 3 u N - 2 + 3 u N - 1 + u N )          = i = 0,3 N - 3 3 h i 8 ( u i + 3 u i + 1 + 3 u i + 2 + u i + 3 ) ,

where hi=hi+1=hi+2 is the cell size of the interval [xi,xi+3] and the notation i=0,3N-3refers to the summation calculated from i=0, 3, 6, , N-3. Given ε and N, we define the integration error as ΔN,ε=|I(u)-S3(u)|. The convergence order is computed by

r = { l n ( Δ N , ε / Δ 2 N , ε ) l n 2   o n   u n i f o r m   g r i d , l n ( Δ N , ε / Δ 2 N , ε ) l n ( 2 l n N / l n 2 N )   o n   S h i s h k i n   g r i d ,

because it shall behave as O(N-r) and O((N-1lnN)r) for uniform and Shishkin meshes, respectively.

Table 1 shows the error and convergence rate of the integration formula S3(u) on the uniform mesh. The convergence order is generally O(N-4). However, when ε=10-7, 10-8, the convergence order deteriorates significantly. On the Shishkin mesh, the convergence order is restored. Table 2 shows that the convergence rate of the integration error is always O(ε(N-1lnN)4). This is fully consistent with Theorem 2.

Table 1

Integration error and convergence rate using Newton-Cotes formula on the uniform mesh (k=3)

Table 2

Integration error and convergence rate using Newton-Cotes formula on the Shishkin mesh (k=3)

5.2 Local L2 Projection

Consider the local L2 projection into the space of the piecewise cubic polynomials, namely k=3, the projection error is defined as

Δ N , ε = m a x i = 1,2 , , N 1 100 j = 1 100 [ π u ( x i , j ) - u ( x i , j ) ]

Table 3 shows the projection error on the uniform mesh. When ε is large, the convergence order attains O(N-4), but as ε decreases to zero, the convergence order deteriorates sharply. On the Shishkin mesh, the rate of convergence is robust and remains O((N-1lnN)4), as shown in Table 4. This agrees with our prediction in Theorem 3.

Table 3

L 2 projection error and convergence rate on the uniform mesh

Table 4

L 2 projection error and convergence rate on the Shishkin mesh

5.3 Gauss Integration

Consider the composite Gauss integration formula with three nodes, namely m=3,

G 3 ( u ) = i = 1 N h i 18 [ 5 u ( x i - 1 + x i 2 - h i 2 3 5 ) + 8 u ( x i - 1 + x i 2 )             + 5 u ( x i - 1 + x i 2 + h i 2 3 5 ) ] ,

where hi=xi-xi-1. Given ε and N, define integration error as ΔN,ε=|I(u)-G3(u)|.

Table 5 shows the integration error and its convergence rate on the uniform mesh. When ε is large, the rate of convergence attains O(N-6). However, as ε becomes smaller, the convergence rate deteriorates quickly. On the Shishkin mesh, the convergence rate is improved, and is always O(ε(N-1lnN)6), see Table 6. This is fully consistent with Theorem 5.

Table 5

Integration error and convergence rate using Gauss formula on the uniform mesh

Table 6

Integration error and convergence rate using Gauss formula on the Shishkin mesh

6 Conclusion

We discussed the numerical integration of the function with large gradients. The traditional numerical integration on the uniform mesh produces very large errors. We present three numerical integrations on the Shishkin mesh, i.e., the Newton-Cotes formula, local L2 projection and Gauss integration. We derive an optimal-order error estimate independent of the small perturbation parameter. Numerical experiments confirm the sharpness of our theoretical findings. In future work, we would like to extend the results to the other types of layer-adapted meshes, such as Bakhvalov-type meshes and graded meshes[15].

References

  1. Roos H G, Stynes M, Tobiska L. Robust Numerical Methods for Singularly Perturbed Differential Equations[M]. 2nd Edition. Berlin: Springer-Verlag, 2008. [Google Scholar]
  2. Zadorin A I, Zadorin N A. Quadrature formulas for functions with a boundary-layer component[J]. Computational Mathematics and Mathematical Physics, 2011, 51(11): 1837-1846. [Google Scholar]
  3. Zadorin A I. New approaches to constructing quadrature formulas for functions with large gradients[J]. Journal of Physics: Conference Series, 2021, 1901(1): 012055. [Google Scholar]
  4. Zadorin A I. Lagrange interpolation and Newton-Cotes formulas for functions with boundary layer components on piecewise-uniform grids[J]. Numerical Analysis and Applications, 2015, 8(3): 235-247. [Google Scholar]
  5. Shishkin G I. Grid approximations of singularly perturbed elliptic equations in domains with characteristic faces[J]. Russian Journal of Numerical Analysis and Mathematical Modelling, 1990, 5: 327-344. [Google Scholar]
  6. Zadorin A I, Zadorin N A. Lagrange interpolation and the Newton-Cotes formulas on a Bakhvalov mesh in the presence of a boundary layer[J]. Computational Mathematics and Mathematical Physics, 2022, 62(3): 347-358. [Google Scholar]
  7. Bakhvalov N S. The optimization of methods of solving boundary value problems with a boundary layer[J]. USSR Computational Mathematics and Mathematical Physics, 1969, 9(4): 139-166. [Google Scholar]
  8. Linß T. Layer-Adapted Meshes for Reaction-Convection-Diffusion Problems[M]. Berlin: Springer-Verlag, 2010. [Google Scholar]
  9. Zadorin A I, Zadorin N A. Interpolation formula for functions with a boundary layer component and its application to derivatives calculation[J]. Siberian Electronic Mathematical Reports, 2012, 9: 445-455. [Google Scholar]
  10. Zadorin A I. Gauss quadrature on a piecewise uniform mesh for functions with large gradients in a boundary layer[J]. Siberian Electronic Mathematical Reports, 2016, 13: 101-110. [Google Scholar]
  11. Kornev A A, Chizhonkov E V. Uprazhneniya po chislennym metodam[M]. Moscow: Moscow State Univ, 2003: 26. [Google Scholar]
  12. Sun Z Z, Wu H W. An Elementary Numerical Analysis[M]. 5th Edition. Nanjing: Southeast University Press, 2011: 89(Ch). [Google Scholar]
  13. Brenner S C, Scott L R. The Mathematical Theory of Finite Element Methods[M]. New York: Springer-Verlag, 2002. [Google Scholar]
  14. Jiang E X, Zhao F G. Numerical Approximation[M]. 2nd Edition. Shanghai: Fudan University Press, 2008: 160(Ch). [Google Scholar]
  15. Durán R G, Lombardi A L. Finite element approximation of convection diffusion problems using graded meshes[J]. Applied Numerical Mathematics, 2006, 56(10/11): 1314-1325. [Google Scholar]

All Tables

Table 1

Integration error and convergence rate using Newton-Cotes formula on the uniform mesh (k=3)

Table 2

Integration error and convergence rate using Newton-Cotes formula on the Shishkin mesh (k=3)

Table 3

L 2 projection error and convergence rate on the uniform mesh

Table 4

L 2 projection error and convergence rate on the Shishkin mesh

Table 5

Integration error and convergence rate using Gauss formula on the uniform mesh

Table 6

Integration error and convergence rate using Gauss formula on the Shishkin mesh

All Figures

thumbnail Fig. 1 The Shishkin mesh (N=16)
In the text
thumbnail Fig. 2 A function with twin boundary layers
In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.