You are on page 1of 5

Open Access Journal of Science

Research Article Open Access

Solving numerically a sixth order differential


equation as coupled finite difference equations
approach
Abstract Volume 2 Issue 6 - 2018

In this article we have considered sixth order boundary value problem. We have
Pramod Kumar Pandey
proposed the finite difference method for solving problem as coupled equations. Associate Professor, Dyal Singh College (University of Delhi),
We get numerical approximation of third derivative of solution of the problem as a India
byproduct of the proposed method. We have established theoretically the convergence
of the proposed method under appropriate conditions. We have tested the proposed Correspondence: Pramod Kumar Pandey, Associate Professor,
method on model problems for the numerical result. Experimental result approves the Dyal Singh College (University of Delhi), Lodhi Road, New Delhi
theoretical result. 110003, India, Tel 9910206270, Email

Keywords: boundary value problem, finite difference method, quadratic order Received: December 21, 2017 | Published: November 28,
convergence, sixth order differential equation, splitting method 2018

Introduction in this article as follows: In Section 2 the finite difference method,


in Section 3 we have derived a finite difference method. In Section
In the present article we consider a technique for the numerical 4, we have discussed convergence of the proposed method under
solution of the sixth order boundary value problems of the following appropriate condition. The experiment with the proposed method on
form: model problems and numerical results in Section 5. A discussion and
conclusion on the overall performance of the proposed method are
u 6 ( x )= f ( x ,u ), a < x<b, (1.1) presented in Section 6.

Subject to the boundary conditions The difference method


Let us assume u ( x ) is solution of the considered sixth order
= u n ( a ) α 2 ,=
u ( a ) α1 ,= u 4 ( a ) α 3 ,u ( b )− β1 ,u 3 ( b )= β 2 and u 4 ( b )= β 2
differential equation and following third order boundary value
problem,
Where α1 ,α 2 ,α 3 β1 , β 2 and are real constant.
The occurrence of sixth order deferential equation and u ( 3 ) ( x ) = v ( x ) , a < x <b (2.1)
corresponding boundary value problems in detail studied and discussed
in.1 Let us assume f ( x , u ) be smooth to ensure the existence and And the boundary conditions are
uniqueness of the solution of the problem (1.1). However the detail
n
analytical concepts on existence, uniqueness of solution of problem u ( a ) α=
= 1 ,u ( a ) α 2 and u ( b )= β1
(1.1) discussed in.2 The emphasis in present article will be on the
development of a numerical technique for the numerical solution of So problem (2) represents a splitting of system (1) into two coupled
the problem (1.1). Several numerical methods for solving the sixth problems. Where v ( x ) is some regular differentiable function in [a;
order boundary value problem have been reported in literature. b]. Finally we have following problem, a splitting of problem (1.1)
Some of these reported methods such as finite difference3,4 finite into coupled third order boundary value problem,
element5,6 spline solution7,8 differential transformation and adomian
decomposition,9 reproducing kernel,10 modified decomposition11 u ( 3 ) ( x ) = f ( x , u ) , a < x <b (2.2)
and homotopy perturbation12 and other references therein have
been developed for numerical solution of sixth order boundary And the boundary conditions are
value problems. Some progress has been made in recent years in
development of numerical technique for the solution of third order υ ( b ) β= ' d υ '(b ) β2
= 2 ,υ ( a ) α 3 an=
boundary value problems. These techniques are very satisfactory and
yield a highly accurate solution.13 Hence, the purpose of this article is
If u"( b ) is known instead of u 3 ( b ) , so we will have to approximate
to incorporate this development in developing numerical technique
the value of v (b). Thus the six order boundary value problem (1.1)
for numerical solution of sixth order boundary value problems (1.1).
has been reduced to a system of cubic order boundary value problems
We have developed finite difference method for numerical solution of
(2.1)-(2.2). We partition the interval [a, b] on which the solution of
sixth order boundary value problem by splitting method, a system of
problem (1.1) is desired to introduce finite number of nodal points
boundary value problems. We hope that others may and the proposed
into a subintervals a ≤ x0 < x1 x2 <......< xN +1≤b by using uniform
method an improvement to those existing finite difference methods
for sixth order boundary value problems. We have presented our work step length h such that xi =+
a ih; i =
0,1,2,...., N +1 . We wish to

