Sistema de Ecuaciones
lineales, no lineales y
optimización
¿Cuántas toneladas de cada mina deben utilizarse para obtener 7 toneladas de níquel,
18 de cobre y 16 de hierro?
Sea:
Mina A: x
Mina B: y
Mina C: z
Forma Matricial:
6𝑥 + 2𝑦 + 𝑧 = 700 6 2 1 𝑥 700
{ + 4𝑦 + 8𝑧 = 1800
2𝑥 [2 𝑦
4 8] [ ] = [1800]
3𝑥 + 6𝑦 + 2𝑧 = 1600 3 6 2 𝑧 1600
Por lo tanto:
X=200
Y=100
Z=300
16.- El dueño de un bar ha comprado refrescos, cerveza y vino por importe de 500 € (sin
impuestos). El valor del vino es 60 € menos que el de los refrescos y de la cerveza
conjuntamente. Teniendo en cuenta que los refrescos deben pagar un impuesto del 6%,
por la cerveza del 12% y por El vino del 30%, lo que hace que la factura total con
impuestos sea de 92.4 €, calcular la cantidad invertida en cada tipo de bebida. Resolver
usando el método de Gauss Jordan.
Planteamos:
Refresco: x
Cerveza: Y
Vino: z
𝑥 + 𝑦 + 𝑧 = 500
{ 𝑥 + 𝑦 − 𝑧 = 60
6𝑥 + 12𝑦 + 30𝑧 = 9240
Ejecutamos Gauss-Jordan
1 1 1 500 1 1 1 500
[1 1 −1 60 ] 𝑓2 ↔ 𝑓3 → [6 12 30 9240]
6 12 30 9240 1 1 −1 60
1 0 −3−540 1 1 0 −3−540
𝑓1 = −𝑓2 + 𝑓1 → [0 1 4 1040 ] 𝑓3 𝑥 (− ) → [0 1 4 1040 ]
2
0 0 −2−440 0 0 1 220
Para la Plata:
Ley de plata en el 1° lingote: 30/90 = 1/3
Ley de plata en el 2° lingote: 40/120 = 1/3
Ley de plata en el 3° lingote: 50/180 = 5/18
1 1 5
𝑥 + 𝑦 + 𝑧 = 46
3 3 18
Para el Cobre:
Ley de cobre en el 1° lingote: 40/90 = 4/9
Ley de cobre en el 2° lingote: 50/120 = 5/12
Ley de cobre en el 3° lingote: 90/180 = 1/2
4 5 1
𝑥 + 𝑦 + 𝑧 = 67
9 12 2
Sea:
8𝑥 + 9𝑦 + 8𝑧 = 1224
{ 6𝑥 + 6𝑦 + 5𝑧 = 828
16𝑥 + 15𝑦 + 18𝑧 = 2412
1 1 0 −0.5 18 𝑓2 = −4 𝑓3 + 𝑓2 1 0 045
𝑓3 𝑥 ( ) → [0 1 4/3 120] 3 → [0 1 048]
6 𝑓1 = 0.5𝑓3 + 𝑓1
0 0 1 54 0 0 154
∴ 𝑥 = 45 ∶ 𝑦 = 48 ∶ 𝑧 = 54
18.- Un obrero ha trabajado durante 30 días para dos patrones ganando 207 000 ptas.
El primero le pagaba 6 500 ptas. Diarias y el segundo 8 000 ptas ¿Cuántos días trabajo
para cada patrón? Resolver por descomposición LU.
Sea:
Planteamos
1 0 𝑎 + 𝑏(0) = 207000
𝐿=[ ]→{ 𝑎
1/6500 1 + 𝑏 = 30
6500
−24
𝑎 = 207000 ; 𝑏=
13
−3 −24
∴ 𝑦( )= →𝑦=8
13 13
19. Dos obreros trabajan 8 horas diarias en la misma empresa. El primero gana 500 ptas
diarias menos que el segundo, pero ha trabajado durante 30 jornadas mientras que el
primero solo 24. Si el primero ha ganado 33000 ptas más que el segundo. Calcula el
salario diario de cada obrero.
Planteamos:
X: Salario diario del 1° obrero
Y: Salario diario el 2° obrero
−𝑥 + 𝑦 = 500
{
8𝑥 − 10𝑦 = 11000
−1 1 500 1 −1 −500
[ ] 𝑓 𝑥(−1) → [ ]
8 −1011000 1 8 −1011000
1 −1 −500 −1 1 −1 −500
𝑓2 = −8𝑓1 + 𝑓2 → [ ] 𝑓2 𝑥( ) → [ ]
0 −215000 2 0 1 −7500
1 0−8000
𝑓1 = 𝑓2 + 𝑓1 → [ ]
0 1−7500
∴ 𝑥 = −8000 𝑦 = −7500
20. El área de un triángulo rectángulo es 120 cm2 y la hipotenusa mide 26 cm. ¿cuáles
son las longitudes de los catetos?
𝑥𝑦
¬ 2
= 120
X
¬ 𝑥 2 + 𝑦 2 = 262
Y
(𝑥 + 𝑦)2 = 𝑥 2 + 𝑦 2 + 2𝑥𝑦 → 𝑥 + 𝑦 = 34
(𝑥 − 𝑦)2 = 𝑥 2 + 𝑦 2 − 2𝑥𝑦 → 𝑥 − 𝑦 = 14
𝑥 + 𝑦 = 34
{
𝑥 − 𝑦 = 14
→ 𝐺𝑎𝑢𝑠𝑠 − 𝐽𝑜𝑟𝑑𝑎𝑛:
1 1 𝑥 34
[ ] [𝑦 ] = [ ]
1 −1 14
1 1 34 1 1 34
[ ] 𝑓2 = −𝑓1 + 𝑓2 → [ ]
1 −114 1 −220
−1 1 134 1 024
𝑓2 𝑥 ( ) → [ ] 𝑓1 = −𝑓2 + 𝑓1 → [ ]
2 0 110 0 110
∴ 𝑥 = 24 ; 𝑦 = 10
15
13 20
h h
x y
15
→ 𝑥 + 𝑦 + 15 = 36 → 𝑥 + 𝑦 = 21
→ 𝑥 2 + ℎ2 = 132 → 𝑥 2 + ℎ2 = 169
→ 𝑦 2 + ℎ2 = 202 → 𝑦 2 + ℎ2 = 400
169 − 𝑥 2 = 400 − 𝑦 2
𝑦 2 − 𝑥 2 = 231
(𝑦 − 𝑥)(𝑦 + 𝑥) = 231 → 𝑦 − 𝑥 = 11
𝑥 + 𝑦 = 21
{
−𝑥 + 𝑦 = 11
𝐷𝑒𝑠𝑐𝑜𝑚𝑝𝑜𝑠𝑖𝑐𝑖ó𝑛 𝐿𝑈:
1 1 𝑥 21
[ ] [𝑦 ] = [ ]
−1 1 11
𝐴=[ 1 1] 𝑓 = 𝑓 + 𝑓 → [1 1]
−1 1 2 1 2 0 2
𝑎 + 𝑏(0) = 21
𝐿=[ 1 0] → {
−1 1 −1(𝑎) + 𝑏 = 11
∴ 𝑎 = 21 ; 𝑏 = 32
𝑥 + 𝑦 = 21
→ {0(𝑥) + 2𝑦 = 32
∴ 2𝑦 = 32 → 𝑦 = 16
𝑥 + 𝑦 = 21 → 𝑥=5
162 + 𝑧 2 = 400
𝑧 = 12
𝑥𝑦𝑧 − 𝑥 2 + 𝑦 2 = 3.978
𝑥𝑦 − 𝑧 2 = 2.36
𝑒 𝑥 − 𝑒 𝑦 + 𝑧 = −4.446
Trabajar con 𝑥0 = 1 ; 𝑦0 = 2 ; 𝑧0 = 5 hacer dos iteraciones.
𝑓1 = 𝑥𝑦𝑧 − 𝑥 2 + 𝑦 2 − 3.978
{ 𝑓2 = 𝑥𝑦 − 𝑧 2 − 2.36
𝑓3 = 𝑒 𝑥 − 𝑒 𝑦 + 𝑧 + 4.446
𝑥 𝑘+1 = 𝑥 𝑘 − 𝐽𝑓 −1 𝑥𝑓 𝑘
𝐴𝑑𝑗(𝐽𝑓 𝑇 )
𝑆𝑒𝑎: 𝐽𝑓 −1 =
|𝐷|
𝑦𝑧 − 2𝑥 𝑥𝑧 + 2𝑦 𝑥𝑦
𝐽𝑓 = ( 𝑦 𝑥 −2𝑧)
𝑒𝑥 −𝑒 𝑦 1
𝑦𝑧 − 2𝑥 𝑦 𝑒𝑥
𝑇
𝐽𝑓 = (𝑥𝑧 + 2𝑦 𝑥 −𝑒 𝑦 )
𝑥𝑦 −2𝑧 1
𝐴𝑑𝑗(𝐽𝑓 𝑇 ) =
𝑥 − 2𝑧𝑒 𝑦 −(𝑥𝑧 + 2𝑦) − 𝑥𝑦𝑒 𝑦 (𝑥𝑧 + 2𝑦)(−2𝑧) − 𝑥 2 𝑦
( −𝑦 − 2𝑧𝑒 𝑥 𝑦𝑧 − 2𝑥 − 𝑥𝑦𝑒 𝑥 (𝑦𝑧 − 2𝑥)2𝑧 + 𝑥𝑦 2 )
−𝑒 𝑦 𝑦 − 𝑥𝑒 𝑥 (𝑦𝑧 − 2𝑥)𝑒 𝑦 + (𝑥𝑧 + 2𝑦)𝑒 𝑥 (𝑦𝑧 − 2𝑥)𝑥 − (𝑥𝑧 + 2𝑦)𝑦
|𝐷| = −2𝑥 2 − 2𝑒 𝑥 𝑥𝑧 2 − 2𝑒 𝑥 𝑧 2 𝑦 − 𝑒 𝑦 𝑥𝑦 2 − 𝑒 𝑥 𝑥 2 𝑦 − 2𝑒 𝑦 𝑧 2 𝑦 + 4𝑒 𝑦 𝑥𝑧 + 2𝑦 2
𝑓1 = 9.022
{ 𝑓2 = −25.36
𝑓3 = 4.77523
𝑥1 = 1 − 0.55411 = 0.44589
𝑦1 = 2 − 0.14224 = 1.85776
𝑧1 = 5 − 2.25699 = 2.74301
𝑥 𝑘+1 = 𝑥 𝑘 − 𝐽𝑓 −1 𝑥𝑓 𝑘
𝐴𝑑𝑗(𝐽𝑓 𝑇 )
𝑎𝑑𝑒𝑚á𝑠:
|𝐷|
𝑥2 𝑥1 1
cos(𝑥1 . 𝑥2 ) cos(𝑥1 . 𝑥1 ) −
2 2 4𝜋
𝐽𝑓 = ( )
2𝑥1
𝑒 2𝑥1 𝑒
2𝑒 − − 2𝑒
2𝜋 𝜋
Evaluando:
0.54 −0.01 0.54 −1.34
𝐽𝑓 = ( ) → 𝐽𝑓 𝑇 = ( )
−1.34 0.87 −0.01 0.87
0.87 0.01
𝐴𝑑𝑗(𝐽𝑓 𝑇 ) = ( ) ; |𝐷| = 0.46
1.34 0.54
1.89 0.02
𝐽𝑓 −1 = ( )
2.91 1.17
Luego:
𝑥 𝑘+1 = 𝑥 𝑘 − 𝐽𝑓 −1 𝑥𝑓 𝑘
𝑓1 = 0.23
𝑓2 = −0.03
1.89 0.02 0.23
𝑥 𝑘+1 = 𝑥 𝑘 − ( )( )
2.91 1.17 −0.03
0.43
𝑥 𝑘+1 = 𝑥 𝑘 − ( )
0.63
𝑥11 = 0.9 − 0.43 = 0.47
𝑥21 = 3.0 − 0.63 = 2.37
Segunda iteración:
0.52 0.024 0.52 −0.72
𝐽𝑓 = ( ) → 𝐽𝑓 𝑇 = ( )
−0.72 0.87 0.024 0.87
0.87 −0.024
𝐴𝑑𝑗(𝐽𝑓 𝑇 ) = ( ) ; |𝐷| = 0.47
0.72 0.52
1.85 0.05
𝐽𝑓 −1 = ( )
1.53 1.11
𝑓1 = 0.26
𝑓2 = −0.65
1.85 0.05 0.26
𝑥 𝑘+1 = 𝑥 𝑘 − ( )( )
1.53 1.11 −0.65
0.45
𝑥 𝑘+1 = 𝑥 𝑘 − ( )
−0.32
𝑥12 = 0.02
𝑥22 = 2.69
1. En los siguientes sistemas resolver aplicando el método de jacobi usando como x0=0
(vector nulo), trabajar en ambos casos con 4 iteraciones.
3𝑥1 − 𝑥2 + 𝑥3 = 1
3𝑥1 + 6𝑥2 + 2𝑥3 = 10
3𝑥1 + 3𝑥2 + 7𝑥3 = 4
3 −1 1 𝑥1 1
(3 6 2) (𝑥2 ) = (10)
3 3 7 𝑥3 4
𝐹ó𝑟𝑚𝑢𝑙𝑎:
3 0 0 0 0 0 0 1 −1
𝐷 = (0 6 0) ; 𝐿 = (−3 0 0) ; 𝑈 = (0 0 −2)
0 0 7 −3 −3 0 0 0 0
Iterando:
1 1
0 0 0 0
3 3
1 1 1 0 1 −1
𝑥 𝑘+1 = 0 0 (10) + 0 0 (−3 0 −2) 𝑥 𝑘
6 4 6 −3 −3 0
1 1
(0 0
7) (0 0 7 )
10 𝑥2𝑘 𝑥3𝑘
𝑥1𝑘+1 = + −
3 3 3
5 𝑥1𝑘 𝑥3𝑘
𝑥2𝑘+1 = − −
3 2 3
4 3𝑥1𝑘 3𝑥2𝑘
𝑥3𝑘+1 = − −
7 7 7
Primera iteración:
10 𝑥20 𝑥30 10 0 0
𝑥11 = + − = + − = 3.33
3 3 3 3 3 3
5 𝑥10 𝑥30 5 0 0
𝑥21 = − − = − − = 1.66
3 2 3 3 2 3
Segunda iteración:
Tercera iteración:
2. Aplicando jacobi usando un programa en Matlab, hasta obtener una solución con 4
cifras significativas.
−𝑥3 + 5𝑥4 = −11
10𝑥1 + 5𝑥2 = 6
−4𝑥2 + 8𝑥3 − 𝑥4 = −11
5𝑥1 + 10𝑥2 − 4𝑥3 = 25
function
[solucion,num_iteraciones]=metodo_jacobi(A,B,punto_inicial,error)
cont_iteraciones=0;
s=size(A);
num_ecuaciones=s(1);
for k=1:num_ecuaciones
B(k)=B(k)/A(k,k);
A(k,:)=A(k,:)/A(k,k);
A(k,k)=0;
end
M=-A;
x_ant=punto_inicial';
x_sig=M*x_ant+B';
deltax_n=x_sig-x_ant;
while norm(deltax_n,inf) > error
x_sig=M*x_ant+B';
deltax_n=x_sig-x_ant;
x_ant=x_sig;
cont_iteraciones=cont_iteraciones+1;
end
solucion=x_sig;
num_iteraciones=cont_iteraciones;
4 1 −1 1 𝑥1 −2
1 4 −1 −1 𝑥2 −1
(−1 −1 5 1 ) (𝑥3 ) = ( 0 )
1 −1 1 3 𝑥4 1
4 1 −1 1 0 0 0 0
0 4 −1 −1 −1 0 0 0
𝑆𝑒𝑎: 𝐴=𝑁−𝑃 ; 𝑁 = (0 0 5 1) ; 𝑃=(1 1 0 0)
0 0 0 3 −1 1 −1 0
𝑥 𝑘+1 = 𝑁 −1 . 𝑏 + 𝑁 −1 . 𝑝𝑥 𝑘
function [sol,niteraciones,error]=metodo_gauss_seidel(A,B,x0,cotaerror)
D=diag(diag(A));
U=triu(A)-D;
L=tril(A)-D;
M=-inv(D+L)*U;
N=inv(D+L)*B;
cont=1;
xant=x0;
xsig=M*xant+N;
while norm(xsig-xant,inf)>cotaerror
cont=cont+1;
xant=xsig;
xsig=M*xant+N;
end
sol=xsig;
niteraciones=cont;
error=norm(xsig-xant,inf);
1.0000 0 0 0 0 0 543.5471
0 1.0000 0 0 0 0 469.7630
0 0 1.0000 0 0 0 392.3194
0 0 0 1.0000 0 0 399.3537
0 0 0 0 1.0000 0 314.8165
0 0 0 0 0 1.0000 410.0322
6. Indique para que valor de k el sistema tendrá una única solución, infinitas soluciones
o no tendrá solución.
2𝑥 + 𝑦 + 𝑧 = 𝑘
{ 𝑘𝑥 − 𝑦 + 2𝑧 = 1
𝑥 + 𝑦 − (𝑘 + 4)𝑧 = −1
2 1 1 𝑘 1 1 −(𝑘 + 4) −1
(𝑘 −1 2 1) 𝑓1 ↔ 𝑓3 → (𝑘 −1 2 1)
1 1 −(𝑘 + 4) −1 2 1 1 𝑘
𝑓2 = −𝑘𝑓1 + 𝑓2 1 1 −𝑘 − 4 −1
2
→ (0 −𝑘 − 1 𝑘 + 4𝑘 + 2 𝑘 + 1) 𝑓2 ↔ 𝑓3 →
𝑓3 = −2𝑓1 + 𝑓3
0 −1 2𝑘 + 9 𝑘+2
1 1 −𝑘 − 4 −1 1 1 −𝑘 − 4 −1
(0 −1 2𝑘 + 9 𝑘 + 2) 𝑓2 𝑥(−1) → (0 1 −2𝑘 − 9 −𝑘 − 2)
0 −𝑘 − 1 𝑘 2 + 4𝑘 + 2 𝑘 + 1 0 −𝑘 − 1 𝑘 2 + 4𝑘 + 2 𝑘+1
𝑓1 = − 𝑓2 + 𝑓1 1 0 𝑘+5 𝑘+1
→ (0 1 −2𝑘 − 9 −𝑘 − 2)
𝑓3 = (𝑘 + 1) 𝑓2 + 𝑓3 2 2
0 0 −𝑘 − 7𝑘 − 7 −𝑘 − 2𝑘 − 1
−𝑘 2 − 7𝑘 − 7 = 0 ∧ −𝑘 2 − 2𝑘 − 1 = 0
7 √21
∴ 𝑘=− ± ∧ 𝑘 = −1
2 2
7 √21
𝐸𝑙 𝑠𝑖𝑠𝑡𝑒𝑚𝑎 𝑛𝑜 𝑡𝑒𝑛𝑑𝑟á 𝑠𝑜𝑙𝑢𝑐𝑖𝑜𝑛𝑒𝑠 𝑐𝑢𝑎𝑛𝑑𝑜: {𝑘 = − 2 ± 2
𝑘 ≠ −1
7 √21
𝐸𝑙 𝑠𝑖𝑠𝑡𝑒𝑚𝑎 𝑡𝑒𝑛𝑑𝑟á ú𝑛𝑖𝑐𝑎 𝑠𝑜𝑙𝑢𝑐𝑖ó𝑛 𝑐𝑢𝑎𝑛𝑑𝑜: 𝑘 ≠ − ±
2 2
𝑃𝑎𝑟𝑎 𝑛𝑖𝑛𝑔ú𝑛 𝑣𝑎𝑙𝑜𝑟 𝑑𝑒 𝑘 𝑒𝑙 𝑠𝑖𝑠𝑡𝑒𝑚𝑎 𝑡𝑒𝑛𝑑𝑟á 𝑖𝑛𝑓𝑖𝑛𝑖𝑡𝑎𝑠 𝑠𝑜𝑙𝑢𝑐𝑖𝑜𝑛𝑒𝑠
𝑥 − 2𝑦 + 3𝑧 + 𝑤 = 4
2𝑥 + 𝑦 + 3𝑧 − 4𝑤 = −9
4𝑥 + 2𝑦 + 5𝑧 + 3𝑤 = −7
5𝑥 + 5𝑦 + 𝑧 − 2𝑤 = 1
1 −2 3 1 4 1 −2 3 1 4
2 1 3 −4 −9 𝑓2 = −2𝑓1 + 𝑓2 ∶ 𝑓3 = −4𝑓1 + 𝑓3 0 −3 −3 −6 −17
( ) →( )
4 2 5 3 −7 𝑓4 = −5𝑓1 + 𝑓4 0 10 −7 −1 −23
5 5 1 −2 1 0 15 −14 −7 −19
10 1 −2 3 1 4
𝑓3 = 3 𝑓2 + 𝑓3 0 −3 −3 −6 −17 −29
→( ) 𝑓4 = 𝑓 + 𝑓4 →
15
𝑓4 = 3 𝑓2 + 𝑓4
0 0 −17 −21 −79.6 17 3
0 0 −29 −37 −104
1 −2 3 1 4
0 −3 −3 −6 −17
( )
0 0 −17 −21 −79.6
0 0 0 −1.18 31.78
𝑥 − 2𝑦 + 3𝑧 + 𝑤 = 4 → 𝑥 = −39.76
𝑥1 − 𝑥2 + 𝑥3 + 3𝑥4 = 4
4𝑥1 + 𝑥2 − 𝑥3 + 𝑥4 = 18
𝑥1 + 4𝑥2 − 𝑥3 − 𝑥4 = 12
−𝑓1
𝑓2 = + 𝑓2
4 4 1 −1 1 18
−𝑓1 0 −2.25 1.25 2.75 −0.5
𝑓3 = + 𝑓3 → ( ) 𝑓3 ↔ 𝑓2 →
4 0 3.75 −0.75 −1.25 7.5
𝑓1 0 −0.75 4.75 1.25 −21.5
𝑓4 = + 𝑓4
{ 4 .
2.25
4 1 −1 1 18 𝑓3 = 𝑓 + 𝑓3 4 1 −1 1 18
0 3.75 −0.75 −1.25 7.5 3.75 2 → 0 3.75 −0.75 −1.25 7.5
( ) 0.75 ( )
0 −2.25 1.25 2.75 −0.5 𝑓4 = 𝑓2 + 𝑓4 0 0 0.8 2 4
0 −0.75 4.75 1.25 −21.5 3.75 0 0 4.6 1 −20
{
4 1 −1 1 18
0 3.75 −0.75 −1.25 7.5 −0.8
𝑓4 ↔ 𝑓3 → ( ) 𝑓4 = 𝑓 + 𝑓4
0 0 4.6 1 −20 4.6 3
0 0 0.8 2 4
4 1 −1 1 18
0 3.75 −0.75 −1.25 7.5
→( )
0 0 4.6 1 −20
0 0 0 1.83 7.48
𝑅𝑒𝑠𝑜𝑙𝑣𝑒𝑚𝑜𝑠 𝑙𝑎𝑠 𝑒𝑐𝑢𝑎𝑐𝑖𝑜𝑛𝑒𝑠:
4𝑥1 + 𝑥2 − 𝑥3 + 𝑥4 = −2 4𝑥1 + 𝑥2 + 𝑥3 + 𝑥5 = 6
𝑥1 + 4𝑥2 − 𝑥3 − 𝑥4 = −1 − 𝑥1 − 3𝑥2 + 𝑥3 + 𝑥4 = 6
𝑥1 − 𝑥2 + 𝑥3 + 3𝑥4 = 1 − 𝑥1 − 𝑥2 − 𝑥3 + 4𝑥4 = 6
2𝑥2 − 𝑥3 + 𝑥4 + 4𝑥5 = 6
𝑓1 = −0.37𝑓4 + 𝑓1 1 0 0 0 −0.74
0 1 0 0 0.05
{ 𝑓2 = 0.29𝑓4 + 𝑓2 → ( )
0 0 1 0 −0.26
𝑓3 = −0.2𝑓4 + 𝑓3
0 0 0 1 0.68
∴ 𝑥1 = −0.74 ; 𝑥2 = 0.05 ; 𝑥3 − 0.26 ; 𝑥4 = 0.68
𝐴 = 𝐿. 𝑈
1 0 0 2 −6 −1
𝐿 = (−1.5 1 0) 𝑈 = (0 −10 5.5 )
−4 2.3 1 0 0 −18.65
𝐿. 𝑦 = 𝑏 𝑈. 𝑥 = 𝑦
1 0 0 𝑦1 −38 2 −6 −1 𝑥1 −28
𝑦
(−1.5 1 0) ( 2 ) = (−34) (0 −10 𝑥
5.5 ) ( 2 ) = ( 23 )
−4 2.3 1 𝑦3 −20 0 0 −18.65 𝑥3 −122.1
𝑦1 = −38 𝑥3 = 6.5469
𝑦2 = 23 𝑥2 = 1.3008
𝑦3 = −122.1 𝑥1 = −11.8242
11.
𝐴 = 𝐿. 𝑈
1 0 0 8 4 −1
𝐿 = (−0.25 1 0) 𝑈 = (0 4 0.75)
0.25 0 1 0 0 6.25
𝐿. 𝑦 = 𝑏 𝑈. 𝑥 = 𝑦
1 0 0 𝑦1 11 8 4 −1 𝑥1 11
(−0.25 1 𝑦
0) ( 2 ) = ( 4 ) 𝑥
(0 4 0.75) ( 2 ) = (6.75)
0.25 0 1 𝑦3 7 0 0 6.25 𝑥3 4.25
𝑦1 11 8𝑥1 + 4𝑥2 − 𝑥3 11
( −0.25𝑦 1 + 𝑦2) = ( 4 ) ( 4𝑥2 + 0.75𝑥3 ) = (6.75)
0.25𝑦1 + 𝑦3 7 6.25𝑥3 4.25
𝑦1 = 11 𝑥3 = 0.68
𝑦2 = 6.75 𝑥2 = 1.56
𝑦3 = 4.25 𝑥1 = 0.68