The notes of a module I'm doing has an example I don't quite understand.
If $\theta$ is the root of $t^3-4t+2$, then $2\theta-1$ is a unit of $\mathcal{O}_{\mathbb{Q}(\theta)}$. First note that $2\theta-1$ is a root of the monic integer polynomial $\frac{1}{8} \left[(t+1)^3-4(4(t+1))+16\right]=t^3+3t^2-13t+1$.
How did they find the polynomial above? I understand why they did it (the $+1$ in the end is useful later one to determine $2\theta -1$ is indeed a unit).
Could you please explain? thanks in advance.