Вы находитесь на странице: 1из 2

Pregunta 2

Dado el problema de valor inicial:

 sin 2  t
t
y´´( t)  2 y´( t)  4 y ( t) = e

y(0) = 1

y´( 0 ) = 1

h  0.1

Algoritmo a utilizar:

f tiyi  f ti1 yi  h f tiyi


h
y =y 
i 1 i 2

Transformamos el PVI para llevarlo a un sistema de primer orden equivalente, definimos:

 u1   y ( t) 
 u2   y´( t) 
u ( t) = =

 u 
 y´( t)   2
 = F( t u )
u´( t) =    t
=

 e  sin 2 t  2 u 2  4  u1 
 y´´( t ) 

Por las condiciones iniciales, sabemos que:

 y( t)  =  0 
u ( t) =     siendo t=1
 y´( t)   0 

El algoritmo dado quedaría de la siguiente manera:

Ftiui  Fti1 ui  h Ftiui


h
u =u  i = 0 1  n
i 1 i 2

con i = 0

Ft0 u0  Ft1 u0  h Ft0 u0


h
u =u 
1 0 2

y de la misma manera sucesivamente hasta llegar a la iteración solicitada

24
Las condiciones iniciales se ingresan en la programación del PVI, con h = 0.1 y se solicitan 5
iteraciones:

PVI( h n )  t 0
0
a 1
0
b 1
0

a 
F( t a b )   
b
 b 
G( t a b )   
 e  sin 2 t  2 b  4 a 
t

for i  0 1  n
t  t  i h
i 1 0

 ai1 

 b i1   i i i 2   i i i  i1 i i i   
  F t a b  h   G t a b  Gt a  h  b b  h  e ti sin 2  t  2 b  4  a 
i i i
 
k i
i 0
k t
i 1 i 1
k a
i 2 i
k b
i 3 i
k  "Ite"
0 0
k  "Valor Temporal"
0 1
k  "y(t)"
0 2
k  "y´(t)"
0 3
k

 "Ite" "Valor Temporal" "y(t)" "y´(t)" 


 1 0.1 1.07 0.44 
 
 2 0.2 1.0882 0.013634934 
PVI( 0.1 5 ) 
 3 0.3 1.0671653625 0.3628091969 
 4 0.4 1.0155890973 0.6291604845

 
 5 0.5 0.9412436163 0.82207703 

25

Вам также может понравиться