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)Mathematical equation and O(h4)Mathematical equation, where hMathematical equation 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 Mathematical equation(1)

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

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

where u¯(x)Mathematical equation is the regular component, uε,l(x)Mathematical equation and uε,r(x)Mathematical equation 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 ) / ε , Mathematical equation(3)

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

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 Mathematical equation(4)

where b(x)>β2>0,Mathematical equationb(x)Mathematical equation and f(x)Mathematical equation 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)Mathematical equation. Ref. [4] studied the Lagrange interpolation of piecewise polynomials of degree kMathematical equation and the composite Newton-Cotes formula on a piecewise-uniform Shishkin mesh[5]. The convergence rate is O((N-1lnN)k+1)Mathematical equation, where NMathematical equation 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))Mathematical equation and the integration error was O(N-k)Mathematical equation. Furthermore, a new kMathematical equation point interpolation formula was discussed in Ref. [9]. The interpolation error was proved to be O(hk)Mathematical equation when ε=1Mathematical equation, but increased to O(hk-1)Mathematical equation if εMathematical equation is small. Ref. [10] showed the error of the Gauss integral formula using kMathematical equation nodes on the Shishkin mesh, the convergence rate is O(N-2k)Mathematical equation.

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 εMathematical equation. 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)Mathematical equation, when piecewise polynomials of degree kMathematical equation and total element number NMathematical equation are used. Consequently, we obtain an integral error O((N-1lnN)k+1)Mathematical equation for the Newton-Cotes formula on the Shishkin mesh, see Theorems 1 and 2.

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

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

1 Shishkin Mesh

Define the mesh transition parameter

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

where τ>0Mathematical equation 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 . Mathematical equation

Set the Shishkin mesh as ΩN={Ii}i=1NMathematical equation with element Ii=[xi-1,xi]Mathematical equation. Set the mesh size hi=xi-xi-1Mathematical equation 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 . Mathematical equation(6)

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

Thumbnail: Fig. 1 Refer to the following caption and surrounding text. Fig. 1 The Shishkin mesh (N=16Mathematical equation)

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 εMathematical equation.

2.1 The Lagrange Interpolation

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

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

where i=0,kN-kKiMathematical equation represents the set of cell K0, Kk, K2k, ,Mathematical equation

K N - k Mathematical equation. On each interval Ki=[xi,xi+k]Mathematical equation, we define the Lagrange interpolation of u(x)Mathematical equation 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 Mathematical equation(7)

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

Define the Lebesgue constant of KiMathematical equation as

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

Since NMathematical equation is a multiple of 4kMathematical equation, we have KiΩcMathematical equation or KiΩfMathematical equation. Therefore, the subinterval Ki=[xi,xi+k]Mathematical equation is uniform. From Ref. [11], one has

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

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

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

Proof   Without loss of generality, let xKi=[xi,xi+k]Mathematical equation. For any j=i+2, i+3, , i+k,Mathematical equation one has |x-xj|(j-i)hiMathematical equation 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 , Mathematical equation

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

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 ) | Mathematical equation(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 ) | Mathematical equation(12)

Then (11) follows from Lemma 1.

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

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

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

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

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

If σ=1/4Mathematical equation, then

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

Here the bounding constant C>0Mathematical equation is independent of εMathematical equation and NMathematical equation.

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

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

then

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

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

Case 1 σ < 1 / 4 Mathematical equation

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

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

Noticing

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

and Lemma 2, one obtains

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

namely,

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

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

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

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

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

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 ) . Mathematical equation

Using (9) yields

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

Case 2 σ = 1 / 4 Mathematical equation

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

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

If εβ4(k+1)lnNMathematical equation, then

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

In a similar manner, one can bound the interpolation error for the right boundary layer component uε,r(x)Mathematical equation. 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 ) Mathematical equation(23)

where u(x)Mathematical equation satisfies (2) and (3). On the Shishkin mesh ΩNMathematical equation with τ=k+1Mathematical equation, we introduce the Newton-Cotes formula with k+1Mathematical equation 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 Mathematical equation(24)

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

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

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

If εβ4(k+1)lnNMathematical equation, then

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

Proof   We proceed from the following two situations.

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

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

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 ) Mathematical equation

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 ) . Mathematical equation

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 ) , Mathematical equation

Collecting the above estimates gives

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

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

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

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 } Mathematical equation(28)

This finishes the proof.

3 Numerical Integration Based on Local L2Mathematical equation Projection

It is common to use the projection polynomials to approximate the integrand. Local L2Mathematical equation 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 L2Mathematical equation projection for the integrand.

3.1 Local L2Mathematical equation Projection

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

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

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

Lemma 3[13] There exists a constant C>0Mathematical equation independent of uMathematical equation and hiMathematical equation such that

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

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

3.2 Error Estimate

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

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

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

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

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

If σ=1/4Mathematical equation, then

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

Here the bounding constant C>0Mathematical equation is independent of εMathematical equation and NMathematical equation.

