Euler Method
Modified Euler or than Method
RK 2
RK K
Coupled first
order of Es
I
Y Ya
I
f It
Lill
fact Y 2
y co
42107
biting
Ya
Need to be solved simultaneously
In general functions
non
linear functions
f
of y
t
can
be
non
linear i e involve
Y
the two equations which is linear
consider
Lets first
in yo t go
and
of
L l
Till
Exact Solution
form
aft y
city
Real
t blat yo t s
t
t d t y
Salt
mathematics
Engg
Numerical Approximate solution
ODE
order
for first
Euler's Method
Henn
µ RK
t
2
or ModifiedEuler's
RK 4
Ant
Eulertsmitted
I
Yi n
int
one
we
can
Pride for
step
yep
f Ctn it nitz n
Gn Yun it n
modified Enter
An th
tht
Y
th
22in tht
Faint
Similarly
he step size
Ant
ut
Yi n th f
ut
y
th f
tn Finite n
Antonia
RK methods
An th
t.tt
corrector
Still
Li
L nt
nt
t
Anita nttz.ntf.fm tinnitint
Faint FaintEffltnitin.tn tfzGntyTna
Fn Example
Solve
34th
y
247
all
L Lz
h
o 05
I 107 2,107 1
Sol
to
y
t
y
tht
o
A
Enter'dMethod
Solw
I
heepsolving
for tzitj.tn
to th
so
0
to 40172,0
I
tht Co 05,1
1
1
to
1
1
05
3
I t o 05
12
L
1
1
f
32,422
72 4 22
0.9
to yo Mio
tht
1 to 05
1 0.1
0.05
0.05
1.0
lets say
we
want to use Ric 2
formula for
RK Z
Y
L o
12
I
Wthr
Lf to 4,01721
H
0 051
39,0 72,0
o 05
3 1
p
Inf It y
K
H
o 05 o
h
H
o 1
h
9
3 0.9
1
1
0 05 1177
0
085
o l
L
I
I
L
087
solution Chaka
off
I
o
I
similarly
Vote You
o
22
can
o
0.9075
925
e
9975
o
apply use any
method
solve set
of ODES
covered in previous lotions to
HW
use
RKC to save and analyse error
set of simultaneous
One can convert higher order odes to
that
scheme
and
solve
ODEs
order
by many
first
available to solve
Lets consider
a
first order
second order ODE
or
y't
T 441
y
f ft y dit
off
t
odes
o
L j
X
fit y y
o
Loll
Initial conditions
are
Note that
lets
y
can be function
Now a single ode
ODES at
all
Initial conditions
in
t
L
transformation
introduce following
Mott
of
U Lt y
L
L
it y
converted to
be
can
ego
t
o
4,20
set of
f t do Ui
u
u
a
40107 20
Yo'll
Can be solved
usinganymethods
Note Original 2nd order opt is conmeted to a setof
Itorteropts
Exampled Solve
127
ttytz
y
Use step size of h
with y 07
o
0
y lol
HE 0
0
for
solution
and obtain the
method
Euler's
using
Solution
Lets take
Uo
y
4
113175dL
y
non
one 2nd order ODE is anuntied to a set
of two
o
4,10
orderODE
We can solve for
A
My
do
Y
no
0 to 1
Ao th
U
yo
t o I
Yo o
oto
4
to I 4
0.1
0
0t
o g
0 to 14,0
0.1 0
Exact
some using
Heun Rkd
DO
unthods
RecallEngg Math
by E
et t
I
0
Boundary Valve Problems
send
our
BUD ODE
can be formulated as problems defined
order
odes
higher
finite domains
at either end
be
can
specified
and its derivatives
function
of interval defining
Br P occurs in many
Numerical Method
the domain
t
ODE becomes BNP
transfer fluid
that
applications
Shooting method
method
Finite Difference
FEM I fr M
mechanics
we will
see in this
towise
21
ofIran
jj
L
o
y
o
e
r
o
It
9
number
some
eacham
Same curve solution
jiffy
hmmmm
set of
boundarycondition
Finite Difference Methods
d
F
non limen
Linear
can be
solved
set of linen
set of non l im an ODE
7 Can be extended to multidimensional problems
by
governed
PDEs
can be sound
differential
equations
all
bind
Almost
of
using FDM
Y
Example
Solve
Solum
Domain
3
0
to
1
IF
o
Y M 07 1 y in 1
2L
to 1
2
I
n
i
É
I
no
domain
problem
Staff Discretization of
I
or non uniform
can be uniform
1 to n t
for nodes 1
recall antral different
derivativeformula
we
Yi l
can
write
21i.tt
zy
o
0
o f
But
we
t 2,4
217
428
yi
also have two boundary Condition
To
I
Yu
tstety
we have
d
2
f
o
values
nodal
function
of
connectivity
as
nodal
equations
all the
1
Lo
It
0
yo
2
y
2
ith
y ty
1742722723
but i i ing
o
0
i
22
3
i
yn z
n 1
all
the
end
to
end
Az
2
D
211th
In it In
In
0
imar
through
which
can
D
form
as
are
related
simultaneous
written
be
0
6
nodal function values
There
equations
21174723 Yu
as
in
t
fo
a
zag y
iii
ti
oG
One can
easily solve
the function value
above
equation and get
at all nodes which will be
the solution
Non linear CaseO
FDM can be used to Some
Newton Raptor
Exampter solve y
y
Solution
É
L
I
gt
0.5
o
linear
ODES
iterative scheme
or the
or
non
s
y 14 07 1 y
can be used
ai
o using
FDM
Lets apply
central
Ti
L
een
TEA
u
nodes is 1 to n I
all
to
difference
i27t
2Y
y it
L
o
s
IT
0
5h2
o
tigiiiiiiiiitian
Hefor
in
me
know
0
y
we can use
backward different
o
o
Now we have
ILn
Yw
total HD equations algebraic innature
and City unknowns
Use NR to solve
N
Initial guts
O
f
o l
I
o 2
f
n
I
l
og
1 0
I
Iter
1
Iter 2
Itern