To diagonalize the matrix
[
A = \begin{bmatrix}
1 & 0 & 4 \
0 & 3 & 0 \
4 & 0 & 1 \
\end{bmatrix},
]
we aim to find a diagonal matrix ( D ) and an invertible matrix ( P ) such that
[
A = P D P^{-1},
]
where the eigenvalues in ( D ) are ordered from smallest to largest.
Step 1: Find the Eigenvalues of ( A )
To determine the eigenvalues (( \lambda )) of ( A ), solve the characteristic equation:
[
\det(A - \lambda I) = 0.
]
Compute ( A - \lambda I ):
[
A - \lambda I = \begin{bmatrix}
1 - \lambda & 0 & 4 \
0 & 3 - \lambda & 0 \
4 & 0 & 1 - \lambda \
\end{bmatrix}.
]
The determinant is:
[
\det(A - \lambda I) = (3 - \lambda)\left[(1 - \lambda)^2 - 16\right] = 0.
]
Setting the determinant to zero gives the eigenvalues:
[
\begin{cases}
3 - \lambda = 0 & \Rightarrow \lambda = 3, \
(1 - \lambda)^2 - 16 = 0 & \Rightarrow \lambda = -3 \text{ or } \lambda = 5.
\end{cases}
]
Thus, the eigenvalues are:
[
\lambda_1 = -3, \quad \lambda_2 = 3, \quad \lambda_3 = 5.
]
Step 2: Find the Eigenvectors of ( A )
For each eigenvalue, we find the corresponding eigenvector by solving ( (A - \lambda I)\mathbf{x} = \mathbf{0} ).
Eigenvalue ( \lambda_1 = -3 ):
[
A + 3I = \begin{bmatrix}
4 & 0 & 4 \
0 & 6 & 0 \
4 & 0 & 4 \
\end{bmatrix}.
]
Solving ( (A + 3I)\mathbf{x} = \mathbf{0} ):
[
4x_1 + 4x_3 = 0 \quad \Rightarrow \quad x_1 = -x_3, \quad x_2 = 0.
]
An eigenvector is:
[
\mathbf{v}_1 = \begin{bmatrix} -1 \ 0 \ 1 \end{bmatrix}.
]
Eigenvalue ( \lambda_2 = 3 ):
[
A - 3I = \begin{bmatrix}
-2 & 0 & 4 \
0 & 0 & 0 \
4 & 0 & -2 \
\end{bmatrix}.
]
Solving ( (A - 3I)\mathbf{x} = \mathbf{0} ):
[
-2x_1 + 4x_3 = 0 \quad \Rightarrow \quad x_1 = 2x_3, \quad x_2 \text{ is free}.
]
From the third equation:
[
4x_1 - 2x_3 = 0 \quad \Rightarrow \quad x_3 = 0 \quad \Rightarrow \quad x_1 = 0.
]
Thus, ( x_2 ) is free, and an eigenvector is:
[
\mathbf{v}_2 = \begin{bmatrix} 0 \ 1 \ 0 \end{bmatrix}.
]
Eigenvalue ( \lambda_3 = 5 ):
[
A - 5I = \begin{bmatrix}
-4 & 0 & 4 \
0 & -2 & 0 \
4 & 0 & -4 \
\end{bmatrix}.
]
Solving ( (A - 5I)\mathbf{x} = \mathbf{0} ):
[
-4x_1 + 4x_3 = 0 \quad \Rightarrow \quad x_1 = x_3, \quad x_2 = 0.
]
An eigenvector is:
[
\mathbf{v}_3 = \begin{bmatrix} 1 \ 0 \ 1 \end{bmatrix}.
]
Step 3: Form the Matrix ( P ) and Diagonal Matrix ( D )
Arrange the eigenvectors as columns of ( P ) in the order of their corresponding eigenvalues from smallest to largest (( \lambda_1 = -3 ), ( \lambda_2 = 3 ), ( \lambda_3 = 5 )):
[
P = \begin{bmatrix}
-1 & 0 & 1 \
0 & 1 & 0 \
1 & 0 & 1 \
\end{bmatrix}.
]
The diagonal matrix ( D ) with eigenvalues ordered from smallest to largest:
[
D = \begin{bmatrix}
-3 & 0 & 0 \
0 & 3 & 0 \
0 & 0 & 5 \
\end{bmatrix}.
]
Step 4: Compute the Inverse ( P^{-1} )
First, calculate the determinant of ( P ):
[
\det(P) = -1 \cdot (1 \cdot 1 - 0 \cdot 0) - 0 \cdot (0 \cdot 1 - 1 \cdot 1) + 1 \cdot (0 \cdot 0 - 1 \cdot 1) = -1 - 0 -1 = -2.
]
Next, compute the adjugate of ( P ):
[
\text{adj}(P) = \begin{bmatrix}
1 & 0 & -1 \
0 & -2 & 0 \
-1 & 0 & -1 \
\end{bmatrix}.
]
Now, ( P^{-1} ) is:
[
P^{-1} = \frac{1}{\det(P)} \cdot \text{adj}(P) = \frac{1}{-2} \begin{bmatrix}
1 & 0 & -1 \
0 & -2 & 0 \
-1 & 0 & -1 \
\end{bmatrix} = \begin{bmatrix}
-\frac{1}{2} & 0 & \frac{1}{2} \
0 & 1 & 0 \
\frac{1}{2} & 0 & \frac{1}{2} \
\end{bmatrix}.
]
Final Diagonalization
Putting it all together, the diagonalization of ( A ) is:
[
A = P D P^{-1},
]
where
[
P = \begin{bmatrix}
-1 & 0 & 1 \
0 & 1 & 0 \
1 & 0 & 1 \
\end{bmatrix}, \quad
D = \begin{bmatrix}
-3 & 0 & 0 \
0 & 3 & 0 \
0 & 0 & 5 \
\end{bmatrix}, \quad
P^{-1} = \begin{bmatrix}
-\frac{1}{2} & 0 & \frac{1}{2} \
0 & 1 & 0 \
\frac{1}{2} & 0 & \frac{1}{2} \
\end{bmatrix}.
]
Verification
To ensure the correctness of the diagonalization, you can verify that ( A = P D P^{-1} ) by performing the matrix multiplication:
[
P D P^{-1} = \begin{bmatrix}
-1 & 0 & 1 \
0 & 1 & 0 \
1 & 0 & 1 \
\end{bmatrix} \begin{bmatrix}
-3 & 0 & 0 \
0 & 3 & 0 \
0 & 0 & 5 \
\end{bmatrix} \begin{bmatrix}
-\frac{1}{2} & 0 & \frac{1}{2} \
0 & 1 & 0 \
\frac{1}{2} & 0 & \frac{1}{2} \
\end{bmatrix} = A.
]
Conclusion
The matrix ( A ) is successfully diagonalized with the eigenvalues ordered from smallest to largest in the diagonal matrix ( D ). The inverse of the matrix of eigenvectors ( P ) is explicitly calculated as shown above.