Suppose A is a square matrix such that $A^T A= AA^T$. Show that the nullspace of $A^T$ is equal to the nullspace of $A$.
Here is my attempt at a proof:
We must show that, given $A^T A= AA^T$: $$Ax=0 , A^T y=0 \iff x=y, \forall x ,y$$ Now, suppose $x$ is in the nullspace of $A$ and $y$ in the nullspace of $A^T$: $$Ax=0 , A^Ty=0$$ Multiplying the left most equation by $A^T$ and the rightmost equation by $A$: $$A^TAx=0, AA^Ty = 0$$ As $A^T A= AA^T$, we have: $$AA^Tx=0, A^TAy=0$$ At this point, I would like to claim that $x=y$, however I'm unsure if this is the case, as if we consider $AA^Tx=0$, it could be the case that $A^Tx$ is in the nullspace of $A$ rather $x$ being in the nullspace of $A^T$.
Thoughts?