Suppose that $A \in M_n(\mathbb{C})$ satisfies the relations $(A^3+I_n)(A-I_n)=0$ and $A^4=I_n$. I want to show that $\det(A)=\pm 1$.
($M_n(k)$=the $n \times n$ matrices with elements over the field $k=\mathbb{R}$ or $k=\mathbb{C}$, $I_n$=the $n \times n$ identity matrix )
I have thought the following:
$$ (A^3+I_n)(A-I_n)=0 \\ \Rightarrow A^4-A^3+A-I_n^2=0 \\ \Rightarrow I_n-A^3+A-I_n=0 \\ \Rightarrow A-A^3=0 \\ \Rightarrow A(I-A^2)=0 \\ \overset{A \neq 0}{\Rightarrow} A^2=I_n \\ \Rightarrow A=\pm I_n , \text{ and thus } \det(A)=\pm 1. $$
Is my idea right? Or have I done something wrong?
$$A^3=A$$
Since $A$ is non-singular, $$A^2=I$$ $$\det(A)^2 = 1.$$
Note that from the first step to my second step, the reason is $A$ is non-singular (and not $A$ is non-zero). Since it is non-singular, we can multiply its inverse on both sides.