Let $A$ be a square matrix. Prove that $A$ and $A^t$ have the same eigenvalues.
The solution my lecturer uses is: Consider the characteristic polynomial
\begin{align} P_{A^t}(x) &= \det{\left(xI-A^t\right)} \\ &= \det{\left((xI-A)^t\right)} \\ &= \det{(xI-A)} = P_{A}(x). \end{align}
Since the characteristic polynomials are equal and the eigenvalues are the roots of the characteristic polynomial, the eigenvalues will be the same.
However some of the steps he has taken seem to have come out of nowhere. How do we know $(xI-A^t) = (xI-A)^t$, also how do we know $(xI-A)^t=(xI-A)$?