Suppose $I$ is an ideal of $\mathbb Q[x]$ which contains $x^2 + 2x +4$ and $x^3 - 3$. Prove $I =\mathbb Q[x]$.
This is an exercise in my abstract algebra text book. I know the definition of an ideal. I know that every ideal of $\mathbb Q[x]$ is a principal ideal which means every ideal can be generated by a single polynomial in $\mathbb Q[x]$.
A hint given in the exercise says begin by showing that $x^3 - 3$ is irreducible in $\mathbb Q[x]$. I know that it is irreducible in $\mathbb Q[x]$ because it has no roots in $\mathbb Q[x]$. Likewise $x^2 + 2x + 4$ is irreducible in $\mathbb Q[x]$.
I also know that if I could show that $1$ is in $I$ then we are done. Otherwise I do not know how to get this proof started.
Notice that: $$\underbrace{(x^3-3)}_{\in I}-\underbrace{x}_{\in\mathbb{Q}[X]}\underbrace{(x^2+2x+4)}_{\in I}=-2x^2-4x-3.$$ Therefore, since $I$ is an ideal of $\mathbb{Q}[X]$, one has: $$2x^2+4x+3\in I.$$ Then, notice that: $$\underbrace{2x^2+4x+3}_{\in I}-\underbrace{2}_{\in\mathbb{Q}[X]}\underbrace{(x^2+2x+4)}_{\in I}=-1.$$ Finally, $1\in I$ and $I=\mathbb{Q}[X]$.