Está en la página 1de 11

TIPOS DE ECUACION DIFERENCIAL ORDINARIA(EDO)

Problema del valor inicial


 ECUACION DIFERENCIAL ORDINARIA DE PRIMER
ORDEN
𝑦 ′ + 𝑦𝑥 + 𝑐𝑜𝑠(𝑦𝑥 ) = 0

 SISTEMA DE ECUACIONES DIFERENCIALES


ORDINARIAS DE PRIMER ORDEN
𝑦1′ + 𝑦1 𝑥 + 𝑐𝑜𝑠(𝑦2 𝑦1 𝑥 ) = 0
𝑦2′ − y1 cos⁡(𝑦2 ) + 𝑐𝑜𝑠(𝑦2 𝑥 ) = 0

 ECUACION DIFERENCIAL ORDINARIA DE ORDEN


SUPERIOR
𝑦 𝑖𝑣 − 𝑦 ′′′ + 3𝑦 ′′ − 𝑦 ′ + 𝑦𝑥 + 𝑐𝑜𝑠(𝑦𝑥 ) = 0

Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.


SISTEMA DE ECUACIONES DIFERENCIALES
ORDINARIAS DE PRIMER ORDEN

Son de la forma: 𝑥 ′1 = 𝑓1 (𝑡, 𝑥1 , 𝑥2 , … , 𝑥𝑛 )


𝑥 ′ 2 = 𝑓2 (𝑡, 𝑥1 , 𝑥2 , … , 𝑥𝑛 )
𝑥 ′ 3 = 𝑓3 (𝑡, 𝑥1 , 𝑥2 , … , 𝑥𝑛 )
…….
𝑥 ′ 𝑛 = 𝑓𝑛 (𝑡, 𝑥1 , 𝑥2 , … , 𝑥𝑛 )
Con condiciones iniciales: 𝑡0 , 𝑥1 (𝑡0 ), 𝑥2 (𝑡0 ), … , 𝑥𝑛 (𝑡0 )
Para resolver numéricamente se necesita, además: Método, 𝑡𝑓 y ℎ

Ejemplo 1: Dado el siguiente sistema de EDO:


𝑥 ′1 = 𝑡. cos(𝑥2 ) + 𝑥2 . 𝑥3
𝑥 ′ 2 = 𝑥1 . sen(𝑥2 ) + 𝑥2 . 𝑡
𝑥 ′ 3 = 𝑡. cos(𝑥2 ) + 𝑡 2
C.I: ⁡⁡⁡⁡𝑥1 (1) = 5, 𝑥2 (1) = 10,⁡⁡⁡𝑥3 (1) = 8
Hallar: ⁡⁡⁡⁡𝑥1 (5), ⁡𝑥2 (5), 𝑥3 (5) , usando método Euler, con h=2
Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.
Solución
Fórmulas de Euler
Forma anterior (1x1) Forma anterior(3x3)
𝑦 = 𝑦 + ℎ𝑓(𝑥, 𝑦); 𝑥1 = 𝑥1 + ℎ ∗ 𝑒(𝑡, 𝑥1 , 𝑥2 , 𝑥3 )
𝑥2 = 𝑥2 + ℎ ∗ 𝑓(𝑡, 𝑥1 , 𝑥2 , 𝑥3 )
𝑥3 = 𝑥3 + ℎ ∗ 𝑔(𝑡, 𝑥1 , 𝑥2 , 𝑥3 )

Ejemplo 2: Dado el siguiente sistema de EDO de primer orden:


𝑥 ′1 = 3𝑥1 − 2𝑥2
𝑥 ′ 2 = 𝑥1 + 𝑡𝑥2
C.I: ⁡⁡⁡⁡𝑥1 (2) = 1, 𝑥2 (2) = 4
Hallar: ⁡⁡⁡⁡𝑥1 (4), ⁡𝑥2 (4),⁡ usando método RK2, con h=1
Solución:
𝑡0 = 2, 𝑥1 0 = 1, 𝑥2 0 = 4, 𝑡𝑓 = 4, ℎ = 1

