math 175: numerical analysis ii chapter 3: differential equations lecturer: jomar fajardo rabajante...

19
MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB APPY NEW YEAR!!!

Upload: dwight-rich

Post on 22-Dec-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

MATH 175: NUMERICAL ANALYSIS IICHAPTER 3: Differential Equations

Lecturer: Jomar Fajardo Rabajante2nd Sem AY 2012-2013

IMSP, UPLB

HAPPY NEW YEAR!!!

Page 2: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

NUMERICAL SOLUTIONS TO DIFFERENTIAL EQUATIONS

• Main Topic: Ordinary Differential Equations (Initial Value Problem)–Modeling–Numerical Solutions• Softwares: MS Excel, SciLab, Berkeley Madonna

• Optional Topics–Boundary Value Problem ODE–Partial Differential Equations– Stochastic Differential Equations

Page 3: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

WHAT IS DE?

Differential equations – the major interface of mathematics with the real world – are the main tool with which scientists make mathematical models of real systems. That is, differential equations have a central role in connecting the power of mathematics with the description of real phenomena.

-John Hubbard, Cornell University

Page 4: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

What is DE?Definition:A differential equation is an equation that contains

derivatives of one or more dependent variables with respect to one or more independent variables.

This is an extension of what you have learned in Math 30 series…

MATH 151: Ordinary Differential EquationsMath 152: Partial Differential EquationsIn Math 175: We will discuss how to solve problems that

are not solvable in Math 151 and Math 152.

Page 5: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

Examples:

cx

y

xdx

dy

2 :Solution

:ODE .1

2

eby variabl separation use :Solution

:ODE .2 kydx

dy

Page 6: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

Examples:

zyxz

xy

yxx

3'

'

23'

:ODEs of System .3

Page 7: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

ODE and PDE

• An ordinary differential equation contains only ordinary derivatives. Example:

• A partial differential equation contains partial derivatives. Example:

210ydt

dy

x

yy

t

y

Page 8: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

Some concepts

• Differential equations are for modeling continuous-time systems

• Those discrete-time systems are modeled using difference equations (iterative equations, similar to our fixed-point iterations). Example:

510 1 nn yy

Page 9: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

Some concepts

• Differential equations (DE) and difference equations are applied to model DYNAMICAL SYSTEMS – systems that change over time.

• The order of a DE refers to the highest-order derivative that appears in the equation. Example:

tydt

dy

dt

yd 65

5

3

Page 10: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

Some concepts

• Autonomous DEs – the variable t does not appear in the equation. Example:

• Non-autonomous DEs – the variable t appears in the equation. Example:

4kydt

dy

4 tkydt

dy

Page 11: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

Some concepts• Linear DE does not have transcendental and

nonlinear dependent variables.

Example of Linear DE:

Example of Non-linear DE:

)sin(2'5"

22'5"

22'5"

tyyy

tyyy

yyy

)sin(2'5"

22'5)"(

22'5"2

2

yyyy

yyyy

yyy

Page 12: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

Very few physical systems are purely linear. But many nonlinear physical systems can be approximated by linear systems.

Page 13: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

ORDINARY DIFFERENTIAL EQUATIONS

Let’s focus on

Page 14: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

SOLVING ODEsExample: The solution to the ODE dy/dt, also written

as y’, is y(t) or y(t,y).

• Obtaining an explicit formula: y(t) • Obtaining an implicit formula: y(t,y)• Obtaining a power series representation for y(t)• Numerically approximating the solution y(t) or y(t,y)• Sketching the geometric representation of y(t)

Page 15: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

Geometric RepresentationFIRST-ORDER ODE

• Direction Field/Slope FieldConsider y’ = t – y Compute y’ (slopes) for every possible

equally-spaced points (t,y).

See http://www.math.psu.edu/cao/DFD/Dir.html

Page 16: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB
Page 17: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

Qualitative AnalysisFIRST-ORDER ODE

• Equilibria – solution that does not change over time i.e. dy/dt=0.

• Stability of Equilibrium solution– Stable if solutions near it tend toward it as t∞– Unstable if solutions near it tend away from it as t∞– Saddle or semi-stable if stable on one side and unstable on the other.Note: A good practice when studying DEs is to investigate first its qualitative properties. Many physical systems modeled by DEs “spend most of their time at or near equilibrium states.”

Page 18: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

y’=y2–4

Page 19: MATH 175: NUMERICAL ANALYSIS II CHAPTER 3: Differential Equations Lecturer: Jomar Fajardo Rabajante 2nd Sem AY 2012-2013 IMSP, UPLB

INITIAL VALUE PROBLEM

The combination of a differential equation and an initial condition is called an initial-value problem.

Example:

(You do not need +c when dealing with IVP)

1)0(

3' 2

y

ty