10.1 Definition of differential equation, its order, degree,

Slides:



Advertisements
Similar presentations
Prof. Muhammad Saeed ( Ordinary Differential Equations )
Advertisements

Chapter 6 Differential Equations
UNIT – VI NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
3.2 Inverse Functions and Logarithms 3.3 Derivatives of Logarithmic and Exponential functions.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L8&9 KFUPM.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 32 Ordinary Differential Equations.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 31 Ordinary Differential Equations.
Ch 5.1: Review of Power Series Finding the general solution of a linear differential equation depends on determining a fundamental set of solutions of.
8-1 Chapter 8 Differential Equations An equation that defines a relationship between an unknown function and one or more of its derivatives is referred.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
Numerical Solutions of Ordinary Differential Equations
NUMERICAL SOLUTION OF ORDINARY DIFFERENTIAL EQUATIONS
CISE301_Topic8L31 SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
1Chapter 2. 2 Example 3Chapter 2 4 EXAMPLE 5Chapter 2.
1Chapter 2. 2 Example 3Chapter 2 4 EXAMPLE 5Chapter 2.
Numerical Solution of Ordinary Differential Equation
Numerical solution of Differential and Integral Equations PSCi702 October 19, 2005.
Fin500J Topic 7Fall 2010 Olin Business School 1 Fin500J Mathematical Foundations in Finance Topic 7: Numerical Methods for Solving Ordinary Differential.
-S.SIVARAJA Dept of MATHEMATICS.  N-NUMERICAL  M-METHODS EASY TO LEARN & EASY TO SCORE.
Boyce/DiPrima 9th ed, Ch 8.4: Multistep Methods Elementary Differential Equations and Boundary Value Problems, 9th edition, by William E. Boyce and Richard.
Lecture 35 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Initial Value Problems, Slope Fields Section 6.1a.
Integration of 3-body encounter. Figure taken from
Numerical Solutions of ODE
ANTIDERIVATIVES Definition: reverse operation of finding a derivative.
Numerical Analysis – Differential Equation
Section 3.1 Introduction & Review of Power Series.
Suppose we are given a differential equation and initial condition: Then we can approximate the solution to the differential equation by its linearization.
Solving a Trigonometric Equation Find the general solution of the equation.
Section 9.1 Arc Length. FINDING THE LENGTH OF A PLANE CURVE Divide the interval [a, b] into n equal subintervals. Find the length of the straight line.
Notes Over 5.6 Quadratic Formula
Dr. Mujahed AlDhaifallah ( Term 342)
Integration The Converse of Differentiation. If the curve passes through (1, -2), find the equation of the curve. The curve passes through (1,-2) Is a.
Warm Up. Solving Differential Equations General and Particular solutions.
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Warm up Problem Solve the IVP, then sketch the solution and state the domain.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Dr. Mubashir Alam King Saud University. Outline Ordinary Differential Equations (ODE) ODE: An Introduction (8.1) ODE Solution: Euler’s Method (8.2) ODE.
CISE301_Topic8L71 CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2,
Section 9.4 – Solving Differential Equations Symbolically Separation of Variables.
Keywords (ordinary/partial) differencial equation ( 常 / 偏 ) 微分方程 difference equation 差分方程 initial-value problem 初值问题 convex 凸的 concave 凹的 perturbed problem.
§ 4.2 The Exponential Function e x.
Engineering Problem Solution
INTEGRATION & TECHNIQUES OF INTEGRATION
Class Notes 18: Numerical Methods (1/2)
Numerical Solutions of Ordinary Differential Equations
Section Euler’s Method
Class Notes 11.2 The Quadratic Formula.
Use power series to solve the differential equation. {image}
Solve the differential equation. {image}
Sec 21: Analysis of the Euler Method
Section 11.3 Euler’s Method
Specialist Mathematics
Quadratic Equations.
Numerical Solutions of Ordinary Differential Equations
73 – Differential Equations and Natural Logarithms No Calculator
Numerical Analysis Lecture 38.
Numerical solution of first-order ordinary differential equations
Use power series to solve the differential equation. y ' = 7xy
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L6.
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L3 KFUPM.
Give the solution to each inequality.
Differential equations
Trigonometric Equations
Numerical Analysis Lecture 36.
CISE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM Read , 26-2, 27-1 CISE301_Topic8L7 KFUPM.
Numerical solution of first-order ordinary differential equations 1. First order Runge-Kutta method (Euler’s method) Let’s start with the Taylor series.
Derivatives of Logarithmic and Exponential functions
Modeling and Simulation: Exploring Dynamic System Behaviour
Presentation transcript:

