Numerical Solution of Linear Second Order Ordinary Differential Equations with Mixed Boundary Conditions by Galerkin Method

Similar documents
Cubic Nonpolynomial Spline Approach to the Solution of a Second Order Two-Point Boundary Value Problem

BERNSTEIN COLLOCATION METHOD FOR SOLVING NONLINEAR DIFFERENTIAL EQUATIONS. Aysegul Akyuz Dascioglu and Nese Isler

Chapter 9 Jordan Block Matrices

UNIT 2 SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS

Derivation of 3-Point Block Method Formula for Solving First Order Stiff Ordinary Differential Equations

Chapter 2 - Free Vibration of Multi-Degree-of-Freedom Systems - II

C-1: Aerodynamics of Airfoils 1 C-2: Aerodynamics of Airfoils 2 C-3: Panel Methods C-4: Thin Airfoil Theory

Functions of Random Variables

Application of Legendre Bernstein basis transformations to degree elevation and degree reduction

Analysis of Lagrange Interpolation Formula

Lecture 07: Poles and Zeros

Numerical Analysis Formulae Booklet

MOLECULAR VIBRATIONS

A NEW NUMERICAL APPROACH FOR SOLVING HIGH-ORDER LINEAR AND NON-LINEAR DIFFERANTIAL EQUATIONS

A Conventional Approach for the Solution of the Fifth Order Boundary Value Problems Using Sixth Degree Spline Functions

Fourth Order Four-Stage Diagonally Implicit Runge-Kutta Method for Linear Ordinary Differential Equations ABSTRACT INTRODUCTION

Assignment 5/MATH 247/Winter Due: Friday, February 19 in class (!) (answers will be posted right after class)

PGE 310: Formulation and Solution in Geosystems Engineering. Dr. Balhoff. Interpolation

2006 Jamie Trahan, Autar Kaw, Kevin Martin University of South Florida United States of America

d dt d d dt dt Also recall that by Taylor series, / 2 (enables use of sin instead of cos-see p.27 of A&F) dsin

The Mathematical Appendix

ANALYSIS ON THE NATURE OF THE BASIC EQUATIONS IN SYNERGETIC INTER-REPRESENTATION NETWORK

On the convergence of derivatives of Bernstein approximation

L5 Polynomial / Spline Curves

Lecture 12 APPROXIMATION OF FIRST ORDER DERIVATIVES

Solving Constrained Flow-Shop Scheduling. Problems with Three Machines

16 Homework lecture 16

A Collocation Method for Solving Abel s Integral Equations of First and Second Kinds

Arithmetic Mean and Geometric Mean

h-analogue of Fibonacci Numbers

02/15/04 INTERESTING FINITE AND INFINITE PRODUCTS FROM SIMPLE ALGEBRAIC IDENTITIES

Research Article A New Iterative Method for Common Fixed Points of a Finite Family of Nonexpansive Mappings

Multivariate Transformation of Variables and Maximum Likelihood Estimation

Solution of General Dual Fuzzy Linear Systems. Using ABS Algorithm

EVALUATION OF FUNCTIONAL INTEGRALS BY MEANS OF A SERIES AND THE METHOD OF BOREL TRANSFORM

1 Lyapunov Stability Theory

LINEAR RECURRENT SEQUENCES AND POWERS OF A SQUARE MATRIX

best estimate (mean) for X uncertainty or error in the measurement (systematic, random or statistical) best

Non-uniform Turán-type problems

. The set of these sums. be a partition of [ ab, ]. Consider the sum f( x) f( x 1)

Overview of the weighting constants and the points where we evaluate the function for The Gaussian quadrature Project two

X ε ) = 0, or equivalently, lim

Dynamic Analysis of Axially Beam on Visco - Elastic Foundation with Elastic Supports under Moving Load

Complete Convergence and Some Maximal Inequalities for Weighted Sums of Random Variables

Chapter 5 Properties of a Random Sample

Beam Warming Second-Order Upwind Method

ESS Line Fitting

( ) 2 2. Multi-Layer Refraction Problem Rafael Espericueta, Bakersfield College, November, 2006

Generalized One-Step Third Derivative Implicit Hybrid Block Method for the Direct Solution of Second Order Ordinary Differential Equation

Quantization in Dynamic Smarandache Multi-Space

4 Inner Product Spaces

x y exp λ'. x exp λ 2. x exp 1.

Strong Convergence of Weighted Averaged Approximants of Asymptotically Nonexpansive Mappings in Banach Spaces without Uniform Convexity

A unified matrix representation for degree reduction of Bézier curves

Introduction to local (nonparametric) density estimation. methods

ON THE LOGARITHMIC INTEGRAL

Lecture Note to Rice Chapter 8

LINEAR REGRESSION ANALYSIS

1 0, x? x x. 1 Root finding. 1.1 Introduction. Solve[x^2-1 0,x] {{x -1},{x 1}} Plot[x^2-1,{x,-2,2}] 3

Third handout: On the Gini Index

Maximum Likelihood Estimation

Journal of Mathematical Analysis and Applications

CHAPTER 4 RADICAL EXPRESSIONS

Estimation of Stress- Strength Reliability model using finite mixture of exponential distributions

arxiv: v4 [math.nt] 14 Aug 2015