Proof   Recall u(x)=u¯(x)+uε,l(x)+uε,r(x)Mathematical equation. 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 ) Mathematical equation(34)

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

Case 1 σ < 1 / 4 Mathematical equation

For Ii=[xi-1,xi]ΩfMathematical equation, 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 / ε , Mathematical equation(35)

namely,

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

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

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

Case 2 σ = 1 / 4 Mathematical equation

The partition ΩNMathematical equation is uniform and hi=N-1Mathematical equation. 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 ) Mathematical equation

Note that σ=1/4Mathematical equation implies εβ4(k+1)lnNMathematical equation, 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 } Mathematical equation(38)

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

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

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

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

Ifεβ4(k+1)lnNMathematical equation, then

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

Proof   We proceed from the following two situations.

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

Now one has

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

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 ) Mathematical equation

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 ) . Mathematical equation

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 ) . Mathematical equation

Collecting the above estimates gives

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

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

Now one has σ=min{14,τεβlnN}=14.Mathematical equation 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 } . Mathematical equation(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 mMathematical equation nodes for the element Ii=[xi-1,xi]Mathematical equation,

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 , Mathematical equation(43)

where DnMathematical equation is the Gauss weight and dnMathematical equation is the root of the Legendre polynomial of degree mMathematical equation in the interval [-1,1]Mathematical equation. Consider the Gauss formula

G m ( u ) = i = 1 N G i , m ( u ) Mathematical equation(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 Mathematical equation(45)

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

4.2 Error Estimate of the Gauss Integration

Lemma 4[14] Let hiMathematical equation be the mesh size of element Ii=[xi-1,xi]Mathematical equation, 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 ) | . Mathematical equation(46)

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

If ε<β8mlnNMathematical equation, then

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

If εβ8mlnNMathematical equation, then

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

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

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

namely,

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

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

Case 1 ε < β 8 m l n N Mathematical equation

Note that β=τ=2mMathematical equation, one has

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

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

h i = 8 m ε β l n N N ,    | u ε , l ( 2 m ) ( x ) | C ε - m e - β x / ε Mathematical equation(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 / ε Mathematical equation(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 / ε . Mathematical equation

The geometric series gives

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

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

Then, one has

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

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

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

Since Dn>0Mathematical equation and n=1mDn=2Mathematical equation 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 . Mathematical equation(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 . Mathematical equation

Case 2 ε β 8 m l n N Mathematical equation

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

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

Since εβ8mlnNMathematical equation, one obtains

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

Similarly, one can obtain the integration error for uε,r(x)Mathematical equation. 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 ] Mathematical equation(55)

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

Thumbnail: Fig. 2 Refer to the following caption and surrounding text. Fig. 2 A function with twin boundary layers

In this section, we present the numerical results for the composite Newton-Cotes formula, piecewise discontinuous L2Mathematical equation projection and Gauss integration formula on the Shishkin mesh. Set τ=k+1, β=1Mathematical equation for the former two cases and τ=β=2mMathematical equation 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 ) , Mathematical equation

where hi=hi+1=hi+2Mathematical equation is the cell size of the interval [xi,xi+3]Mathematical equation and the notation i=0,3N-3Mathematical equationrefers to the summation calculated from i=0, 3, 6, , N-3Mathematical equation. Given εMathematical equation and NMathematical equation, we define the integration error as ΔN,ε=|I(u)-S3(u)|Mathematical equation. 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 , Mathematical equation

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

Table 1 shows the error and convergence rate of the integration formula S3(u)Mathematical equation on the uniform mesh. The convergence order is generally O(N-4)Mathematical equation. However, when ε=10-7, 10-8,Mathematical equation 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)Mathematical equation. This is fully consistent with Theorem 2.

Table 1

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

Table 2

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

5.2 Local L2Mathematical equation Projection

Consider the local L2Mathematical equation projection into the space of the piecewise cubic polynomials, namely k=3Mathematical equation, 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 ) ] Mathematical equation

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

Table 3

L 2 Mathematical equation projection error and convergence rate on the uniform mesh

Table 4

L 2 Mathematical equation projection error and convergence rate on the Shishkin mesh

5.3 Gauss Integration

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

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 ) ] , Mathematical equation

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

Table 5 shows the integration error and its convergence rate on the uniform mesh. When εMathematical equation is large, the rate of convergence attains O(N-6)Mathematical equation. However, as εMathematical equation becomes smaller, the convergence rate deteriorates quickly. On the Shishkin mesh, the convergence rate is improved, and is always O(ε(N-1lnN)6)Mathematical equation, 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 L2Mathematical equation 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=3Mathematical equation)

Table 2

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

Table 3

L 2 Mathematical equation projection error and convergence rate on the uniform mesh

Table 4

L 2 Mathematical equation 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 Refer to the following caption and surrounding text. Fig. 1 The Shishkin mesh (N=16Mathematical equation)
In the text
Thumbnail: Fig. 2 Refer to the following caption and surrounding text. 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.