Ordinary Differential Equations- Boundary Value Problem

Similar documents
CBE 291b - Computation And Optimization For Engineers

Chapter 3 Solving Nonlinear Equations

New Expansion and Infinite Series

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions

Numerical Integration. Newton Cotes Formulas. Quadrature. Newton Cotes Formulas. To approximate the integral b

B.Sc. in Mathematics (Ordinary)

Z b. f(x)dx. Yet in the above two cases we know what f(x) is. Sometimes, engineers want to calculate an area by computing I, but...

Orthogonal Polynomials

Consequently, the temperature must be the same at each point in the cross section at x. Let:

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by.

In Section 5.3 we considered initial value problems for the linear second order equation. y.a/ C ˇy 0.a/ D k 1 (13.1.4)

CAAM 453 NUMERICAL ANALYSIS I Examination There are four questions, plus a bonus. Do not look at them until you begin the exam.

Partial Derivatives. Limits. For a single variable function f (x), the limit lim

1.1. Linear Constant Coefficient Equations. Remark: A differential equation is an equation

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

Space Curves. Recall the parametric equations of a curve in xy-plane and compare them with parametric equations of a curve in space.

Ordinary differential equations

Chapter Direct Method of Interpolation More Examples Civil Engineering

Math Week 5 concepts and homework, due Friday February 10

Numerical integration

Exam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1

3.4 Numerical integration

1.2. Linear Variable Coefficient Equations. y + b "! = a y + b " Remark: The case b = 0 and a non-constant can be solved with the same idea as above.

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

Section 3.3: Fredholm Integral Equations

Chapter 7 Notes, Stewart 8e. 7.1 Integration by Parts Trigonometric Integrals Evaluating sin m x cos n (x) dx...

Jim Lambers MAT 169 Fall Semester Lecture 4 Notes

Numerical Integration

Improper Integrals, and Differential Equations

Lecture 4: Piecewise Cubic Interpolation

AMATH 731: Applied Functional Analysis Fall Some basics of integral equations

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as

The problems that follow illustrate the methods covered in class. They are typical of the types of problems that will be on the tests.

Section 6.1 INTRO to LAPLACE TRANSFORMS

Introduction to Finite Element Method

The Wave Equation I. MA 436 Kurt Bryan

Construction of Gauss Quadrature Rules

CBE 450 Chemical Reactor Fundamentals Fall, 2009 Homework Assignment #3

20 MATHEMATICS POLYNOMIALS

Taylor Polynomial Inequalities

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

Math 270A: Numerical Linear Algebra

A. Limits - L Hopital s Rule ( ) How to find it: Try and find limits by traditional methods (plugging in). If you get 0 0 or!!, apply C.! 1 6 C.

Chapter 3 Polynomials

Lecture 24: Laplace s Equation

We will see what is meant by standard form very shortly

u t = k 2 u x 2 (1) a n sin nπx sin 2 L e k(nπ/l) t f(x) = sin nπx f(x) sin nπx dx (6) 2 L f(x 0 ) sin nπx 0 2 L sin nπx 0 nπx

Math& 152 Section Integration by Parts

ARITHMETIC OPERATIONS. The real numbers have the following properties: a b c ab ac

DOING PHYSICS WITH MATLAB MATHEMATICAL ROUTINES

Lecture 14: Quadrature

Applied Partial Differential Equations with Fourier Series and Boundary Value Problems 5th Edition Richard Haberman

A Bernstein polynomial approach for solution of nonlinear integral equations

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature

1 1D heat and wave equations on a finite interval

Summary: Method of Separation of Variables

Best Approximation in the 2-norm

1 2-D Second Order Equations: Separation of Variables

63. Representation of functions as power series Consider a power series. ( 1) n x 2n for all 1 < x < 1

MATH 3795 Lecture 18. Numerical Solution of Ordinary Differential Equations.

MATH34032: Green s Functions, Integral Equations and the Calculus of Variations 1

5.2 Exponent Properties Involving Quotients

5.5 The Substitution Rule

How do you know you have SLE?

{ } = E! & $ " k r t +k +1

Non-Linear & Logistic Regression

Chapter 4: Dynamic Programming

Numerical Integration. 1 Introduction. 2 Midpoint Rule, Trapezoid Rule, Simpson Rule. AMSC/CMSC 460/466 T. von Petersdorff 1

