I am a little bit confused about such fundamental problems:
Suppose
1. $Ax=\lambda x$.
2. $A \in \mathbb{R^{n \times n}} $.
Case I: $$A^TAx = \lambda A^Tx=\lambda \lambda x=\lambda^2x$$
Case II: $$AAx = \lambda Ax=\lambda \lambda x=\lambda^2x$$
From above, it seems that $A^TA$ and $AA$ have the same eigenvalues.
However, consider $$A = \begin{bmatrix}1 & 2\\3 & 4\end{bmatrix}$$
If checking the eigenvalues of $A^TA$ and $AA$ by matlab, they are not the same.
Why is that?