𝑥 ′1 = 3𝑥1 − 2𝑥2 = 𝑓(𝑡, 𝑥1 , 𝑥2 )


𝑥 ′ 2 = 𝑥1 + 𝑡. 𝑥2 = 𝑔(𝑡, 𝑥1 , 𝑥2 )
Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.
Fórmulas de Runge-Kutta de orden 2
Forma anterior (1x1) Forma anterior(2x2)
𝑘1 = ℎ ∗ 𝑓(𝑥, 𝑦); 𝑘1𝑥1 = ℎ ∗ 𝑓(𝑡, 𝑥1 , 𝑥2 )
𝑘2 = ℎ ∗ 𝑓(𝑥 + ℎ, 𝑦 + 𝑘1); 𝑘1𝑥2 = ℎ ∗ 𝑔(𝑡, 𝑥1 , 𝑥2 )
𝑦 = 𝑦 + (𝑘1 + 𝑘2)/2; 𝑘2𝑥1 = ℎ ∗ 𝑓(𝑡 + ℎ, 𝑥1 + 𝑘1𝑥1 , 𝑥2 + 𝑘1𝑥2 )
𝑘2𝑥2 = ℎ ∗ 𝑔(𝑡 + ℎ, 𝑥1 + 𝑘1𝑥1 , 𝑥2 + 𝑘1𝑥2 )
𝑥1 = 𝑥1 + (𝑘1𝑥1 + 𝑘2𝑥1 )/2;
𝑥2 = 𝑥2 + (𝑘1𝑥2 + 𝑘2𝑥2 )/2;

Iteración 1:
𝑥 ′1 = 𝑓(𝑡, 𝑥1 , 𝑥2 ) = 3𝑥1 − 2𝑥2 ⁡⁡⁡⁡⁡⁡𝑥 ′ 2 = 𝑔(𝑡, 𝑥1 , 𝑥2 ) = 𝑥1 + 𝑡. 𝑥2
CI: ⁡⁡⁡⁡𝑡0 = 2, 𝑥1 0 = 1, 𝑥2 0 = 4, 𝑡𝑓 = 4, ℎ = 1

𝑘1 𝑥1 = ℎ ∗ 𝑓(2,1,4) = −5 𝑘1 𝑥2 = ℎ ∗ 𝑔(2,1,4) = 9
𝑘2 𝑥1 = (1) ∗ 𝑓 (3,1 + (−5), 4 + 9) = 𝑓(3, −4,13) = −38
𝑘2 𝑥2 = (1) ∗ 𝑔(3,1 + (−5), 4 + 9) = 𝑔(3, −4,13) = 35
(−5 + −38) (−5 − 38)
𝑥1 (3) = 𝑥1 (2) + =1+ = −20.5
2 2

(9 + 35) (9 + 35)
𝑥2 (3) = 𝑥2 (2) + =4+ = 26
2 2
Iteración 2:
𝑘1 𝑥1 = 𝑓(3, −20.5,26) = −113.5 𝑘1 𝑥2 = 𝑔(3, −20.5,26) = 57.5

𝑘2 𝑥1 = 𝑓(4, −20.5 + (−113.5), 26 + (57.5)) = 𝑓(4, −134,83.5) = −569

𝑘2 𝑥2 = 𝑔(4, −134,83.5) = 200


(𝑘1 𝑥1 + 𝑘2 𝑥1 ) (−113.5 − 569)
𝑥1 (4) = 𝑥1 (3) + = −20.5 + = −361.75
2 2
(𝑘1 𝑥2 + 𝑘2 𝑥2 ) (57.5 + 200)
𝑥2 (4) = 𝑥2 (3) + = 26 + = 154.75
2 2
Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.
ECUACION DIFERENCIAL ORDINARIA DE ORDEN SUPERIOR

