Exercicis resolts · Càlcul matricial
Matrius invertibles i el mètode de Gauss–Jordan
Problema. Es considera la matriu
\(
A(\lambda)=
\begin{pmatrix}
\lambda & 1 & 1\\
0 & \lambda & 1\\
\lambda-1 & 2 & 2
\end{pmatrix}
\)
a) Troba els valors de \(\lambda\) per als quals \(A(\lambda)\) és invertible.
b) Per a \(\lambda = 3\), calcula la matriu inversa \(A^{-1}\) mitjançant el mètode de Gauss–Jordan.
Una matriu és invertible si i només si el seu determinant és diferent de zero. Calculem el determinant desenvolupant per la primera fila:
\[
\det A(\lambda)=\lambda^2-1=(\lambda-1)(\lambda+1)
\]
Per tant, \(A(\lambda)\) no és invertible per a \(\lambda = 1\) i \(\lambda = -1\), i és invertible per a tot \(\lambda \in \mathbb{R}\setminus\{-1,1\}\).
Per a \(\lambda = 3\) la matriu queda
\(
A = A(3)=
\begin{pmatrix}
3 & 1 & 1\\
0 & 3 & 1\\
2 & 2 & 2
\end{pmatrix}
\)
Es tracta de trobar \(A^{-1}\) resolent \((A \mid I) \xrightarrow{\text{Gauss–Jordan}} (I \mid A^{-1})\). Partim de la matriu ampliada:
\(
\left(
\begin{array}{ccc|ccc}
3 & 1 & 1 & 1 & 0 & 0\\
0 & 3 & 1 & 0 & 1 & 0\\
2 & 2 & 2 & 0 & 0 & 1
\end{array}
\right)
\)
Dividint la primera fila per 3, \(R_1 \leftarrow \tfrac{1}{3}R_1\):
\(
\left(
\begin{array}{ccc|ccc}
1 & \tfrac{1}{3} & \tfrac{1}{3} & \tfrac{1}{3} & 0 & 0\\
0 & 3 & 1 & 0 & 1 & 0\\
2 & 2 & 2 & 0 & 0 & 1
\end{array}
\right)
\)
Restant el doble de la primera fila a la tercera, \(R_3 \leftarrow R_3 – 2R_1\):
\(
\left(
\begin{array}{ccc|ccc}
1 & \tfrac{1}{3} & \tfrac{1}{3} & \tfrac{1}{3} & 0 & 0\\
0 & 3 & 1 & 0 & 1 & 0\\
0 & \tfrac{4}{3} & \tfrac{4}{3} & -\tfrac{2}{3} & 0 & 1
\end{array}
\right)
\)
Dividint la segona fila per 3, \(R_2 \leftarrow \tfrac{1}{3}R_2\):
\(
\left(
\begin{array}{ccc|ccc}
1 & \tfrac{1}{3} & \tfrac{1}{3} & \tfrac{1}{3} & 0 & 0\\
0 & 1 & \tfrac{1}{3} & 0 & \tfrac{1}{3} & 0\\
0 & \tfrac{4}{3} & \tfrac{4}{3} & -\tfrac{2}{3} & 0 & 1
\end{array}
\right)
\)
Eliminant a la tercera fila, \(R_3 \leftarrow R_3 – \tfrac{4}{3}R_2\):
\(
\left(
\begin{array}{ccc|ccc}
1 & \tfrac{1}{3} & \tfrac{1}{3} & \tfrac{1}{3} & 0 & 0\\
0 & 1 & \tfrac{1}{3} & 0 & \tfrac{1}{3} & 0\\
0 & 0 & \tfrac{8}{9} & -\tfrac{2}{3} & -\tfrac{4}{9} & 1
\end{array}
\right)
\)
Normalitzant el pivot, \(R_3 \leftarrow \tfrac{9}{8}R_3\):
\(
\left(
\begin{array}{ccc|ccc}
1 & \tfrac{1}{3} & \tfrac{1}{3} & \tfrac{1}{3} & 0 & 0\\
0 & 1 & \tfrac{1}{3} & 0 & \tfrac{1}{3} & 0\\
0 & 0 & 1 & -\tfrac{3}{4} & -\tfrac{1}{2} & \tfrac{9}{8}
\end{array}
\right)
\)
Eliminant la tercera columna a les files superiors, \(R_2 \leftarrow R_2 – \tfrac{1}{3}R_3\) i \(R_1 \leftarrow R_1 – \tfrac{1}{3}R_3\):
\(
\left(
\begin{array}{ccc|ccc}
1 & \tfrac{1}{3} & 0 & \tfrac{7}{12} & \tfrac{1}{6} & -\tfrac{3}{8}\\
0 & 1 & 0 & \tfrac{1}{4} & \tfrac{1}{2} & -\tfrac{3}{8}\\
0 & 0 & 1 & -\tfrac{3}{4} & -\tfrac{1}{2} & \tfrac{9}{8}
\end{array}
\right)
\)
Finalment, eliminant la segona columna a la primera fila, \(R_1 \leftarrow R_1 – \tfrac{1}{3}R_2\):
\(
\left(
\begin{array}{ccc|ccc}
1 & 0 & 0 & \tfrac{1}{2} & 0 & -\tfrac{1}{4}\\
0 & 1 & 0 & \tfrac{1}{4} & \tfrac{1}{2} & -\tfrac{3}{8}\\
0 & 0 & 1 & -\tfrac{3}{4} & -\tfrac{1}{2} & \tfrac{9}{8}
\end{array}
\right)
\)
Havent arribat a \((I \mid A^{-1})\), la part dreta n’és la inversa:
\(
A^{-1}=
\begin{pmatrix}
\tfrac{1}{2} & 0 & -\tfrac{1}{4}\\[4pt]
\tfrac{1}{4} & \tfrac{1}{2} & -\tfrac{3}{8}\\[4pt]
-\tfrac{3}{4} & -\tfrac{1}{2} & \tfrac{9}{8}
\end{pmatrix}
\)