Let $$A = \begin{bmatrix} 1 & t & 0 \\ -2 & -2 & -1 \\ 0 & 1 & t \end{bmatrix}$$ Find $t$ such that $A^3 = I$.
I've figured out $$\det(A) = 2t^2-2t+1$$ So I took determinant on both side of equation $A^3 = I$ then I got
$$ \det(A^3) = \det(A) \cdot \det(A) \cdot \det(A) = \det(I) = 1 $$
By $\det(A)^3 = 1$, I know that $\det(A)$ has to be $1$ which means
$$2t^2-2t+1 = 1 \Rightarrow 2t^2-2t=0 \Rightarrow t=1 \text{ or }t=0$$
But the answer is $t=1$ , I wonder why $t=0$ is incorrect ?
By direct calculation we have
$$A^3=\begin{bmatrix} 1 & 2 t-2 t^2 & t-t^2 \\ 4 t-4 & 5 t-4 & -t^2+4 t-3 \\ 2-2 t & t^2-4 t+3 & t^3-2 t+2 \\ \end{bmatrix}.$$
Your determinant calculation shows that $t = 1$ or $t= 0$ is a necessary condition for $A^3=I$. It does not show that $t=1$ or $t=0$ is a sufficient condition. If you plug in $t = 0$ in the above, clearly we don't get the identity matrix. Plugging in $t = 1$, on the other hand, gives us the identity matrix.
Of course, you don't have to calculate $A^3$ for arbitrary $t$, you can do it just for $t = 0$ and $t= 1$.