𝑥 (𝑛) = 𝑓(𝑡, 𝑥, 𝑥 ′ , 𝑥 ′′ , 𝑥 ′′′ , 𝑥 (𝑖𝑣) … , 𝑥 (𝑛−1) )


Con condiciones iniciales:𝑡0 , 𝑥(𝑡0 ), 𝑥 ′ (𝑡0 ), 𝑥 ′′ (𝑡0 ), …⁡𝑥 (𝑛−1) (𝑡0 )
Para resolver numéricamente se necesita, además: Método, 𝑡𝑓 y ℎ

cos(𝑥𝑦)
Ejemplo 1: 𝑦 ′′′ + 2𝑦 ′ + 3𝑦 + = 0, 𝑥0 = 5, 𝑦0 = 3, 𝑦0′ = 1, 𝑦0′′ = 0
𝑦′

Hallar 𝑦 ′′ (6), 𝑦 ′ (6) considerando un ℎ = 0,2 , usado RK2.

Ejemplo 2: Dado el siguiente EDO:


𝑥 ′′′ + 𝑡𝑥 ′′ − 𝑡𝑥′ − 2𝑥 = 𝑡
CI: 𝑥(0) = 𝑥 ′′ (0) = 0, 𝑥 ′ (0) = 1
Hallar 𝑥 (2), 𝑥 ′ (2), 𝑥 ′′ (2),⁡usando RK2, con un paso de 1
Solución:

𝑥 ′′′ = 𝑡 − 𝑡𝑥 ′′ + 𝑡𝑥 ′ + 2𝑥
𝑥1 = 𝑥⁡⁡⁡⁡⁡⁡⁡𝑥1′ = 𝑥′ 𝑥2 = 𝑥 ′ ⁡⁡⁡⁡⁡⁡𝑥2′ = 𝑥′′ 𝑥3 = 𝑥 ′′ ⁡⁡⁡⁡⁡⁡𝑥3′ = 𝑥′′′
𝑥1′ = 𝑥2
𝑥2′ = 𝑥3
𝑥3′ = 𝑡 − 𝑡𝑥3 + 𝑡𝑥2 + 2𝑥1
CI: 𝑥1 (0) = 𝑥3 (0) = 0, 𝑥2 (0) = 1

Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.


Ejemplo 3: Dado el siguiente EDO:
𝑥 ′′ + 3𝑥 ′ + 𝑥 = 0
CI: 𝑥(0) = 5⁡⁡⁡⁡⁡𝑥 ′ (0) = 2
Hallar 𝑥 (2), 𝑥 ′ (2) usando RK2, con un paso de 1
Solución:
𝑥 = 𝑥⁡⁡⁡⁡⁡⁡⁡𝑥′ = 𝑥′ 𝑦 = 𝑥 ′ ⁡⁡⁡⁡⁡⁡𝑦′ = 𝑥′′
𝑥′ = 𝑦
𝑦′ = −3𝑦 − 𝑥
CI:𝑥(0) = 5, 𝑦(0) = 2

Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.


Ejemplos de aplicación de EDO de orden superior, con problema del
valor inicial:

Problema 1: SISTEMA MASA-RESORTE

𝑚𝑥̈ + 𝑐𝑥̇ + 𝑘𝑥 = 𝐹(𝑡)


m=Masa; c=Coeficiente de viscosidad; k=Rigidez del resorte

Se suspende a una persona de 70kg con un cable que tiene una


rigidez de 100⁡𝑁/𝑚 y un amortiguador con coeficiente de
viscosidad de 50⁡𝑘𝑔/𝑠.
Por un descuido la persona, cae. Estimar cual es la posición y
velocidad de la persona en el instante 6 segundos, si al inicio se
estiro hacia abajo medio metro respecto a su posición de
reposo llegando a la posición más baja.
Use el método de Euler progresivo y calcule en cada segundo.

