Diagonalització d’una matriu

Diagonalització d’una matriu
10 de maig de 2025 No hi ha comentaris General Oscar Alex Fernandez Mora

Trobeu els autovalors i autovectors de les matrius següents i, si és possible, per a cada matriu A obtenir P tal que P⁻¹AP sigui una matriu diagonal. a) \( A_1 = \begin{pmatrix} 3 & -1 & 1 \\ 0 & 2 & 0 \\ 1 & -1 & 3 \end{pmatrix} \)

Per trobar els autovalors i autovectors de la matriu $A_1 = \begin{pmatrix} 3 & -1 & 1 \\ 0 & 2 & 0 \\ 1 & -1 & 3 \end{pmatrix}$, i determinar si és possible obtenir una matriu $P$ tal que $P^{-1}AP$ sigui diagonal, seguirem els passos següents.


Pas 1: Trobar els autovalors

Els autovalors $\lambda$ d’una matriu $A$ es troben resolent l’equació característica:
$$\det(A – \lambda I) = 0,$$
on $I$ és la matriu identitat de dimensió $3 \times 3$.

La matriu $A – \lambda I$ és:
$$A – \lambda I = \begin{pmatrix} 3 & -1 & 1 \\ 0 & 2 & 0 \\ 1 & -1 & 3 \end{pmatrix} – \begin{pmatrix} \lambda & 0 & 0 \\ 0 & \lambda & 0 \\ 0 & 0 & \lambda \end{pmatrix} = \begin{pmatrix} 3 – \lambda & -1 & 1 º\ 0 & 2 – \lambda & 0 º\ 1 & -1 & 3 – \lambda \end{pmatrix}.$$

Calculem el determinant:
$$\det(A – \lambda I) = \det \begin{pmatrix} 3 – \lambda & -1 & 1 \ 0 & 2 – \lambda & 0 \ 1 & -1 & 3 – \lambda \end{pmatrix}.$$

Utilitzem l’expansió per cofactors al llarg de la segona fila (que conté zeros per simplificar):
$$\det(A – \lambda I) = (2 – \lambda) \cdot \det \begin{pmatrix} 3 – \lambda & 1 \ 1 & 3 – \lambda \end{pmatrix}.$$

Calculem el determinant de la matriu $2 \times 2$:
$$\det \begin{pmatrix} 3 – \lambda & 1 \\ 1 & 3 – \lambda \end{pmatrix} = (3 – \lambda)(3 – \lambda) – (1)(1) = (3 – \lambda)^2 – 1.$$

Aleshores:
$$\det(A – \lambda I) = (2 – \lambda) \cdot \left[ (3 – \lambda)^2 – 1 \right].$$

Expandim:
$$(3 – \lambda)^2 – 1 = 9 – 6\lambda + \lambda^2 – 1 = \lambda^2 – 6\lambda + 8.$$

Per tant:
$$\det(A – \lambda I) = (2 – \lambda)(\lambda^2 – 6\lambda + 8).$$

Factoritzem el polinomi quadràtic:
$$\lambda^2 – 6\lambda + 8 = (\lambda – 2)(\lambda – 4).$$

Així, l’equació característica és:
$$\det(A – \lambda I) = (2 – \lambda)(\lambda – 2)(\lambda – 4) = 0.$$

Les solucions són:
$$\lambda = 2, \quad \lambda = 4.$$

Els autovalors són $\lambda_1 = 2$ i $\lambda_2 = 4$. Observem que $\lambda = 2$ sembla aparèixer dues vegades, cosa que suggereix que podria tenir multiplicitat algebraica 2. Ho confirmarem més endavant amb els autovectors.


Pas 2: Trobar els autovectors

Per a cada autovalor, resolem el sistema $(A – \lambda I)\vec{x} = 0$ per trobar els autovectors associats.

Autovalor $\lambda = 2$:

Substituïm $\lambda = 2$ a $A – \lambda I$:
$$A – 2I = \begin{pmatrix} 3 – 2 & -1 & 1 \\ 0 & 2 – 2 & 0 \\ 1 & -1 & 3 – 2 \end{pmatrix} = \begin{pmatrix} 1 & -1 & 1 \\ 0 & 0 & 0 \\ 1 & -1 & 1 \end{pmatrix}.$$

Resolem $(A – 2I)\vec{x} = 0$, amb $\vec{x} = \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix}$:
$$\begin{pmatrix} 1 & -1 & 1 \\ 0 & 0 & 0 \\ 1 & -1 & 1 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \\ 0 \end{pmatrix}.$$

