I am told to diagonalize Matrix A i solved for P and P inverse
A= 2 4 1 P= 1 4/5 5 P^-1 = 1 -6 -4/5
0 -3 5 0 0 1 0 5/4 1
0 0 1 0 1 -5/4 0 1 0
Now am i suppose to do the following P-1AP = D where D is the diagonal Matrix do I then apply D.A to get the the diagonalized matrix? or do i do the following A = PDP-1?
You have diagonalized the matrix. That is, the expression $PDP^{-1} = A$ is the "diagonalization" of the matrix $A$.