Let $k$ be a field of characteristic $p>0$ and $\phi:\mathbb{A}^1\to\mathbb{A}^1$ be the Frobenius morphism $\phi(x)=x^p$.
According to Hartshorne exercise I.3.2, $\phi$ is not an isomorphism of varieties. Why is this?
I think $\phi$ is the identity map (by Fermat's little theorem), so $\phi$ is its own inverse morphism. Thus $\phi$ is an isomorphism of varieties. Where is my error?