10. SOLUTION OF DIFFERENTIAL EQUATION, INITIAL AND BOUNDARY VALUE PROBLEM 10.1 Definition of differential equation, its order, degree, solution, and initial and boundary value problem. 10.2 Different types of methods for the solution of initial and boundary value problems. 10.3 Applications of initial and boundary value problems.

10.1 Definition Differential equation. The order and degree . General Solution. Particular Solution. Initial value Problem. Boundary value Problem.

10.2 Euler’s Method let us suppose that we have to find y1,y2,……,yn, corresponding to x1,x2,…..,xn, where xn=x0+nh (n=1,2,…….n) and h is difference between two consecutive value of x. The basic principle of this method is that in a small interval a curve is roughly a straight line. Ym+1=ym+hf(xm, ym).

Example Given 𝑑𝑦 𝑑𝑥 = 𝑥 3 +𝑦, 𝑦 0 =1, compute y(0.02) by Euler’s method taking h=0.01. Solution:- Given 𝑑𝑦 𝑑𝑥 = 𝑥 3 + 𝑦 𝑤𝑖𝑡ℎ 𝑡ℎ𝑒 𝑖𝑛𝑖𝑡𝑖𝑎𝑙 𝑐𝑜𝑛𝑑𝑖𝑡𝑖𝑜𝑛 𝑦 0 = 1. We have f(x,y)= 𝑑𝑦 𝑑𝑥 = 𝑥 3 + 𝑦, x0 =0, y0 =1, h = 0.01. So x1 = x0 + h= 0.01 and x2 = x0 + 2h = 0.02. Applying the Euler’s method we get y1=y0+hf(x0, y0) =1.01 y2=y1+hf(x1, y1) = 1.0201.

Modified Euler’s Method  = = 0.02.

Continued We get y1(0)=y0+hf(x0, y0) =1.01. Applying Euler’s modified formula we get y1(1)=y0+h[ 𝑓 𝑥 0 , 𝑦 0 +𝑓( 𝑥 1, 𝑦 1 (0) ) 2 ] = 1.01005 y1(2)=y0+h[ 𝑓 𝑥 0 , 𝑦 0 +𝑓( 𝑥 1, 𝑦 1 (1) ) 2 ] = 1.01005 so y1(1)= y1(2)= 1.01005.

Continued y2(0)=y1+hf(x1, y1) =1.02015 and so y2 = 1.020204

Picard’s Method We consider the differential equation 𝑑𝑦 𝑑𝑥 =f(x,y) or dy = f(x,y)dx. Integrating we get 𝑦 0 𝑦 𝑑𝑦= 𝑥 0 𝑥 𝑓(𝑥,𝑦)𝑑𝑥 or y=y0+ 𝑥 0 𝑥 𝑓(𝑥,𝑦)𝑑𝑥 . The first approximation of y is denoted by y(1) and y(1)=y0+ 𝑥 0 𝑥 𝑓(𝑥, 𝑦 0 )𝑑𝑥 . Similarly putting y = y(1), we get 2nd approximation as y(2)=y0+ 𝑥 0 𝑥 𝑓(𝑥, 𝑦 (1) )𝑑𝑥 , so nth approximation is y(n)=y0+ 𝑥 0 𝑥 𝑓(𝑥, 𝑦 (𝑛−1) )𝑑𝑥 .

Example Example:- Solve the differential equation 𝑑𝑦 𝑑𝑥 = 𝑦 2 +𝑥, 𝑦 0 =0 by Picard’s method when x = 0.1, x = 0.2. Solution . The first approximation be y1 and y1 = 0 + 0 𝑥 (𝑥+0)𝑑𝑥 = 𝑥 2 2 . The second approximation be y2 and y2=0 + 0 𝑥 𝑥+ 𝑥 4 4 𝑑𝑥= 𝑥 2 2 + 1 20 𝑥 5 .

Continued Similarly the third approximation be y3 and y3 = 1 2 𝑥 2 + 1 20 𝑥 5 + 1 20 𝑥 8 + 1 20 𝑥 11 . For x = 0.1 we get y2 = 0.00500 and y3 = 0.00500 so y(0.1) = 0.00500. For x = 0.2, we can consider at x = 0.1, y1 = 0.005 as the initial values. We can write the first approximation y1 as

