Chapter 3
Chapter 3
3.1 Introduction
In this chapter, a hybrid spline difference scheme that uses exponential and cubic
splines on a posteriori layer-adapted grid is proposed to solve a singular perturbation
problem with robin boundary conditions. The adaptive mesh {𝑥𝑖 }𝑖=0
𝑁 is generated by
equidistributing the monitor function 𝑀 (𝑠, 𝑢(𝑠)) using the equidistribution principle
(2.1). The nonlinearity in (2.1) is solved using the adaptive mesh algorithm proposed
by Kopteva and Stynes [155]. This algorithm addresses all the fundamental issues
involved in mesh generation. For an accurate numerical solution to the problem,
the exponential splines are used at the internal nodes of the layer-adapted mesh
and cubic splines for the more general robin boundary conditions. We prove that
the proposed numerical technique is parameter-uniform second-order convergent in
discrete maximum norm. The smoothness properties of the adaptively generated
mesh are also analyzed to establish uniform second-order convergence of the proposed
technique.
71
3.2. The Continuous Problem 72
Here, 𝑏(𝑥) and 𝑓 (𝑥) are sufficiently smooth such that 𝑏(𝑥) ≥ 𝜌 > 0, for all 𝑥 ∈ Ω =
[0, 1] and 𝜖 is the perturbation parameter. The constants 𝛼0 , 𝛼1 , 𝛽0 , 𝛽1 , 𝛾0 , 𝛾1 satisfy
𝛼 𝑗 , 𝛽 𝑗 ≥ 0, 𝛼 𝑗 + 𝛽 𝑗 > 0, 𝑗 = 0, 1 with 𝛼0 ≠ 𝛽0 𝑏(0). These conditions guarantee the
√︁
existence of a unique solution to the problem (3.1). Moreover, the solution of the
problem exhibits exponential boundary layers at 𝑥 = 0 and 𝑥 = 1.
The solution to the problem exhibits multiscale behaviour. The standard decomposi-
tion is used to divide it into a smooth and layer component. An initial insight into
the analytical behaviour of the solution is obtained through this decomposition. The
next two lemmas estimate the derivative bounds of the solution and its components
using the standard decomposition. Later, these bounds are used to determine the
error estimates of the numerical discretization.
for an arbitrary 𝑝.
Proof. The proof follows from the inductive argument given by Miller et al. in
[246].
Lemma 3.2.2. The solution 𝑢(𝑥) admits a decomposition 𝑢(𝑥) := 𝑣(𝑥) + 𝑤(𝑥) where
the smooth part 𝑣(𝑥) satisfies
𝑓 (0) 𝑓 (1)
𝐿𝑣(𝑥) = 𝑓 (𝑥), 𝑥 ∈ Ω = (0, 1) and 𝐵𝑙 𝑣(0) = , 𝐵𝑟 𝑣(1) = ,
𝑏(0) 𝑏(1)
73 3. Reaction-Diffusion Problem with Robin Boundary Conditions
Now, by substituting 𝑣(𝑥) in (3.1) and equating the coefficients of like powers of 𝜖,
we get
From Lemma 3.2.1, we get 𝑣 (𝑘) (𝑥) ≤ 𝐶, 𝑘 = 0, . . . , 2𝑝+1. Since, the smooth part 𝑣(𝑥)
fails to satisfy the boundary conditions, the layer part 𝑤(𝑥) is further decomposed as
𝑤(𝑥) = 𝑤 𝐿 (𝑥) + 𝑤 𝑅 (𝑥) such that
2𝑝+1
∑︁ 𝑗
2𝑝+2 (𝑥), and
𝜖 2 𝑤 𝐿𝑗 (𝑥) + 𝜖 𝑝+1 𝑤 ∗𝐿
𝐿
𝑤 (𝑥) =
𝑗=0
2𝑝+1
∑︁ 𝑗
𝑅
𝑤 (𝑥) = 𝜖 2 𝑤 𝑅𝑗 (𝑥) + 𝜖 𝑝+1 𝑤 ∗𝑅
2𝑝+2 (𝑥).
𝑗=0
√
Firstly, consider the left-hand boundary layer. Substitute 𝑥 = 𝜉 𝜖. Then, Taylor’s
√
expansion of 𝑏(𝜉 𝜖) leads to
𝑑2
𝐿𝑤 0𝐿 (𝜉) = 0 where b
b 𝐿 ≡ − 2 + 𝑏(0)𝐼,
𝑑𝜉
e𝑙 𝑤 (0) = 𝛾0 − 𝐵𝑙 𝑣 0 (0), and
𝐵 𝐿
0
A similar argument can be used to establish the bounds for the right-hand boundary
layer. Hence the proof.
To generate grid, equidistribute the monitor function (3.2) using the equidistribu-
tion principle (2.2) to get
∫ 𝑥(𝜉) ∫ 1
1/2
00
(𝛼 + |𝑤 (𝑥)| )𝑑𝑥 = 𝜉 (𝛼 + |𝑤 00 (𝑥)| 1/2 )𝑑𝑥
0 0
75 3. Reaction-Diffusion Problem with Robin Boundary Conditions
∫ 𝑥(𝜉) ∫ 𝑥(𝜉) ∫ 1 ∫ 1
1/2
⇒ 𝛼𝑑𝑥 + |𝑤 (𝑥)| 𝑑𝑥 = 𝜉 00
𝛼𝑑𝑥 + 𝜉 |𝑤 00 (𝑥)| 1/2 𝑑𝑥
0 0 0 0
∫ 𝑥(𝜉) ∫ 1
|𝑤 00 (𝑥)| 1/2 𝑑𝑥 = 𝜉𝛼𝑥| 10 + 𝜉 |𝑤 00 (𝑥)| 1/2 𝑑𝑥
𝑥(𝜉)
⇒ 𝛼𝑥| 0 +
0 0
∫ 𝑥(𝜉) ∫ 1
⇒ 𝛼𝑥(𝜉) + |𝑤 00 (𝑥)| 1/2 𝑑𝑥 = 𝜉𝛼 + 𝜉 |𝑤 00 (𝑥)| 1/2 𝑑𝑥. (3.3)
0 0
0 .
𝑓 𝑓 √︁
𝜆 0 = 𝛾 0 − 𝛼0 (0) − 𝛽0 (0) 𝛼0 − 𝛽0 𝑏(0) , and
𝑏 𝑏
0 .
𝑓 𝑓 √︁
𝜆 1 = 𝛾1 − 𝛼1 (1) − 𝛽1 (1) 𝛼1 + 𝛽1 𝑏(1) .
𝑏 𝑏
∫1
Using (3.4), the term 0
|𝑤 00 (𝑥)| 1/2 𝑑𝑥 on the right-hand side (RHS) of (3.3) becomes
1
∫ 1 1
∫
2 1
∫ 1 1
00 00
|𝑤 (𝑥)| 𝑑𝑥 = 2 |𝑤 (𝑥)| 𝑑𝑥 + 2 |𝑤 00 (𝑥)| 2 𝑑𝑥
1
0 0 2
∫ 1 √︂ ! 12 ∫ 1 √︂ ! 21
2 𝜆 0 𝑏(0) 𝑏(0) 𝜆 1 𝑏(1) 𝑏(1)
= exp −𝑥 𝑑𝑥 + exp −(1 − 𝑥) 𝑑𝑥
1
0 𝜖 𝜖 2
𝜖 𝜖
1 ∫ 1 1 ∫
𝜆 1 𝑏(1) 2 1
√︂ ! √︂ !
𝜆 0 𝑏(0) 2 2 𝑥 𝑏(0) (1 − 𝑥) 𝑏(1)
= exp − 𝑑𝑥 + exp − 𝑑𝑥
𝜖 0 2 𝜖 𝜖 1
2
2 𝜖
√︃ 12 √︃ 1
(1−𝑥) 𝑏(1)
1 exp − 1 exp −
𝑥 𝑏(0)
2 2
𝜆 0 𝑏(0) 2 𝜖
𝜆 1 𝑏(1) 2 𝜖
= √︃ + √︃
− 21 𝑏(0) 1 𝑏(1)
𝜖 𝜖
𝜖 2 𝜖
1
0 2
1 √︂ ! !
𝜆 0 𝑏(0) 2 1 1 𝑏(0)
= −2
𝜖 12 exp − 4 𝜖
−1 +
𝑏(0)
𝜖
1 √︂ !!
𝜆 1 𝑏(1) 2 1 1 𝑏(1)
2 21 1 − exp − 4
𝜖
𝑏(1) 𝜖
𝜖
3.2. The Continuous Problem 76
√︂ !! √︂ !!
1 1 𝑏(0) 1 1 𝑏(1)
= 2 |𝜆 0 | 2 1 − exp − + 2 |𝜆1 | 2 1 − exp − . (3.5)
4 𝜖 4 𝜖
√︃ √︃
As 𝜖 → 0, exp − 14 𝑏(0)
𝜖 → 0 and exp − 14 𝑏(1)
𝜖 → 0. Thus, (3.5) reduces to
∫ 1 1
1 1
|𝑤 (𝑥)| 𝑑𝑥 ≈ 2 |𝜆 0 | + |𝜆 1 |
00 2 2 2 ≡ Ψ. (3.6)
0
For 0 ≤ 𝑥(𝜉) ≤ 12 , substitute 𝑤 00 (𝑥) from (3.4) in left-hand side (LHS) of (3.7) to get
∫ 𝑥(𝜉)
! 21√︂
𝜆 0 𝑏(0) 𝑏(0)
𝛼𝑥 (𝜉) + exp −𝑥 𝑑𝑥 = 𝜉 (𝛼 + Ψ)
0
𝜖 𝜖
1 ∫ 𝑥(𝜉) √︂ !
𝜆0 𝑏(0) 2 𝑥 𝑏(0)
⇒ 𝛼𝑥(𝜉) + exp − 𝑑𝑥 = 𝜉 (𝛼 + Ψ)
𝜖 0
2 𝜖
√︃ 𝑥(𝜉)
1
2
exp − 2 𝑥 𝑏(0)
𝜖
𝜆0 𝑏(0)
⇒ 𝛼𝑥(𝜉) + √︃ = 𝜉 (𝛼 + Ψ)
𝜖 1 𝑏(0)
−2 𝜖
0
! !
√︂
1 𝑥(𝜉) 𝑏(0)
⇒ 𝛼𝑥(𝜉) − 2 |𝜆 0 | 2 exp − − 1 = 𝜉 (𝛼 + Ψ)
2 𝜖
√︂ !!
1 𝑥(𝜉) 𝑏(0)
⇒ 𝛼𝑥(𝜉) + 2 |𝜆 0 | 2 1 − exp − = 𝜉 (𝛼 + Ψ).
2 𝜖
√︂ !!
𝑥𝑖 𝑥𝑖 𝑏(0) 𝑖 𝛼
𝛼 + 𝜃 0 1 − exp − = +1 , 𝑥𝑖 ≤ 1/2, (3.10)
Ψ 2 𝜖 𝑁 Ψ
and
√︂ !!
(1 − 𝑥𝑖 ) (1 − 𝑥𝑖 ) 𝑏(1) 𝑖 𝛼
𝛼 + 𝜃 1 1 − exp − = 1− +1 , 𝑥𝑖 > 1/2, (3.11)
Ψ 2 𝜖 𝑁 Ψ
. .
where 𝜃 0 = |𝜆 0 | 1/2 |𝜆 0 | 1/2 + |𝜆 1 | 1/2 and 𝜃 1 = |𝜆1 | 1/2 |𝜆 0 | 1/2 + |𝜆1 | 1/2 .
On solving the non-linear algebraic equations (3.10) and (3.11), we can determine
the grid points implicitly. With a suitable choice of the floor 𝛼, the following lemma
provides a substantial configuration of the equidistributed grid.
Lemma 3.2.3. Let the layer-adapted grid (3.10) and (3.11) is generated for 𝛼 = Ψ.
Then
√︂ √︂
𝜖 𝜖
𝑥 𝑘𝑙 <2 log(𝑁) < 𝑥 𝑘 𝑙+1 and 𝑥 𝑘 𝑟 −1 < 1 − 2 log(𝑁) < 𝑥 𝑘 𝑟
𝑏(0) 𝑏(1)
where
√︂
𝜃0 𝜖
𝑘𝑙 = (𝑁 − 1) + 𝑁 log(𝑁) ,
2 𝑏(0)
√︂
𝜃1 𝜖
𝑘 𝑟 = 𝑁 − (𝑁 − 1) − 𝑁 log(𝑁) + 1,
2 𝑏(1)
and [.] denotes the integral part of the term. Moreover, for a generic constant 𝐶 > 1,
we have √︃
−𝑥 𝑖
exp 2
𝑏(0)
𝜖 ≤ 𝐶
𝑁, 𝑖 ≥ 𝑘 𝑙 − 1, 𝑥𝑖 ≤ 1/2, and
√︃
−(1−𝑥 𝑖 )
exp 2
𝑏(1)
𝜖 ≤ 𝐶
𝑁, 𝑖 ≤ 𝑘𝑟 , 𝑥𝑖 > 1/2.
√︃
Proof. Firstly, consider the left-hand boundary layer. Put 𝑥𝑖 = 2 𝜖
𝑏(0) log(𝑁) and
𝛼 = Ψ in equation (3.10) to get
√︃ √︃
2 𝑏(0)
𝜖
log(𝑁) 2 𝑏(0) log(𝑁)
𝜖 √︂
ªª 𝑖 Ψ
𝑏(0)
+ 𝜃 0 1 − exp − +1
© ©
Ψ ®® =
Ψ 2 𝜖 ®® 𝑁 Ψ
« « ¬¬
3.2. The Continuous Problem 78
2𝑖
√︂
𝜖
⇒ 2 log(𝑁) + 𝜃 0 1 − exp − log(𝑁) =
𝑏(0) 𝑁
√︂
𝜖 𝜃0 𝑖
⇒ log(𝑁) + 1 − 𝑁 −1 =
𝑏(0) 2 𝑁
√︂
𝜖 𝜃0
⇒ 𝑁 log(𝑁) + (𝑁 − 1) = 𝑖
𝑏(0) 2
√︂
𝜃0 𝜖
⇒ 𝑘𝑙 = (𝑁 − 1) + 𝑁 log(𝑁) .
2 𝑏(0)
and √︂ !
−(1 − 𝑥𝑖 ) 𝑏(1) 𝐶 1
exp ≤ , 𝑖 ≤ 𝑘𝑟 , 𝑥𝑖 > .
2 𝜖 𝑁 2
The analysis of most of the numerical discretization techniques that used standard
Shishkin mesh inspires to choose this particular value of 𝛼. Therefore, the adaptive
grid shares some of its key features with Shishkin mesh but is better in accuracy due
to exponential stretching within the layers. Both the grids have been analyzed and
compared in [245]. The next lemma presents the bounds on the grid spacing ℎ𝑖 in
the boundary layer region.
Lemma 3.2.4. Within the boundary layer region, the grid spacing ℎ𝑖 satisfies
√︂ √︂
𝜖 𝜖
ℎ𝑖 < 𝐶 , 𝑖 = 1, . . . , 𝑘 𝑙 , and ℎ𝑖 < 𝐶 , 𝑖 = 𝑘 𝑟 + 1, . . . , 𝑁.
𝑏(0) 𝑏(1)
Proof. Firstly, consider left-hand boundary layer. To determine the upper and lower
79 3. Reaction-Diffusion Problem with Robin Boundary Conditions
Thus, from (3.12) and (3.13), we obtain the following bounds for ℎ𝑖 in the boundary
layer region
ℎ𝑖 = 𝑥𝑖 − 𝑥𝑖−1 ≤ 𝑥𝑖 − 𝑥𝑖−1
2𝑖 2(𝑖 − 1)
√︂ √︂
𝜖 𝜖
= −2 log 1 − − −2 log 1 −
𝑏(0) 𝜃0 𝑁 𝑏(0) 𝜃0 𝑁
2 2(𝑖 − 1)
√︂
𝜖
− log 1 −
𝜃 0 𝑏(0) 𝜃0 𝑁
2(𝑖 − 1) 2 2(𝑖 − 1) 2𝑖
√︂ √︂
𝜖 𝜖
= 2 log 1 − − log 1 − − log 1 −
𝑏(0) 𝜃0 𝑁 𝜃 0 𝑏(0) 𝜃0 𝑁 𝜃0 𝑁
3.2. The Continuous Problem 80
2(𝑖−1) 2(𝑖−1)
2
√︃
©1 − − 𝜖
log 1 −
√︂
𝜖 𝜃0 𝑁 𝜃0 𝑏(0) 𝜃0 𝑁 ª
= 2 log
®
𝑏(0)
1 − 𝜃2𝑖
0𝑁
®
« ¬
1 − 2(𝑖−1)
√︃
√︂
© 0
𝜃 𝑁 − 2𝑖 + 2 − 2𝑁 𝜖
𝑏(0) log 𝜃0 𝑁 ª
𝜖
= 2 log ®
𝑏(0) 𝜃 0 𝑁 − 2𝑖 ®
« √︃ ¬
√︂ 2 − 2𝑁 𝑏(0) 𝜖
log 0 𝜃 0 𝑁
𝜃 𝑁−2(𝑖−1)
𝜖
2 log 1 +
© ª
= ®
𝑏(0) 𝜃 0 𝑁 − 2𝑖 ®
« √︃ ¬
√︂ 2 + 2𝑁 𝑏(0) log 𝜃 0 𝑁−2(𝑖−1) ª
𝜖 𝜃0 𝑁 √︂
𝜖 𝜖
2 log 1 +
©
= ®<𝐶 .
𝑏(0) 𝜃 0 𝑁 − 2𝑖 ® 𝑏(0)
« ¬
Similarly
2
√︂ √︂
𝜖 𝜖
ℎ1 < 𝑥 1 − 𝑥0 = −2 log 1 − <2 (𝜃 0 𝑁) −1 , and
𝑏(0) 𝜃0 𝑁 𝑏(0)
√︂
𝜖
ℎ𝑁 < 2 (𝜃 1 𝑁) −1 .
𝑏(1)
Extending the result to the entire domain, the next lemma examines the width of
the adaptive grid to furnish its bounds.
Lemma 3.2.5. For 𝑖 = 1, . . . , 𝑁, the width of the generated grid spacing satisfies
ℎ𝑖 < 𝐶𝑁 −1 .
3. 𝑆(𝑥𝑖 ) = 𝑢(𝑥𝑖 ), 𝑖 = 0, 1, . . . , 𝑁.
The cubic spline polynomial 𝑆(𝑥) that represents the solution of the differential
equation 𝐷 4 (𝑆(𝑥)) = 0 can be expressed as
in (3.15) and (3.16). Then, equate them to ensure the continuity of the first-order
derivative of the cubic spline polynomial at the respective endpoints. Using (3.16),
for robin boundary condition at 𝑥 0 = 0, we get
ℎ1 ℎ1 𝑈1 − 𝑈0 𝑏 0𝑈0 − 𝑓0
𝑢0 (0) = 𝑆0 (0) = − 𝑀0 − 𝑀1 + where 𝑀0 = . (3.17)
3 6 ℎ1 𝜖
From the robin boundary condition at 𝑥0 given in the problem (3.1), we get
𝛼0𝑈0 − 𝛾0
𝑢0 (0) = √ . (3.18)
𝛽0 𝜖
√ √
ℎ 1 𝑏 0 𝛽0 𝛽0 𝜖 ℎ 1 𝑏 1 𝛽0 𝛽0 𝜖 ℎ 1 𝛽0 𝑓0 ℎ 1 𝛽0 𝑓1
⇒ + + 𝛼 0 𝜖 𝑈0 + − 𝑈1 = + + 𝛾0 𝜖
3 ℎ1 6 ℎ1 3 6
√ ! ! √
3𝛼0 𝜖 3𝛽0 𝜖 𝑏 1 𝛽0 3𝛽0 𝜖 𝛽0 𝑓1 3𝛾0 𝜖
⇒ + 𝑏 0 𝛽0 + 2 𝑈0 + − 2 𝑈1 = 𝛽 0 𝑓 0 + + . (3.19)
ℎ1 ℎ1 2 ℎ1 2 ℎ1
The discretization technique uses exponential splines to estimate the solution of the
problem (3.1) at the internal nodes {𝑥𝑖 }𝑖=1
𝑁−1
of the non-uniform grid Ω𝐸𝑁 . On each
subinterval [𝑥𝑖−1 , 𝑥𝑖 ], 𝑖 = 2, 3, . . . , 𝑁 − 1, an exponential spline is defined as the
solution to the differential equation
)
(𝐷 4 − 𝑝𝑖2 𝐷 2 )𝑇 = 0; 𝑇 (𝑥𝑖−1 ) = 𝑈𝑖−1 , 𝑇 (𝑥𝑖 ) = 𝑈𝑖 ,
(3.21)
𝑇 00 (𝑥𝑖−1 ) = 𝑇𝑖−1
00 , 𝑇 00 (𝑥 ) = 𝑇 00,
𝑖 𝑖
derivative at the nodes is used to determine 𝑇𝑖00. Thus, the exponential spline relation
at the internal nodes 𝑥𝑖 , 𝑖 = 1, 2, . . . , 𝑁 − 1 is given as
𝑈𝑖+1 − 𝑈𝑖 𝑈𝑖 − 𝑈𝑖−1
00
𝑒𝑖 𝑇𝑖−1 + (𝑑𝑖 + 𝑑𝑖+1 )𝑇𝑖00 + 𝑒𝑖+1𝑇𝑖+1
00
= − , 𝑖 = 1, 2, . . . , 𝑁 − 1 (3.22)
ℎ𝑖+1 ℎ𝑖
where we set
𝑠𝑖 − 𝑝 𝑖 ℎ𝑖 𝑝 𝑖 ℎ𝑖 𝑐 𝑖 − 𝑠𝑖
𝑠𝑖 = sinh( 𝑝𝑖 ℎ𝑖 ), 𝑐𝑖 = cosh( 𝑝𝑖 ℎ𝑖 ), 𝑒𝑖 = , 𝑑 = ,
𝑝𝑖2 𝑠𝑖 ℎ𝑖 𝑝𝑖2 𝑠𝑖 ℎ𝑖
𝑖
To approximate the solution of the problem (3.1) on the basis of exponential splines,
we rewrite (3.1) as
𝑏𝑖 𝑈𝑖 − 𝑓𝑖
− 𝜖𝑇𝑖00 + 𝑏𝑖 𝑈𝑖 = 𝑓𝑖 ⇒ 𝑇𝑖00 = . (3.23)
𝜖
Substitute (3.23) in (3.22) to get the following system of equations
𝑏𝑖−1𝑈𝑖−1 − 𝑓𝑖−1 𝑏𝑖 𝑈𝑖 − 𝑓𝑖 𝑏𝑖+1𝑈𝑖+1 − 𝑓𝑖+1
𝑒𝑖 + 𝑑𝑖 + 𝑑𝑖+1 + 𝑒𝑖+1 =
𝜖 𝜖 𝜖
𝑈𝑖+1 − 𝑈𝑖 𝑈𝑖 − 𝑈𝑖−1
−
ℎ𝑖+1 ℎ
𝑖
𝑒𝑖 𝑏𝑖−1 1 1 1 1
𝑏𝑖 𝑒𝑖+1 𝑏𝑖+1
⇒ − 𝑈𝑖−1 + 𝑑𝑖 + 𝑑𝑖+1 + + 𝑈𝑖 + − 𝑈𝑖+1 =
𝜖 ℎ𝑖 𝜖 ℎ𝑖+1 ℎ𝑖 𝜖 ℎ𝑖+1
𝑒𝑖 𝑓𝑖−1 𝑑𝑖 + 𝑑𝑖+1 𝑒𝑖+1 𝑓𝑖+1
+ 𝑓𝑖 +
𝜖 𝜖 𝜖
𝜖 𝜖 𝜖 𝜖
⇒ 𝑒𝑖 𝑏𝑖−1 − 𝑈𝑖−1 + 𝑑𝑖 + 𝑑𝑖+1 𝑏𝑖 + + 𝑈𝑖−1 + 𝑒𝑖+1 𝑏𝑖+1 − 𝑈𝑖+1 =
ℎ𝑖 ℎ𝑖+1 ℎ𝑖 ℎ𝑖+1
𝑒𝑖 𝑓𝑖−1 + (𝑑𝑖 + 𝑑𝑖+1 ) 𝑓𝑖 + 𝑒𝑖+1 𝑓𝑖+1 . (3.24)
Using exponential spline difference scheme (3.24) to discretize the differential equa-
tion at the internal nodes of the grid 𝑖 = 1, . . . , 𝑁 − 1 and the cubic spline difference
scheme (3.19)–(3.20) to discretize the robin boundary conditions, we now define the
numerical discretization of (3.1) as
𝐿 𝑁 𝑈𝑖 ≡ −𝜖 𝛿2𝑈𝑖 + (ℓ𝑏𝑈)𝑖 = (ℓ 𝑓 )𝑖 , 𝑖 = 1, . . . , 𝑁 − 1,
)
(3.25)
𝐵𝑙𝑁 𝑈0 = 𝛾0 , 𝐵𝑟𝑁 𝑈𝑁 = 𝛾1 ,
where
1 𝑣 𝑗+1 − 𝑣 𝑗 𝑣 𝑗 − 𝑣 𝑗−1
2 ℎ 𝑗 + ℎ 𝑗+1
𝛿 𝑣𝑗 = − , (ℓ𝑣) 𝑗 = ℓ −𝑗 𝑣 𝑗−1 + ℓ 𝑐𝑗 𝑣 𝑗 + ℓ +𝑗 𝑣 𝑗+1 , ℏ 𝑗 = ,
ℏ𝑗 ℎ 𝑗+1 ℎ𝑗 2
! ! !
𝑠 − 𝑝 ℎ 𝑝 ℎ 𝑐 − 𝑠 𝑝 ℎ 𝑐 − 𝑠 𝑠 − 𝑝 ℎ
ℓ −𝑗 = , ℓ +𝑗 =
𝑗 𝑗 𝑗 𝑗 𝑗 𝑗 𝑗 𝑗+1 𝑗+1 𝑗+1 𝑗+1 𝑗+1 𝑗+1 𝑗+1
2
, ℓ 𝑐𝑗 = 2
+ 2 2
.
ℏ𝑗 𝑝 𝑗 𝑠𝑗 ℎ𝑗 ℏ𝑗 𝑝 𝑗 𝑠𝑗 ℎ𝑗 ℏ 𝑗 𝑝 𝑗+1 𝑠 𝑗+1 ℎ 𝑗+1 ℏ 𝑗 𝑝 𝑗+1 𝑠 𝑗+1 ℎ 𝑗+1
By rearranging the terms, the tri-diagonal form of the spline difference scheme is
given as
From (3.19), (3.20) and (3.27), the cubic spline difference approximation of the robin
boundary conditions yield
√ √
−𝛽0 𝜖
𝑟 0𝑐 = 𝜖 𝛼0 + 0ℎ1 + 𝑏 0 𝛽0 𝑞 0𝑐 , 𝑟 0+ = + 𝑏 1 𝛽0 𝑞 +0
𝛽 𝜖
ℎ1
𝑞 0𝑐 = ℎ31 , 𝑞 +0 = ℎ1
(3.29)
6
𝛽1 𝜖 √ 𝛽1 𝜖
𝑟 𝑁− = 𝛽1 𝑏 𝑁−1 𝑞 −𝑁 − ℎ𝑁 , 𝑟 𝑁𝑐 = 𝛼1 𝜖 + 𝛽1 𝑞 𝑐𝑁 𝑏 𝑁 + ℎ𝑁
𝑞 −𝑁 = ℎ6𝑁 , 𝑞 𝑐𝑁 = ℎ3𝑁 .
A simultaneous solution of the system of linear algebraic equations (3.26) and (3.27)
generates a numerical approximation of the reaction-diffusion problem (3.1) on the
layer-adapted grid.
A rigorous analysis shows that the cubic spline difference scheme ceases to be
uniformly stable and does not satisfy the M-matrix criteria. However, for a particular
choice of the tension parameter 𝑝 = min 𝑝𝑖 , the resulting coefficient matrix of
𝑖=1,...,𝑁−1
the proposed scheme is proved to be M-matrix and hence inverse monotone.
3.3. Spline Difference Discretization 86
To estimate the stability of the discrete operator 𝐿 𝑁 , the next lemma shows that
the coefficient matrix of the proposed spline difference technique is an M-matrix with
positive diagonal and non-positive off-diagonal entries.
operator 𝐿 𝑁 satisfy 𝑟𝑖𝑐 > 0, 𝑟𝑖− < 0, 𝑟𝑖+ < 0 and 𝑟𝑖𝑐 + 𝑟𝑖− + 𝑟𝑖+ > 0, 𝑖 = 0, . . . , 𝑁.
Proof. For the spline discretization technique (3.26)–(3.27), the associated coefficient
matrix is partitioned on the basis of location of the nodes 𝑥𝑖 . For 𝑖 = 1, 2, . . . , 𝑁 − 1,
the application of exponential splines yields
! !
𝑠 − 𝑝 ℎ 𝜖 1 𝑏 𝑏𝑖−1
𝑟𝑖− =
𝑖 𝑖 𝑖 𝑖−1
2
𝑏𝑖−1 − = −𝜖 + 2 − ,
𝑝 𝑖 𝑠𝑖 ℎ𝑖 ℎ𝑖 ℎ𝑖 𝑝𝑖 𝑠𝑖 𝑝 𝑖
! !
𝑠 − 𝑝 ℎ 𝜖 1 𝑏 𝑏𝑖+1
𝑟𝑖+ =
𝑖+1 𝑖+1 𝑖+1 𝑖+1
2
𝑏𝑖+1 − = −𝜖 + 2 − ,
𝑝𝑖+1 𝑠𝑖+1 ℎ𝑖+1 ℎ𝑖+1 ℎ𝑖+1 𝑝𝑖+1 𝑝𝑖+1 𝑠𝑖+1
!
𝑝 𝑖 ℎ 𝑖 𝑐 𝑖 − 𝑠 𝑖 𝑝 𝑖+1 ℎ 𝑖+1 𝑐 𝑖+1 − 𝑠 𝑖+1 𝜖 𝜖
𝑟𝑖𝑐 = 2
+ 2
𝑏𝑖 + +
𝑝 𝑖 𝑠𝑖 ℎ𝑖 𝑝𝑖+1 𝑠𝑖+1 ℎ𝑖+1 ℎ𝑖+1 ℎ𝑖
! !
1 1
𝑏𝑖 𝑐𝑖 𝑐𝑖+1 𝑏𝑖
= 𝜖− 2 + + 𝑏𝑖 + 𝜖− 2 .
ℎ𝑖 𝑝𝑖 𝑝𝑖 𝑠𝑖 𝑝𝑖+1 𝑠𝑖+1 ℎ𝑖+1 𝑝𝑖+1
√︃
Using uniform tension parameter 𝑝 = min {𝑝𝑖 } ≥ max 𝑏𝑖
𝜖 , we obtain
𝑖=1,...,𝑁−1 𝑖=1,...,𝑁−1
𝑟𝑖− < 0, 𝑟𝑖+ < 0 and 𝑟𝑖𝑐 > 0 as
( 𝑝 𝑖 ℎ𝑖 ) 2 ( 𝑝 𝑖 ℎ𝑖 ) 4
𝑐𝑖 = cosh( 𝑝𝑖 ℎ𝑖 ) = 1 + + + . . . , and
2 24
( 𝑝 𝑖 ℎ𝑖 ) 3 ( 𝑝 𝑖 ℎ𝑖 ) 5
𝑠𝑖 = sinh( 𝑝𝑖 ℎ𝑖 ) = 𝑝𝑖 ℎ𝑖 + + +....
6 120
Moreover, for 𝑖 = 1, . . . , 𝑁 − 1, the row sum given by
! ! !
𝑝 ℎ 𝑐 − 𝑠 𝑝 ℎ 𝑐 − 𝑠 𝑠 − 𝑝 ℎ 𝑠 − 𝑝 ℎ
𝑟𝑖𝑐 + 𝑟𝑖− + 𝑟𝑖+ =
𝑖 𝑖 𝑖 𝑖 𝑖+1 𝑖+1 𝑖+1 𝑖+1 𝑖 𝑖 𝑖 𝑖+1 𝑖+1 𝑖+1
+ 𝑏𝑖 + 𝑏𝑖−1 + 𝑏𝑖+1
𝑝𝑖2 𝑠𝑖 ℎ𝑖 2 𝑠 ℎ
𝑝𝑖+1 𝑖+1 𝑖+1 𝑝𝑖2 𝑠𝑖 ℎ𝑖 2 𝑠 ℎ
𝑝𝑖+1 𝑖+1 𝑖+1
1 1
𝜌 𝑐𝑖 𝑐𝑖+1 𝜌
≥ + − +
ℎ𝑖 + ℎ𝑖+1 𝑝𝑖 𝑠𝑖 𝑝𝑖+1 𝑠𝑖+1 ℎ𝑖 + ℎ𝑖+1 𝑝𝑖 𝑠𝑖 𝑝𝑖+1 𝑠𝑖+1
87 3. Reaction-Diffusion Problem with Robin Boundary Conditions
𝑐𝑖 − 1 𝑐𝑖+1 − 1
𝜌
≥ +
ℎ𝑖 + ℎ𝑖+1 𝑝𝑖 𝑠𝑖 𝑝𝑖+1 𝑠𝑖+1
( 𝑝 𝑖 ℎ𝑖 ) 2 ( 𝑝 𝑖 ℎ𝑖 ) 4
> 0 since 𝑐𝑖 − 1 = )+ + · · · > 0.
2 24
For 𝑖 = 0, 𝑁, the associated coefficients of 𝐵𝑙𝑁 and 𝐵𝑟𝑁 discretizing the robin boundary
conditions are given by
√ 2
!
𝛽0 𝛽0 𝜖 𝛼0 𝜖 0 ℎ
𝑟 0+ = 2 −𝜖 + 1 𝑏 1 ,
𝑐 𝛽
𝑟0 = 𝑏0 + 2 + ,
3 ℎ1 ℎ1 ℎ1 6
2
! √
𝛽 1 ℎ 𝛼1 𝜖 𝛽1 𝛽1 𝜖
𝑟 𝑁− = 2 −𝜖 + 𝑁 𝑏 𝑁−1 , 𝑐
𝑟𝑁 = + 𝑏𝑁 + 2 .
ℎ𝑁 6 ℎ𝑁 3 ℎ𝑁
Using Lemma 3.2.4 and (3.30), we get 𝑟 0𝑐 > 0, 𝑟 0+ < 0, 𝑟 𝑁− < 0, and 𝑟 𝑁𝑐 > 0. Moreover,
the row sum 𝑟 0𝑐 + 𝑟 0+ > 0 and 𝑟 𝑁− + 𝑟 𝑁𝑐 > 0. Hence, the coefficient matrix (3.28)–(3.29)
generated by the spline discretization technique (3.26)–(3.27) is an M-matrix.
From Lemma 3.3.1, it is evident that the coefficient matrix associated with the
spline discretization technique (3.26)–(3.27) is an M-matrix. As a result, the corre-
sponding operator 𝐿 𝑁 satisfies the following discrete maximum principle.
Lemma 3.3.2. The Discrete Maximum Principle: For the discrete spline operator
𝐿 𝑁 , assume that the grid function 𝐺 satisfies 𝐵𝑙𝑁 𝐺 0 ≥ 0, 𝐵𝑟𝑁 𝐺 𝑁 ≥ 0. Then, 𝐿 𝑁 𝐺 𝑖 ≥ 0
for 𝑖 = 1, . . . , 𝑁 − 1 implies that 𝐺 𝑖 ≥ 0, ∀𝑖 = 0, . . . , 𝑁.
Proof. Let 𝑘 be such that 𝐺 𝑘 = min {𝐺 𝑖 } and assume that 𝐺 𝑘 < 0. It is clear that
𝑖
𝑘 ∉ {0, 𝑁 }, 𝐺 𝑘+1 − 𝐺 𝑘 ≥ 0 and 𝐺 𝑘 − 𝐺 𝑘−1 ≤ 0. Therefore
Lemma 3.3.3. Let 𝐺 be any grid function satisfying the hypothesis of the above
lemma. Then
1 𝑁
k𝐺 k Ω𝐸 ≤𝐶 𝐿 𝐺 Ω𝑁
𝐸
𝑁 𝜌
3.4. Error Analysis 88
𝐸
where Ω𝑁 is the layer-adapted equidistributed grid.
Proof. Let
1 𝑁
𝑉𝑖± = 𝐿 𝐺 Ω𝑁
𝐸 ± 𝐺 𝑖 , 𝑖 = 0, . . . , 𝑁.
𝜌
Clearly, 𝑉0± ≥ 0 and 𝑉𝑁± ≥ 0. Moreover, for 𝑖 = 0, . . . , 𝑁 − 1
1 𝑁
𝐿 𝑁 𝑉𝑖± = 𝐿 𝐺 Ω𝑁
𝐸 𝑏𝑖 ± 𝐿 𝑁 𝐺 𝑖 ≥ 0
𝜌
Using the triangle inequality, the truncation error of the numerically approximated
solution at the nodes can be expressed as
Let us partition the domain based on whether the grid point 𝑥𝑖 lies inside or outside
the boundary layer region.
Lemma 3.4.1. For 𝑖 = 1, 2, . . . , 𝑁 − 1, the error associated with the smooth part 𝑉
satisfies
e𝑉𝑖 ≤ 𝐶𝑁 −2 , 𝑖 = 1, 2, . . . , 𝑁 − 1.
The error associated with the layer part of the solution is estimated in the following
lemma.
Lemma 3.4.2. For 𝑖 = 𝑘 𝑙 , . . . , 𝑘 𝑟 , the error associated with the layer part 𝑊 satisfies
−2
e𝑊
𝑖 ≤ 𝐶𝑁 .
−2
e𝑊
𝑖 ≤ 𝐶𝑁 .
Proof. Consider the left-hand boundary layer region. The Taylor’s expansion leads
to
2 𝑤 000 (𝜃 (1) ) − ℎ2 𝑤 000 (𝜃 (2) )
𝜖 ℎ𝑖+1 𝑖 𝑖 𝑖
e𝑊 =
𝑖
3(ℎ𝑖 + ℎ𝑖+1 )
where 𝜃 𝑖(1) ∈ (𝑥𝑖 , 𝑥𝑖+1 ) and 𝜃 𝑖(2) ∈ (𝑥𝑖−1 , 𝑥𝑖 ). From Lemma 3.2.4, we get
2
ℎ𝑖+1 𝑤 000 (𝜃 𝑖(1) ) − ℎ𝑖2 𝑤 000 (𝜃 𝑖(2) ) ≤ 2
ℎ𝑖+1 − ℎ𝑖2 𝑤 000 (𝜃 𝑖(1) ) + ℎ𝑖2 𝑤 000 (𝜃 𝑖(1) ) − 𝑤 000 (𝜃 𝑖(2) )
2
≤ 𝐶 ℎ𝑖+1 − ℎ𝑖2 |𝑤 000 (𝑥𝑖 )| + ℎ𝑖2 (ℎ𝑖 + ℎ𝑖+1 ) 𝑤 𝑖𝑣 (𝑥𝑖 )
A similar estimation can be done for the right-hand boundary layer region. Hence
the result.
The next lemma determines the truncation error of the numerical approximation
at the two ends of the domain.
Lemma 3.4.4. The error bound in approximating the robin boundary conditions at
the two extremities 𝑥 0 = 0 and 𝑥 𝑁 = 1 is given by
𝑖 ≤ 𝐶𝑁 , where 𝑖 = 0, 𝑁.
−2
e𝑈
Proof. To estimate the error associated with 𝑈 at 𝑥 0 and 𝑥 𝑁 , we use Lemmas 3.2.1,
91 3. Reaction-Diffusion Problem with Robin Boundary Conditions
√
3.2.4, the assumption 𝜖 << 𝑁 −1 and Taylor’s expansion to get
√ 2 (𝑖𝑣)
|e𝑈
𝑖 | ≤ 𝐶 𝜖 𝛽0 𝜖 ℎ 1 𝑢 (𝑥)
(𝑥 0 , 𝑥 1 )
√︂ √︂
5 𝜌 𝜌
≤ 𝐶 𝛽0 𝜖 (𝜃 0 𝑁)
2 −2
(1 + 𝜖 −2
exp −𝑥 + 𝜖 exp −(1 − 𝑥)
−2
𝜖 𝜖
√
𝜖 𝐶
≤ 𝐶 2 ≤ 2.
𝑁 𝑁
The truncation error bound at the endpoint 𝑥 𝑁 = 1 can be determined in the same
way. Hence the proof.
Proof. Lemma 3.3.1 states that the coefficient matrix of the proposed spline dis-
cretization technique (3.26)–(3.27) is an M-matrix. This immediately implies that the
associated discrete operator is inverse monotone and uniformly stable with respect
to the perturbation parameter. It then follows from the error estimates computed in
Lemmas 3.4.1–3.4.4 that
|𝑢(𝑥𝑖 ) − 𝑈𝑖 | ≤ 𝐶𝑁 −2 , for 𝑖 = 0, 1, . . . , 𝑁.
The above result asserts that the proposed spline discretization technique is uni-
formly accurate at all the nodes of the equidistributed grid. Intending to extend the
analysis globally, we define a piecewise linear interpolant of the numerical approxima-
tion. In the following theorem, we show that this global approximation is uniformly
accurate at all the points of the domain.
3.5. Numerical Experiments 92
Theorem 3.4.2. Let 𝑈 be the piecewise linear interpolant of the approximate solution
𝑈 obtained by using the spline discretization technique. Then, for all 𝑥 ∈ [0, 1]
𝑢 − 𝑈 ≤ 𝐶𝑁 −2 .
Proof. At every node of the equidistributed grid, we use the piecewise linear inter-
polant of the exact solution 𝑢 as 𝑢 and the triangle inequality as
𝑢 − 𝑈 ≤ k𝑢 − 𝑢k + 𝑢 − 𝑈 .
The truncation error in the first term on the RHS can be determined using the
pointwise error estimation of the decomposed solution [245]. Using Theorem 3.4.1,
the bounds of the second term on the RHS can also be estimated to obtain the
result.
√ √ −1
√ √ −1
√ √
𝑢(0) − 𝜖𝑢0 (0) = −1 − 𝜖 + 𝑒 𝜖 and 𝑢(1) + 𝜖𝑢0 (1) = 𝑒 𝜖 − 1 − 𝜖 .
93 3. Reaction-Diffusion Problem with Robin Boundary Conditions
−𝑥 −(1−𝑥)
√ √
The exact solution to the problem is given by 𝑢(𝑥) = 1 + (𝑥 − 1)𝑒 𝜖 − 𝑥𝑒 𝜖 .
ln 𝐸 𝜖𝑁 − ln 𝐸 𝜖2𝑁
𝑁
𝐸𝜖
𝑁
𝑝 = = log2 .
ln 2 𝐸 𝜖2𝑁
For every 𝑁, we define the uniform error as 𝐸 𝑁 = max 𝐸 𝜖𝑁 over a wide range of 𝜖. The
𝜖
user chosen constant 𝑄 in Algorithm 2.1 is taken to be 𝑄 = 1.3 for the construction
of layer adaptive grid. Tables 3.1 and 3.2 display the maximum norm errors and the
rates of convergence for the approximate solution computed on the layer-adapted grid
for the Examples 3.5.1 and 3.5.2, respectively. The error plots on logarithmic scale for
both the examples are shown in Figure 3.1. It can be clearly observed from the tables
and figure that the errors are uniform with respect to the perturbation parameter and
decrease monotonically with increase in 𝑁. Hence, the proposed spline discretization
technique is parameter uniform second-order convergent on layer-adapted grid.
Table 3.1: Max-norm errors and the order of convergence for the proposed spline
discretization scheme on layer-adapted grid for Example 3.5.1
Number of intervals
𝜖= 10−k N= 26 N= 27 N = 28 N = 29 N = 210 N = 211 N = 212
Table 3.2: Max-norm errors and the order of convergence for the proposed spline
discretization scheme on layer-adapted grid for Example 3.5.2
Number of intervals
𝜖= 10−k N= 26 N= 27 N = 28 N = 29 N = 210 N = 211 N = 212
(a)
(b)
Figure 3.1: Max-norm error plotted on loglog scale for (a) Example 3.5.1 and (b)
Example 3.5.2
97 3. Reaction-Diffusion Problem with Robin Boundary Conditions
Table 3.3: Max-norm errors of the proposed spline difference scheme on Bakhvalov
mesh for Example 3.5.1
Table 3.4: Max-norm errors of the proposed spline difference scheme on Bakhvalov
mesh for Example 3.5.2
Table 3.5: Max-norm errors of the proposed spline difference scheme on Shishkin
mesh for Example 3.5.1
Table 3.6: Max-norm errors of the proposed spline difference scheme on Shishkin
mesh for Example 3.5.2
Table 3.7: Max-norm errors of spline difference schemes on Uniform mesh for Exam-
ple 3.5.1
Table 3.8: Max-norm errors of spline difference schemes on Uniform mesh for Exam-
ple 3.5.2
3.6 Conclusions
We have presented a robust computational technique to approximate the solution of a
reaction-diffusion problem with robin boundary conditions. The proposed discretiza-
tion technique uses cubic splines at the robin boundary conditions and exponential
splines with a uniform tension parameter at the internal nodes of a layer-adapted grid.
The grid is generated by equidistributing a positive monitor function via an adaptive
grid generation algorithm. It is shown that the error bounds of the computed solution
yield parameter-uniform second-order convergence in discrete maximum norm. The
numerical results obtained for the proposed discretization technique are uniformly
accurate and confirm the theoretical error estimates. Furthermore, since the spline
functions are continuous throughout the domain, the proposed spline discretization
technique ensures a solution to the problem at any point of the domain. Hence, it is
advantageous to use a spline difference scheme compared to the standard difference
approximation techniques that can generate the solution only at the nodal points of
the grid.