I have a state space representation of a system: $$\dot x=Ax+Bu$$ $$y=Cx+Du$$
I need to get it into diagonal (decoupled) form. I know if I find the eigenvectors of A (call them P), and do the operation $P^{-1} A P$ I will get a matrix with the eigenvalues of A along the main diagonal.
I'm new to linear algebra, so I'm struggling on how to get the "P" in between the A and x ($APx$).
I read online that if I defined $z=Px$, $$\dot z=Az+B^{*}u$$ $$y=C^{*}z+D^{*}u$$ then I can do the following: $$\dot z=P \dot x=APx+B^{*}u$$ $$P^{-1}P \dot x=\dot x=P^{-1}APx+P^{-1}B^{*}u$$ $$ y=C^{*}Px+D^{*}u$$
Where I'm stuck is how to figure out what B*, y*, C*, and D* are. My first guess was the following: $$B^{*}=BP$$ $$C^{*}=P^{-1}C$$ $$D^{*}=DP$$
But that was all based on intuition, and I'm not sure how to check it's validity.