I need a hint to solve a problem in the algebra book of Dummit and Foote. It is what is the inverse of $\dfrac{1+\theta}{1+\theta+\theta^{2}}$ in which $\theta$ is the root of $x^3-2x-2=0$.
I think there are two ways to solve this problem:
- Every element in $\mathbb{Q}(\theta)$ is of the form $a+b\theta+c\theta^{2}$ so we have $(1+\theta+\theta^{2})(a+b\theta+c\theta^{2})=1+\theta$, then we can multiply out but it is getting complicated.
- $\mathbb{Q}(\theta)$ is nothing but $\mathbb{Q}[x]/(x^3-2x-2)$, then there exist two polynomial $a(x), b(x)$ such that $a(x)(1+x+x^2)+b(x)(x^3-2x-2)=1$. If we can figure out what is $a(x)$, then its image in the quotient $\mathbb{Q}[x]/(x^3-2x-2)$ is exactly the inverse of $1+\theta+\theta^2$. Then we get the result by multiplying that image with $1+\theta$. But how can we compute $a(x)$ and $b(x)$?
Please help me.
Thanks.