Resolución de un sistema lineal como ecuación matricial Resolución de un sistema lineal como ecuación matricial Si la expresión matricial de un sistema es A X = B AX=B A X = B , siendo A una matriz cuadrada e invertible , entonces puede despejarse la matriz de las incógnitas:
A X = B ⟹ A − 1 A X = A − 1 B ⟹ X = A − 1 B AX=B\implies A^{-1}AX=A^{-1}B\implies X=A^{-1}B A X = B ⟹ A − 1 A X = A − 1 B ⟹ X = A − 1 B
Ejemplo Resuelve el siguiente sistema como una ecuación matricial:
{ x − 2 y + z = 3 2 x − 5 y + 3 z = 4 5 x + y + 7 z = 11 \begin{cases} x-2y+z=3\\2x-5y+3z=4\\5x+y+7z=11\end{cases} ⎩ ⎨ ⎧ x − 2 y + z = 3 2 x − 5 y + 3 z = 4 5 x + y + 7 z = 11
En primer lugar, debemos de escribir el sistema en forma matricial:
( 1 − 2 1 2 − 5 3 5 1 7 ) ( x y z ) = ( 3 4 11 ) \begin {pmatrix} 1&-2&1\\2&-5&3\\5&1&7\end{pmatrix}\begin {pmatrix} x\\ y\\ z\end{pmatrix}=\begin {pmatrix}3\\4\\11\end{pmatrix} 1 2 5 − 2 − 5 1 1 3 7 x y z = 3 4 11
Comprobamos si la matriz de coeficientes es invertible:
∣ 1 − 2 1 2 − 5 3 5 1 7 ∣ = − 35 − 30 + 2 − ( − 25 − 28 + 3 ) = − 63 + 50 = − 13 ≠ 0 \begin {vmatrix}1&-2&1\\2&-5&3\\5&1&7\end{vmatrix}={-35-30+2-\left (-25-28+3\right)=-63+50=-13\neq0} 1 2 5 − 2 − 5 1 1 3 7 = − 35 − 30 + 2 − ( − 25 − 28 + 3 ) = − 63 + 50 = − 13 = 0
Es invertible, por lo que podemos resolver el sistema mediante la siguiente ecuación matricial:
( x y z ) = ( 1 − 2 1 2 − 5 3 5 1 7 ) − 1 ( 3 4 11 ) \begin{pmatrix} x\\ y\\ z\end{pmatrix}=\begin {pmatrix}1&-2&1\\2&-5&3\\5&1&7\end{pmatrix}^{-1}\begin{pmatrix}3\\4\\11\end{pmatrix} x y z = 1 2 5 − 2 − 5 1 1 3 7 − 1 3 4 11
Hacemos lo cálculos y obtenemos la solución:
A − 1 = 1 d e t ( A ) ⋅ ( A d j ( A ) ) t ( 1 − 2 1 2 − 5 3 5 1 7 ) − 1 = 1 − 13 ( − 38 1 27 15 2 − 11 − 1 − 1 − 1 ) t = ( 38 13 − 15 13 1 13 − 1 13 − 2 13 1 13 − 27 13 11 13 1 13 ) ( x y z ) = ( 38 13 − 15 13 1 13 − 1 13 − 2 13 1 13 − 27 13 11 13 1 13 ) ( 3 4 11 ) A^{-1}=\cfrac{1}{det(A)}\cdot\left (Adj\left (A\right)\right)^t\\\begin {pmatrix}1&-2&1\\2&-5&3\\5&1&7\end{pmatrix}^{-1}=\cfrac{1}{-13}\begin {pmatrix}-38&1&27\\15&2&-11\\-1&-1&-1\end{pmatrix}^t=\begin {pmatrix}\cfrac{38}{13}&\cfrac{-15}{13}&\cfrac{1}{13}\\\cfrac{-1}{13}&\cfrac{-2}{13}&\cfrac{1}{13}\\\cfrac{-27}{13}&\cfrac{11}{13}&\cfrac{1}{13}\end{pmatrix}\\\\\begin{pmatrix} x\\ y\\ z\end{pmatrix}=\begin {pmatrix}\cfrac{38}{13}&\cfrac{-15}{13}&\cfrac{1}{13}\\\cfrac{-1}{13}&\cfrac{-2}{13}&\cfrac{1}{13}\\\cfrac{-27}{13}&\cfrac{11}{13}&\cfrac{1}{13}\end{pmatrix}\begin{pmatrix}3\\4\\11\end{pmatrix} A − 1 = d e t ( A ) 1 ⋅ ( A d j ( A ) ) t 1 2 5 − 2 − 5 1 1 3 7 − 1 = − 13 1 − 38 15 − 1 1 2 − 1 27 − 11 − 1 t = 13 38 13 − 1 13 − 27 13 − 15 13 − 2 13 11 13 1 13 1 13 1 x y z = 13 38 13 − 1 13 − 27 13 − 15 13 − 2 13 11 13 1 13 1 13 1 3 4 11
( x y z ) = ( 5 0 − 2 ) ‾ \underline{\begin{pmatrix}\it x\\\it y\\\it z\end{pmatrix}=\begin{pmatrix}\it5\\\it0\\\it-2\end{pmatrix}} x y z = 5 0 − 2