According to the spectral decomposition theorem, every real symmetric matrix has a spectrum (it can be diagonalised by an orthonormal matrix). Moreover, it can be shown that the diagnolising matrix is its eigenmatrix. I need to use use this to diagnolise the matrix $C$, and I must elaborate the calculations.
I have this matrix:
$$ C = \begin{bmatrix} 5.6 & 7.2\\ 7.2 & 10.8 \end{bmatrix} $$
So $C$ is symmetric. If there is an invertible $n\times n$ matrix $Q$, and a diagonal matrix $D$ such that $C = QDQ^{-1}$, then an $n\times n$ matrix $C$ is diagonalisable.
First, I need to detect the eigenvalues of the matrix, so: $$\det(C - \lambda I) = 0$$
$$\det\left(\left[\begin{matrix} 5.6&7.2\\\\ 7.2&10.8\\ \end{matrix}\right] - \lambda \left[\begin{matrix} 1&0\\\\ 0&1\\ \end{matrix}\right]\right)=0$$
$$\det\left[\begin{matrix} 5.6 - \lambda&7.2\\\\ 7.2&10.8 - \lambda\\ \end{matrix}\right] = 0$$
Now solving the determinant:
$$(5.6 - \lambda)(10.8 - \lambda) - (7.2)^2 = 0$$ $$60.48 - 5.6\lambda - 10.8 \lambda + \lambda^2 -51.84 = 0$$ $$8.64 - 16.4\lambda + \lambda^2 = 0$$
We get $\lambda_1 = 15.8551$ and $\lambda_2 = 0.544936$
Hence, we got this diagonal matrix $D =\left[\begin{matrix} 15.8551&0\\\\ 0&0.544936\\ \end{matrix}\right]$
The next step is to find the corresponding eigenvectors which we will use as the columns of matrix $Q$. So, we start with $\lambda_1=15.8551$ , and we assign vector $x$, and this vector is an eigenvector:
$$(C - \lambda I)x = 0$$
$$\left(\left[\begin{matrix} 5.6&7.2\\\\ 7.2&10.8\\ \end{matrix}\right] - (15.8551) \left[\begin{matrix} 1&0\\\\ 0&1\\ \end{matrix}\right]\right)x = 0$$
After calculations, we get:
$$\left[\begin{matrix} -10.2551&7.2\\\\ 7.2&-5.0551\\ \end{matrix}\right] \left[\begin{matrix} x_1\\\\ x_2\\ \end{matrix}\right] = \left[\begin{matrix} 0\\\\ 0\\ \end{matrix}\right]$$
Write the equations which results in multiplying the matrix with vector $x$:
$$-10.2551x_1 + 7.2x_2 = 0$$ $$7.2x_1 - 5.0551x_2 = 0$$
After solving I get $x_1 = 0$ and $x_2 = 0$
And those are the eigervectors for $\lambda_1 = 15.8551$, but I get the same result for $\lambda_2 = 0.544936$. Which means that $Q$ is an all-zero matrix, and that matrix is non-invertible, which is not good, cause this way I can't diagonalise $C$.
So there it is, this is my problem, I'm stuck at this $Q$ matrix, I must be doing something wrong but I don't know what it is exactly. $Q$ must be invertible, how can I find it?
Thank you!
We can rationalize the matrix $C$ and do exact calculations to avoid numerical issues.
We have
$$C = \begin{bmatrix} \dfrac{28}{5} & \dfrac{36}{5}\\ \dfrac{36}{5} & \dfrac{54}{5} \end{bmatrix}$$
The eigenvalues are found using $|C - \lambda I| = 0$
$$\lambda^2 -\dfrac{82 \lambda}{5}+\dfrac{216}{25} = 0 \implies \lambda_1 = \dfrac{1}{5} \left(41-\sqrt{1465}\right), \lambda_2 = \frac{1}{5} \left(\sqrt{1465}+41\right)$$
To find the first eigenvector, we solve $[C - \lambda_1 I]v_1= [C -\dfrac{1}{5} \left(41-\sqrt{1465}\right)I]v_1= 0$.
The RREF of the previous steps is
$$\begin{bmatrix} 1 & \dfrac{1}{36} \left(\sqrt{1465}+13\right)\\ 0 & 0 \\ \end{bmatrix}v_1 = \begin{bmatrix} 0 & 0 \\ 0 & 0\end{bmatrix}$$
We can choose
$$v_1 = \begin{bmatrix} \dfrac{1}{36} \left(-\sqrt{1465}-13\right) \\ 1 \end{bmatrix}$$
Repeat this process to find the other eigenvector as
$$v_2 \begin{bmatrix} \dfrac{1}{36} \left(\sqrt{1465}-13\right) \\ 1 \end{bmatrix}$$