Submit Manuscript | http://medcraveonline.com Open Access J Sci. 2018;2(6):381‒385. 381


© 2018 Pandey. This is an open access article distributed under the terms of the Creative Commons Attribution License, which
permits unrestricted use, distribution, and build upon your work non-commercially.
Copyright:
Solving numerically a sixth order differential equation as coupled finite difference equations approach ©2018 Pandey 382

determine the numerical solution u ( x ) of the problem (1.1) at these


nodal points x . Let u denote the numerical approximation of u(x) 43h3
i i Where T is local discretization error and equal to − u ( 5) .
ui 120
at these node x = xi , i =1,2,.... N .Let fi denote the approximate value i
Similarly we can derive the following equations
of the source function f ( x , u ( x ) ) at these node x = xi , i =0,1,2,.... N +1
. Thus the boundary value problem (1.1) replaced by the system of h3
boundary value problems (2.1)-(2.2) may be written at this node − ( vi −1+ 2vi −vi +1 ) + h 2u " + (17 fi −5 fi +1 ) +Tui =
0 (3.4)
i −1 12
xi , i 0,.... N +1 as,
x ==
u ( 3 )=ui (2.3) h3
i u i − 2 −3ui −1+3ui −u i +=
1 ( −3ui +ui +1 )+Tui , 3≤i ≤ N
2
u ( 3 ) = fi Where local discretization error Tui are respectively equal to,
i
313h5 ( 5) 146 h ( 5 ) 5
In this case, we have two cubic order differential equations with − 2 , and −
ui , i = u ,3 ≤ i ≤ N
different boundary conditions. Following the ideas in,13,14 we propose 120 120 i
our finite difference method for a numerical solution of problem (2.3),
h3
3 −2 hυ i' −1+ ( 7 fi + 4 fi +1 )+Tυi , i =1
5υi −8i +1+3υi + 2 = (3.5)
h 3
− h 2u"i −1+ ( −17ui +5ui +1 ), i =
−ui −1 + 2ui −ui +1 = 1 (2.4)
12
h3
−υi −1−=
3υi −3υi +1 ( fi + fi +1 )+Tυi , 2≤i≤ N −1
h 3 2
− h 2u"i − 2 + ( −47ui + 23ui +1 ), i =
−ui −1 + 2ui − u i +1 = 2
12 h 3
−2 hυ i' +1 ( 3 fi + fi +1 )+Tυi , i = N
−υi −1+ 4υi −3υi +1=
6
h3
ui − 2 − 3ui −1+3ui −=
ui −1 ( 7 fi +ui +1 ), 3≤i≤ N
3 Where local discretization error T are respectively equal to
υi
h 3 5
13h ( 5 ) 2h 5
1h5
5ui −8ui +1−3ui + 2= 2 h 2u 'i −1+ ( 7 f + 4 fi +1 ), =i 1 (2.5) − 1, −
u i ,i = u ( 5 ) 2 ≤ i ≤ N − 1 and − u ( 5 ),i =
N.
3 120 15 i 60
i
h3
−υ
i −1
_ 3υ − 3
i υ +1
+υ =
2 i
( f + 4 fi +1 ) , 2 ≤ i ≤ N − 1 From (3.3)-(3.5), we have obtained local discretization error of

( ) ( )
i+2
the order O h5 .Thus by neglecting the O h5 term in (3.3)-(3.5), we
3
h
−υi −1 _ 3υi −3υ +1 +υ=
i+2
( fi + 4 fi +1 ), 2≤i≤ N −1 will get our proposed difference method for the numerical solution
2
of the problem (1.1). If we need to find v (b) corresponding to u " ( b )
If the forcing function f ( x , u ) in problem (1.1) is linear then the given boundary condition. We approximate v(b) for the boundary
the system of equations (2.4) will be linear otherwise we will obtain
4
nonlinear system of equations. condition using u " ( a ) , u " ( b ) , u ( b ) i.e.
Derivation of the difference method
In this section we outline the derivation of the proposed method, υ (b) =
u "( b )−u "( a ) b − a
b−a
+
6 (
2υ ( 4 ) ( b )+u 4 ( a ) ) (3.6)
we have followed the same approach as given in.13 Let us write a
linear combination of solution u ( x ) and v ( x ) at nodes xx +1 , xi But in this case the order of truncation error will not be O ( )
h
5