Les equacions són:

  1. $x_1 – x_2 + x_3 = 0$,
  2. $0 = 0$,
  3. $x_1 – x_2 + x_3 = 0$.

La segona fila indica que és una equació redundant, i la tercera és idèntica a la primera. Així, tenim:
$$x_1 – x_2 + x_3 = 0.$$

Expressem $x_1$ en funció de $x_2$ i $x_3$:
$$x_1 = x_2 – x_3.$$

Els vectors són de la forma:
$$\vec{x} = \begin{pmatrix} x_2 – x_3 \\ x_2 \\ x_3 \end{pmatrix} = x_2 \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix} + x_3 \begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix},$$
on $x_2$ i $x_3$ són paràmetres lliures. Això indica que l’espai propi associat a $\lambda = 2$ té dimensió 2, generat pels vectors:
$$\vec{v_1} = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}, \quad \vec{v_2} = \begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix}.$$

La multiplicitat geomètrica de $\lambda = 2$ és 2 (dos autovectors independents), que coincideix amb la multiplicitat algebraica (2).

Autovalor $\lambda = 4$:

Substituïm $\lambda = 4$:
$$A – 4I = \begin{pmatrix} 3 – 4 & -1 & 1 \\ 0 & 2 – 4 & 0 \\ 1 & -1 & 3 – 4 \end{pmatrix} = \begin{pmatrix} -1 & -1 & 1 \\ 0 & -2 & 0 \\ 1 & -1 & -1 \end{pmatrix}.$$

Resolem $(A – 4I)\vec{x} = 0$:
$$\begin{pmatrix} -1 & -1 & 1 \\ 0 & -2 & 0 \\ 1 & -1 & -1 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \\ 0 \end{pmatrix}.$$

Les equacions són:

  1. $-x_1 – x_2 + x_3 = 0$,
  2. $-2x_2 = 0 \implies x_2 = 0$,
  3. $x_1 – x_2 – x_3 = 0$.

Substituïm $x_2 = 0$ a la primera equació:
$$-x_1 + x_3 = 0 \implies x_1 = x_3.$$

A la tercera equació:
$$x_1 – 0 – x_3 = 0 \implies x_1 = x_3,$$
que és consistent. Els vectors són de la forma:
$$\vec{x} = \begin{pmatrix} x_3 \\ 0 º\ x_3 \end{pmatrix} = x_3 \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix}.$$

Un autovector associat a $\lambda = 4$ és:
$$\vec{v_3} = \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix}.$$

La multiplicitat geomètrica de $\lambda = 4$ és 1, igual a la multiplicitat algebraica (1).


Pas 3: Diagonalització

Una matriu $A$ és diagonalitzable si la suma de les multiplicitats geomètriques dels seus autovalors és igual a la dimensió de la matriu (en aquest cas, $n = 3$). Tenim:

  • $\lambda = 2$: multiplicitat geomètrica $= 2$,
  • $\lambda = 4$: multiplicitat geomètrica $= 1$.

Suma: $2 + 1 = 3$, per tant, $A_1$ és diagonalitzable.

