Examples

Let d = X2 + 1 R[X].

X + (d) R[X]/(d) is invertible in R[X]/(d).

X3 R[X]/(d) is invertible.

X Q[X]/(X2) is not invertible.