Continued y1 = 0.005 + 0.1 𝑥 (𝑥+0.000025)𝑑𝑥 = 𝑥 2 2 + 25 10 6 𝑥 ≈ 0.0200. The second approximation be y2 and y2 =0.005 + 0.1 𝑥 𝑥+0.0004 𝑑𝑥= 𝑥 2 2 + 4 10 4 𝑥− 4 10 5 =0.02004

Runge-Kutta Method Properties of this method.

Continued Let k1=hf(x,y), k2=f(x+ ℎ 2 ,𝑦+ 𝑘 1 2 ), k3=f(x+ ℎ 2 ,𝑦+ 𝑘 2 2 ), k4= hf(x+h,y+k3) so y1= y0+ 1 6 (k1+2k2+2k3+k4) or yk+1 = yk + 1 6 (k1+2k2+2k3+k4).

Example Example:- Solve the differential equation 𝑑𝑦 𝑑𝑥 = 𝑦 2 +𝑥, 𝑦 0 =1 by Runge-Kutta method for x = 0.2. Solution. Considering h = 0.1, we have x0 = 0, y0 =1, f(x,y) = x + y2 . Now k1 = 0.11525, k2 = 0.11685, k3= 0.11685 and k4 =0.13474 so y1=y(0.1)=1.1165. For the second step, we have x0 = 0.1, y0 =1.1165. Now k1 = 0.1347, k2 = 0.1551, k3= 0.1575, k4 =0.1823 so y(0.2) = 1.2736.

Taylor’s series Method Let 𝑑𝑦 𝑑𝑥 =f(x,y) is a differential equation whose solution is y = f(x) and y(x0) =y0 be initial condition. Using Taylor’s series of one variable for the expansion of the function f(x) at x=x0, we get 𝑓 𝑥 =𝑓 𝑥 0 + 𝑥− 𝑥 0 1! 𝑓 ′ 𝑥 0 + 𝑥− 𝑥 0 2 2! 𝑓 ′′ 𝑥 0 +…. Which can be written as y=f(x)=y0+ 𝑥− 𝑥 0 1! 𝑦 0 ′ + 𝑥− 𝑥 0 2 2! 𝑦 0 ′′ +.…. Putting x = x1+h, we get f(x1+h)= y1=y0+ ℎ 1! 𝑦 0 ′ + ℎ 2 2! 𝑦 0 ′′ +… In general Yn+1=yn + ℎ 1! 𝑦 𝑛 ′ + ℎ 2 2! 𝑦 𝑛 ′′ + ℎ 3 3! 𝑦 𝑛 ′′′ +…

Example Example:- Find the value of y(1.1) and y(1.2) using Taylor’s series given that 𝑑𝑦 𝑑𝑥 =𝑥 𝑦 1 3 , y(1) =1 taking the first three terms of the Taylor’s series expansion. Solution. Given 𝑑𝑦 𝑑𝑥 =𝑥 𝑦 1 3 , y0 = 1, x0 =1, h = 0.1 and y0’ =1. Differentiating the given equation w.r.t. x we get 𝑑 2 𝑦 𝑑 𝑥 2 = 1 3 𝑥 𝑦 − 2 3 𝑑𝑦 𝑑𝑥 + 𝑦 1 3 ⇒ 𝑦 0 ′′ = 4 3 .

Continued Taking the first three terms of the Taylor’s formula we get 𝑦 1 = 𝑦 0 +ℎ 𝑦 0 ′ + ℎ 2 2 𝑦 0 ′′ = 1.1066 ⇒ y(1.1) = 1.1066 x1 = x0 + h = 1 + 0.1 = 1.1 and 𝑦 1 ′ = 𝑥 1 𝑦 1 1 3 = 1.138. Similarly 𝑦 1 ′′ = 1.4249. Putting these values we get y2 = y(1.2) = 1.228

Milne’s Predictor – Corrector Method For the solution of 1st order differential equation, we use Milne’s Method. Both the Milne’s predictor and Milne’s corrector formula is obtained by integrating the Newton’s forward interpolation formula i.e. ȳ n+1=yn-3+( 4ℎ 3 )[2fn-2-fn-1+2fn] and corrector formula is yn+1=yn-1+( ℎ 3 ) [fn-1+4fn+fn+1]

