Documentos de Académico
Documentos de Profesional
Documentos de Cultura
METODOS NUMERICOS
UNIDAD IV. ECUACIONES
DIFERENCIALES ORDINARIAS
Introducción.
CONCEPTOS DE ESTABILIDAD DE ESQUEMAS NUMERICOS
ESQUEMA DE DIFERENCIAS FINITAS
METODOS NUMERICOS DE UN PASO
METODOS DE EULER
METODOS MEJORADOS DE EULER
METODOS MULTI-PASOS
METODOS DE ADAMS
METODO DE RUNGE KUTTA
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
Método de acotamiento
Método de Hirt
Por ejemplo, y’ = f(x,y) con la condición inicia y(a)=c. No siempre es tan factible encontrar
la solución analítica a tales ecuaciones, lo procedimientos numéricos para EDO basados
en la aproximación de los operadores de derivación por diferencias finitas es la opción,
asi;
Y’=f(t,y)
Con condiciones iniciales;
Y(to) = c
E incluso ecuaciones de orden superior y’’=f(x,y,y’,y’’), que con algunos cambios de
variables pueden convertirse en un sistema de ecuaciones diferenciales de primer
orden.
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
GENERALIDADES
dv c
Sea g v
dt m
Una ecuación diferencial de primer orden, donde:
METODO DE EULER
𝑦 ′ = 𝑓 𝑥, 𝑦 , 𝑦 𝑥𝑜 = 𝑦𝑜
Donde suponemos además que se verifican las hipótesis del Teorema de Picard (la
función f(x,y) es diferenciable en un entorno del punto (xo, yo)), y en consecuencia existe
solución única para el problema.
𝑦 𝑥 ≅ 𝑦𝑜 + 𝑓 𝑥𝑜 , 𝑦𝑜 𝑥 − 𝑥𝑜
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
METODO DE EULER
𝑦 𝑥1 ≅ 𝑦1 = 𝑦0 + 𝑓 𝑥𝑜 , 𝑦𝑜 𝑥1 − 𝑥𝑜
Y con este punto (aproximado), se puede repetir el método para obtener otro punto
aproximado (x2,y2) de la forma:
𝑦 𝑥2 ≅ 𝑦2 = 𝑦1 + 𝑓 𝑥1 , 𝑦1 𝑥2 − 𝑥1
Y asi sucesivamente,
METODO DE EULER
Estimado
Error
Verdadero
METODO DE EULER
N x y y real Error (%)
Ecuación: 0 0 1,00000 1 -----
y(i 1) yi h * f ( xi , yi )
1 0,2 1,00000 1 0
2 0,4 1,08000 1,04081077 3,76525943
3 0,6 1,25280 1,17351087 6,75657388
4 0,8 1,55347 1,43332941 8,38206376
5 1 2,05058 1,89648088 8,12569019
Ejemplo: 6 1,2 2,87082 2,71828183 5,611428
y ' 2 xy
7 1,4 4,24881 4,22069582 0,66605705
8 1,6 6,62814 7,09932707 6,63705854
9 1,8 10,87015 12,9358173 15,9685834
sol :
y (0) 1 10 2 18,69666 25,5337217 26,7766011
x2
h 0.2 ye
Iteracion 1.
Método de Heun.
Predictor yio1 yi f ( xi , yi )h
f ( xi , yi ) f ( xi 1, yio1)
Corrector yi 1 yi *h
2
f ( xi , yi ) f ( xi 1, yio1 )
De forma Grafica yi *h
2
yi 1
El error esta dado por:
𝑦𝑖+1 = 𝑦𝑖 + ∅ 𝑥𝑖 , 𝑦𝑖 , ℎ ℎ
∅ = 𝑎1 𝑘1 + 𝑎2 𝑘2 + ⋯ + 𝑎𝑛 𝑘𝑛
𝑘1 = 𝑓 𝑥𝑖 , 𝑦𝑖
𝑘2 = 𝑓 𝑥𝑖 + 𝑝1 ℎ, 𝑦𝑖 + 𝑞11 𝑘1 ℎ
𝑘3 = 𝑓 𝑥𝑖 + 𝑝2 ℎ, 𝑦𝑖 + 𝑞21 𝑘1 ℎ + 𝑞22 𝑘2 ℎ
*
*
*
𝑘𝑛 = 𝑓 𝑥𝑖 + 𝑝𝑛−1 ℎ, 𝑦𝑖 + 𝑞𝑛−1,1 𝑘1 ℎ + 𝑞𝑛−1,2 𝑘2 ℎ + ⋯ + 𝑞𝑛−1,𝑛−1 𝑘𝑛−1 ℎ
Donde las p y las q son constantes. Las k son relaciones de recurrencia, es decir, k1
aparece en la ecuación k2, la cual aparece en la ecuación k3. Como cada k es una
evaluación funcional, esta recurrencia vuelve eficientes a los métodos RK para cálculos en
computadora.
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
𝑦𝑖+1 = 𝑦𝑖 + 𝑎1 𝑘1 + 𝑎2 𝑘2 ℎ
Donde,
𝑘1 = 𝑓 𝑥𝑖 , 𝑦𝑖
𝑘2 = 𝑓 𝑥𝑖 + 𝑝1 ℎ, 𝑦𝑖 + 𝑞11 𝑘1 ℎ
Los valores de a1, a2, p1 y q11 toman valores en función de la serie de Taylor, el cual
lleva a las siguientes ecuaciones.
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
N x k1 k2 y
0 3 5
1 3,1 39 65,4258281 10,6617219
2 3,2 89,665081 154,403901 23,9441513
3 3,3 216,455128 382,723284 56,6742078
4 3,4 549,173074 997,276864 141,465101
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
yi 1 yi
1
k1 4k2 k3 h Ejemplo;
6
donde : y ' yx2 1.2 y
k1 f xi , yi x(3) 5; h 0.1
k 2 f xi 1 h, yi 1 k1h
2 2
k3 f xi h, yi k1h 2k 2 h
N x k1 k2 k3 y
0 3 5
1 3,1 39 56,312375 103,968415 11,1369652
2 3,2 93,6618777 137,990466 265,49459 25,816543
3 3,3 233,381549 350,959122 704,174359 62,8268782
4 3,4 608,79245 934,763504 1957,00746 161,244115
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
N x k1 k2 k3 k4 y Real
0 0 1 1
1 0,1 0 0,1 0,1005 0,20201 1,01005017 1,01005017
2 0,2 0,20201003 0,3060452 0,30760573 0,4163243 1,04081077 1,04081077
3 0,3 0,41632431 0,53081349 0,53367572 0,65650701 1,09417427 1,09417428
4 0,4 0,65650456 0,78889965 0,79353347 0,93882209 1,17351081 1,17351087
5 0,5 0,93880865 1,09840612 1,10558801 1,28406961 1,28402526 1,28402542
6 0,6 1,28402526 1,48304917 1,49399549 1,72010977 1,43332899 1,43332941
7 0,7 1,71999479 1,97512735 1,99171097 2,28550013 1,63231519 1,63231622
8 0,8 2,28524126 2,61986588 2,64496272 3,03489834 1,89647847 1,89648088
9 0,9 3,03436555 3,48193447 3,51997782 4,04725725 2,24790259 2,24790799
10 1 4,04622466 4,65540626 4,71327852 5,43846088 2,71827018 2,71828183
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
y ' 2 xy 3
y (0) 1
h 0.1
2,5
sol :
2
Real
y ex
2
1,5
Aprox
1
0,5
0
0 0,1 0,2 0,3 0,4 0,5 0,6 0,7 0,8 0,9 1
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
Puede ser transformada en una ecuación de primer orden, usando la siguiente notación;
Se hace extensivo el uso de notación vectorial, para manipular las ecuaciones de primer
orden, escrito como;
Y’=F(x,y), y(a)=α
Donde,
𝑦2
𝑦3
.
𝐹 𝑥, 𝑦 = .
𝑦𝑛
𝑓(𝑥, 𝑦)
X’’= 2et -2x’-x, sustituyendo y’= 2et - 2y - x Condiciones Iniciales x(0)=0 e y(0)=1
𝑦 𝑦 0
𝐹 𝑡, 𝑥 = 𝑦′ = x 0 =
2𝑒 𝑡 − 2𝑦 − 𝑥 1
Primera iteración, t0 = 0
x
0 1 1
𝑓 𝑡0 , 𝑥0 = 0, = =
1 2𝑒 0 − 2 ∗ 1 − 0 0
t y
0 1 0.1
𝑥1 = + 0.1 ∗ =
1 0 1
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
0.1 1 1
𝑓 𝑡1 , 𝑥1 = 0.1, = =
1 2𝑒 0.1 − 2 ∗ 1 − 0.1 0.1103
0.1 1 0,2
𝑥2 = + 0.1 ∗ =
1 0.1103 1.011
0 1 0,05 1 1
𝐾2 = 𝑓 0,5 ∗ 0,1; + 0,5 ∗ 0,1 ∗ = 𝑓 0,05, = =
1 0 1 2𝑒 0,05 − 2 ∗ 1 − 0,05 0,0525
0 1 0,1
𝑥1 = + 0.1 ∗ =
1 0,0525 1,0052
UNIDAD IV. ECUACIONES DIFERENCIALES ORDINARIAS
0,1 1,0052
𝐾2 = 𝑓 𝑡1 + 0,5 ∗ ℎ; 𝑥1 + 0,5 ∗ ℎ ∗ 𝐾1 = 𝑓 0.1 + 0,5 ∗ 0,1; + 0,5 ∗ 0,1 ∗
1,0052 0,0999
Donde a y b son los coeficientes y q(t) es una función conocida, al igual que las
condiciones iniciales. Definimos
z(t) = y’(t)
y’ = f(y,z,t) = z, y(0) = 1