Está en la página 1de 9

ECUACIONES DIFERENCIALES ORDINARIAS DE

SEGUNDO ORDEN
Sea la ecuación diferencial ordinaria de segundo orden

  , (1)

 Donde y son constantes y una función conocida.


Con el fin de aplicar el método de Heun para resolver la ecuación diferencial de segundo orden considerada
se procede como sigue:

 1. Definir de manera que la ecuación diferencial de segundo orden se reduce a un sistema de ecuaciones
diferenciales de primer orden

  𝑦 ′=𝑓 (𝑡 , 𝑦 , 𝑧)=𝑧 , 𝑦 (𝑡 0)= 𝑦 0


  , (2)

Luego, el método de Runge – Kutta de orden 2 - Método de Heun, para el sistema de ecuaciones (2) se escribe
como,
HEUN HEUN
h h
 𝑦 = 𝑦 + [ 𝑓 (𝑡 𝑘 , 𝑦 𝑘 )+𝑓 (𝑡𝑘 +1 , 𝑃𝑘 +1)] 𝑦  𝑛+1= 𝑦 𝑛+ [ 𝑓 (𝑡 𝑛 , 𝑦 𝑛)+𝑓 (𝑡 𝑛+1 , 𝑦 𝑛 +h𝑓 (𝑡𝑛 , 𝑦 𝑛 ))]
𝑘+1 𝑘
2 2

𝑃
  𝑘 +1= 𝑦 𝑘 +h𝑓 (𝑡 𝑘 , 𝑦 𝑘 )  𝑡 𝑛+1=𝑡 𝑛 +h

𝑡  𝑘+1=𝑡 𝑘 +h
  h
[
𝑦 𝑛+1= 𝑦 𝑛+ 𝑓 ( 𝑡 𝑛 , 𝑦 𝑛 , 𝑧 𝑛 ) + 𝑓 ( 𝑡 𝑛 +1 , 𝑦 𝑛 +h𝑓 ( 𝑡 𝑛 , 𝑦 𝑛 , 𝑧 𝑛 ) , 𝑧 𝑛 +h𝑔 ( 𝑡 𝑛 , 𝑦 𝑛 , 𝑧 𝑛 ) )
2 ]
 𝑦 = 𝑦 + 1 h𝑓 𝑡 , 𝑦 , 𝑧 +h 𝑓 𝑡 , 𝑦 +𝑘 , 𝑧 +𝑙
𝑛+1 𝑛
2
[ ( 𝑛 𝑛 𝑛) ( 𝑛 +1 𝑛 1 𝑛 1 ) ]
  1
𝑦 𝑛+1= 𝑦 𝑛+ (𝑘 1 +𝑘 2 )
2
Donde

𝑘  1 =h𝑓 (𝑡 𝑛 , 𝑦 𝑛 , 𝑧 𝑛 )=h 𝑧 𝑛
𝑙  1=h𝑔 (𝑡 𝑛 , 𝑦 𝑛 , 𝑧 𝑛)=h(− 𝑎 𝑧 𝑛 − 𝑏 𝑦 𝑛+ 𝑞𝑛 )
𝑘  2 =h𝑓 (𝑡 𝑛+1 , 𝑦 𝑛+ 𝑘 1 , 𝑧 𝑛 +𝑙 1)=h(𝑧 𝑛 +𝑙 1)
𝑙 2=h𝑔 (𝑡 𝑛 +1 , 𝑦 𝑛 +𝑘 1 , 𝑧 𝑛+ 𝑙 1)=h(−𝑎 (𝑧 𝑛 +𝑙 1)− 𝑏( 𝑦 𝑛 +𝑘 1)+𝑞 𝑛+1 )
 
EJEMPLO 1

 
Cierto material de forma cubica, con una masa de se pone en el extremo inferior de un resorte sin masa. El
extremo superior se fija a una estructura en reposo. El cubo recibe una resistencia de del aire, donde es una
constante de amortiguamiento. La ecuación de movimiento es

 Donde es el desplazamiento desde la posición estatica, es la constante del resorte y

 Calcular para y mediante el método Heun.

SOLUCION
EJEMPLO 2

 Si , , , determinar con 3 iteraciones.

SOLUCION

 , , , , , ,


 𝑡 1 =0.2
𝑘
  1 =h𝑓 ( 𝑡 0 , 𝑦 0 , 𝑧 0 )=h 𝑧 0 = ( 0.2 ) ( 0 )= 0