Functions of Several Variables

Conservation Law. Chapter Goal. 5.2 Theory

2D1431 Machine Learning Lab 3: Reinforcement Learning

Families of Solutions to Bernoulli ODEs

21.6 Green Functions for First Order Equations

Administrivia CSE 190: Reinforcement Learning: An Introduction

Review of basic calculus

LECTURE 1. Introduction. 1. Rough Classiæcation of Partial Diæerential Equations

Studies on Nuclear Fuel Rod Thermal Performance

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial VII

M344 - ADVANCED ENGINEERING MATHEMATICS

1 E3102: a study guide and review, Version 1.0

Reinforcement learning II

ODE: Existence and Uniqueness of a Solution

Section 6.1 INTRO to LAPLACE TRANSFORMS

Notes on length and conformal metrics

Math Lecture 23

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

AQA Further Pure 1. Complex Numbers. Section 1: Introduction to Complex Numbers. The number system

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

PDE Notes. Paul Carnig. January ODE s vs PDE s 1

P 3 (x) = f(0) + f (0)x + f (0) 2. x 2 + f (0) . In the problem set, you are asked to show, in general, the n th order term is a n = f (n) (0)

Chapter 14. Matrix Representations of Linear Transformations

NUMERICAL INTEGRATION

Plates on elastic foundation

c n φ n (x), 0 < x < L, (1) n=1

SOLUTION OF QUADRATIC NONLINEAR PROBLEMS WITH MULTIPLE SCALES LINDSTEDT-POINCARE METHOD. Mehmet Pakdemirli and Gözde Sarı

Mathematics of Motion II Projectiles

Data Structures and Algorithms CMPSC 465

The Dirichlet Problem in a Two Dimensional Rectangle. Section 13.5

Lecture 12: Numerical Quadrature

Recitation 3: More Applications of the Derivative

Transcription:

Ordinry Differentil Equtions- Boundry Vlue Problem Shooting method Runge Kutt method Computer-bsed solutions o BVPFD subroutine (Fortrn IMSL subroutine tht Solves (prmeterized) system of differentil equtions with boundry conditions t two points, using vrible order, vrible step size finite difference method with deferred corrections) o MALAB solution of boundry vlue problems for ordinry differentil equtions (bvp4c ) Differentil Equtions Ordinry Differentil Equtions d dt v 6 tv involve one or more Ordinry derivtives of unknown functions Differentil Equtions Prtil Differentil Equtions u u y x involve one or more prtil derivtives of unknown functions King Sud University ١ King Sud University ٢ Auxiliry conditions Initil Conditions ll conditions re t one point of the independent vrible uxiliry conditions Boundry Conditions he conditions re not t one point of the independent vrible Initil vlue nd Boundry-Vlue Problems Initil-Vlue Problems he uxiliry conditions re t one point of the independent vrible x x x e t x(), x ().5 Boundry-Vlue Problems he uxiliry conditions re not t one point of the independent vrible More difficult to solve thn initil vlue problem t x x x e x ( ), x ( ).5 sme different King Sud University ٣ King Sud University ٤

Clssifiction of ODE Clssifiction of the Methods ODE cn be clssified in different wys Order First order ODE Second order ODE N th order ODE Linerity Liner ODE Nonliner ODE Auxiliry conditions Initil vlue problems Boundry vlue problems Single-Step Methods Estimtes of the solution t prticulr step re entirely bsed on informtion on the previous step Numericl Methods for solving ODE Multiple-Step Methods Estimtes of the solution t prticulr step re bsed on informtion on more thn one step Euler, Runge-Kutt: single step methods & Adm-Moulton method: multi-step method King Sud University ٥ King Sud University ٦ Conversion of High Order ODE s to System of First Order ODE s A rod is being heded t its two ends nd the rod is exposed to the outside temperture. Conversion of High Order ODE s to System of First Order ODE s At the stedy stte, the temperture of the rod is given by the differentil eqution h ( ) Here, h is the het trnsfer coefficient. he boundry conditions re: (x ) n(x L) Wht is the stedy stte temperture for < x < L? King Sud University ٧ King Sud University ٨

