Sunteți pe pagina 1din 5

Algebra Lineal (LI)

Aranda Molinas Gustavo Enmanuel Carrera: Ingeniera Qumica


Fecha de Realizaci on: 03/sep/14
Fecha de Entrega: 10/sep/14
1 Utilizando la divisi on por la izquierda, resolver los siguientes sistemas.
5)

x
1
+ x
2
+ x
3
= 2
2x
1
x
2
+ 2x
3
= 4
3x
1
+ 2x
2
+ 3x
3
= 8
A=[1 1 1;2 -1 2;-3 2 3];
b=[2;4;8;];
X=A\b
% % % % % % % % % % % % %
X =
-0.3333
0
2.3333
sol=(-0.3333, 0, 2.3333)
6)

x
1
2x
2
+ x
3
= 1
2x
1
+ 3x
2
2x
3
= 5
x
1
4x
2
+ 3x
3
= 4
A=[1 -2 1;2 3 -2;-1 -4 3];
b=[1;5;4];
X=A\b
% % % % % % % % % % % % %
X =
3.7500
8.0000
13.2500
sol(3.75, 8, 13.25)
1
15)

x
1
x
2
+ x
3
+ x
4
= 4
2x
1
3x
2
x
3
+ ax
4
= 7
2x
1
+ 4x
2
+ x
3
2x
4
= 1
5x
1
x
2
+ 2x
3
+ x
4
= 1
A=[1 1 1 1;2 -3 -1 4;-2 4 1 -2;5 -1 2 1];
b=[4;7;1;-1];
X=A\b
% % % % % % % % % % % % % % % % % % % % %
X =
0.0000
2.0000
-1.0000
3.0000
sol( 0, 2, -1, 3)
16)

3x
1
2x
2
x
3
+ 2x
4
= 0
4x
1
+ 3x
2
x
3
2x
4
= 0
6x
1
13x
2
+ x
3
+ 10x
4
= 0
2x
1
24x
2
2x
3
+ 20x
4
= 0
A=[3 -2 -1 2;4 3 -1 -2;-6 -13 1 10;2 -24 -2 20];
b=[0;0;0;0];
X=A\b
% % % % % % % % % % % % % % % % % % % % % % % % %
% MATLAB tira el siguiente mensaje: ''Warning: Matrix is close to singular or badly scaled.
% Results may be inaccurate. RCOND = 9.769043e-19. > In uno_16 at 7''
X =
0
0
0
0
sol(0, 0, 0, 0)
2
2 Utilizando la funci on Rank, realice un an alisis de los siguientes sistemas de
ecuaciones.
7)

x
1
+ x
2
+ x
3
= 0
2x
1
x
2
+ 3x
3
= 0
3x
1
+ 2x
2
+ 3x
3
= 0
A=[1 1 1 ;2 -1 2;-3 2 3];
b=[0;0;0];
Ab=[A b];
T=rank(A)
R=rank(Ab)
% % % % % % % % % % % % %
T =
3
R =
3
Conclusi on: Los rangos son iguales entre si e iguales al numero de inc ognitas. El sistema es compatible y
determinado.
8)

x
1
+ x
2
+ x
3
= 2
2x
1
x
2
+ 2x
3
= 4
x
1
+ 4x
2
+ x
3
= 2
A=[1 1 1;2 -1 2;-1 4 1];
b=[2;4;2];
Ab=[A b];
T=rank(A)
R=rank(Ab)
% % % % % % % % % % % % %
T =
3
R =
3
Conclusi on: Los rangos son iguales entre si e iguales al numero de inc ognitas. El sistema es compatible y
determinado.
17)

x
1
x
2
+ x
3
+ x
4
= 0
2x
1
3x
2
x
3
+ x
4
= 0
2x
1
+ 4x
2
+ x
3
2x
4
= 0
5x
1
x
2
+ 2x
3
+ x
4
= 0
A=[1 1 1 1;2 -3 -1 4;-2 4 1 -2;5 -1 2 1];
b=[0;0;0;0];
Ab=[A b];
rank(A)
rank(Ab)
% % % % % % % % % % % % % % % % % % % %
3
T =
4
R =
4
Conclusi on: Los rangos son iguales entre si e iguales al numero de inc ognitas. El sistema es compatible y
determinado.
18)

x
1
x
2
+ x
3
+ x
4
= 0
2x
1
3x
2
x
3
+ x
4
= 0
2x
1
+ 4x
2
+ x
3
2x
4
= 0
A=[1 1 1 1;2 -3 -1 4;-2 4 1 -2];
b=[0;0;0];
Ab=[A b];
T=rank(A)
R=rank(Ab)
% % % % % % % % % % % % % % % %
T =
3
R =
3
Conclusi on: Los rangos son iguales entre si, sin embargo, son diferentes al numero de incognitas. El sistema
es compatible e indeterminado.
3 Utilizando variables simb olicas, resuelva los siguientes sistemas
11)

x
1
+ x
2
+ x
3
= 0
2x
1
x
2
+ 2x
3
= 0
x
1
+ 4x
2
+ x
3
= 0
syms x
A=[1 1 1;2 -1 2;-1 4 1];
B=A(1:end-1,2:end);
b=-A(1:2,1)
*
x;
X=B\b
% % % % % % % % % % % % %
X =
0
-x
12)

2x
1
+ x
2
3x
3
= 0
4x
1
x
2
+ x
3
= 0
syms x
A=[2 1 -3;4 -1 3];
B=A(1:end-1,2:end)
b=-A(1:2,1)
*
x
4
% No se puede efectuar A\b.
b =
-2
*
x
-4
*
x
13)

x
1
+ x
2
= 0
2x
1
+ x
2
= 0
3x
1
+ x
2
= 0
syms x
A=[1 1 0;2 1 0;3 1 0]
B=A(1:end-1,2:end);
b=-A(1:2,1)
*
x;
X=B\b
% % % % % % % % % %
% Al intentar efectuar matLAB tira el siguiente mensaje:
% Warning: System is inconsistent. Solution does not exist.
X =
Inf
Inf
5

S-ar putea să vă placă și