Convergence analysis
(
a2ui +1 + a1ui −1 + ao ui + h2b1 u"i −1 + h b2 ui' +1+bo u1' =
3
0 )
We will consider following test equation for convergence analysis
(3.1) of the proposed method (2.4-2.5).
Where a , a , a , b , b and b are constants to be determined. 6
( x ) = f ( x,u ) , a < x < b .
u (4.1)
0 1 2 0 1 2
Expanding each term on the left hand side of (3.1) in Taylor series
about the point xi and using method of undetermined coefficients, we = (4) (3) (4)
u ( a ) α1=; u "( a ) α 2 ; u= ( a ) α=3 ; u (b ) β1 ; u
= (b ) β 2 and u= (b ) β 3
get
Let w be the approximate solution of difference method (2.4-2.5) for
17 5
( a0 ,a1 ,a2 ,b0 ,b1 ,b2 )=  2,−1,−1, ,− ,1 numerical solution of the problem (4.1), we can write in the matrix
 12 12  (3.2) form
Thus from (3.1)-(3.2), we have
Jw=Rh (4.2)
2 " h3
− ( vi −1 + 2vi −vi +1 ) + h u i −1+ (17 fi −5 fi +1 ) +Tui =
0 Where J is coefficient = matrix, w [u= T T
,v ] and Rh [ rh1,rh2 ] these
12
(3.3) matrixes are

Citation: Pandey PK. Solving numerically a sixth order differential equation as coupled finite difference equations approach. Open Access J Sci.
2018;2(6):381‒385. DOI: 10.15406/oajs.2018.02.00115
Copyright:
Solving numerically a sixth order differential equation as coupled finite difference equations approach ©2018 Pandey 383

 2  Subtract (4.3) from (4.2) and substitute the above defined error into
 α1 − h α 2 
 2  it, we will obtain
 −h α2 
0  JE = T (4.4)
   u1 
   
  .  Let investigate the inevitability of the matrices C ( u ) and
 h 3
 .  1
 β1 + 2 β 2  
.


C
2
(υ ) . These matrices have different structure so we have to rely
 
 h 3
−2 hα 3 + ( 7 f1 + 4 f 2 )
 
 uN

 on computation of explicit inverse. Let explicit inverses of C ( u )
Rh =  ,w , 1

 3
3 

 1
υ
 .

 and C (υ ) be respectively C=
2
−1 (υ ) k
1 i , j N × N , where( )
h (f +f )  
 3 2 3   . 
     ( N −i +1)
   .   , j = 1, i ≤ j ≤ N
 h3   υN


 2 N ×1  (N +N )
 ( fN −1+ fN )  
 2   i ( N − j +1)( N − j + 2 )
  ki , j =  , j ≠1,i ≤ j ≤ N ,
3  2( N + N )
 3β − 2 hβ + h 3 fN + f 
 2 3 ( N +1 )   2
 6  2 N ×1
 ( N −i )( N −i +1)( N − j ( j −1) −1) −(( N −i )2−1)( N − j +1)( N + j ), j <i
 2( N +1)
and let us define the coefficients matrix J in terms of block matrix, 

 C1 (u )  C1 (u )  C (υ )
and=
2
(li, j ) N × N
J =    
 C (v)  C (v) 
 2 2  2 N ×2 N  i −1 2 2
 ( ) a2, j − ( i − 4 ) a1, j , i <j
 3 3
Where 
 ( N − j +1)2
 2 −1 0 0 17 −5 0  li , j =  , j = 1,i ≤ j ≤ N ,

−1 2 −1 0
 
47 −23
  4( N + N )
     2
