Let $A$ and $X$ be matrices $n \times n$ and $n \times 1$, respectively, with all entries real and strictly positive. Assume that $A^2 X = X$. Show that $A X = X$.
What I thought:
(i) $A^2 X = X \Rightarrow A (A^2 X) = A (X)$ for distributive law $ A(A^2 X) = A A (Ax) = AX \Rightarrow A^2(AX) = (AX)$, i.e., $A^2 Y = Y$ for $Y=AX$.
(ii) $A^2 X = X \Rightarrow (A^2-I)X = 0$. Be $X = (x_1,x_2,\ldots,x_n)^t$. So, $x_i > 0 \quad\forall i \in \{1,2,\ldots,n\}$. So, $det(A^2 - I) = 0 \Rightarrow det(A-I) = 0$ or $det(A+I) = 0$.
But, if $det(A+I) = 0 \Rightarrow (A+I)Y = 0 \Rightarrow AY = -Y$.
So $Y\neq X$ because if $A_{ij}>0 \quad and \quad x_i > 0 \Rightarrow AX \neq -X$
So, $det(A-I) = 0 \Rightarrow$ There is a vector Z that $(A-I)Z = 0 \Rightarrow AZ = Z$.
So, I need conclude that Z = X.