Let d = X2 + 1
R[X].
X + (d)
R[X]/(d) is invertible
in R[X]/(d).
X
Q[X]/(X2)
is not invertible.
So the inverse of
X + (d) is -X.
Of course we can also first find a representative of
X3 of degree smaller than 2 and work with that.