A Remark on the Uniform Convergence of Some Sequences of Functions

n -dimensional vectors follow naturally from the one

Lecture 3 Probability review (cont d)

{ }{ ( )} (, ) = ( ) ( ) ( ) Chapter 14 Exercises in Sampling Theory. Exercise 1 (Simple random sampling): Solution:

Mu Sequences/Series Solutions National Convention 2014

DKA method for single variable holomorphic functions

TESTS BASED ON MAXIMUM LIKELIHOOD

Simple Linear Regression

Newton s Power Flow algorithm

arxiv:math/ v1 [math.gm] 8 Dec 2005

Taylor s Series and Interpolation. Interpolation & Curve-fitting. CIS Interpolation. Basic Scenario. Taylor Series interpolates at a specific

CS5620 Intro to Computer Graphics

Investigating Cellular Automata

Fibonacci Identities as Binomial Sums

DIFFERENTIAL GEOMETRIC APPROACH TO HAMILTONIAN MECHANICS

Lecture 7. Confidence Intervals and Hypothesis Tests in the Simple CLR Model

G S Power Flow Solution

Numerical Solutions of Second Order Initial Value Problems of Bratu-Type equation Using Higher Ordered Rungu-Kutta Method

The internal structure of natural numbers, one method for the definition of large prime numbers, and a factorization test

Research Article Gauss-Lobatto Formulae and Extremal Problems

Summary of the lecture in Biostatistics

ONE GENERALIZED INEQUALITY FOR CONVEX FUNCTIONS ON THE TRIANGLE

1. A real number x is represented approximately by , and we are told that the relative error is 0.1 %. What is x? Note: There are two answers.

On the construction of symmetric nonnegative matrix with prescribed Ritz values

Online Publication Date: 12 December, 2011 Publisher: Asian Economic and Social Society

18.413: Error Correcting Codes Lab March 2, Lecture 8

Introduction to Probability

PTAS for Bin-Packing

Unimodality Tests for Global Optimization of Single Variable Functions Using Statistical Methods

A Study on Generalized Generalized Quasi hyperbolic Kac Moody algebra QHGGH of rank 10

A Markov Chain Competition Model

Generalized Convex Functions on Fractal Sets and Two Related Inequalities

UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS

5 Short Proofs of Simplified Stirling s Approximation

Multiple Choice Test. Chapter Adequacy of Models for Regression

Transcription:

