This is an exercise from a previous linear algebra exam:
The diagonalisable matrix $A = \begin{pmatrix} 3 & -6 & 2\\ 4 & -7 & 2\\ 8 & -12 & 3 \end{pmatrix} \in \mathbb{R}^{3 \times 3}$ has the eigenvalues 1 and -1. Find $P, Q \in \mathbb{R}^{3 \times 3}$ such that $A = P-Q$, where $P^2 = P$, $Q^2 = Q$ and $PQ = 0 = QP$.
We want $A = P-Q$, so we will have $A^2 = P+Q$ and by plugging in $Q = P - A$, we find $A^2 = 2P - A \iff P = \frac{1}{2} (A^2 + A).$
This gives $P = \begin{pmatrix} 2 & -3 & 1\\ 2 & -3 & 1\\ 4 & -6 & 2 \end{pmatrix} \text{ and } Q = \begin{pmatrix} -1 & 3 & -1\\ -2 & 4 & -1\\ -4 & 6 & -1 \end{pmatrix}$ and these two matrices satisfy all conditions.
Question: The problem states that $A$ is diagonalisable and also gives its eigenvalues. Is there another, maybe even faster way to find $P$ and $Q$ by diagonalising $A$?