The Gaussian integers are defined as the numbers that can be written as $a + bi$ with $a, b$ rational numbers, and for which there is a monic polynomial $P \in \mathbb{Z}[X]$ such that $P(a + bi) = 0$.
I would like to show that these numbers are precisely the $a + bi$ with $a, b$ integers.
The polynomial $P = (X - (a + bi))(X - (a - bi)) = X^{2} - 2aX + (a^{2} + b^{2})$ is in $\mathbb{Q}[X]$ and verifies $P(a + bi) = 0$. If I could show that in fact $P \in \mathbb{Z}[X]$ then I would get that $2a$ and $a^{2} + b^{2}$ are integers, and then I would know how to end the proof.
However, I can't manage to explain why $P$ must be in $\mathbb{Z}[X]$. If we take $b \neq 0$ then $P$ is the polynomial in $\mathbb{Q}[X]$ with smallest degree that verifies $P(a + bi) = 0$. But this does not help me ...
Thank you for your help.
Edit: after some extra research, I found a PDF where it is explicitly said that in order to prove what I talked about; we can first show that $2a$ and $a^{2} + b^{2}$ are in $\mathbb{Z}$, without using anything like Gauss' lemma. So even though I did get an answer, I would be curious to see how to conclude this way: how do we prove that these two numbers are integers ?