1 −3 3 −1 
 ( N −i +1) ( 2 j − N +8 )
3 18 −6 
h
C1( u )  =  ,C1(υ )   N ×N 1 < j, j ≤ i ≤N
      12      4( N +1)
  

1 −3 3 −1 18 −6 
   
 1 −3 3  N ×N  0 18   N 2 + 2 N −6) − 4( N − 2 j + 2)(( N +1)( N − 2 j ) −( N −3)) N
 , 2≤ j <
 5 −8 3 0   8( N + N ) 2


 −1 3 −3
   
1




a2, j = 
(
 N 2 + 2 N −6
,
) j
N

C2 (υ )  N ×N ,  8( N + N ) 2
 −1 3 −3 1   2 2
  ( N + 2 N −6) − 2(5 N −16)( N − 2 j ) +8, N
−1 3 −3   < j≤ N
  8( N +1) 2
 0 −1 4  

and matrix C (υ ) N × N depends on forcing function f ( x ,u ) may  N 2 −( N −1)( N − 2 j )( N − 2 j + 2) N


2  , 2≤ j <
be well defined. The exact solution W = [U , V ]T of the difference  8( N + N ) 2

method (2.4-2.5) satisfies the following equation  N ( N +2) N
= a1, j = , j
(4.3)  8 2
JW
= Rh + T
 ( N +1)( N + 2 Nj − 2 j 2 ), N
 < j≤ N
 4( N +1) 2
Where T = [Tu ,Tv ]T . Let T = (t ) , where 
m ,1 2 N1

 43h5 ( 5 )

It is easy to prove that matrices C1 ( u ) and C2 (υ ) are positive.
um , m =1
 120 Let us define following terms,15

131h u ( 5 ),
5

 120 m
m=2 υ up =C2 ( u )C 2−1(υ ), υ low =C1(υ )C1−1(υ )

5
 73h ( 5 ) 2< m ≤ N

 60
um , (1 + υ up ) and M * =
M *= (1 + υ low ).
tm ,1 = 
13h5 ( 5 )
 υ m , m= N +1 Let us assume
 12
 2 h5 ( 5 )
 υ m , N + 2≤ m≤ 2 N −1 M *M * < M * + M * and M = max −1
p =1,2C p ( u /υ )
 15
 5
 h υ ( 5 ), m = 2 N . then matrix J is invertible15 and moreover
 60 m

MM *M *
 j −1≤ (4.5)
Let us define an error function the difference between approximate
M * + M * − M *M *
and exact solution of the difference method (2.4-2.5) i.e. E = w − W.

Citation: Pandey PK. Solving numerically a sixth order differential equation as coupled finite difference equations approach. Open Access J Sci.
2018;2(6):381‒385. DOI: 10.15406/oajs.2018.02.00115
Copyright:
Solving numerically a sixth order differential equation as coupled finite difference equations approach ©2018 Pandey 384

Numerical Results
MM *M * To test the computational efficiency of method (2.4), we have
It is easy to prove that is finite. Thus from (4.4) considered four model problems. In each model problem, we took
and (4.5), we have M * + M * − M *M *
uniform step size h. In Table 1 to Table 4, we have shown MAEU
and MAEV the maximum absolute error in the solution u(x) and
MM *M * derivatives of solution v(x) of the problems (1.1) for different values
 E  TJ −1≤T 
= (4.6)
M * + M * − M *M * of N. We have used the following formulas in computation of MAEU
and MAEV:
and  E  is bounded. It is easy to prove  E  tends to zero as MAEU
= max u ( xi )−ui
h → 0 . So we can conclude that finite difference method (2.4-2.5) 1≤i ≤ N
converge and the order of convergence of the difference method (2.4-
2.5) is at least O h 2( ) MAEV
= max u '( xi )−vi
1≤i ≤ N
Table 1 Maximum absolute error (Problem 1)

16 32 64 128

MAEU.1 4035692(-2) .26897894(-3) .57788714(-6) .98105907(-7)

MAEV. 11683015(-4) .13530459(-6) .20602256(-6) .20949233(-5)