Solución:
Para: 𝑚 = 70𝑘𝑔; 𝑐 = 50⁡𝑘𝑔/𝑠; 𝑘 = 100⁡𝑁/𝑚,
no existe fuerzas externas⁡⁡⁡⁡∴ 𝐹 (𝑡) = 0
𝑡0 = 0; 𝑥 (0) = 0.5; 𝑥′(0) = 0; 𝑥 (6) =? ;⁡𝑥’(6) =?; ℎ = 1
𝑐 𝑘
𝑥̈ = − 𝑥̇ − 𝑥
𝑚 𝑚
𝑥1 = 𝑥⁡⁡⁡⁡⁡⁡⁡𝑥′1 = 𝑥̇ 𝑥2 = 𝑥̇ ⁡⁡⁡⁡⁡⁡𝑥2′ = 𝑥̈
𝑥1′ = 𝑥2 = 𝑓(𝑡, 𝑥1 , 𝑥2 )

Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.


𝑏 𝑘
𝑥2′ = − 𝑥2 − 𝑥1 = 𝑔(𝑡, 𝑥1 , 𝑥2 )
𝑚 𝑚
m=70; c=50; k=100; 𝑥1 (0) = 0.5 ;⁡𝑥2 (0) = 0; 𝑡0 = 0; 𝑡𝑓 = 6; ℎ = 1
Fórmulas de Euler
Forma anterior (1x1) Forma anterior(2x2)
𝑦 = 𝑦 + ℎ𝑓(𝑥, 𝑦); 𝑥1 = 𝑥1 + ℎ ∗ 𝑓(𝑡, 𝑥1 , 𝑥2 )
𝑥2 = 𝑥2 + ℎ ∗ 𝑔(𝑡, 𝑥1 , 𝑥2 )

It1 t=1
𝑥1 = 0.5 + 1 ∗ 0 = 0.5
0.5 5
𝑥2 = 0 + 1 ∗ (−100 ∗ )=−
70 7

Problema 2: PENDULO SIMPLE

𝒅𝟐 𝜽
−𝒎𝒈𝒔𝒆𝒏(𝜽) = 𝒎𝒂 = 𝒎𝑳
𝒅𝒕

𝒅𝟐 𝜽 𝒈
+ 𝒔𝒆𝒏(𝜽) = 𝟎
𝒅𝒕 𝑳
𝒈
𝜽̈ + 𝒔𝒆𝒏(𝜽) = 𝟎
𝑳

Cuya solución analítica es:

Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.


Estime cual es la posición y velocidad angular en el instante 3 segundos,
considerando que la bolilla se soltó desde un ángulo de 120 °, si la cuerda mide
1.3 m. Usar el método de RK4 con 2 iteraciones.

Solución:
𝑔
𝜃̈ = − 𝑠𝑒𝑛(𝜃) ; 𝑡0 = 0; 𝑡𝑓 = 3; 𝜃0 = 120 𝜃̇0 = 0 ℎ = 1.5
𝐿

𝑥1 = 𝜃⁡⁡⁡⁡⁡⁡⁡𝑥′1 = 𝜃̇ 𝑥2 = 𝜃̇ ⁡⁡⁡⁡⁡⁡𝑥2′ = 𝜃̈
𝑥1′ = 𝑥2 = 𝑓(𝑡, 𝑥1 , 𝑥2 )
𝑔
𝑥2′ = − 𝑠𝑒𝑛(𝑥1 ) = 𝑔(𝑡, 𝑥1 , 𝑥2 )
𝐿
𝑥1 (0) = 120 ;⁡𝑥2 (0) = 0

Fórmulas de Runge-Kutta de orden 4


