Take determinants of the idempotence equation and use multiplicativity of the determinant:
Thus satisfies , proving
If the determinant is one, is invertible and solution gives . Every other idempotent matrix has zero determinant.