Let $f(x) =x^3+x+1 \in \mathbb{Q} [x] $. If ideal $I=(f(x)) $, find the inverse of $x^2+x+1$ in quotient $\mathbb{Q} [x] /I$.
I am having trouble with this. What exactly is the quotient $\mathbb{Q} [x] /I$ here? I guess it's polynomials with degree 2 or less which in multiplication satisfy the relation $ x^3+x+1=0$. How do I find the inverse? I guess I have to find a polynomial of degree 2 or less so that when multiplied by $x^2+x+1$ I get something divisible by $ x^3+x+1$.
You need to find a polynomial $g(x)$ such that $x^3+x+1$ divides $g(x)\cdot (x^2+x+1)-1$.
You can do it the same way you do it for integers: suppose $p,q$ are coprime integers. How do you find $a,b$ such that $ap+bq=1$?
If you know that, just do the same for $p=x^3+x+1$ and $q=x^2+x+1$.
(Note that this works essentially because $\mathbf Q[x]$ is an Euclidean ring, as a ring of polynomials in one variable over a field.)