Suppose that the minimal polynomial of $x$ in $\mathbb{Q}[X]$ is $$\sum_{n=0}^k a_n X^n.$$ How can I find the minimal polynomial of $ix$ (where $i$ is the imaginary unit) in $\mathbb{Q}[X]$ from the coefficients $a_n$?
I ran into a problem because some powers of $i$ (that is, $i$ and $-i$) are not in $\mathbb{Q}$.