Académique Documents
Professionnel Documents
Culture Documents
n
x =a+nh ; h=
( ) ~
n n
y y x
( )
n+1 n n n
y =y +h h,x ,y
( )
, ( ) =
n+1 n n
f y x y
MTODOS BASADOS EN LA SERIE DE TAYLOR
Los Mtodos ms sencillos de un paso, se basan en el desarrollo en serie de
Taylor de la solucin y(x)
Eliminando el ltimo trmino y sustituyendo las derivadas de ypor la funcin
Ecuaciones Diferenciales Ordinarias
( )
( )
( )
( )
( ) ... ( ) , ( ) ( )
(
+ + + s
(
= + s
p-1
p
p+1
n+1 n n n n n n+1
p+1
n
h
x y x y x
p!
p+1
h
y y x h y x x
!
,
,
( )
( )
f
y= f
x y y sus derivadas a travs de la ecuacin
x y
( )
( )
( )
( , ( )) ... ( , ( )) ( )
(
(
+ +
(
(
(
= +
p-1
n+1 n n n n
n
h,x , y
n n
h
p
x f x y x f x y x
p!
y y x h
MTODOS BASADOS EN LA SERIE DE TAYLOR
Clculo de las Derivadas de
Las derivadas de f se calculan mediante la regla de la cadena,
Ecuaciones Diferenciales Ordinarias
( )
( )
, ( , ( )) ... ( , ( ))
(
+ +
(
(
u =
p-1
n n n n n n
h
p
h,x y f x y x f x y x
p!
, ( ) f x y
.
c c
= +
c c
dy
d
x y dx dx
( )
( ) ( ) ( )
( ) ( ) ( ) ( ) ( )
( ) ( ) ( ) ( ) ( )
= = +
= = +
1
x y
k
k k-1 k-1
k
x y
df
f x, y x, y f x, y f x, y f x, y
dx
d f
f x, y x, y f x, y f x, y f x, y
dx
MTODOS BASADOS EN LA SERIE DE TAYLOR
Algoritmo:
Muy exacto
Se necesitan las derivadas de f que pueden ser analticamente complicadas
Ecuaciones Diferenciales Ordinarias
( )
( )
( ) ( , ) ... ( , )
( )
= +
(
= + + +
(
(
=
0 0
n+1 n
p-1
p
n+1 n n n n
0, 1, 2,..., N - 1
x x h
h
y x y x h f x y f x y
n
p!
x a ; y = y a n=
MTODO DE EULER (1768)
Es el mtodo ms sencillo basado en la serie de Taylor. Toma los dos (2)
primeros trminos del desarrollo de Taylor de y(x)
Algoritmo de Euler
Sencillo
se evala solo una vez
Bastante inexacto
Ecuaciones Diferenciales Ordinarias
( )
( )
( ) ( , )
= + =
(
= +
0 0
0, 1, 2,..., N - 1
n+1 n
n+1 n n n
x x h donde : x a ; y = y a n=
y x y x h f x y
( )
( ) ( )
(
+ = +
n n n
y x h y x h y x
, ( )
n n
f x y
MTODO DE LA SERIE DE TAYLOR DE ORDEN 2
Algoritmo
La primera derivada de la funcin f vale,
Ecuaciones Diferenciales Ordinarias
( )
( , ) ( , )
= + =
(
= + +
(
0 0
0, 1, 2,..., N - 1
n+1 n
n+1 n n n n n
x x h donde : x a ; y = y a n=
h
y y h f x y f x y
2
( )
( ) ( ) ( ) ( ) ( ) = = +
1
x y
df
f x, y x, y f x, y f x, y f x, y
dx
MTODO DE LA SERIE DE TAYLOR DE ORDEN 2
Ecuaciones Diferenciales Ordinarias
( )
( , ) ( , ) ( , ) ( , )
= + =
(
= + + +
0 0
2
x y
0, 1, 2,..., N - 1
n+1 n
n+1 n n n n n n n n n
x x h donde : x a ; y = y a n=
h
y y hf x y f x y f x y f x y
2
0 ( ) [ ] = = y y , y 1 , 0,1
MTODO DE LA SERIE DE TAYLOR DE ORDEN 3
Algoritmo
La primera derivada de la funcin f vale,
Ecuaciones Diferenciales Ordinarias
( ) ( )
( )
( , ) ( , ) ( , )
= + =
(
= + + +
(
0 0
2
1 2
0, 1, 2, ..., N - 1
n+1 n
n+1 n n n n n n n
x x h donde : x a ; y = y a n=
h h
y y h f x y f x y f x y
2 3!
( )
( ) ( ) ( ) ( ) ( ) = = +
1
x y
df
f x, y x, y f x, y f x, y f x, y
dx
MTODO DE LA SERIE DE TAYLOR DE ORDEN 3
La primera derivada de la funcin f vale,
La segunda derivada de la funcin f es,
Ecuaciones Diferenciales Ordinarias
( )
( ) ( ) ( ) ( ) ( ) = = +
1
x y
df
f x, y x, y f x, y f x, y f x, y
dx
( )
( ) ( ) ( ) ( ) ( ) = = +
2
2
x y
2
d f
f x, y x, y f x, y f x, y f x, y
dx
( ) ( )
( , ) ( ) ( ) ( ) ( ) ( ) ( ) = + + + + +
(
(
2
h h
y y h f x y f x, y f x, y f x, y f x, y f x, y f x, y
x y x y
n+1 n n n
2 3!
MTODO DE LA SERIE DE TAYLOR DE ORDEN 3
Ecuaciones Diferenciales Ordinarias
( ) ( )
( , ) ( ) ( ) ( ) ( ) ( ) ( )
0
( )
( ) [ ]
( )
( ) (
= + + + + +
= + =
(
(
= =
=
=
0 0
2
x y
0, 1, 2, ..., N - 1
n+1 n
h h
y y h f x y f x, y f x, y f x, y f x, y f x, y f x, y
x y x y
n+1 n n n
2 3!
x x h donde : x a ; y = y a n=
Resolver
y y , y 1 , 0,1
f x, y y
f x, y 0 f x,
)
( ) ( ) ( ) ( )
( ) ( )
( ) ( ) ( ) ( )
=
= + =
= =
= + =
x y
x y
x y
y 1
f x, y f x, y f x, y f x, y y
f x, y 0 f x, y 1
f x, y f x, y f x, y f x, y y
MTODO DE LA SERIE DE TAYLOR DE ORDEN 4
Algoritmo
La primera derivada de la funcin f vale,
Ecuaciones Diferenciales Ordinarias
( ) ( ) ( )
( )
( , ) ( , ) ( , ) ( , )
= + =
(
= + + + +
(
0 0
2 3
1 2 3
0, 1, 2, ..., N - 1
n+1 n
n+1 n n n n n n n n n
x x h donde : x a ; y = y a n=
h h h
y y h f x y f x y f x y f x y
2 3! 4!
( )
( ) ( ) ( ) ( ) ( ) = = +
1
x y
df
f x, y x, y f x, y f x, y f x, y
dx
MTODO DE LA SERIE DE TAYLOR DE ORDEN 4
La segunda derivada de la funcin f vale,
La tercera derivada de la funcin f es,
Ecuaciones Diferenciales Ordinarias
( )
( ) ( ) ( ) ( ) ( ) = = +
3
3
x y
3
d f
f x, y x, y f x, y f x, y f x, y
dx
( ) ( )
( )
( , ) ( ) ( ) ( ) ( ) ( ) ( )
( ) ( ) ( )
+ + + + +
= +
+
(
(
(
(
(
2
3
h h
f x y f x, y f x, y f x, y f x, y f x, y f x, y
x y x y
n n
2 3!
y y h
n+1 n
h
f x, y f x, y f x, y
x y
4!
( )
( ) ( ) ( ) ( ) ( ) = = +
2
2
x y
2
d f
f x, y x, y f x, y f x, y f x, y
dx
MTODO DE LA SERIE DE TAYLOR DE ORDEN 4
Ecuaciones Diferenciales Ordinarias
( ) ( )
( )
( , ) ( ) ( ) ( ) ( ) ( ) ( )
( ) ( ) ( )
0
( )
( ) [
+ + + + +
= +
+
= + =
(
(
(
(
(
= =
0 0
2
3
0, 1, 2,..., N - 1
n+1 n
h h
f x y f x, y f x, y f x, y f x, y f x, y f x, y
x y x y
n n
2 3!
y y h
n+1 n
h
f x, y f x, y f x, y
x y
4!
x x h donde : x a ; y = y a n=
Resolver
y y , y 1 , 0
]
( )
( ) ( )
( ) ( ) ( ) ( )
( ) ( ) ( ) ( )
( ) ( ) ( ) ( )
=
= =
= + =
= + =
= + =
x y
x y
x y
x y
,1
f x, y y
f x, y 0 f x, y 1
f x, y f x, y f x, y f x, y y
f x, y f x, y f x, y f x, y y
f x, y f x, y f x, y f x, y y
MTODOS DE RUNGE-KUTTA
Son mtodos de un paso y estn diseados para aproximar los mtodos basados en
la serie de Taylor.
Tienen la ventaja de que no requieren una evaluacin explcita de las derivadas de
La idea bsica es la de utilizar una combinacin lineal de los valores de
para aproximar . La combinacin lineal se toma de manera que se adapte
lo mejor posible al desarrollo de la serie de Taylor para obtener mtodos con un
orden pelevado.
Ecuaciones Diferenciales Ordinarias
, ( ). f x y
, ( ) f x y
( ) y x
MTODOS DE RUNGE-KUTTA
MTODO DE RUNGE-KUTTA DE ORDEN 2
Vamos a derivar un mtodo de Runge-Kutta que utiliza dos evaluaciones de
en cada paso.
Dados los valores se eligen los valores y las constantes de
manera que la expresin
coincida con el desarrollo de Taylor hasta el orden
Ecuaciones Diferenciales Ordinarias
_ _
( ) ( )
(
= + o +o
(
n
n+1 n 1 n n 2 n
R
y y h f x , y f x , y
, ( )
n n
f x y
,
n n
x y
_ _
,
n
n
x y
, o o
1 2
3
h
( ) ( )
( ) ( ) ( )
(
= + + +
(
2
1 2
n+1 n n n n n n n
T
h h
y y h f x , y f x , y f x , y
2 6
MTODOS DE RUNGE-KUTTA
Las cantidades se expresan como:
Por tanto, hay que igualar la expresin,
Ecuaciones Diferenciales Ordinarias
_
_
, ( )
= +
= +
n
n 1
n
n 2 n n
x h
y h f
x
y x y
_ _
,
n
n
x y
( )
_ _
( ) ( )
( ) ( ( ))
( ) ( )
( )
+
= +
1 n n 1
1 n n 2 n 1 n 2 n n
1 2 n n 2 2 y 1 x
2
2 2
2 yy 1 2 xy 1 xx
n
n
2 2
R= f x ,y + f x ,y
= f x ,y + f x +h ,y +h f x ,+y
f x ,y +h ff + f
h
+ f f +2 ff f
2
MTODOS DE RUNGE-KUTTA
Con el desarrollo de Taylor
Igualando los coeficientes de las potencias en las expresiones R y T se
obtienen las condiciones,
Ecuaciones Diferenciales Ordinarias
( ) ( )
( ) ( ) ( )
( ) ( )
( )
+ +
+ +
+ + + + +
2
1 2
n n n n n n
n n x x
2
2 2
yy xy xx x y y
h h
T= f x ,y f x ,y f x ,y
2 6
h
= f x ,y + f ff
2
h
f f 2ff f f f ff
6
0 1
h y h
1 2
2 2 2 1
1= +
1
= =
2
MTODOS DE RUNGE-KUTTA
Tomando como parmetro arbitrario las ecuaciones anteriores se
escriben,
Ecuaciones Diferenciales Ordinarias
=
2
1
1 2
=
=1-
1
= = , 0
2
2
=
MTODOS DE RUNGE-KUTTA
ALGORITMO DE RUNGE-KUTTA DE ORDEN 2
El mtodo de Euler se obtiene en el caso especial y el orden es 1.
Una mejora del mtodo de Euler se obtiene tomando
Ecuaciones Diferenciales Ordinarias
( )
( )
( , ) ( , ( , ))
= + =
= + + + +
=
0 0
0, 1, 2, ..., N - 1
n+1 n
n+1 n n n n n n n
x x h donde : x a ; y = y a n=
h h
y y h 1- f x y h f x y f x y
2 2
0
= 0
=
1
2
MTODOS DE RUNGE-KUTTA
MTODO DE EULER-CAUCHY
Se obtiene del algoritmo de Runge-Kutta de orden 2, tomando la
ecuacin de recurrencia es:
ALGORITMO
Ecuaciones Diferenciales Ordinarias
( , ( , )) = + + +
n+1 n n n n n
h h
y y hf x y f x y
2 2
= 1
( )
( , ( , ))
= + =
= + + +
0 0
0, 1, 2, ..., N - 1
n+1 n
n+1 n n n n n
x x h donde : x a ; y = y a n=
h h
y y hf x y f x y
2 2
MTODOS DE RUNGE-KUTTA
MTODO DE RUNGE-KUTTA DE ORDEN 3
Las frmulas para el mtodo de Runge-Kutta de orden 3 son,
Ecuaciones Diferenciales Ordinarias
( )
( )
( , )
( , )
( , )
= + =
= + + +
=
= + +
= + +
0 0
1 2 3
1
2 1
3 1 2
0, 1, 2, ..., N - 1
n+1 n
n+1 n
n n
n n
n n
x x h donde : x a ; y = y a n=
1
y y k 4k k
6
k hf x y
h 1
k hf x y k
2 2
k hf x h y k 2k
MTODOS DE RUNGE-KUTTA
MTODO DE RUNGE-KUTTA DE ORDEN 4
Las frmulas para el mtodo de Runge-Kutta de orden 4 son,
Ecuaciones Diferenciales Ordinarias
( )
( )
( , )
( , )
( , )
( , )
= + =
= + + + +
=
= + +
= + +
= + +
0 0
1 2 3 4
1
2 1
3 1 2
4 3
0, 1, 2, ..., N - 1
n+1 n
n+1 n
n n
n n
n n
n n
x x h donde : x a ; y = y a n=
1
y y k 2k 2k k
6
k hf x y
h 1
k hf x y k
2 2
h 1
k hf x y k k
2 2
k hf x h y k