You are on page 1of 3

Sistemas de ecuaciones lineales

Discusión
am1 = 881, 2, 3, 4<, 83.2, 12, − 5, 7.1<, 83.5, 12.6, − 4.1, 8.3<<

881, 2, 3, 4<, 83.2, 12, − 5, 7.1<, 83.5, 12.6, − 4.1, 8.3<<

MatrixForm@RowReduce@am1DD

1 0. 8.21429 6.03571
0 1 − 2.60714 − 1.01786
0 0 0 0

am2 = 881, 2, 3, 4<, 83.2, 12, − 5, 7.1<, 83.5, 12.6, − 4.1, 8.2<<

881, 2, 3, 4<, 83.2, 12, − 5, 7.1<, 83.5, 12.6, − 4.1, 8.2<<

MatrixForm@RowReduce@am2DD

1 0. 8.21429 0.
0 1 − 2.60714 0.
0 0 0 1

am3 = 883, 3, 3, 3<, 82, 1, 1, 5.6<, 86.5, − 1, − 4, − 7<<

883, 3, 3, 3<, 82, 1, 1, 5.6<, 86.5, − 1, − 4, − 7<<

MatrixForm@RowReduce@am3DD

1 0. 0. 4.6
0 1 0. − 17.1
0 0 1 13.5

Resolución directa

ü Sistemas compatibles determinados

LinearSolve@a, bD

a = 883, 3, 3<, 82, 1, 1<, 86.5, − 1, − 4<<

883, 3, 3<, 82, 1, 1<, 86.5, − 1, − 4<<

b = 83, 5.6, − 7<

83, 5.6, − 7<

LinearSolve@a, bD

84.6, − 17.1, 13.5<

Solve@8ec1, ..., ecm<, 8inc1, ..., incn<D

Solve@83 x + 3 y + 3 z  3, 2 x + y + z  5.6, 6.5 x − y − 4 z  − 7<, 8x, y, z<D

88x → 4.6, y → − 17.1, z → 13.5<<


2 civil 3.nb

Sistemas compatibles indeterminados

Solve@8x + 2 y + 3 z  4, 3.2 x + 12 y − 5 z  7.1, 3.5 x + 12.6 y − 4.1 z  8.3<, 8x, y, z<D

Solve::svars : Equations may not give solutions for all "solve" variables. à
88x → 6.03571 − 8.21429 z, y → − 1.01786 + 2.60714 z<<

Factorización LU
a = 881, − 3, 4, − 1<, 8− 1, − 2, 2, 0<, 83, 2, − 3, 5<, 81, 2, 3, − 1<<;

LUDecomposition@aD

11 9 29 25 136
::81, − 3, 4, − 1<, 8− 1, − 5, 6, − 1<, :3, − ,− , >, :1, − 1, − , >>, 81, 2, 3, 4<, 1>
5 5 5 9 9

MatrixForm@LUDecomposition@aD@@1DDD

1 −3 4 −1
−1 −5 6 −1
11 9 29
3 − −
5 5 5
25 136
1 −1 −
9 9

LUDecomposition@aD@@2DD

81, 2, 3, 4<

LUDecomposition@aD@@3DD

b = 83, − 1, 2, 4<

83, − 1, 2, 4<

LUBackSubstitution@LUDecomposition@aD, bD

25 21 37 19
: , , ,− >
17 68 68 68

a.%  b

True

Jacobi
a = 882, − 1, 0<, 81, 6, − 2<, 84, 3, − 8<<;
b = 82, − 4, 5<;

x = H2 + yL ê 2;
y = H− 4 − x + 2 zL ê 6;
z = H5 − 4 x − 3 yL ê H− 8L;

dc = 880, 0.5, 0<, 8− 1 ê 6, 0, 1 ê 3<, 81 ê 2, 3 ê 8, 0<<

1 1 1 3
:80, 0.5, 0<, :− , 0, >, : , , 0>>
6 3 2 8
civil 3.nb 3

dti = 81, − 2 ê 3, − 5 ê 8<

2 5
:1, − ,− >
3 8

x0 = 80, 0, 0<

80, 0, 0<

x0 = dc.x0 + dti

80.500429, − 0.999799, − 0.749571<

LinearSolve@a, bD

1 3
: , − 1, − >
2 4

Gauss-Seidel
a = 882, − 1, 0<, 81, 6, − 2<, 84, 3, − 8<<;
b = 82, − 4, 5<;

x = H2 + yL ê 2;
y = H− 4 − x + 2 zL ê 6;
z = H5 − 4 x − 3 yL ê H− 8L;

dc = 880, 0.5, 0<, 8− 1 ê 6, 0, 1 ê 3<, 81 ê 2, 3 ê 8, 0<<

1 1 1 3
:80, 0.5, 0<, :− , 0, >, : , , 0>>
6 3 2 8

dti = 81, − 2 ê 3, − 5 ê 8<

2 5
:1, − ,− >
3 8

x0 = 80, 0, 0<

80, 0, 0<

x0@@1DD = dc@@1DD.x0 + dti@@1DD

0.500009

x0@@2DD = dc@@2DD.x0 + dti@@2DD

− 0.999993

x0@@3DD = dc@@3DD.x0 + dti@@3DD

− 0.749993

LinearSolve@a, bD

1 3
: , − 1, − >
2 4

You might also like