A = $ \begin{pmatrix} 2a+3 & 0 & 0 \\ -a-3 & a & a+3 \\ a & a & a+3 \\ \end{pmatrix} $
Characteristic polynomial: $ \begin{vmatrix} t-(2a+3) & 0 & 0 \\ a+3 & t-a & -a-3 \\ -a & -a & t-(a+3) \\ \end{vmatrix} $
Can anyone solve this and show me for which a, the matrix A is diagonalizable?
I tried already for about 30minutes and no success
Call the characteristic polynomial $p(t)$. If you expand the determinant along the first row we find: $$p(t) = (t-(2a+3)) [ (t-a)(t-(a+3)) - (a+3)(a) ]$$
The polynomial inside the braces is quadratic, so you can factor it using at the quadratic equation if necessary. If for all $a$ your roots are distict, then this matrix is always diagonalizable. Then for the cases there they are not, you need to take a closer look.
In the comments it was found that $p(t) = t(t-(2a+3))^2$. We now need to determine if there are two eigenvectors corresponding to $2a+3$, since we know there is one eigenvector corresponding to the zero eigenvalue. This ammounts to finding all vectors $(x,y,z)^T$ satisfying: $$\left( \begin{array}{ccc} 0& 0& 0\\ a+3& a+3& -(a+3)\\ -a& -a& a\end{array}\right) \left( \begin{array}{c}x\\y\\c\end{array}\right) = \left( \begin{array}{c}0\\0\\0\end{array}\right)$$
(The matrix was obtained by setting $t=(2a+3)$)
By inspection we see that $(1,0,1)^T$ and $(0,1,1)^T$, since if you add the first and third rows you get the zero vector and adding the second and third row gives the same.