Find the multiplicative inverse of $x + 2$ in the field $\Bbb Z_5[x]/(x^2 + 2)$.
I have done the following so far:
\begin{align*} x^2+2 &= (x+2)(x+3) + 1\\ (x+2)(x+3) &\equiv -1 \pmod {x^2+2}\\ (x+2)(x+3) &\equiv 4 \pmod {x^2+2}, \end{align*}
therefore multiplying both sides by $4,$
$$4(x+2)(x+3) \equiv 1 \pmod {x^2+2}.$$
This is as far as i can get to figuring it out.
Now I have the final answer and it states that: inverse of $(x+2) = 4(x+3) = 4x+2$??? Can someone please explain to me how the answers are able to go from where i have finished to this final solution?
Thank you
$$\dfrac{1}{2+\sqrt{-2}} ,=, \dfrac{1}{2+\sqrt{-2}},\dfrac{2-\sqrt{-2}}{2-\sqrt{-2}} ,=, \dfrac{2-\sqrt{-2}}{6} ,=, 2-\sqrt{-2}\qquad\qquad$$
– Bill Dubuque May 27 '24 at 20:49