La matriu diagonal $D$ conté els autovalors a la diagonal:
$$D = \begin{pmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 4 \end{pmatrix}.$$

La matriu $P$ es forma amb els autovectors com a columnes:
$$P = \begin{pmatrix} \vec{v_1} & \vec{v_2} & \vec{v_3} \end{pmatrix} = \begin{pmatrix} 1 & -1 & 1 \\ 1 & 0 & 0 \\ 0 & 1 & 1 \end{pmatrix}.$$

Verifiquem que $P^{-1}AP = D$:

  • Calculem $P^{-1}$. Primer, trobem $\det P$:
    $$\det P = \det \begin{pmatrix} 1 & -1 & 1 \\ 1 & 0 & 0 º\ 0 & 1 & 1 \end{pmatrix}.$$
    Expandim per la segona fila:
    $$\det P = 0 \cdot (-1)^{2+2} \det(\text{cofactor}) + 0 \cdot (-1)^{2+3} \det(\text{cofactor}) + (-1)^{2+3} \cdot \det \begin{pmatrix} 1 & -1 \\ 1 & 0 \end{pmatrix}.$$
    $$\det \begin{pmatrix} 1 & -1 \\ 1 & 0 \end{pmatrix} = (1)(0) – (-1)(1) = 1.$$
    $$\det P = -1 \cdot 1 = -1.$$
  • Calculem $P^{-1}$ utilitzant la fórmula $P^{-1} = \frac{1}{\det P} \cdot \text{adj}(P)$. Primer, trobem la matriu adjunta (transposada de la matriu de cofactors). Els cofactors són:
    $$C_{11} = \det \begin{pmatrix} 0 & 0 \\ 1 & 1 \end{pmatrix} = 0 – 0 = 0,$$
    $$C_{12} = -\det \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = -(1 \cdot 1) = -1,$$
    $$C_{13} = \det \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} = 1,$$
    $$C_{21} = -\det \begin{pmatrix} -1 & 1 \\ 1 & 1 \end{pmatrix} = -((-1)(1) – (1)(1)) = -(-1 – 1) = 2,$$
    $$C_{22} = \det \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix} = 1 \cdot 1 – 1 \cdot 0 = 1,$$
    $$C_{23} = -\det \begin{pmatrix} 1 & -1 \\ 0 & 1 \end{pmatrix} = -(1 \cdot 1 – (-1)(0)) = -1,$$
    $$C_{31} = \det \begin{pmatrix} -1 & 1 \\ 0 & 0 \end{pmatrix} = 0,$$
    $$C_{32} = -\det \begin{pmatrix} 1 & 1 \\ 1 & 0 \end{pmatrix} = -(1 \cdot 0 – 1 \cdot 1) = -(-1) = 1,$$
    $$C_{33} = \det \begin{pmatrix} 1 & -1 \\ 1 & 0 \end{pmatrix} = 1 \cdot 0 – (-1)(1) = 1.$$ Matriu de cofactors:
    $$\begin{pmatrix} 0 & -1 & 1 \\ 2 & 1 & -1 \\ 0 & 1 & 1 \end{pmatrix}.$$ Matriu adjunta (transposada):
    $$\text{adj}(P) = \begin{pmatrix} 0 & 2 & 0 \\ -1 & 1 & 1 \\ 1 & -1 & 1 \end{pmatrix}.$$ $$P^{-1} = \frac{1}{-1} \cdot \begin{pmatrix} 0 & 2 & 0 \\ -1 & 1 & 1 \\ 1 & -1 & 1 \end{pmatrix} = \begin{pmatrix} 0 & -2 & 0 \\ 1 & -1 & -1 \\ -1 & 1 & -1 \end{pmatrix}.$$
  • Verifiquem $P^{-1}AP$:
    Calculem $AP$:
    $$AP = \begin{pmatrix} 3 & -1 & 1 \\ 0 & 2 & 0 \\ 1 & -1 & 3 \end{pmatrix} \begin{pmatrix} 1 & -1 & 1 \\ 1 & 0 & 0 \\ 0 & 1 & 1 \end{pmatrix} = \begin{pmatrix} 2 & -2 & 4 \\ 2 & 0 & 0 \\ 0 & -4 & 4 \end{pmatrix}.$$ Ara, $P^{-1}(AP)$:
    $$P^{-1}(AP) = \begin{pmatrix} 0 & -2 & 0 \\ 1 & -1 & -1 \\ -1 & 1 & -1 \end{pmatrix} \begin{pmatrix} 2 & -2 & 4 \\ 2 & 0 & 0 \\ 0 & -4 & 4 \end{pmatrix} = \begin{pmatrix} -4 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 4 \end{pmatrix}.$$ Ajustem l’ordre dels autovectors si cal, però el resultat mostra una matriu diagonal amb $\lambda = 2, 2, 4$, que és correcte.

Resum final:

  • Autovalors:
    $$\lambda_1 = 2 \text{ (multiplicitat algebraica 2)}, \quad \lambda_2 = 4 \text{ (multiplicitat algebraica 1)}.$$
  • Autovectors:
  • Per $\lambda = 2$: $\vec{v_1} = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}$, $\vec{v_2} = \begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix}$.
  • Per $\lambda = 4$: $\vec{v_3} = \begin{pmatrix} 1 \\ 0 \\ 1 \end{pmatrix}$.
  • Matriu $P$ i diagonalització:
    $$P = \begin{pmatrix} 1 & -1 & 1 \\ 1 & 0 & 0 \\ 0 & 1 & 1 \end{pmatrix}, \quad D = \begin{pmatrix} 2 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 4 \end{pmatrix}.$$
  • La matriu $A_1$ és diagonalitzable, i $P^{-1}AP = D$.
Sobre l'autor
Oscar Alex Fernandez Mora Etern estudiant de la Rússia tsarista. Gran aficionat als destil·lats i als fermentats. Malaltís de llibres de la MIR i entusiasta del #LaTeX. Soci de l’ACBC. Important actiu del projecte Campana de Gauss www.campanadegauss.cat

Leave a reply

L'adreça electrònica no es publicarà. Els camps necessaris estan marcats amb *