Let $A\in M_{n\times n}(\mathbb F)$. Prove that if $\text{rank}(A)=\text{rank}(A^2)$ then the systems $Ax=0$ and $A^2x=0$ have the same set of solutions.
I don't really have a clue where to start with this one. Multiplying the matrices didn't seem to help much. The only case that I could solve is if $A$ is an invertible matrix because $Ax=0\Leftrightarrow A^{-1}Ax=A^{-1}0\Leftrightarrow x=0$, similarly for $A^2x=0$.
$$n-\dim(\ker A^2)=\text{rank}~ A^2=\text{rank}~ A=n-\dim(\ker A)$$
we get
$$\dim(\ker A^2)=\dim(\ker A)\tag{1}$$
We also know:
$$x\in\ker A\Rightarrow Ax=0\Rightarrow A^2x=0\Rightarrow x\in \ker A^2$$ hence
$$\ker A\subseteq \ker A^2\tag{2}$$
By (1) and (2), what can you conclude?