show that in $\mathbb{Z}[x]$, $(x^2+1,3x+2)=(3x+2,13)$ directly by ideal manipulation (or any easy method). More generally, can we show $(x^2+1,ax+b)=(ax+b,a^2+b^2)$? Should I impose some extra conditions on $a,b$ like $\gcd(a,b)=1$? And even more, can we replace $x^2+1$ by any irreducible polynomial over $\mathbb Z$?
To supplement the background, I want to show $\mathbb Z_i/(3i+2)$ is a field with 13 elements (I know this question is duplicated, but i'm asking for a specific technical detail which many other answers skip).