Example Example:- Solve the differential equation 𝑑𝑦 𝑑𝑥 = 1 2 (1+ 𝑥 2 )𝑦 2 by Milne’s Predictor-Corrector method where y(0.1) =1.06, y(0.2) = 1.12, y(0.3) = 1.21. Solution. Using Milne’s predictor formula we write ȳ 4 = y0+( 4ℎ 3 )[2y1’-y2’+2y3’]. We have y’ = 1 2 (1+ 𝑥 2 )𝑦 2 , y0 =1, y1 = 1.06, y2 =1.12, y3 =1.21 and h = 0.1 so

Continued ȳ 4 = 1.2772 and y’4 = 1 2 [(1+ 𝑥 4 2 ) ȳ 4 2 =0.9458. Using Milne’s corrector formula we get y4 = y2 + ℎ 3 (y2’+4y3’ + ȳ 4’ ) = 1.2797

Adams Bash Predictor Corrector Formula Integrating the Lagrange’s polynomial formula within certain interval, we get Adams Bash Predictor formula as Ȳk+1 = yk + ( ℎ 24 )[55 𝑦 𝑘 ′ −59 𝑦 𝑘−1 ′ +37 𝑦 𝑘−2 ′ - 9 𝑦 𝑘−3 ′ ] and corrector formula is yk+1 = yk + ( ℎ 24 )[ 𝑦 𝑘−2 ′ −5 𝑦 𝑘−1 ′ +19 𝑦 𝑘 ′ +9 𝑦 𝑘+1 ′ ].

Example Example:- Solve the initial value problem 𝑑𝑦 𝑑𝑥 = x2 + x2y, y(1) = 1 at x = 1(0.1) 1.3, by any numerical method and at x = 1.4 by Adams-Bashforth method. Solution. As 𝑑𝑦 𝑑𝑥 = x2 + x2y = x2 (1+ y) or y’ = x2 (1+ y) and we have x0 = 1, y0 = 1. Computing the value of y(1.1), y(1.2), y(1.3) by Taylor’s algorithm we get

Continued y(1.1) = y1=1.233, y2 = 1.548488, y3 = 5.035 and y0’=2y1’=2.702, y2’ =3.669, y3’ =5.035. Using Adams-Bashforth predictor formula we get ȳ 4 = y3 + ( ℎ 24 ) [55y3’ - 59y2’+37y1’ - 9y1’] =2.5762. By Adams Bash Corrector Formula we get y4 = y3 + ℎ 24 (9y4’ +19y3’-5y2’ +y1’) =2.5751

Example Example: - Solve the boundary value problem 𝑦 " = 𝑦 ′ +1; 𝑦 0 =1, 𝑦(1)=2(𝑒−1) using second order method with h = 1/3. Solution: - Here we consider four nodal points 𝑥 0 =0, 𝑥 1 = 1 3 , 𝑥 2 = 2 3 , 𝑥 3 =1. The values of y at 𝑥 0 and 𝑥 3 are given from the boundary conditions. The second order method gives the difference equation

Continued 𝑦 𝑖−1 −2 𝑦 𝑖 + 𝑦 𝑖+1 = ℎ 2 𝑦 𝑖+1 − 𝑦 𝑖−1 2ℎ +1 𝑦 𝑖−1 −2 𝑦 𝑖 + 𝑦 𝑖+1 = ℎ 2 𝑦 𝑖+1 − 𝑦 𝑖−1 2ℎ +1 𝑜𝑟 1+ ℎ 2 𝑦 𝑖−1 −2 𝑦 𝑖 + 1− ℎ 2 𝑦 𝑖−1 = ℎ 2 , 𝑖=1,2 For h = 1/3 and i = 1,2 we get the system of equations 7 6 𝑦 0 −2 𝑦 1 + 5 6 𝑦 2 = 1 9 7 6 𝑦 1 −2 𝑦 2 + 5 6 𝑦 3 = 1 9

Continued Using the boundary conditions 𝑦 0 =1, 𝑦(1)=2(𝑒−1) 𝑦 0 =1, 𝑦(1)=2(𝑒−1) and simplifying, we get −36 𝑦 1 +15 𝑦 2 =−19 21 𝑦 1 −36 𝑦 2 =32−30𝑒=−49.548455. Solving these two we get 𝑦 1 =1.454869, 𝑦 2 =2.225019.

10.3 Applications Solving the differential equation numerically we can find out the death time of a person, Modeling the spread of an Epidemic, Calculating the radiative heat transfer to a thin metal plate, modeling genetic switch etc.