If $\alpha$ is a root of $x^3-3x+1$ then $f: \mathbb{Q}(\alpha)\to \mathbb{Q}(\alpha)$ such that $f(1)=1$ and $f(\alpha)=\alpha^2-2$ is a automorphism.
Assuming that is a homomorphism, then is fair easy to check that is an a biyection. Since for any $a+b\alpha+c\alpha^2 \in \mathbb{Q}(\alpha)$, $$f\left(a+2(c-b)+4b+\alpha(c-b)-b\alpha^2\right)=a+b\alpha+c\alpha^2$$ And $\mathbb{Q}(\alpha)/\operatorname{Ker}(f)\cong \mathbb{Q}(\alpha)$, then f is a biyection.
The problem is that I don't know how to prove that it really is a homomorphism. Also, i would also like to know alternative or smart ways to show this