Escolar Documentos
Profissional Documentos
Cultura Documentos
+ = where y(to) = yo
If p(t) and q(t) are continuous functions on an open interval < t < and the interval contain to ,
then there is a unique solution to the initial value problem (IVP)
Interval of validity can be determined without solving the DE.
Example, Without solving, determine the interval of validity for the following IVP.
NUMERICAL
METHODS
FIRST ODE
EULER METHOD
Vast Majority of First ODE cannot be solved
So far, we have been restricting ourselves to problem of first ODE that are linear, separable and exact type
which could be solved with a set of specific methods
So what do we do when faced with DE that we cannot solved?. The answer depends on what we are
looking for
If we want the long terms behavior of solution (or general trends), we can sketch direction field
If we want something more than behavior such as determining how a specific solution behave including
values that a solution can take, in this case, we need to resort to NUMERICAL METHODS that
allow us to approximate solution of DE
There are many different methods that can be used to approximate solution of DE including Euler and
Taylor
EULER METHOD
Euler Method is whereby solution of DE are curves in x-t plane to which direction field lines are
tangential at every point.
A curve representing the solution can be obtained by sketching on the direction field a curve that is
always tangential to the line of the direction field.
Solution of DE = line/curve tangential to line of direction field= functions relating x and t
Euler Method solution are constructed step by step starting from some starting point (xo, to)
EULER METHOD
Consider First ODE
= , -------Equation 1 where x(to)=xo
Now, try to approximate solution of Equation 1 near t= = to , we know the value of
1. the solution at t= to, from the initial conditions
2. The value of derivative at t= to where = ,
=
= + ( , )( ) = + ( , )
X-capital x denote numerical approximation to exact solution
EULER METHOD
Look at the following figure, If t1 is close enough to ,
then point x1 on tangent line should be fairly close
to actual value of solution at t1 or x(t1).
Then finding x1 is easy. Just plug t1 in the equation of
tangent line
1 = + ( , )(1 )
In practice, we would like to write a computer program to do these computation. In most cases, f(x,t) is too
large or complicated to solve by hand.
Note :
Solution curves are approximation because they are tangential to direction field at certain point
Different initial to and xo (i.e. initial conditions) gives different solution curves to DE
Small h (step size) will give better approximation in the end. The numerical value will be close to analytical
values.
EULER METHOD
+
Example: A function x(t) satisfies the differential equation = . Use Euler method to
obtain approximation value of x(2) using step size h=0.1.
TAYLOR METHODS
Remember Taylor Series
() 2 2 () 3 3 ()
+ = + + +
2! 2 3! 3
Euler method can be interpreted as using Taylor Series truncated after 2nd term as an approximation to
value of x(t+h)
()
+ = + = + ,
Applying truncated taylor series, starting at point (to , xo ) and denoting tn = to +nh, we obtain
1 = + = + ,
2 = 1 + = 1 + 1 , 1
3 = 2 + = 2 + 2 , 2
And so on. This is similar to Euler Method. Increase h, increase error
Capital X denote numerical solution; lower case x exact solution
MODELLING WITH
FIRST ODE
APPLICATION MODELLING WITH
FIRST ODE
Modelling is the process of writing a DE to describe a physical situation.
Example of Modelling with first ODE
1. Mixing Problem
1500 gallon tank initially contains 600 gallons of water with 5 lbs of salt dissolved in it. Water
enters the tank at a rate of 9 gal/hr and the water entering the tank has a salt concentration of
1/5 (1+cos t) lbs/gal. If a well mixed solution leaves the tank at a rate of 6 gal/hr. how much salt is
in the tank when it overflows?
MODELLING-POPULATION PROBLEM
Rate of change in p(t) = rate at which p(t) enters region rate at which p(t) exits regions
Population of insects in a region will grow at a rate that is proportional to their current
population. In the absence of any outside factors, the population will triple in two weeks time.
On any given day, there is a net migration into the area of 15 insects and 16 are eaten by local
bird population and 7 die due to natural causes. If there are initially 100 insects in the area, will
the population survive? If not, when do they die out?
SUMMARY
Interval of validity
Numerical Methods
Euler
Taylors
Modelling first order DE
T H A N K YO U