0
𝑙  1=h𝑔 ( 𝑡 0 , 𝑦 0 , 𝑧 0 ) =h ( − 𝑎 𝑧 0 − 𝑏 𝑦 0 + 𝑞0 ) = ( 0.2 ) ( − ( 0 ) ( 0 ) − ( 1 ) ( 0 )+ 𝑒 ) =0.2
𝑘
  2 =h𝑓 ( 𝑡 1 , 𝑦 0+ 𝑘 1, 𝑧 0 +𝑙 1 )=h ( 𝑧 0 +𝑙 1 ) =( 0.2 ) ( 0+0.2 )=0.04
 
𝑙 2=h𝑔 ( 𝑡 1 , 𝑦 0 +𝑘 1 , 𝑧 0 +𝑙 1 )=h ¿
 𝑦 = 𝑦 + 1 𝑘 +𝑘 =0+ 1 ( 0+0.04 )= 0.02
1 0 ( 1 2)
2 2
 𝑦 1=0.02
 𝑧 = 𝑧 + 1 𝑙 +𝑙 =0+ 1 ( 0.2+0.24428 ) =0.22214
1 0 ( 1 2)
2 2

 𝑡 2 =0.4
𝑘
  1 =h𝑓 ( 𝑡 1 , 𝑦 1 , 𝑧 1 )=h 𝑧 1= ( 0.2 )( 0.22214 )=0.04443

𝑙  1=h𝑔 ( 𝑡 1 , 𝑦 1 , 𝑧 1 ) =h ( − 𝑎 𝑧 1 −𝑏 𝑦 1 +𝑞 1) =( 0.2 ) ( − ( 0 ) ( 0.20214 ) − ( 1 ) ( 0.02 )+ 𝑒0.2 ) =0.24028


𝑘  2 =h𝑓 ( 𝑡 2 , 𝑦 1+𝑘 1 , 𝑧 1+𝑙 1 ) =h ( 𝑧 1+𝑙 1 ) =( 0.2 ) ( 0.22214+0.24028 ) =0. 092484

0.28548
 

 𝑦 = 𝑦 + 1 𝑘 +𝑘 =0.02+ 1 ( 0.04443+0.092484 )=0.08846


2 1 ( 1 2)
2 2
 𝑦 2=0.08846

 𝑧 =𝑧 + 1 𝑙 +𝑙 =0.22214+ 1 ( 0.24028+0.28548 )=0.48502


2 1 ( 1 2)
2 2

 𝑡 3 =0.6
𝑘
  1 =h𝑓 ( 𝑡 2 , 𝑦 2 , 𝑧 2 )=h 𝑧 2= ( 0.2 )( 0.48502 ) =0.09700

𝑙  1=h𝑔 ( 𝑡 2 , 𝑦 2 , 𝑧 2 ) =h ( −𝑎 𝑧 2 −𝑏 𝑦 2 +𝑞 2) =( 0.2 ) ( − ( 0 ) ( 0.09700 ) − ( 1 )( 0.08846 )+ 𝑒0.4 )= 0.28067

𝑘  2 =h𝑓 ( 𝑡 3 , 𝑦 2+ 𝑘 1 , 𝑧 2+𝑙 1 ) =h ( 𝑧 2+𝑙 1 ) =( 0.2 ) ( 0.48502+0.28067 ) =0.15314


 
𝑙 2=h𝑔 ( 𝑡 3 , 𝑦 2 +𝑘 1 , 𝑧 2+𝑙 1 ) =h ¿
 𝑦 = 𝑦 + 1 𝑘 +𝑘 =0.08846+ 1 ( 0.09700+0.15314 )=0.21353
3 2 ( 1 2)
2 2
 𝑦 3=0.21353

1 0.2 0.02
2 0.4 0.08846
3 0.6 0.21353
La solución analítica de la ecuación diferencial es:

  1 𝑡 1 1
𝑦 ( 𝑡 )= 𝑒 − 𝑐𝑜𝑠𝑡 − 𝑠𝑒𝑛𝑡
2 2 2

El valor exacto en t=0.6 es:

 𝑦 ( 0.6 ) =0.21607

Valor exacto: 0.21607

Valor
aproximado:0.21353
EJERCICIO

 Si , determinar y(0.9) con 3 iteraciones

También podría gustarte