Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Datos Ecuaciones
Diferenciales
d y= f ( x 1, x 2, ..) ⇒ ∂
y= f ( x) ⇒ ∂ xi
dx
EDO EDP
2
d y ∂u ∂u
Ej.
2
=x y Ec. de Airy + =0 Ec. del flujo
dx ∂x ∂ y
Ing. Juan F. Weber Cálculo Avanzado 4
E.D.Os.
● Orden: 1º, 2º, 3º, etc.
M S 0 −S f
y' '= 2º orden
y'= 1º orden
EJ 1−Fr 2
● Homogéneas o no homogéneas
y ' ' + y=0 homogénea
● Linealidad
D (a y 1 +b y 2 )=a D( y 1 )+b D( y 2 ) D operador lineal
dy
= f ( x , y)
dx
Sujeta a
y ( x 0 )= y 0
Maxima
taylor(sqrt(x),x,5,5)
II III (n)
y 2 y 0 3 y n 0 0
y ( x )= y 0 + y ' 0 h+ h + h +...+ h +...
2! 3! n!
y0 Condición inicial
y ' 0= f ( x 0, y 0 ) de la E.D.O.
df
y ' ' 0= ( x 0, y 0 ) , ... Derivadas sucesivas (regla de la cadena)
dx
Ing. Juan F. Weber Cálculo Avanzado 15
Método de la serie de Taylor
● P.V.I.
dy
=−2x− y
dx
y(0)=−1
● Solución analítica
y( x )=−3 e− x −2x +2
● Solución analítica
y( x )=−3 e− x −2x +2
y( x )=−3 e− x −2x +2
y( x )=−3 e− x −2x +2
-1,05
x
0,00%
0,0 0,1 0,2 0,3 0,4 0,5 0,6
-0,20%
-0,60%
-0,80%
-1,00%
probar
● Solución analítica
y( x )=−3 e− x −2x +2
e%
-0,75
-4%
-0,80 -5%
euler h = 0,1
-6%
euler h = 0,05
-0,85 -7%
-0,90 0,06
euler h = 0,1 euler h = 0,1
0,05
-0,95 euler h = 0,05
euler h = 0,05 0,04
-1,00 analitica 0,03
|e|
0,02
-1,05
0,01
0,00
0,0 0,1 0,2 0,3 0,4 0,5 0,6
Ing. Juan F. Weber Cálculo Avanzado 27
Método de Euler
● Para estimar
0
y ' i +1= f ( x i+1 , y i +1 )
● Que sirve para calcular
y ' i + y ' i+1
y i+1= y i + h corrector
2
0
f ( x i , y i )+ f ( x i +1 , y i +1 )
y i+ 1= y i + h
2
Ing. Juan F. Weber Cálculo Avanzado 31
Método de Heun
● Estimación del error
II
y 2 y III 3
i
y i1 = y i y ' i h h h
2 6
probar
Error local
h 3
y i+1= y i + ( y ' i + y ' i +1 )+O (h )
2
Error global O(h²)
Ing. Juan F. Weber Cálculo Avanzado 32
Método de Heun
● Se puede plantear el
esquema predictor –
corrector en forma
iterativa, hasta que
∣ ∣
j j−1
y i1 −y i1
∣t∣= j
100 % s
y i1
● Solución analítica
y( x )=−3 e− x −2x +2
-0,70
0,0 0,1 0,2 0,3 0,4 0,5 0,6
-0,75
LibreOffice Calc
-0,80
-0,85 0,0020
-0,90
0,0015
-0,95
Heun h = 0,1 0,0010
|e|
Euler h = 0,1
-1,00
analitica 0,0005
-1,05
0,0000
0,0 0,1 0,2 0,3 0,4 0,5 0,6
[
y i1 = y i a 1a2 f x i , y i h a 2
∂f
∂x ]
a2 f xi , y i
∂f 2
∂y
3
h Oh
● comparando, a1 a2 =1 1
, a 2 =, a 2 =
1
2 2
Ing. Juan F. Weber Cálculo Avanzado 1 40
● Es decir a1 =1−a 2 , ==
2 a2
Métodos de Runge – Kutta de
segundo orden
● Si a2= 1 ⇒ a1= 1 ⇒ ==1
2 2
se tiene y i +1= y i + 1 k 1 + 1 k 2 h
2 2 ( )
con k 1= f ( x i , y i ) , k 2= f ( x i +h , y i + k 1 h) Método de Heun
● Solución analítica
y( x )=−3 e− x −2x +2
-0,70
0,0 0,1 0,2 0,3 0,4 0,5 0,6
-0,75 LibreOffice Calc
-0,80 10
-0,85
8
|e| x 10 -7
-0,90
4
-0,95
RK4 h = 0,1
Euler h = 0,1 2
-1,00
analitica
0
-1,05 0,0 0,1 0,2 0,3 0,4 0,5 0,6
● Partiendo de
II III
I x 0 2 x 30
x (t )= x 0 + x (t−t 0 )+
0 (t−t 0 ) + (t −t 0 ) +...
2 6
II III
y y
y(t )= y 0 + y 0I (t −t 0 )+ 0 (t −t 0 )2 + 0 (t −t 0 )3 +...
2 6
3 2 7 3
x (t )=1−t + t − t +...
2 6
probar
5 3
2
y(t )=−1+t −t + t +...
6
● Por lo tanto,
3 2 7 3
x (t )=1−t + t − t +... x (0,1)=0,9138
2 6
5 3
2
y(t )=−1+t −t + t +... y(0,1)=−0,9092
6
x (i +1)=x i + x ' i h
● siendo
x (i +1)=x i + x ' i h x ' i = x i y i +t i
LibreOffice Calc
Ing. Juan F. Weber Cálculo Avanzado 57
Sistemas de E.D.Os.
dx
● P.V.I. = xy +t ● Resolver por el método
dt
dy
de Heun, para t = 0,1
x (0)=1
=ty + x
y(0)=−1 dt
LibreOffice Calc
Ing. Juan F. Weber Cálculo Avanzado 62
Sistemas de E.D.Os.
● P.V.I. ● Resolver por el
dx método de Runge
= xy +t = f (t , x , y )
dt x (0)=1 Kutta de cuarto
dy
=ty + x= g (t , x , y)
y(0)=−1 orden, para t = 0,1
dt
h
x i +1= x i + (k 1x +2 k 2x +2 k 3x + k 4x )
6
h
y i +1= y i + (k 1y +2 k 2y +2 k 3y +k 4y )
6
LibreOffice Calc
Ing. Juan F. Weber Cálculo Avanzado 66
Solución numérica de E.D.Os.
● Las E.D.Os.
● E.D.Os. de 1º orden
● Métodos de solución
– Serie de Taylor
– Euler
– Heun
– Runge – Kutta
● Sistemas de E.D.Os. y E.D.Os. de orden superior
● Aplicación
Aplicación: flujo gradualmente
variado en canales
V Q Q
F r= V= =
√g y A By
nV 2
By
( )
S f = 2/ 3
Rh
R h=
B+2y
datos
predictor corrector
x (m) y (m) zf (m) z (m)
vi (m/s) Fri Rhi (m) Sfi y'i ypi+1 Vi+1 (m/s) Fri+1 Rhi+1 (m) Sfi+1 y'i+1
0 4,00 0,00 0,25 0,039909 0,800 0,000135 -0,000867 3,982665 0,25108813 0,04017 0,79930421 0,000136 -0,00087 4,00
20 3,98 0,02 0,251087 0,04017 0,799 0,000136 -0,000865 3,96537 0,25218326 0,040433 0,79860515 0,000137 -0,00086 4,00
40 3,97 0,04 0,252182 0,040433 0,799 0,000137 -0,000864 3,948102 0,25328626 0,040699 0,79790231 0,000139 -0,00086 4,01
60 3,95 0,06 0,253285 0,040699 0,798 0,000139 -0,000863 3,930861 0,25439719 0,040967 0,79719566 0,00014 -0,00086 4,01
80 3,93 0,08 0,254396 0,040967 0,797 0,00014 -0,000861 3,913647 0,25551612 0,041238 0,7964852 0,000141 -0,00086 4,01
100 3,91 0,10 0,255515 0,041237 0,796 0,000141 -0,00086 3,896462 0,25664309 0,041511 0,7957709 0,000143 -0,00086 4,01
120 3,90 0,12 0,256642 0,04151 0,796 0,000143 -0,000859 3,879304 0,25777817 0,041786 0,79505276 0,000144 -0,00086 4,02
140 3,88 0,14 0,257777 0,041786 0,795 0,000144 -0,000857 3,862176 0,25892141 0,042065 0,79433076 0,000146 -0,00086 4,02
160 3,86 0,16 0,25892 0,042064 0,794 0,000146 -0,000856 3,845076 0,26007288 0,042346 0,79360489 0,000147 -0,00085 4,02
180 3,85 0,18 0,260072 0,042345 0,794 0,000147 -0,000854 3,828006 0,26123262 0,042629 0,79287515 0,000149 -0,00085 4,03
200 3,83 0,20 0,261232 0,042629 0,793 0,000149 -0,000853 3,810965 0,2624007 0,042915 0,79214151 0,00015 -0,00085 4,03
6,00
5,00
4,00
cota (m)
3,00
2,00
1,00 fondo
sup. libre
0,00
0 500 1000 1500 2000 2500 3000 3500 4000
progresiva (m)