Professional Documents
Culture Documents
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
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
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
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
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