We have used Gauss Seidel and Newton-Raphson iteration method


to solve respectively linear and nonlinear system of equations arised The analytical solution of the problem is u (=
x) x (1 + x ) exp ( − x ).
from equation (2.4). All computations were performed on a Windows The MAEU and MAEV computed by method (2.4-2.5) for different
2007 Ultimate operating system in the GNU FORTRAN environment values of N are presented in Table 1.
version 99 compiler (2.95 of gcc) on Intel Core i3-2330M, 2.20 Ghz
PC. The solutions are computed on N nodes and iteration is continued Problem 2 The model linear problem given by
until either the maximum difference between two successive iterates
u (6) ( x ) = −u ( x ) + 6(2 x cos( x )+5 sin ( x )), 0< x<1
is less than 10−6 or the number of iteration reached 10 .
3

Problem 1 The model linear problem given by Subject to boundary conditions


(6)
u =
( x) − xu ( x ) + (24 − 11x + 2 x
2 3
+ x ) exp( − x ), 0 < x < 1 = u "(0) 0, u (4)
u (0) 0, = = (0) 0,
= u (1) 0,

Subject to boundary conditions u (3) (1) = −6sin (1)+ 6cos(1) and u (4) (1) = −12sin (1)−8cos(1).
u (0)
= 0, u "(0) = 0, =
u (0)
( 4)
8, u (1)
= 2 exp ( −1), The analytical solution of the problem is u ( x ) = ( x 2 −1) sin( x ).
The MAEU and MAEV computed by method (2.4-2.5) for different
(3) ( 4)
u (1) = exp ( −1) and u (1) = 2 exp ( −1). values of N are presented in Table 2.

Table 2 Maximum absolute error (Problem 2)

16 32 64 128

MAEU.1 .26380718(-2) .56681037(-3) .15497208(-5) .89406967(-7)

MAEV. .71525574(-5) .95367432(-6) .23841858(-5) .23841858(-5)

Problem 3 The model nonlinear problem16 given by


=u "(1) exp(
= −1) and u (4) (1) exp( −1).
u (6) ( x ) u2 ( x ) exp( x ),
= 0 <x <1
The analytical solution of the problem is u ( x ) = exp ( − x ). The
Subject to boundary conditions MAEU and MAEV computed by method (2.4-2.5) for different values
u (0) 1, =
= u "(0) 1, u (4)
= (0) 1,=
u (1) exp( −1), of N are presented in Table 3.

Table 3 Maximum absolute error (Problem 3)


N

32 64 128 256

MAEU.1 .14109015(-2) .64671040(-4) .17881393(-6) .11920929(-6)

MAEV. .25051057(-1) .25049835(-1) .25040478(-1) .25039405(-1)

Citation: Pandey PK. Solving numerically a sixth order differential equation as coupled finite difference equations approach. Open Access J Sci.
2018;2(6):381‒385. DOI: 10.15406/oajs.2018.02.00115
Copyright:
Solving numerically a sixth order differential equation as coupled finite difference equations approach ©2018 Pandey 385

Problem 4 The model nonlinear problem given by of N are presented in Table 4. The accuracy in numerical solution
in considered model problems is satisfactory and increases as step
u
(6)
( )
( x ) = 8 sin u 2 ( x ) exp( x )+ cos 2 ( x ) exp( −1) , 0 < x < 1 size h decreases. The order of proposed method can be observed from
the numerical experiment. Overall method is efficient and order of
Subject to boundary conditions accuracy is at least quadratic. However inaccurate approximation
in boundary condition affect the accuracy, it approved in numerical
sin (1) exp ( −1),
( 4)
u (0)
= 0, u "(0) = − 2, u=
(0) 0, u (1)
= results obtained in considered example 3. If we do higher order
approximation in boundary condition then this situation will destroy
u
(3)
2 sin (1) exp( −1) + 2 cos (1) exp( −1)
(1) = and u
( 4)
− 4 sin (1) exp( −1).
(1) = the matrix structure and proposed method may not converge. The
advantage of the proposed method (2.4-2.5) is we get numerical
The analytical solution of the problem is u ( x ) = exp ( − x ). The approximation of third derivative of solution of problem as a
MAEU and MAEV computed by method (2.4-2.5) for different values byproduct which is otherwise useful.
Table 4 Maximum absolute error (Problem 4)

