Is this possible? I used this as an example to show that there is a UFD $R$ where $2$ elements $a$ and $b$ are coprime but there may not be $r$, $s$ in $R$ such that $ra + sb = 1$. I know that $2$ and $x$ is one example (but I didn't come up with that during my exam).
1 Answers
The linear combinations of $x^2+1$ and $x^2+4$ are the same as those of $x^2+1$ and 3 (in both cases with coefficients in $\mathbb Z[x]$ - this detail is missing in the OP but it seems clear that this is what is meant) ... in other words the two pairs generate the same ideal of $\mathbb Z[x]$. (It seems also clear that $x$ is an indeterminate here - it seems to me more usual to use a capital $X$ instead.) Now in a relationship like $PA+QB=1$ one can take values at any element in any commutative associative algebra with unit over the base ring (here $\mathbb Z$) - in this case this means an element of any commutative ring. Take the imaginary unit $i$ in the ring $\mathbb Z[i]$ of Gaussian integers mentioned in a comment above. We get $P(i)A(i)+Q(i)B(i)=1$ and in case that $A=x^2+1$ and $B=3$ it follows from $A(i)=0$ that $3 Q(i) = 1$. But values of polynomials are in the considered algebra, i.e. here in the ring of Gaussian integers and we get $3(a+bi)=1$ with $a, b$ ordinary integers, which is clearly impossible.

- 151
$$\Bbb Z[i]/3 ,\cong, \Bbb Z[x]/(3,x^2+1) ,\cong, \Bbb Z_3[x]/(x^2+1)\qquad\qquad$$ so $,(x^2+4,x^2+1) = (3,x^2+1)\neq (1),$ by LHS (or RHS) ring above is not the zero ring.
– Bill Dubuque Mar 02 '23 at 04:13