Mathematcs ad Computer Scece 7; (5: 66-78 http://www.scecepublshggroup.com//mcs do:.648/.mcs.75. Numercal Soluto of Lear Secod Order Ordary Dfferetal Equatos wth Mxed Boudary Codtos by Galer Method Aalu Abrham Aulo,, Alemayehu Shferaw Kbret, Geaew Gofe Gofa, Ayaa Deressa Negassa Departmet of Mathematcs, Isttute of Techology, Dre Dawa Uversty, Dre Dawa, Ethopa Departmet of Mathematcs, Jmma Uversty, Jmma, Ethopa Emal address: ae.abrsh@gmal.com (A. A. Aulo, ehal@gmal.com (A. S. Kbret, geagofa@gmal.com (G. G. Gofa, ayaaderesa@gmal.com (A. D. Negassa Correspodg author To cte ths artcle: Aalu Abrham Aulo, Alemayehu Shferaw Kbret, Geaew Gofe Gofa, Ayaa Deressa Negassa. Numercal Soluto of Lear Secod Order Ordary Dfferetal Equatos wth Mxed Boudary Codtos by Galer Method. Mathematcs ad Computer Scece. Vol., No. 5, 7, pp. 66-78. do:.648/.mcs.75. Receved: Aprl 8, 7; Accepted: Jue 6, 7; Publshed: September 8, 7 Abstract: I ths paper, the Galer method s appled to secod order ordary dfferetal equato wth mxed boudary after covertg the gve lear secod order ordary dfferetal equato to equvalet boudary value problem by cosderg a vald assumpto for the depedet varable ad also covertg mxed boudary codto to Neuma type by usg secat ad Ruge-Kutta methods. The resultg system of equato s solved by drect method. I order to chec to what extet the method approxmates the exact soluto, a test example wth ow exact soluto s solved ad compared wth the exact soluto graphcally as well as umercally. Keywords: Secod Order Ordary Dfferetal Equato, Mxed Boudary Codtos, Ruge-Kutta, Secat Method, Galer Method, Chebyshev Polyomals. Itroducto The goal of umercal aalyss s to fd the approxmate umercal soluto to some real physcal problems by usg dfferet umercal techques, especally whe aalytcal solutos are ot avalable or very dffcult to obta. Sce most of mathematcal models of physcal pheomea are expressed terms of ordary dfferetal equatos, ad these equatos due to ther ature ad further applcatos to use computers, t eeds to establsh approprate umercal methods correspodg to the type of the dfferetal equato ad codtos that gover the mathematcal model of the physcal pheomea. The codtos may be specfed as a tal Value (IVP or at the boudares of the system, Boudary Value (BVP []. May problems egeerg ad scece ca be formulated as two-pot BVPs, le mechacal vbrato aalyss, vbrato of sprg, electrc crcut aalyss ad may others. Ths shows that the umercal methods used to approxmate the solutos of two-pot boudary value problems play a vtal role all braches of sceces ad egeerg []. Amog dfferet umercal methods used to approxmate two-pot boudary value problems terms of dfferetal equatos are shootg method, fte dfferece methods, fte elemet methods (FEM, Varatoal methods (Weghted resdual methods, Rtz method ad others have bee used to solve the two-pot boudary value problems [3]. Both FEM ad Varatoal methods the ma attempts were to loo a approxmato soluto the form of a lear combato of sutable approxmato fucto ad udetermed coeffcets [4]. For a vector space of fuctos S = φ ( x be bass of V, a set of learly V, f { } = depedet fuctos, ay fucto f ( x V could be uquely wrtte as a lear combato of the bass as:

Mathematcs ad Computer Scece 7; (5: 66-78 67 f ( x = c φ ( x ( = The weghted resdual methods use a fte umber of φ ( x as tral fucto. learly depedet fuctos { } = Suppose that the approxmato soluto of the dfferetal equato, D( u = L( u( x + f ( x =, o the boudary B( u = [ a, b] s the form: N φ φ ( = u( x U ( x = c ( x + ( x N Where UN ( x s the approxmate soluto, u( x s the exact soluto L s a dfferetal operator, f s a gve fucto, φ ( x' s are fte umber of bass fuctos ad uow coeffcets for =,,..., N. The resdual R( x, c s defed as: R( x, c = D( U ( x ( L( U ( x + f ( x. Now determe N N c by requrg R to vash a weghted-resdual sese: b w ( x R( x, c = ( =,,..., N (3 a Where w ( x are a set of learly depedet fuctos, called weght fuctos, whch geeral ca be dfferet from the approxmato fuctos φ ( x, ths method s ow as the weghted-resdual method.. Galer Method If φ ( x = w ( x equato (3, the the specal ame of the weghted-resdual method s ow as the Galer method. Thus Galer method s oe of the weghted resdual methods whch the approxmato fucto s the same as the weght fucto ad hece t s also used to fd the approxmate soluto of two-pot boudary value problems [4]. The Galer method was veted 95 by Russa mathematca Bors Grgoryevch Galer ad the org of the method s geerally assocated wth a paper publshed by Galer 95 o the elastc equlbrum of rods ad th plates. He publshed hs fte elemet method 95. The Galer method ca be used to approxmate the soluto to ordary dfferetal equatos, partal dfferetal equatos ad tegral equatos [5]. May authors have bee used the Galer method to fd approxmate soluto of ordary dfferetal equatos wth boudary codto. Amog ths, a sple soluto of two pot boudary value problems troduced [6], a method for solutos of olear secod order mult-pot boudary value problems produced [7], [8] lear ad o-lear c dfferetal equatos were solved umercally by Galer method usg a Berste polyomals bass, [9] a umercal method s establshed to solved secod order ordary dfferetal equato wth Neuma ad Cauchy boudary codtos usg Hermte polyomals, [] a parametrc cubc sple soluto of two pot boudary value problems were obtaed, a secod-order Neuma boudary value problem wth sgular olearty for exact three postve solutos were solved [], a Numercal soluto of a sgular boudary-value problem o-newtoa flud mechacs were establshed [], a Fourth Order Boudary Value Problems by Galer Method wth Cubc B-sples were solved by cosderg dfferet cases o the boudary codto [3] ad a specal successve approxmatos method for solvg boudary value problems cludg ordary dfferetal equatos were proposed.[4] I ths paper Galer method wll be appled to the lear secod order ordary dfferetal equato of the form d y dy α( x + β ( x + δ ( x y = g( x ; a x b y( a = µ wth boudary codto ad y '( b = µ d y dy α( x + β( x + δ ( x y = g( x ; a x b wth y '( a = β boudary codto y '( b = β 3. Chebyshev Polyomal The polyomals whose propertes ad applcatos are dscussed ths paper were 'dscovered' almost a cetury ago by the Russa mathematca Chebyshev. It s a fucto defed usg trgoometrc fuctos cosθ ad sθ for x [,]. Chebyshev polyomals of frst d wth degree for x [, ] defed as: T ( x = cos θ, such that cos θ = x, for x ad Thus ( = T x cos ( cos x, T ( x = cos( = ad T ( x = cos(cos x = x From the trgoometrc detty, ( l θ ( l cos + + cos θ = cos θ cosθ s ( θ s( θ + s ( θ s( θ ( ( ( ( ( cos + l θ + cos l θ = cos θ cosθ T x = xt x - T x. Thus usg the recursve + - relato above for =, there s a seres of Chebyshev polyomal T ( x = x

68 Aalu Abrham Aulo et al.: Numercal Soluto of Lear Secod Order Ordary Dfferetal Equatos wth Mxed Boudary Codtos by Galer Method T ( x = x - 3 T 3 ( x = 4x - 3x 4 T 4 ( x = 8x -8x + Here the coeffcet of 5 5 3 T ( x = 6 x x + 5 x etc. x T ( x s. The fgure below shows the graph of the frst seve Chebyshev polyomals for x [,]. Y-axs.5 The Graph of the frst eght Chebyshev Polyomals T(x T(x T3(x T4(x T5(x T6(x T7(x T8(x -.5 - - -.8 -.6 -.4 -...4.6.8 X-axs Fgure. The graph of the frst eght Chebyshev polyomals for x [,]. 4. Ruge-Kutta Method for Secod Order ODE Ruge-Kutta method s a umercal method used to fd approxmate soluto for tal value problems. I order to use Ruge-Kutta method to fd a approxmate soluto of secod order ODE, t eeds to covert to a system of two frst order ODEs. For two evaluato of f the method s gve by Where y+ = y + hy + ( K + K y + = y + hy + ( K + 3 K h h K = f ( x, y h 4 K = f ( x + h, y + hy + K 3 3 9 5. Secat Method Ths method approxmates the graph of the fucto y = f ( x the eghborhood of the root by a straght le (secat passg through the pots ( x, f ( x ( x, f ( x, where f f ( x ad = ad tae the pot of tersecto of ths le wth the x-axs as the ext terate. Hece Or x x x x f + = f f x + x f x f = f f, =,,..., =,,... Where x ad x are two cosecutve terates. I ths method there are two tal approxmatos x ad x. Ths method s also called Secat method. 6. Mathematcal Formulato of the Method Cosder a geeral lear secod order dfferetal equato wth two type boudary codtos d y dy Type I: α( x + β( x + δ ( x y = g( x ; a x b wth boudary codto y( a = µ (Mxed type (4 y '( b = µ Type II: d y dy α( x + β( x + δ ( x y = g( x ; a x b wth boudary codto where fuctos for α( x, β ( x, δ ( x, y '( a = β y '( b = β (Neuma type (5 g( x are gve cotuous a x b where β, β, µ ad µ are gve

Mathematcs ad Computer Scece 7; (5: 66-78 69 costats ad y( x s uow fucto or exact soluto of the boudary value problem whch s to be determed. I a BVP wth mxed boudary codto, the soluto s requred to satsfy a Drchlet or a Neuma boudary codto a mutually exclusve way o dsot parts of the boudary. Now Cosder the BVP of type II (Neuma type. To use a approxmatg polyomal defed for x [,] the gve BVP defed o arbtrary terval [a, b] must be coverted to a equvalet BVP defed o [-, ]. So that the approxmatg polyomal should be defed o [-, ]. Sce Chebyshev polyomal s defed o [-, ], t s possble to use Chebyshev polyomal after covertg the BVP defed o arbtrary terval [a, b] to a equvalet BVP defed o [-, ]. 6.. Coverso of the Doma of the BVP The dfferetal equato (5 together wth the Neuma boudary codto ca be coverted to a equvalet problem o [-, ] by lettg b a b + a x = x +, for x ad a x b The equato (4 wth boudary codto s equvalet to the BVP gve by ( d y dy ɶ α x + ɶ( x ( x y g( x; - x β + ɶ δ = ɶ Subect to the boudary codto, where y '( = d y '( = d 4 b a b + a b a b + a ɶ α( x = α x sce for x x, + = + ( b a Ths mples that dy dy d y 4 d y ad = ( b a = ( b a Now equatg the D. E (4 wth (6, d y dy α( x + β( x + δ ( x y g( x = d y dy ɶ α( x + ɶ β( x + ɶ δ ( x y gɶ ( x d y α x d y ɶ α( x = (, ɶ dy dy β ( x = β( x, ɶ δ ( x = δ ( x (6 (7 ad gɶ ( x = g( x (8 Therefore, the DE (5 wth Neuma boudary codto s a equvalet BVP wth the BVP (6. Up o substtuto of (7 to (4, equato (4 yelds d y d y α x = ɶ α x 4 ( (, ( b a dy dy β ( x = ɶ β( x, ( b a ɶ δ ( x y = δ ( x y ad gɶ ( x = g( x 4 b a b + a ɶ α( x = α( x +, ( b a ɶ b a b + a β ( x = β ( x +, ( b a ɶ b a b + a δ ( x= δ ( x + ad b a b + a gɶ ( x=g( x + 6.. Applyg Galer Method To apply the techque of Galer method to fd a approxmate soluto of (4, say y( x, wrtte as a lear combato of base fuctos ad uow costats. That s; y( x = ct ( x (9 = where T ( x are pecewse polyomal, amely Chebyshev polyomals of degree ad c 's are uow parameters, to be determed. Now applyg Galer method wth the bass fucto T ( x gves, d y dy [ ɶ α ( x + ɶ β ( x + ɶ δ ( x y] T ( x = gɶ ( x T ( x ( Itegratg the frst term by parts o the left had sde of (, that s d y d y T ( x ɶ α( x, u = T ( ( ad x ɶ α x dv = d dy du = T ( x ɶ α( x ad v = d y ɶ α( x = uv vdu dy dy d = T( x ( x T( x ( x ɶ α α ɶ ( Upo substtuto of ( to (, yelds

7 Aalu Abrham Aulo et al.: Numercal Soluto of Lear Secod Order Ordary Dfferetal Equatos wth Mxed Boudary Codtos by Galer Method - - ( ɶ α dy d dy [- ( x T ( x + ɶ β ( x T ( x + ɶ δ ( x y( x T ( x] = gɶ ( x T ( x + ɶ α(- y '(- T (- - ɶ α( y '( T ( ( But from equato (9 the approxmate soluto s gve by y( x = ct ( x = Substtutg ths to equato ( yelds, - = ( ɶ α x T x d [- ct ( x ( ( + ɶ β( x ct ( x T ( x + ɶ δ ( x ct ( x T ( x] = = - = gɶ ( x T ( x + ɶ α(- uɶ (- T (- - ɶ α( uɶ ( T ( ( ɶ α d c [- T ( x ( x T ( x + ɶ β( x T ( x T ( x = - + ɶ δ ( x T ( x T ( x] = gɶ ( x T ( x + ɶ α(- y '(- T (- - - ɶ α( y '( T ( (3 I the left had sde of equato (3 above t eeds to ow the values of y (- ad y ( whch approxmately equal to y (- ad y ( respectvely, where y s the exact soluto of the BVP equato (6. 6.3. The Resultg System of Equato Sce the values of y ( ad y ( are ow from the boudary codto, substtutg these values to (3, ad equato (3 gves a system of equatos to solve the parameters c 's thus equato (3 matrx form becomes: ck = F (4 = ( d = ɶ ( [- T ( x ( x T ( x α ( = ɶ β (3 = ɶ ( δ ( x T ( x T ( x f - ( x T ( x T ( x = g ɶ ( x T ( x ( =ɶ α ɶ α f (- y (- T (-- ( y ( T ( Now, the uow parameters c 's are determed by solvg the system of equato (4 by drect method ad substtutg these values to (9 yelds the approxmate soluto y( x of the DE (4 satsfyg the gve boudary codtos (6. Cosder a BVP of type I. I ths case t s mpossble to use the above method drectly; sce y ( a s ot gve ad hece stead t eeds to covert the BVP to type II. The coverso s made by usg dfferet umercal methods. Cosder to solve the followg boudary-value problem: α d y dy ( x + ( x ( x y g( x ; a x b β + δ = (5 Wth boudary codto y( a = µ y '( b = µ The dea of shootg method for (5 s to solve for y ( a hopg that y ( b = µ. I order to fd y ( a such that y ( b = µ, guess y ( a = z ad solve for y ( b usg Ruge-Kutta method for secod order ODE, after havg a value usg the guess, deote ths approxmate soluto y z ad hope y z ( b = µ. If ot, use aother guess for y ( a, ad try to solve usg the Ruge-Kutta method. Ths process s repeated ad ca be doe systematcally utl ths choce satsfy y ( b. To do ths, follow the steps below. Step:- select z so that y z ( b = µ, letψ ( z = y z( b µ. The guess for z Step :- Now the obectve s smply to solve for ψ ( z =, hece secat method ca be used. Step 3:- How to compute z Suppose that the solutos yz ( b ad y z ( b obtaed from guesses z ad z respectvely. Step 4:- Now usg secat method to fd z gve by; z z z z y, =,,... + = z yz y z Followg ths sequece of terato there exsts z such that Where ( ( (3 ( ( ad K = + + F = f + f such that y ( b = y ( b z Thus, the Neuma boudary codto for the DE (5

Mathematcs ad Computer Scece 7; (5: 66-78 7 s gve by y ( a = z y ( b = µ (6 Now to solve the DE wth boudary codto (6 t s coveet to use equato (3. Example: - Cosder the lear boudary value problem d y x + y = x e ; x, subect to the boudary codto y ( =.678, y ( = Whose exact soluto s:- y = / 5 s( x(349 s( e 5 / cos( / e ( ( x 3839 / 5 cos( x + / ( x + e Soluto: -The above problem s a mxed boudary codto or (type II; to apply the above method t eeds to covert the gve boudary codto to Neuma boudary codto. Now assume a guess depedg o the value of y ( =, let y ( = be the frst guess ad hopg that y ( =. The ext step s usg Ruge-Kutta method for secod order dfferetal equato, where y ( x = f ( x, y, y. But for ths problem, y ( x = f ( x, y sce f s depedet of y x =, ad x = ad tae step sze h=.5, ed ( y = y( x = -.678 for x = y =.678 y ( x = for x = y = y+ = y + hy + ( K + K y + = y + hy + ( K + 3 K h h K = f ( x, y h 4 K = f ( x + h, y + hy + K for =,,... 3 3 9 Ths gves the result table for the frst terato, where the th step x = x, y = y( x ad y = y ( x Referrg to table, tae y z =.588. But, y ( y (, thus t eeds to guess aother value for z y (. Let y ( = hopg that y ( =. Usg Ruge- Kutta method for x = to x = ad tag h =.5, y = y( x = -.678 for x = ad y = y ( x = for x =, ths yelds the followg result, where the y = y( x ad y = y ( x th step x = x, st terato d terato Now Table. Shows the result of y ad y o the frst terato. x y y..67..5.674.7..8563.8.5.7336.464..398.7.5.88.968 3..988.345 3.5.3967.8435 4..649.89 4.5.543.45 5..893.7 5.5.469.355 6..95.3596 6.5.789.566 7..47.533 7.5.939.56 8..954.6776 8.5.4858.594 9..83.685 9.5.659.999..9659.588 Table. Shows the result of y ad y o secod terato. x y y. -.678..5.445.344..73.98.5.4.673..383.36.5.3383 -. 3..56 -.4984 3.5.88 -.7958 4..3664 -.976 4.5 -.77 -.8663 5. -.43 -.697 5.5 -.697 -.76 6. -.6397. 6.5 -.4754.4395 7. -.89.6393 7.5.47.6697 8..43.537 8.5.695.697 9..6385 -.497 9.5.554 -.3458..754 -.548 y ( =.548 where z = ad sce z ad z gve the fd z z z z ( z = z yz = (.548 =.99 y y.548.588 z z Usg z =.99 applyg Ruge-Kutta method where h=.5, y = y( x = -.678 for x = ad y = y ( x =.99 for x =

7 Aalu Abrham Aulo et al.: Numercal Soluto of Lear Secod Order Ordary Dfferetal Equatos wth Mxed Boudary Codtos by Galer Method gves the followg result for the 3 rd terato. 3 rd terato Table 3. Shows the result of y ad y o the thrd terato. x y y. -.678.99.5 -.4.83. -.43.3847.5.8.577..539.6543.5.856.5778 3..365.34 3.5.939 -.8 4..97 -.3669 4.5.6899 -.6647 5..358 -.86 5.5 -.97 -.7975 6. -.433 -.69 6.5 -.678 -.86 7. -.65.755 7.5 -.568.3963 8. -.399.63 8.5.784.653 9..368.543 9.5.5596.35..65 -. Now calculate the ext guess z z.99 z3 = z yz =.99 (.99 =.3 y y. +.548 z z Ruge-Kutta method for y =.3 yelds the followg result for the 4 th terato. Table 4. Shows the result of y ad y o the fourth terato. 4 th terato x y y. -.67.3.5 -.6.88. -.47.384.5..57..537.6536.5.85.577 3..358.349 3.5.933 -.7 4..976 -.3665 4.5.6897 -.664 5..358 -.8 5.5 -.967 -.7969 6. -.438 -.66 6.5 -.67 -.86 7. -.654.753 7.5 -.564.3959 8. -.398.67 8.5.78.654 9..3676.549 9.5.559.34.6. As table 4 shows the guess for y (.3. Thus, the Neuma boudary value problem gve by d y x + y = x e ; x y ( =.3, ad y ( = The ext step s covertg the BVP to equvalet BVP defed for x by lettg ( b a ( b + a x = x + = 5x + 5, sce a = ad b =. The equvalet BVP for the above problem o x becomes, d y ( 5x+ 5 + y = ( 5x + 5 e, for x 5 wth boudary codto (7 y'( =.3 y'( = (7 Now, suppose that y be the approxmate soluto of (7, gve by a lear combato of costats c ' s ad a approxmatg polyomal, called Chebyshev polyomal, thus y = ct ( x (8 = Upo substtuto of y, the approxmate soluto, to the dfferetal equato (7 gves a equato called resdue gve by: d y ( R( x, c y 5x 5 e 5 5x+ 5 = + ( +, for x (9 Applyg Galer method; R( c, x T ( x = d y ( 5x+ 5 [ + y ( 5x + 5 e ] T ( 5 x + = + 5 ( 5x+ 5 [ y '' T ( x yt ( x] ( 5x 5 e T ( x ( Usg tegrato by parts to smplfy the frst term the rght had sde, let u = T ( x du = T ( x ad dv = y ( x v = y ( x, hece t gves y T ( x y ( x T ( x y T ( x 5 5 = Therefore equato ( becomes

Mathematcs ad Computer Scece 7; (5: 66-78 73 5 5 ( 5x+ 5 yt ( x y ' T '( x = y '( x T ( x + ( 5x + 5 e T ( x ( Substtutg the approxmate soluto y = ct ( x to ( yelds, = ( 5x+ 5 c ( ( '( '( '( ( T x T x T x T x = y x T x + ( 5x + 5 e T ( x 5 5 = 5 5 5 = ( 5x+ 5 + 5x + 5 e T ( x c T ( x T ( x T ( x T ( x y ( T ( y = ( T ( ( ( Now, usg the gve boudary codto to (, equato ( becomes ( 5x+ 5 c T ( x T ( x T ( x T ( x = ( 5x + 5 e T ( x + (.3 T ( (3 5 5 = For equato (3 there s a system of equato gve by: ck = F (4 = where ( ( ( ( = + ad = + K F f f ( = such that T ( x T ( x ( = 5 T ( x T ( x I order to fd the value of fucto. For = 6 : x x 3 4x 3x T ' = 4 8x 8x + 5 3 6x x + 5x 6 4 3x 48x + 8x ( f = (.3 T ( 5 ( ( 5x+ 5 f = 5x + 5 e T ( x ( c ' s tae tral fuctos defed for x [,], usg Chebyshev polyomals as tral, where T = [ T T T3 T4 T5 T6 ] ad T ' s the traspose of T.

74 Aalu Abrham Aulo et al.: Numercal Soluto of Lear Secod Order Ordary Dfferetal Equatos wth Mxed Boudary Codtos by Galer Method /3 / 5 / 4 /5 38 /5 6 / 35 / 5 34 / 35 / 63 = T ( x T ( x = 38 /5 6 / 63 34 / 99 / / 63 98 / 99 6 / 35 34 / 99 4 /43 ( /5 /5 /5 3/75 8/375 88/875 /5 38/5 4/75 = T ( x T ( x = 5 8/375 563/65 3968/65 /5 4/75 6/35 88/875 3968/65 564/965 ( To fd the value of the coeffcet matrx equato (4 use ( ( = + K So, by expressg the coeffcet matrx K, ad the uow coeffcet c ' s a system of equato matrx form: ( ( = + K 44/75 / 5 9 / 55 c 38 / 75 846 / 65 34 / 7875 c / 5 6 / 875 88 /575 c3 = [ f ] 846 / 65 946 / 7875 6694 / 8665 c4 9 / 55 88 /575 8956 / 3465 c5 34 / 7875 6694 / 8665 5558 / 55 c6 (5 Where f s 6 a colum vector gve by:- (- - 4 / 5-756 / 5e (- - /5-6658 /5e (- 8 /5-478 /5e f = (- -38 / 65-8968 / 65e 8 / 35-77478 / 35e 88 /565-45459898 /565e (- (- Now a 6 6 coeffcet matrx whch s symmetrc, 6 uow colum vector that represet c ' s ad 6 colum vector that represets f. So there are sx equatos wth sx uows. Usg ( values of the sx uows are:, c = K f to solve (5, the c =.3655 c = -.596 c 3 =.93945 c 4 =.3697 c 5 =.44983 c 6 =.9 Now t s possble to express the approxmate soluto as a lear combato of costats c ' s ad a approxmatg polyomal. So substtutg c ' s ad polyomals for =6 the approxmate soluto s: Chebyshev 3 4 y =.3655x.596(x +.93945(4x 3 x +.3697(8x 8x + 5 3 6 4.44983(6 x x + 5 x.9(3x 48x + 8x The graph of the exact ad approxmate soluto, to loo the covergece of the approxmate soluto to the graph of the exact soluto, loos le fgure below.

Mathematcs ad Computer Scece 7; (5: 66-78 75.5 The Graph of Exact ad Approxmate Solutos for =4 ad =6 The exact soluto Approx. soluto for =4 Approx. soluto for =6.5 Y-axs -.5 - -.5 - -.8 -.6 -.4 -...4.6.8 X-axs -<x< Fgure. The graph of the exact ad approxmate soluto for =4 ad =6. The above graph shows that the graph of the approxmate soluto approaches the graph of the exact soluto for the dfferetal equato wth boudary codto problem. Cosderg =8, the the approxmate soluto ad the Chebyshev polyomals are gve by: 8 y = ct ( x (6 x x 3 4x 3x 4 8x 8x + T ' =, where T = [ T 5 3 6x x 5x T T3 T4 T5 T6 T7 T8 ] ad T ' s the traspose of T. + 6 4 3x 48x + 8x 7 5 3 64x x + 56x 7x 4 6 8 3x + 6x 56x + 8x Usg MATLAB code; = ( K = /3 -/5 -/ -/45 4/5-38/5-6/35-34/3465 -/5 34/35 -/63-38/495 ] -38/5 6/63-34/99-58/45 -/ -/63 98/99-46/49-6/35-34/99 4/43 -/65 -/45-38/495-46/49 94/95-34/3465-58/45 -/65 54/55

76 Aalu Abrham Aulo et al.: Numercal Soluto of Lear Secod Order Ordary Dfferetal Equatos wth Mxed Boudary Codtos by Galer Method ( K = /5 /5 /5 /5 3/75 8/375 88/875 5/575 /5 38/5 4/75 86/375 8/375 563/65 3968/65 83/8665 /5 4/75 6/35 686/475 88/875 3968/65 564/965 376768/375375 /5 86/375 686/475 3966/6875 5/575 83/8665 376768/375375 6576/65 f = (- - 4 / 5-756 / 5e (- - /5-6658 /5e (- 8 /5-478 /5e (- -38 / 65-8968 / 65e (- 8 / 35-77478 / 35e 88 /565-45459898 /565e 3544 / 785-87348644 / 785e 544 / 785-33996 / 785e (- (- (- Thus the uow parameters c ' s are c =.37549 c =.69868 c 3 =.95956 c 4 =.8693 c 5 =.4546 c 6 =.79 c 7 =.579 c 8 =.9963 Now substtutg the uow parameters ad eght Chebyshev polyomals to (6, the approxmate soluto s: y = x x + x x + x x + 3 4.37549.69868(.95956(4 3.8693(8 8 + + + 5 3 6 4.4546(6x x 5 x.79(3x 48x 8x + + + 7 5 3 4 6 8.579(64x x 56x 7 x.9963( 3x 6x 56x 8 x The graph of the exact ad approxmate soluto, to loo the covergece of the approxmate soluto to the graph of the exact soluto, loos le fgure 3 below.

Mathematcs ad Computer Scece 7; (5: 66-78 77.5 The graph of the exact ad approxmate souluto for =6 ad =8 Exact soluto Approxmate soluto for =6 Approxmate soluto for =8.5 Y-axs -.5 - -.5 - -.8 -.6 -.4 -...4.6.8 X-axs -<=X<= Fgure 3. The graph of the exact soluto ad approxmate soluto for =6 ad =8. From the graph above the approxmate soluto approaches the graph of the exact soluto whe the umber of the tral fuctos creases from 6 to 8. Now compare the absolute error whch s gve by error = y y exact approx Table 5. Shows the computed the absolute error for problem whe =6 ad =8. x Exact soluto Approxmate soluto for =6 Approxmate soluto for =8 Absolute error for =6 Absolute error for =8 -. -.67 -.8745 -.464.674.969 -.9 -.35 -.973 -.497.6768.664 -.8 -.994 -.6369 -.469.5375.365 -.7.443 -.83 -.646.356.89 -.6.4736.3385.794.35.94 -.5.88.84.489.357.9 -.4.87.55.8573.644.98 -.3.994.96.859.967.36 -..87.5.89.8. -..885.9337.977.53.89..383.4786.549.954.37. -.45 -.735.75.3.. -.536 -.633 -.583.94.77.3 -.844 -.896 -.99.75.46.4 -.8776 -.3536 -.89.476.53.5 -.749 -.3457 -.847.638.3698.6 -.3695 -.3 -.794.667.447.7.77 -.443 -.339.5.446.8.499.35.67.494.339.9.866.966.5557.355.59..984.33.7374.39.8 As observed from table 5 the approxmate soluto s approachg to the exact value as the value of creases. Tae =, the graph of the correspodg approxmate soluto together wth the graph of the approxmate soluto for =6 ad =8 the same plae wth the exact soluto s show below.

78 Aalu Abrham Aulo et al.: Numercal Soluto of Lear Secod Order Ordary Dfferetal Equatos wth Mxed Boudary Codtos by Galer Method.5.5 The Graph of Exact ad Approxmate solutos for =6,=8 ad = The exact soluto Approx. soluto for =6 Approx. soluto for =8 Approx. soluto for = Y-axs -.5 - -.5 - -.8 -.6 -.4 -...4.6.8 X-axs -<x< Fgure 4. The graph of the exact soluto ad approxmate soluto for =6, =8 ad =. As the umber of Chebyshev polyomal creases the correspodg approxmate soluto of the dfferetal equato wth mxed boudary codto problem approaches the graph of the exact soluto. 7. Cocluso Ths study troduces that, by applyg Galer method to lear secod order ordary dfferetal equatos wth mxed ad Neuma boudary codtos, t s possble to fd ther approxmate solutos. The umercal results that are obtaed usg ths method coverges to the exact soluto as the umber of Chebyshev polyomal creases, that wll be used as a tral fucto; ad also usg small step sze h, whle covertg the gve lear secod order ordary dfferetal equato from mxed type to Neuma boudary codto, creases the accuracy of the approxmate soluto. So that usg ths method better results wll be obtaed as the umber of Chebyshev polyomal creases ad usg small step sze whle usg Rug-Kutta method. 8. Future Scope Ths study has led to a attetveess of several topcs that requre further vestgato, for stace lear ordary dfferetal equatos wth dfferet order, o-lear ordary dfferetal equatos. I order to fll the gap terms of accuracy t s mportat to aalyze the error of the method. Thus aalyzg the error ad creasg the accuracy of ths method s left for future vestgato. Refereces [] Yatteder Rsh Dubey: A approxmate soluto to buclg of plates by the Galer method, (August 5. [] Ta-Ra Hsu: Mechacal Egeerg 3 Appled Egeerg aalyss, Sa Jose State Uversty, (Sept 9. [3] E. Sul: Numercal Soluto of Ordary Dfferetal Equatos, (Aprl 3. [4] J. N. Reddy: A Itroducto to the fte elemet method, 3rd edto, McGraw-Hll, (Ja 58-98. [5] Marcos Cesar Rugger: Theory of Galer method ad explaato of MATLAB code, (6. [6] Jall Rashda ad Reza Jalla: Sple soluto of two pot boudary value problems, Appl. Comput. Math 9 ( 58-66. [7] S. Das, Sul Kumar ad O. P. Sgh: Solutos of olear secod order multpot boudary value problems by Homotopy perturbato method, Appl. Appl. Math. 5 ( 59-6. [8] M. Idress Bhatt ad P. Brace: Solutos of dfferetal equatos a Berste polyomals bass, J. Comput. Appl. Math. 5 (7 7-8. [9] M. M. Rahma. et.al: Numercal Solutos of Secod Order Boudary Value Problems by Galer Method wth Hermte Polyomals, (. [] Arshad Kha: Parametrc cubc sple soluto of two pot boudary value problems, Appl. Math. Comput. 54 (4 75-8. [] Yuqag Feg ad Guagu L: Exact three postve solutos to a secod-order Neuma boudary value problem wth sgular olearty, Araba J. Sc. Eg. 35 ( 89-95. [] P. M. Lma ad M. Carpeter: Numercal soluto of a sgular boudary-value problem o-newtoa flud mechacs, Computer Phys. Commuca. 6( 4-. [3] K. N. S. Kas Vswaadham ad Sreevasulu Ballem: Fourth Order Boudary Value Problems by Galer Method wth Cubc B-sples, (May 3. [4] Jahashah et al.: A specal successve approxmatos method for solvg boudary value problems cludg ordary dfferetal equatos, (August 3. [5] L. Fox ad I. B. Parer: Chebyshev Polyomals Numercal Aalyss, Oxford Uversty Press, ( May, 967.