Forma anterior (1x1)
𝑘1 = ℎ ∗ 𝑓(𝑥, 𝑦);
𝑘2 = ℎ ∗ 𝑓(𝑥 + ℎ/2, 𝑦 + 𝑘1/2);
𝑘3 = ℎ ∗ 𝑓(𝑥 + ℎ/2, 𝑦 + 𝑘2/2);
𝑘4 = ℎ ∗ 𝑓(𝑥 + ℎ, 𝑦 + 𝑘3);
𝑦 = 𝑦 + (𝑘1 + 2 ∗ 𝑘2 + 2 ∗ 𝑘3 + 𝑘4)/6;
Forma anterior(2x2)
𝑘1𝑥1 = ℎ ∗ 𝑓(𝑡, 𝑥1 , 𝑥2 )
𝑘1𝑥2 = ℎ ∗ 𝑔(𝑡, 𝑥1 , 𝑥2 )
𝑘1𝑥1 𝑘1𝑥2
𝑘2𝑥1 = ℎ ∗ 𝑓 (𝑡 + ℎ/2, 𝑥1 + , 𝑥2 + )
2 2
𝑘1𝑥1 𝑘1𝑥2
𝑘2𝑥2 = ℎ ∗ 𝑔 (𝑡 + ℎ/2, 𝑥1 + , 𝑥2 + )
2 2
𝑘2𝑥1 𝑘2𝑥2
𝑘3𝑥1 = ℎ ∗ 𝑓 (𝑡 + ℎ/2, 𝑥1 + , 𝑥2 + )
2 2
Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.
𝑘2𝑥1 𝑘2𝑥2
𝑘3𝑥2 = ℎ ∗ 𝑔 (𝑡 + ℎ/2, 𝑥1 + , 𝑥2 + )
2 2
𝑘4𝑥1 = ℎ ∗ 𝑓 (𝑡 + ℎ, 𝑥1 + 𝑘3𝑥1 , 𝑥2 + 𝑘3𝑥2 )
𝑘4𝑥2 = ℎ ∗ 𝑔(𝑡 + ℎ, 𝑥1 + 𝑘3𝑥1 , 𝑥2 + 𝑘3𝑥2 )
𝑥1 = 𝑥1 + (𝑘1𝑥1 + 2𝑘2𝑥1 + 2𝑘3𝑥1 + 𝑘4𝑥1 )/6;
𝑥2 = 𝑥2 + (𝑘1𝑥2 + 2𝑘2𝑥2 + 2𝑘3𝑥2 + 𝑘4𝑥2 )/6;

Problema 3: PENDULO SIMPLE en un medio viscoso

𝑚𝑥̈ + 𝑐𝑥̇ + 𝑘𝑥 = 𝐹(𝑡)


𝑘 =0;
𝒅𝟐 𝜽 𝒅𝜽
𝒎𝑳 + 𝒄𝑳 = −𝒎𝒈𝒔𝒆𝒏(𝜽)
𝒅𝒕 𝒅𝒕
𝒅𝟐 𝜽 𝒄 𝒅𝜽 𝒈
+ = − 𝒔𝒆𝒏(𝜽)
𝒅𝒕 𝒎 𝒅𝒕 𝑳
𝒄 𝒈
𝜽̈ + 𝜽̇ + 𝒔𝒆𝒏(𝜽) = 𝟎
𝒎 𝑳
Si la bolilla se suelta desde 179°, estime cuál
será su posición, velocidad y aceleración
angular en el instante 10 segundos.

Use el método de RK4, con 3 iteraciones.

La bolilla pesa 20kg y está suspendida con una varilla metálica muy delgada de
0.5 m de longitud, el medio viscoso tiene un coeficiente de 15⁡𝑘𝑔/𝑠.

Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.


Problema 4: Sistema masa resorte de 2 grados de libertad

Implementar el programa para graficar la dinámica de las 2 masas, durante 10


segundos. Asuman todo lo necesario.

Tema: Sistema de ecuaciones diferenciales Prof: Máximo Obregón R.

También podría gustarte