Professional Documents
Culture Documents
Numerical Solution of A Singularly - Perturbed Boundary-Value Problems by Using A Non-Polynomial Spline
Numerical Solution of A Singularly - Perturbed Boundary-Value Problems by Using A Non-Polynomial Spline
Abstract:
We consider a non-polynomial cubic spline to develop the classes of
methods for the numerical solution of singularly perturbed two-point
boundary value problems. The proposed methods are second and
fourth order accurate and applicable to problems both in singular and non-
singular cases. Numerical results are given to illustrate the efficiency of our
methods and compared with the methods given by different authors.
1. INTRODUCTION
We consider a second−order singularly perturbed boundary value
problem
− ε y ′′ + P( x) y = f ( x) (1)
y(0)=Α, y(1)=Β, (2)
*Corresponding author.
E−mail: isk003@yahoo.co.in (I. Khan)
1
where A and B are given constants and ε is a parameter such that 0<ε<<1
and P(x), f(x) are smooth, bounded, real functions P:R→R, and f:R→R. The
approximate solution of boundary−value problems with a small parameter
affecting highest derivative of the differential equation is described. It is a
well−known fact that the solution of singularly perturbed boundary−value
problem exhibits a multiscale character. That is, there is a thin layer where
the solution varies rapidly, while away from the layer the solution behaves
regularly and varies slowly. This class of problems has recently gained
importance in the literature for two main reasons. Firstly, they occur
frequently in many areas of science and engineering, for example,
combustion, chemical reactor theory, nuclear engineering, control theory,
elasticity, fluid mechanics etc. A few notable examples are boundary−layer
problems, WKB Theory, the modelling of steady and unsteady viscous flow
problems with large Reynolds number and convective heat transport
problems with large Peclet number. Secondly, the occurrence of sharp
boundary−layers as ε, the coefficient of highest derivative, approaches zero
creates difficulty for most standard numerical schemes. The application of
spline for the numerical solution of singularly-perturbed boundary value-
problems has been described by many authors [2-5, 7-11].
2
A function S(x,τ) of class C 2 [a,b] which interpolates y(x) at the mesh
point x i depends on a parameter τ, reduces to cubic spline in [a,b] as τ→0 is
termed as parametric cubic spline function.
( xi +1 − x ) ( x − xi )
S ′′( x) − τS ( x) = [ S ′′( xi ) − τS ( xi )] + [ S ′′( xi +1 ) − τS ( xi +1 )] , (3)
h h
h2 ⎡ λ ( x − xi ) λ ( xi +1 − x) ⎤
S ( x) = 2 M sinh + M sinh
λ sinh λ ⎢⎣ ⎥
i +1 i
h h ⎦
h 2 ⎡ ( x − xi ) ⎛ λ2 ⎞ ( xi +1 − x) ⎛ λ2 ⎞ ⎤
− ⎢ ⎜ M − y ⎟ + ⎜
⎜ i h 2 yi ⎟⎟ ⎥.
M −
λ2 ⎣ h ⎜⎝
i +1 i +1 ⎟ (4)
h2 ⎠ h ⎝ ⎠⎦
yi +1 − yi h ⎡⎛ λ ⎞ ⎤
S ′( xi+ ) = − 2 ⎢⎜⎜1 − ⎟⎟ M i +1 + (λ coth λ − 1) M i ⎥ .
h λ ⎣⎝ sinh λ ⎠ ⎦
yi − yi −1 h ⎡ ⎛ λ ⎞ ⎤
S ′( xi− ) = + 2 ⎢(λ coth λ − 1)M i + ⎜⎜1 − ⎟⎟ M i −1 ⎥ .
h λ ⎣ ⎝ sinh λ ⎠ ⎦
yi − yi −1 h ⎡ ⎛ λ ⎞ ⎤
+ 2 ⎢(λ coth λ − 1)M i + ⎜⎜1 − ⎟⎟ M i −1 ⎥
h λ ⎣ ⎝ sinh λ ⎠ ⎦
3
yi +1 − yi h ⎡⎛ λ ⎞ ⎤
= − ⎢⎜1 − ⎟ M i + 1 + (λ coth λ − 1) M i ⎥ . (5)
⎜ ⎟
h λ 2 ⎢⎣⎝ sinh λ ⎠ ⎥⎦
1 ⎛ λ ⎞
⎟⎟, λ 2 = 2 (λ coth λ − 1), M i = S ′′( xi ), i = 1(1) N − 1 .
1
where λ1 = ⎜1 −
2 ⎜
λ ⎝ sinh λ ⎠ λ
For a numerical solution of the boundary value problem (1) the interval
[0, 1] is divided into a set of grid points with step length h=(b − a)/N, N
being a positive integer the spline approximation on [0, 1] that consist of the
nodal points x 0 =a, x N =b, x i =a+ ih , i = 1(1) N − 1 , then
− ε y ′′( xi ) + P ( xi ) y ( xi ) = f ( xi ) (7)
P( xi ) 1
or y ′′( xi ) = y ( xi ) − f ( xi )
ε ε
⎧ Pi −1 1
⎪ M i −1 = ε y i −1 − ε f i −1
⎪
⎪ Pi 1
⎨ M i = yi − f i (8)
⎪ ε ε
⎪ Pi +1 1
⎪ M i +1 = ε y i +1 − ε f i +1
⎩
2(ε + λ 2 h 2 P1 ) y1 + (λ1 h 2 P2 − ε ) y 2
= h 2 (λ1 f 0 + 2λ 2 f 1 + λ1 f 2 ) y i −1 − (λ1 h 2 P0 − ε ) A, i =1
4
(λ1 h 2 Pi −1 − ε ) y i −1 + 2(ε + λ 2 h 2 Pi ) y i + (λ1 h 2 Pi +1 − ε ) y i +1
= h 2 (λ1 f i −1 + 2λ 2 f i + λ1 f i +1 ), 2≤i ≤ N-2 (10)
(λ1 h PN − 2 − ε ) y N − 2 + 2(ε + λ 2 h PN −1 ) y N −1
2 2
3. Truncation error
1 1
Remark 1: if λ1 = and λ 2 = , Ti = O(h 4 ) then the resulting method is reduced
6 3
to the cubic spline that is second order method.
1 5
Remark 2: if λ1 = and λ 2 = , Ti = O(h 6 ) then the resulting method is
12 12
fourth- order method.
5
Example 4.1
y (0) = y (1)=0.
This problem has been solved using the method (9) with different values of
1 1 1
N = 16, 32, 64, 128, 256 and ε = , ,... . The maximum absolute
16 132 128
errors in solutions are tabulated in table 1 and compared with the results in
Example 4.2
− ε y ′′ + (1 + x) y = −40[ x( x 2 − 1) − 2ε ]
y (0) = y (1)=0.
This problem has been solved using the method (9) with different values of
N = 16, 32 and ε = 0.1 × 10 −3 ,.......0.1 × 10 −8 . The maximum absolute errors in
solutions are tabulated in table 2 and compared with the results in [3, 5, 7]
which shows the superiority of our methods.
6
Table 1: Maximum absolute errors in solutions of problem 1
Our method
7
Surja and Vukoslavcevic’s method [11]
8
Table 2: Maximum absolute errors in solutions of problem 2
For N=16
For N=32
9
References:
10
[9] Surla, K., Stojanovic M., Solving singularly perturbed boundary
value problems by splines in tension, Journal of Comput. and
Applied Maths, 24 (1988) 355-363.
[11] Surla, K., and Vukoslavcevic, V., A spline difference scheme for
boundary value problems with a small parameter , Review of
research , Faculty of science , Mathematics series, university of
Novi sad, 25 (1995), 159-166.
11