Let \(\begin{pmatrix}4&1\\2&3\end{pmatrix}\) with eigenvalues 5 and 2. With \(D=\operatorname{diag}(5,2)\), which matrix \(P\) satisfies \(P^{-1}AP=D\)?
A square matrix \(A\) is diagonalizable if it is similar to a diagonal matrix \(D\), that is, if it can be written as an invertible matrix \(P\) times \(D\) times the inverse of \(P\).