Al-Said et al
-
Upload
jishan-ahmed -
Category
Documents
-
view
216 -
download
0
Transcript of Al-Said et al
![Page 1: Al-Said et al](https://reader036.fdocuments.net/reader036/viewer/2022082723/577cdd5d1a28ab9e78ace7c9/html5/thumbnails/1.jpg)
7/30/2019 Al-Said et al
http://slidepdf.com/reader/full/al-said-et-al 1/5
International Journal of the Physical Sciences Vol. 6(17), pp. 4208-4212, 2 September, 2011Available online at http://www.academicjournals.org/IJPSISSN 1992-1950 ©2011 Academic Journals
Full Length Research Paper
Quartic spline method for solving second-orderboundary value problems
Eisa A. Al-Said1, Muhammad A. Noor1,2*, Anwar H. Almualim4, B. Kokkinis3 and JohnColetsos3
1Mathematics Department, College of Science, King Saud University, Riyadh 11451, Saudi Arabia.
2Mathematics Department, COMSATS Institute of Information Technology, Park Road, Islamabad, Pakistan.
3Department of Mathematics, National Technical University of Athens, Zografou Campus, 15780 Athens, Greece.
4Women Students Medical Studies (Sciences Sections), Mathematics Department, King Saud University, Riyadh 11495,
Saudi Arabia.
Accepted 21 March, 2011
In this paper, uniform quartic spline polynomial functions are used to develop some consistencyrelations which are then used to derive a numerical method for approximating the solution and its first,second, third and fourth derivatives of second order boundary value problems. The present method iscapable of producing fourth order accurate approximations for the solution, as well as its first andsecond derivatives, and the second order accurate approximations for its third and fourth derivatives.The main consistency relation for the study’s quartic spline method is the same relation derived byUsmani et al. (1987) using quartic spline function. Their spline method has a stability problem whichaffects the accuracy of the computed approximations, whereas for the study’s new method, suchstability problem does not appear. The present method produces more accurate approximations for thefirst and third derivatives of the solution than those produced by the other quartic spline method. Anumerical example is included to demonstrate the efficiency and implementation of the proposed
method.
Key words: Boundary value problems, quartic spline function, finite difference approximations, convergenceanalysis.
INTRODUCTION
We consider using quartic spline functions to develop anumerical method for obtaining smooth approximationsfor the solution and derivatives of a second orderboundary value problem of types:
( ) ( ) ( ), y x f x y g x′′ = +(1)
*Corresponding author. E-mail: [email protected],[email protected].
AMS Subject Classifications: 65L12
( ) ( ), , y a y bα β = = (2)
Where ( ) f x and ( )g x are continuous functions on the
interval[ ],a b . Here, , , aα β and b are real constantsThe use of spline functions to construct numericamethods for solving boundary value problems of form (1)started in the late 1960’s, when Ahlberg et al. (1967)briefly discussed the possibility of using spline to solveboundary value problems in ordinary differentiaequations and followed by Albasiny et al. (1969), wherethey developed a cubic spline method for solving secondorder boundary value problems. Following this, severaauthors investigated and developed spline methods fosolving problem (1) (Almulaim, 2009; Al-Said, 1996, 1998
![Page 2: Al-Said et al](https://reader036.fdocuments.net/reader036/viewer/2022082723/577cdd5d1a28ab9e78ace7c9/html5/thumbnails/2.jpg)
7/30/2019 Al-Said et al
http://slidepdf.com/reader/full/al-said-et-al 2/5
Al-Said et al., 2002; Usmani et al., 1980, 1987). The mainadvantage of the spline methods is its capability ofproducing approximations for the solution and its
derivatives over the whole interval[ ],a b . Usmani et al.
(1987) used quartic spline polynomial functions toconstruct a numerical method for solving problem (1).The spline method discussed in Usmani et al. (1987) iscapable of producing approximations for the solution, aswell as its first, second and third derivatives.
In the present paper, we use quartic spline polynomialfunctions to develop a numerical technique for computingapproximations for the solution of (1) and its derivatives.The new method is of order four, and the fourth orderaccuracy holds for approximating the solution and its firstand second derivatives. Also, our new method is capableof producing second order accurate approximations forthe third and fourth derivatives. As expected, the mainconsistency relation for this study’s method is the sameone given in Usmani et al. (1987), which is Numerov's
approximation. However, the method produces betterapproximations for the first and third derivatives than theother quartic spline methods considered in Usmani et al.(1987). This is due to the fact that the quartic splinemethod has stability problem when computing theapproximation of the first derivatives. This fact shows thatthe method affects the computations of theapproximations for the third derivatives. Also, anotheradvantage of the present method is capable of computingapproximations for the fourth derivative. The outline ofthe paper is as follows. Subsequently, the newconsistency relations were derived and the quartic splinemethod was developed for solving problem (1), after
which the convergence analysis of the study’s methodwas shown. The numerical experiments and thecomparison with other methods were then given after-wards.
QUARTIC SPLINE METHOD
In order to develop the quartic spline method for solving the
boundary value of problem (1), the interval [ ],a b was divided into
( )1 N + equal subintervals using the grid points ,i x a i h= +
for0 10,1, 2, , 1, , ,
ni N x a x b
+= + = =K where
,1
b ah
N
−=
+(3)
and N is a positive integer. Letis be the approximation to
( )i i y y x= obtained by the quartic spline ( )iQ x passing
through the points ( ),i i x s and ( )1 1
, .i i x s
+ +As such, ( )iQ x is
written in the form that follows:
Al-Said et al. 4209
( ) ( ) ( ) ( ) ( )4 3 2
, 0,1,2, , .i i i i i i i i i iQ x a x x b x x c x x d x x e i N = − + − + − + − + = K(4
Then the quartic spline function is defined by
( ) ( ) ( ) [ ]3, 0,1, , , .i
s x Q x i N s x C a b= = ∈K
We first develop explicit expressions for the five coefficients in (4)
in terms of 1 1 1, , , , , ,i i i i i i
s s D D F F + + +
where
( ) ( ) ( )
( ) ( ) ( ) [ ]
1 1
4
1 1 1
, , ,
1, , 0,1, 2 , , .
2
i i i i i i i i i
i i i i i i i
Q x s Q x s Q x D
Q x D Q x F F i N
+ +
+ + +
′′= = =
′′ = = + = K
(5
Wherei i i i D f s g= + with ( )i i f f x= and ( )i ig g x= .
From Equations (4) and (5), we get;
[ ]1
1,
4 8i i ia F F
+= + (6)
[ ] [ ]1 1
1,
6 24i i i i i
hb D D F F
h+ +
= − − + (7)
1,
2i i
c D= (8)
[ ] [ ] [ ]3
1 1 1
12 ,
6 4 8i i i i i i i
h hd s s D D F F
h+ + +
= − − + + +(9)
,i i
e s= (10)
Now, from the continuity of the first derivatives of the quartic spline
( )s x at point ( ),i i
x s , where the two quartics ( )1iQ x
−and
( )iQ x are joined together, we have ( ) ( )1
.i i i iQ x Q x
−′′ =
This equation gives
[ ] [ ] [ ]2
2
1 1 1 1 1 14 6 2 2 .8
i i i i i i i i i
hh D D D s s s F F F
+ − + − + −+ + = − + + + + (11)
Also, from equation (4) and from the continuity of the third
derivatives of the quartic spline ( )s x at point ( ),i i x s , we get
[ ] [ ]2
2
1 1 1 12 2 ,
4i i i i i i
hh D D D F F F
+ − + −− + = + +
(12)
From equations (11) and (12), we have
[ ] [ ]2
2
1 1 1 16 2 2 ,48
i i i i i i i
hh D s s s F F F
+ − + −= − + − + + (13)
The elimination ofi
D from (12) and (13) yields:
![Page 3: Al-Said et al](https://reader036.fdocuments.net/reader036/viewer/2022082723/577cdd5d1a28ab9e78ace7c9/html5/thumbnails/3.jpg)
7/30/2019 Al-Said et al
http://slidepdf.com/reader/full/al-said-et-al 3/5
4210 Int. J. Phys. Sci.
[ ] [ ]2
1 1 1 12 10 , 0,1, 2, , .12
i i i i i i
hs s s D D D i N
+ − + −− + = + + = K
(14)
The recurrence relation in (14) forms a system of N linear
equations in the N unknowns ,i
s 0,1, 2, , .i N = K The quartic
solution of the boundary value problem (1) is based on linear
equation (14). Having the values of ,i
s 0,1,2, ,i N =K
, by
solving system (14), we can compute ,i
D 0,1, 2, , 1i N = +K ,
using the differential equation (1). Now, we can compute
,i
F 0,1,2, ,i N = K , using (12). Note that for computing0
F
and1 N
F +
, the following relations:
0 0 1 0 0 0 0 0 0 0 0 0 0
2 22 ,F f s f f f hf f s f hf g g
h h
′ ′′ ′ ′ ′ ′′= + + − − + − +
(15)
1 1 1 1 1 1 1 1
1 1 1 1
2 22
,
N N N N N N N N N
N N N N
F f s f f f hf f s
h h
f hf g g
+ + + + + + + +
+ + + +
′ ′′ ′′ ′=− + + + +
′ ′′+ + +
(16)
were used respectively. We remark that the knowledge of,
,i is D
and ,i
F 0,1, 2, , 1i N = +K , enabled us to write down
( ) ,iQ x 0,1,2, ,i N = K as given by (4). Thus, the quartic
spline ( )s x , approximating the solution of problem (1) was
determined.
CONVERGENCE ANALYSIS
The convergence analysis of the quartic spline method describedpreviously was investigated. For this purpose, the study first
allowed ( ) ( ) ( ) ( ) ( ), , , , and ,i i i i i y s c t e= = = = =y s c t e
to be N-dimensional column vectors. Here, ,i i ie y s= − is the
discretization error andi
t is the local truncation error for the
consistency relation of (13) and is given by:
( ) ( ) ( )6 8
1 1
1, , 0,1,2, , .
240
vi
i i i i it h y O h x x i N ξ ξ − +
=− + < < = K(17)
Using these notations, the study’s quartic spline method can bewritten as:
r Ay = + t , (18)
As = r, (19)
.Ae = t (20)
21,
12h= +A B PF (21)
Where ( )i jb=B is the tridiagonal matrix given by:
2, 1,2, ,
1, 1
0, otherwise.
i j
i j N
b i j
= =
= − − =
K
The matrix ( )i j p=P is the N N × tridiagonal matrix defined
by:
10, 1,2, ,
1, 1
0, otherwise.
i j
i j N
p i j
= =
= − =
K
and the diagonal matrix ( )diag , 1, 2, , .i f i N = =FK
, whilethe vector r is defined by:
[ ]
[ ]
[ ]
2
0 0 1 2
2
1 1
2
1 1 1
110 , 1
12
110 , 2 1
12
110 ,
12
i i i i
N N N N
h f g g g i
r h g g g i N
h g g f g i N
α α
β β
− +
− + +
− + + + =
= − + + ≤ ≤ −
− + + + =
(22
The study’s main purpose now is to derive a bound on e . From
the aforeseen relations, we have:
1 1
1 2 2 1 11 1I
12 12t h h
− −
− − − = = + = +
e A B PF t B PF B t
and
1
2 1
,1
112
h
−
−
≤
−
B te
B P F
(23)
provided that2 11 1.
12h
−<B P F
However, it is well known (Henrici, 1961) that
( )2
1
2,
8
b a
h
−−
=B (24)
Thus, using these equations and the fact that:
![Page 4: Al-Said et al](https://reader036.fdocuments.net/reader036/viewer/2022082723/577cdd5d1a28ab9e78ace7c9/html5/thumbnails/4.jpg)
7/30/2019 Al-Said et al
http://slidepdf.com/reader/full/al-said-et-al 4/5
Al-Said et al. 4211
Table 1. Observed errors using the study’s quartic spline method for problem (28).
h maxi i
i y s− max
i ii
y s′ ′− maxi i
i y s′′ ′′− max
i ii
y s′′′ ′′′− ( ) ( )max
iv iv
i ii
y s−
1/8 1.74 × 10-7
1.65 × 10-6
6.28 × 10-8
2.20 × 10-3
2.15 × 10-2
1/16 1.10 × 10-8
1.08 × 10-7
4.00 × 10-9
5.72 × 10-4
6.20 × 10-3
1/32 6.85 × 10-10 6.84 × 10-9 2.50 × 10-10 1.44 × 10-4 1.70 × 10-3
t( ) ( )
6
6 6
1, max ,
240 x M M y x= =t and
( )12 and max , x
f x= ≤P F we obtain
( )
( )4
4 46 ,
12 1 max x
M hKh O h
f x
λ
λ
≤ = ≅ −
e (25)
Where
( )
6
12 1 max x
M K
f x
λ
λ =
−
and ( )21
.8
b aλ = −
Inequality (25) indicates that (18) is a fourth order convergentmethod.
Now, a brief discussion is given regarding the accuracy of theconsistency relations of (18) to (21) and (11), which are used for
computing the approximations of( )4
, and ,i i i
y y y′ ′′′
respectively. The local truncation errors are:
( ) ( ) ( )5 5 65 5 61 1 1, and ,
720 12 6i i i
h y h y h y− − − (26)
respectively
Thus, the order of convergence for the approximation of the firstderivative of the solution is four and that of the third and fourth
derivatives are two. Also, since ,i i i i is D f s g′′ = = + then
( )
( )( ) ( )4 4
max max max
max max max
max
i i i i i i i i i i ii i i
i i ii x i
x
y s f y g f s g f y s
f e f x e
K f x h O h
′′ ′′− = + − − = −
= ≤
≤ ≅
(27)
which indicate that the order of accuracy for the approximation ofthe second derivative is four. Consequently, these results aresummarized in the following theorem.
Theorem
Let ( ) [ ]6 , y x C a b∈ be the exact solution of the boundary
value problem (1), and ( )s x the quartic spline solution
approximating ( ) y x . Then
( ) ( ) ( )( ) ( )( ) ( )
( )1
1 2max , 4 , 0,1,2,3,4
2 1 4
m m v m
i ii n
m m m y s O h v m m
m m≤ ≤
− −− = = − =
− + −
NUMERICAL RESULTS AND DISCUSSION
The use of the quartic spline method describedpreviously to solve a boundary value problem wasdemonstrated and the numerical results of this studywere compared with those produced by the quartic splinemethod of Usmani et al. (1987).
Example
A consideration is made in solving the boundary valueproblem
( ) ( )
2
2 1,
2 0, 3 0
y y x x
y y
′′ = −
= =
(28)
The exact solution for this problem is
( ) 21 365 19 .
38 y x x x
x
= − + −
This problem was
solved using the quartic spline method with a variety of hvalues and the observed maximum errors in absolute
values associated with( )
, 0,1, 4m
i
y m = K were given in
Table 1. As seen in Table 2, it can be observed that if the
stepsize h is reduced by a factor1
,2
then the maximum
errors( ) ( )max
m m
i ii
y s− are reduced by factor1
16, when
0,1,2m = and by1
4when 3,4.m = Thus, the
numerical results confirm that the study’s quartic splinemethod gives the fourth order accurate approximations
![Page 5: Al-Said et al](https://reader036.fdocuments.net/reader036/viewer/2022082723/577cdd5d1a28ab9e78ace7c9/html5/thumbnails/5.jpg)
7/30/2019 Al-Said et al
http://slidepdf.com/reader/full/al-said-et-al 5/5
4212 Int. J. Phys. Sci.
Table 2. Observed errors using quartic spline method for problem (28) (Usmani et al., 1987).
h maxi i
i y s− max
i ii
y s′ ′− maxi i
i y s′′ ′′− max
i ii
y s′′′ ′′′−
1/8 1.74 × 10-7
2.72 × 10-6
6.28 × 10-8
2.90 × 10-3
1/16 1.10 × 10-8
1.93 × 10-7
4.00 × 10-9
8.14 × 10-4
1/32 6.85 × 10-10 1.29 × 10-8 2.50 × 10-10 2.16 × 10-4
for the solution and its first and second derivatives, andthe second order approximation for the third and fourthderivatives as predicted in convergence analysis.
Conclusion
In this paper, a new method was developed for solvingthe second-order boundary value problem using the
quartc spline technique. Also, the convergence of thenew method was considered. Some numerical examplesare given to illustrate the efficiency and implementation ofthe proposed method. The results of this study show asignificant improvement of the previous known results. Itwould be interesting to extend the results of this paper forsolving the variational inequalities associated withobstacle and contact problems (Noor, 1988, 2004, 2009;Noor et al. 1993, 2010, 2011, 2011a, 2011b) and thereferences therein. Nonetheless, this is another directionfor future research.
ACKNOWLEDGEMENTS
This research was supported by the visiting Professor’sProgram of King Saud University, Riyadh, Saudi Arabiaand the Research Grant No: KSU.VPP. 108.
REFERENCES
Ahlberg JH, Nilson EN, Walsh JL (1967). The Theory of Spline andTheir Applications, Academic Press, New York.
Albasiny EL, Hoskin WD (1969). Cubic spline solutions to two pointboundary value problems, Comput. J., 12: 151-153.
Almualim AH (2009). Numerical Methods for Solving Certain Initial andBoundary Value Problems in Differential Equations, M.S ThesisMathematics Department, King Saud University, Riyadh, SaudArabia.
Al-Said EA (1996). Splines solutions for system of second ordeboundary value problems, Int. J. Comput. Math., 62: 143-154.
Al-Said EA (1998). Cubic spline method for solving two-point boundaryvalue problems, Korean J. Comput. Appl. Math., 5: 669–680.
Al-Said EA (1999). Smooth spline solutions for a system of secondorder boundary value problems, J. Nat. Geometry, 16: 19-28.
Al-Said EA, Noor MA (2002). Quartic spline method for solving fourth
order obstacle boundary value problems, J. Comput. Appl. Math.143: 107-116.
Henrici P (1961). Discrete Variable Methods in Ordinary DifferentiaEquations, John Wiley, New York.
Noor MA (1988). General variational inequalities, Appl. Math. Letters, 1119-121.
Noor MA (2004). Some developments in general variational inequalitiesAppl. Math. Comput., 152: 199-277.
Noor MA (2009). Extended general variational inequalities, Appl. MathLett., 22: 182-185.
Noor MA, Noor KI, Rassias TM (1993). Some aspects of variationainequalities, J. Comput. Appl. Math., 47: 285-312.
Noor MA, Noor KI, Rafiq M, Al-Said EA (2010). Variational iterationmethod for solving a system of second-order boundary valueproblems, Int. J. Nonl. Sci. Numer. Simul., 11(12): 1109-1120.
Noor MA, Noor, KI, Waheed A, Al-Said EA (2011). Modified variation oparameters method for solving system of second-order nonlinea
boundary value problems, Int. J. Phys. Sci., 5(16): 2426-2431.Noor MA, Noor, KI, Waheed A, Al-Said EA (2011a). On computationa
methods for solving systems of fourth-order nonlinear boundary valueproblems, Int. J. Phys. Sci., 6(1): 128-135.
Noor MA, Shah FA, Noor KI, Al-Said EA (2011b). Variational iterationtechnique for finding multiple roots of nonlinear equations, Sci. ResEssay, 6: in Press.
Usmani RA, Warsi SA (1980). Quintic spline solution of boundary valueproblems, Comput. Math., Appl. 6: 197-203.
Usmani RA, Sakai M (1987). A connection between quartic splinesolution and Numerov solution of a boundary value problem, Int. JComput. Math., 26: 263-273.