8 16 32 64

MAEU.1 .11576825(-2) .30554202(-3) .29175042(-4) .37556333(-7)

MAEV. .46980762(-3) .49946433(-4) .80634038(-6) .64549158(-6)

Conclusion 6. El-Gamel M, Cannon JR, Latour J. Sinc-Galerkin method for


solving linear sixth order boundary-value problems. Mathematics of
To find the numerical solution of sixth order boundary value Computation. 2003;73(247):1325–1343.
problems using finite difference method has been developed. At 7. Siddiqi SS, Twizell EH. Spline Solutions of Linear Sixth Order Boundary
nodal point= x x= i , i 1, 2.., N we have obtained a system of Value Problems. Int J Comput Math. 1996;60(3-4):295–304.
algebraic equations given by (2.4-2.5) which is system of linear
8. Loghmani GB, Ahmadinia M. Numerical Solution of Sixth Order
equations if source function f ( x , u ) is linear otherwise system of
Boundary Value Problems with Sixth Degree B-Spline Functions. Appl
nonlinear equations. The propose method in numerical experiments Math Comput. 2007;186:992–999.
has approved its efficiency and accuracy; moreover we get numerical
approximation of third derivative as a byproduct. In future work, we 9. Che CHH, Kilicman A. On the solutions of nonlinear higher-order
will deal with improvement in present idea. Work in this direction is boundary value problems by using deferential transformation method
and Adomian decomposition method. Mathematical Problems in
in progress.
Engineering. 2011;ID 724927:19.
Acknowledgments 10. Ghazala A, Hamood UR. Solutions of a Class of Sixth Order Boundary
Value Problems Using the Reproducing Kernel Space. Abstract and
None. Applied Analysis. 2013;ID 560590:8.

Conflicts of interest 11. Wazwaz AM. The Numerical Solution of Sixth Order Boundary Value
Problems by the Modified Decomposition Method. Appl Math Comput.
The author declares there is no conflict of interest. 2001;118:311–325.

References 12. Noor MA, Mohyud-din ST. Homotopy perturbation method for solving
sixth-order boundary value problems. Computers & Mathematics with
1. Chandrasekhar S. Hydrodynamics and Hydromagnetic Stability. The Applications. 2008;55(12):2953–2972.
Clarendon Press, Ox-ford, 1961.
13. Pandey PK. The Numerical Solution of Third Order Differential
2. Agarwal RP. Boundary Value Problems for Higher Order Differential Equation Containing the First Derivative. Neural Parallel & Scientific
Equations. World Scientific, Singapore, 1986. Comp. 2005;13:297–304.
3. Chawla MM, Katti CP. Finite Difference Methods for Two Point 14. Pandey PK. Solving third-order Boundary Value Problems with Quartic
Boundary Value Problems Involving Higher Order Differential Splines. Springer- plus. 2016;5(1):1–10.
Equations. BIT. 1979;19:27–33.
15. Gil MI. Inevitability Conditions for Block Matrices and Estimates for
4. Pandey PK. Fourth order finite difference method for sixth order boundary Norms of Inverse Matrices. Rocky Mountain Journal of Mathematics.
value problems. Computational Mathematics and Mathematical Physics. 2003;33(4):1323–1335.
2013;53(1):57–62.
16. Khalid M, Sultana M, Zaidi F. Numerical Solution of Sixth-Order
5. Deacon AG, Osher S. Finite Element Method for Boundary Value Differential Equations Arising in Astrophysics by Neural Network.
Problem of Mixed Type. SIAM J Numer Anal. 1979;16:756–778. International Journal of Computer Applications. 2014;107(6):1–6.

Citation: Pandey PK. Solving numerically a sixth order differential equation as coupled finite difference equations approach. Open Access J Sci.
2018;2(6):381‒385. DOI: 10.15406/oajs.2018.02.00115

You might also like