Conversion of High Order ODE s to System of First Order ODE s he nlyticl solution of h ( ) For m rod with, () 4, () nd h.. is s follows e e.x.x 7.45 5.45 Conversion of High Order ODE s to System of First Order ODE s o be ble to solve this second order ODE, we hve to convert it into system of first order ODE s. Define z s hen, dz d z h( ) he system becomes d z dz h ( ) o solve the system, the initil vlue for z (i.e. z ) is needed! King Sud University ٩ King Sud University ١٠ Conversion of High Order ODE s to System of First Order ODE s Higher order ODE s cn be solved by converting them to system of first order ODE s. he conversion works by introducing new vribles. For the following second order ODE: with the initil vlues s y y.5 d y dy y sin x Introduce new vrible z s dy z Conversion of High Order ODE s to System of First Order ODE s d y dy y sin Introduce new vrible z which is defined s z From the definition of z, dz d y Now we cn write the following system he initil conditions now re y nd z.5. x dy dz z y sin x dy z King Sud University ١١ King Sud University ١٢

he finite divided difference pproximtion for the nd derivtive cn be substituted into the governing eqution, e.g consider the temperture distribution in the rod i i i ( ) h i i i h ( ) Collect terms i i h ( ) h x h ( ) i i i We cn now pply this eqution to ech interior node on the rod. Divide the rod into grid, nd consider node to be t ech division. i.e.. x m x m L m King Sud University ١٣ King Sud University ١٤ ( h ) i i h ( h ) i i h () x m L m () () x 4 6 8 i 4 5 () Consider the previous problem: L m () 4 () h. We need to solve for the temperture t the interior nodes (4 unknowns). Apply the governing eqution t these nodes (4 equtions). Wht is the mtrix? Notice the lbeling for numbering nd i King Sud University ١٥ King Sud University ١٦

( h ) i i h () x 4 6 8 i 4 5 () ( h ) i i h () x 4 6 8 i 4 5 () 4 Note lso tht the dependent vlues re known t the boundries (hence the term boundry vlue problem) 4 Apply the governing eqution t node ( h x ) h x 4 (.4 ).8.4 4.8 King Sud University ١٧ King Sud University ١٨ ( h ) i i h () x 4 6 8 i 4 5 () ( h ) i i h () x 4 6 8 i 4 5 () Apply the eqution t node 4 ( h ).4.8 h We get similr eqution t node 4 ( h ).4 4 4.8 h King Sud University ١٩ King Sud University ٢٠

( h ) i i h () x 4 6 8 i 4 5 At node 4, we consider the boundry t the right. ( h ).4 4.4 4 4.8.8 5 h () 4 For the four interior nodes, we get the following 4 x 4 mtrix.4 he solution is: ().4.4 4.8.8.8.4 4.8 { } [ 65.97 9.78 4.54 59.48] 4 4 i 4 5 () King Sud University ٢١ King Sud University ٢٢ Mtlb exmple Exmple.. Solve the nonliner boundry vlue problem d y dy ( x y ) 8 for <x<, where y()7 nd y()4/ Crete the function f s seprte m-file nd sve it in the current working directory. function f f(x,y,yp) f (/8)*(*x^-y*yp); %Note tht ypy In the commnd window type >> Y nonlinerbvp_fdm(,,7,4/); Note tht Y(:,) represents x nd Y(:,) is vector y(x) >> yexct (Y(:,)).^6./Y(:,); plot(y(:,),yexct,c) Mtlb exmple d y dy rnge <x<, ( x y ) 8 B.C. y()7 nd y()4/. 7..5 6.446579659. 5.7557547697.5 5.5874949..85.7646668.9.9796757555.95 4.6484948. 4. Exct solution 6 y ( x ) x x 7 6 5 4 Numericl Solution y() lph y(b) bet..4.6.8..4.6.8 King Sud University ٢٣ King Sud University ٢٤

Solution of Boundry-Vlue Problems Shooting method Shooting method for Boundry-Vlue Problems. Guess vlues for the uxiliry conditions t one point of time.. Solve the initil vlue problem using Euler,Runge-Kutt,. Check if the boundry conditions is stisfied otherwise modify the guess nd resolve the problem. Use interpoltion in updting the guess. It is n itertive procedure nd cn be efficient in solving the BVP King Sud University ٢٥ King Sud University ٢٦ Solution of Boundry-Vlue Problems - Shooting method Shooting method - Exmple Boundry-Vlue Problem convert Initil-vlue problem ẏ 4y 4x y(), y() Originl BVP Find y ( x ) to solve BVP y y y x y ( )., y ().8. Convert the ODE to system of first order ODE. guess the initil conditions tht re not vilble.. Solve the Initil-vlue problem 4. Check if the known boundry conditions re stisfied 5. If needed modify the guess nd resolve the problem gin x King Sud University ٢٧ King Sud University ٢٨

