se301: numerical methods topic 8 ordinary differential equations (odes) lecture 28-36

24
CISE301_Topic8L1 KFUPM 1 Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture 28-36 KFUPM Read 25.1-25.4, 26-2, 27-1

Upload: rose-horn

Post on 30-Dec-2015

43 views

Category:

Documents


2 download

DESCRIPTION

SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture 28-36. KFUPM Read 25.1-25.4, 26-2, 27-1. Objectives of Topic 8. Solve Ordinary Differential Equations ( ODEs ). Appreciate the importance of numerical methods in solving ODEs. - PowerPoint PPT Presentation

TRANSCRIPT

CISE301_Topic8L1 KFUPM 1

SE301: Numerical Methods

Topic 8 Ordinary Differential

Equations (ODEs)Lecture 28-36

KFUPM

Read 25.1-25.4, 26-2, 27-1

CISE301_Topic8L1 KFUPM 2

Objectives of Topic 8

Solve Ordinary Differential Equations (ODEs).

Appreciate the importance of numerical methods in solving ODEs.

Assess the reliability of the different techniques.

Select the appropriate method for any particular problem.

CISE301_Topic8L1 KFUPM 3

Outline of Topic 8 Lesson 1: Introduction to ODEs Lesson 2: Taylor series methods Lesson 3: Midpoint and Heun’s method Lessons 4-5: Runge-Kutta methods Lesson 6: Solving systems of ODEs Lesson 7: Multiple step Methods Lesson 8-9: Boundary value Problems

CISE301_Topic8L1 KFUPM 4

Lecture 28Lesson 1: Introduction

to ODEs

CISE301_Topic8L1 KFUPM 5

Learning Objectives of Lesson 1 Recall basic definitions of ODEs:

Order Linearity Initial conditions Solution

Classify ODEs based on: Order, linearity, and conditions.

Classify the solution methods.

CISE301_Topic8L1 KFUPM 6

Partial Derivatives

u is a function of more than one

independent variable

Ordinary Derivatives

v is a function of one independent variable

Derivatives Derivatives

dt

dvy

u

CISE301_Topic8L1 KFUPM 7

Partial Differential Equations

involve one or more partial derivatives of unknown functions

Ordinary Differential Equations

involve one or more

Ordinary derivatives of

unknown functions

Differential Equations DifferentialEquations

162

2

tvdt

vd 02

2

2

2

x

u

y

u

CISE301_Topic8L1 KFUPM 8

Ordinary Differential Ordinary Differential EquationsEquations

)cos()(2)(

5)(

)()(

:

2

2

ttxdt

tdx

dt

txd

etvdt

tdv

Examples

t

Ordinary Differential Equations (ODEs) involve one or more ordinary derivatives of unknown functions with respect to one independent variable

x(t): unknown function

t: independent variable

CISE301_Topic8L1 KFUPM 9

Example of ODE:Model of Falling Parachutist

The velocity of a falling parachutist is given by:

velocityv

tcoefficiendragc

massM

vM

c

td

vd

:

:

:

8.9

CISE301_Topic8L1 KFUPM 10

Definitions

vM

c

dt

dv 8.9

Ordinary differential equation

CISE301_Topic8L1 KFUPM 11

Definitions (Cont.)

vM

c

td

vd 8.9 (Dependent

variable) unknown

function to be determined

CISE301_Topic8L1 KFUPM 12

Definitions (Cont.)

vM

c

td

vd 8.9

(independent variable) the variable with respect to which other variables are differentiated

CISE301_Topic8L1 KFUPM 13

Order of a Differential Order of a Differential EquationEquation

1)(2)()(

)cos()(2)(

5)(

)()(

:

4

3

2

2

2

2

txdt

tdx

dt

txd

ttxdt

tdx

dt

txd

etxdt

tdx

Examples

t

The order of an ordinary differential equations is the order of the highest order derivative.

Second order ODE

First order ODE

Second order ODE

CISE301_Topic8L1 KFUPM 14

A solution to a differential equation is a function that satisfies the equation.

Solution of a Differential Solution of a Differential EquationEquation

0)()(

:

txdt

tdx

Example

0)()(

)(

:Proof

)(

tt

t

t

eetxdt

tdx

edt

tdx

etxSolution

CISE301_Topic8L1 KFUPM 15

Linear ODELinear ODE

1)()()(

)cos()(2)(

5)(

)()(

:

3

2

2

22

2

txdt

tdx

dt

txd

ttxtdt

tdx

dt

txd

etxdt

tdx

Examples

t

An ODE is linear if

The unknown function and its derivatives appear to power one

No product of the unknown function and/or its derivatives

Linear ODE

Linear ODE

Non-linear ODE

CISE301_Topic8L1 KFUPM 16

Nonlinear ODENonlinear ODE

1)()()(

2)()(

5)(

1))(cos()(

:ODEnonlinear of Examples

2

2

2

2

txdt

tdx

dt

txd

txdt

tdx

dt

txd

txdt

tdx

An ODE is linear if

The unknown function and its derivatives appear to power one

No product of the unknown function and/or its derivatives

CISE301_Topic8L1 KFUPM 17

Solutions of Ordinary Solutions of Ordinary Differential EquationsDifferential Equations

0)(4)(

ODE thetosolution a is

)2cos()(

2

2

txdt

txd

ttx

Is it unique?

solutions. are constant) real a is (where

)2cos()( form theof functions All

c

cttx

CISE301_Topic8L1 KFUPM 18

Uniqueness of a SolutionUniqueness of a Solution

by

ay

xydt

xyd

)0(

)0(

0)(4)(

2

2

In order to uniquely specify a solution to an nth order differential equation we need n conditions.

Second order ODE

Two conditions are needed to uniquely specify the solution

CISE301_Topic8L1 KFUPM 19

Auxiliary Conditions

Boundary Conditions

The conditions are not at one point of the independent variable

Initial Conditions

All conditions are at one point of the independent variable

Auxiliary Conditions

CISE301_Topic8L1 KFUPM 20

Boundary-Value and Initial value Problems

Boundary-Value Problems

The auxiliary conditions are not at one point of the independent variable

More difficult to solve than initial value problems

5.1)2(,1)0(

2 2

xx

exxx t

Initial-Value Problems

The auxiliary conditions are at one point of the independent variable

5.2)0(,1)0(

2 2

xx

exxx t

same different

CISE301_Topic8L1 KFUPM 21

Classification of ODEsODEs can be classified in different ways: Order

First order ODE Second order ODE Nth order ODE

Linearity Linear ODE Nonlinear ODE

Auxiliary conditions Initial value problems Boundary value problems

CISE301_Topic8L1 KFUPM 22

Analytical Solutions Analytical Solutions to ODEs are available

for linear ODEs and special classes of nonlinear differential equations.

CISE301_Topic8L1 KFUPM 23

Numerical Solutions Numerical methods are used to obtain a

graph or a table of the unknown function. Most of the Numerical methods used to

solve ODEs are based directly (or indirectly) on the truncated Taylor series expansion.

CISE301_Topic8L1 KFUPM 24

Classification of the Methods

Numerical Methods for Solving ODE

Multiple-Step Methods

Estimates of the solution at a particular step are based on information on more than one step

Single-Step Methods

Estimates of the solution at a particular step are entirely based on information on the

previous step