You are on page 1of 4

PROBLEMA 1

Resolver la ecuacion diferencial de valores iniciales

(x2 1)y'' 2xy' + 2y = (x2 1)


2
2
...................( 1 ) y( 0 ) = 0 y( 1 ) = N=4
3
la ecuacion diferencial debe tener la forma y'' + P( x) y' + Q( x) y = R( x)

dividimos a la toda la ecuacion 1 entre

y''
2x
y' +
2 y
(2 )
= x 1 de donde tendremos
(x2 1) (x2 1)
p ( x) =
2 x
Q( x) =
2
R( x) = x 1 (2 )
(x2
1 ) (x2
1 )
Paso 1

Segmentar los valores de x


1 0 1 0
xi = xo + j h h = h := 4 h = 0.25
N

x0 := 0 x0 = 0 valores de frontera

x1 := 0 + ( 1 ) ( h ) x1 = 0.25

x2 := 0 + ( 2 ) ( h ) x2 = 0.5

x3 := 0 + ( 3 ) ( h ) x3 = 0.75

x4 := 1 x4 = 1 valores de frontera

Paso 2
Haciendo los cambios de variable para los diferenciales

y( j + 1 ) y( j 1 ) y( j + 1 ) 2 yj + y( j 1 )
y' = y'' = y = yj
2 h 2
h

reemplazando en la ecuacion (1)


y( j + 1 ) 2 yj + y( j 1 ) 2xj y( j + 1 ) y( j 1 ) 2 yj
= xj 1
2
+
2 x 2 1 2 h x 2 1
h
j j

Factorizando los terminos de Y

1 2xj 2 + Y + 1 2xj
Y( j 1 ) = xj2 1
2
Y( j + 1 ) + j +
h 2 2 h x 2 1 h 2 x 1
2 h 2
2h xj 1
2
j j

donde j variara de j = 1 , 2 , 3......( N 1 )

para j =1

1 2x1 2 + Y( 1 ) + 1 2x1
Y( 0 ) = x1 2 1
2
Y( 2 ) + +
h 2 2 h x 2 1 h 2 x 1
2 h 2
2h x1 1
2
1 1

para j =2

1 2x2 2 + Y( 2 ) + 1 2x2
Y( 1 ) = x2 2 1
2
Y( 3 ) + +
h 2 2 h x 2 1 h 2 x 1
2 h 2 2h x 2 1
2 2 2

para j =3

1 2x3 2 + Y( 3 ) + 1 2x3
Y( 2 ) = x3 2 1
2
Y( 4 ) + +
h 2 2 h x 2 1 h 2 2 h 2 2h x 2 1
3 x3 1 3
Paso 3
2
Generar el sistema tribanda tomando los valores de frontera y( 0 ) = 0 y( 1 ) =
3
2
Y0 := 0 Y4 :=
3

2 2 1
2x1
2 + 0
h x 2 1 h 2 2 h x 2 1
1 1

1 2x2 2 2 1 2x2
A := 2 + +
2h x2 1
2 2 x 2 1 h2 2 h x 2 1
h h
2 2
2x3
1 2 2
0 + +
2
2h x3 1
2 2 2
h
h
x3 1

2 1 2x1
x1 1 + Y0
h 2 2h x 2 1
1
b := x 1
2
2
2x
x3 2 1 1 3
Y4
2
2 h x3 1
2
h

Finalmente reemplazamos los datos de cada valor

34.133 17.067 0 0.938 0.041 0.025 0.013



A = 15.333 34.667 18.667 b = 0.75
1 0.023 0.051 0.026
A =
8.904 10 3 0.02 0.037
0 14.286 36.571 15.676

1
Y
34.133 17.067 0 0.938
15.333 34.667 18.667 Y = 0.75 x := A b
1
2
0 14.286 36.571 Y
3 15.676
0.26
x = 0.465

0.61
Paso 4
completamos los valores y graficamos la solucion

0 0
0.25 0.26

X := 0.50 Y := 0.465
0.75 0.61

1 0.6667

0.8

0.6

Y 0.4

0.2

0
0 0.2 0.4 0.6 0.8 1
X

You might also like