Let $A=\begin{pmatrix}1&2\\-2&-3\end{pmatrix}.$ Find $P$ and $D$, such that: $$A=PDP^{-1}$$
First let's calculate the characteristic polynomial for $A$: $$P_a(x)=\det(A-xI_2)=(x+1)^2.$$
So the eigenvalues of $A$ are $\lambda=-1$ with $a(\lambda)=2$ where $a(\lambda)$ is the algebraic multiplicity of $\lambda$.
So now let's find $V_\lambda.$
For that we have: $$(A-\lambda I_2)(x, y)=(0,0)\implies y=-x$$
So we have:
$$V_\lambda=\{\alpha(1,-1)\mid \alpha\in\mathbb{R}\}$$
$$\dim_{\mathbb{R}}V_\lambda=1=g(\lambda)$$
where $g(\lambda)$ is the geometrically multiplicity of $\lambda.$Now:
$$D=\begin{pmatrix}-1&0\\0&-1\end{pmatrix}$$
How do we find $P$?
Congratulations! You showed that $A$ is in fact not diagnoalisable.
To see this, $-1$ is the only eigenvalue of $A$, so if $A$ were diagonalisable, $D=-I_2$, hence for any invertible $P$, $PDP^{-1}=D=-I_2$, but $A\neq I_2$.