Shooting method - Exmple Shooting method - Exmple ẏ 4y 4x y(), y() Originl BVP ẏ 4y 4x y(), y() Originl BVP.. to be determined x x King Sud University ٢٩ King Sud University ٣٠ Shooting method - Exmple Step: convert to systems of first order ODE y 4y 4x y(), y() Convert to system of y y, y 4(y ) x first order Equtions y() y()?. dy y y, y y. d y y 4( y x ) Shooting method - Exmple Guess # he problem will be solved using RK with h for different vlues of y () until we hve y(). King Sud University ٣١ King Sud University ٣٢

Shooting method - Exmple Guess # Shooting method - Exmple Interpoltion for Guess # King Sud University ٣٣ King Sud University ٣٤ Shooting method - Exmple Interpoltion for Guess # Shooting method - Exmple Guess # Guess.574 King Sud University ٣٥ King Sud University ٣٦

Shooting method Exmple - Given: h ( ) d z dz h ( ) We need n initil vlue of z. For the shooting method, guess n initil vlue. Guessing z() Shooting method Exmple - dz ( ) h Using fourth-order RK method with step size of, () 68.8 his differs from the BC () Mking nother guess, z() () 85.9 Guessing z() Becuse the originl ODE is liner, the estimtes of z() re linerly relted. King Sud University ٣٧ King Sud University ٣٨ Shooting method Exmple - Using liner interpoltion formul between the vlues of z(), determine new vlue of z() Recll: first estimte z() () 68.8 second estimte z() () 85.9 Wht is z() tht would give us ()? Shooting method Exmple - z( ) ( 68. 8). 69 85. 9 68. 8 () 5 5 5 5 5 z() () 5 5 5 5 5 z() We cn now use this to solve the first order ODE h ( ) d z dz h ( ) King Sud University ٣٩ King Sud University ٤٠

5 5 5 A n ly tic l Solu t ion Sh ootin g Meth od 5 distnce (m ) 5 5 5 A n ly ticl Solu tion Sh ooting Met h od Finite Differ ence 5 distnce (m ) Summry of Shooting method. Guess the unvilble vlues for the uxiliry conditions t one point of independent vrible.. Solve the initil vlue problem. Check if the boundry conditions is stisfied otherwise modify the guess nd resolve the problem. 4. Repet () until the boundry conditions re stisfied For nonliner boundry vlue problems, liner interpoltion will not necessrily result in n ccurte estimtion. One lterntive is to pply three pplictions of the shooting method nd use qudrtic interpoltion.. King Sud University ٤١ King Sud University ٤٢ Properties of Shooting method. Using interpoltion to updte the guess often results in few itertions before reching the solution. he method cn be cumbersome for high order BVP becuse of the need to guess the initil condition for more thn one vrible. Runge-Kutt Method Sme s discussed before King Sud University ٤٣ King Sud University ٤٤

Computer-bsed solutions Computer-bsed solutions o o BVPFD subroutine (Fortrn IMSL subroutine tht Solves (prmeterized) system of differentil equtions with boundry conditions t two points, using vrible order, vrible step size finite difference method with deferred corrections). MALAB solution of boundry vlue problems for ordinry differentil equtions (bvp4c ) See the IMSL document for detiled description of this subroutine See Exmple of using BVPFD subroutine King Sud University ٤٥ King Sud University ٤٦ Computer-bsed solutions Computer-bsed solutions o MALAB solution of boundry vlue problems for ordinry differentil equtions (bvp4c ) bvp4c - Solve boundry vlue problems for ordinry differentil equtions Syntx sol bvp4c(odefun,bcfun,solinit) sol bvp4c(odefun,bcfun,solinit,options) solinit bvpinit(x, yinit, prms) Arguments.. etc See: http://www.mthworks.com/ccess/helpdesk/help/techdoc/ref/bvp4c.html King Sud University ٤٧ King Sud University ٤٨

Computer-bsed solutions King Sud University ٤٩ King Sud University ٥٠