GCDs in integral domains are unique up to unit factors (associates)

By the universal $\rm\color{#c00}{def}$inition of the gcd, If $\,d,d'$ are both gcds of all of the $\,a_i\,$ then $\,c\mid d\!\!\!\overset{\rm\ \ \color{#c00}{def}}\iff\! c\mid a_1,\ldots ,a_n\!\!\!\overset{\rm\ \ \color{#c00}{def}}\iff\! c\mid d',\,$ so for $\,c=d\,$ we get $\,d\mid d'$ and for $\,c = d'\,$ we get $\,d'\mid d,\,$ so $\,d,d'$ divide each other so are associate (thus $\,d' = u d\,$ for some unit $u,\,$ being in a domain).


Well, if $d$ is a common divisor of $a,b$ and $e$ is a unit, then $ed$ is a common divisor of $a,b$, since if $a=a'd$ and $b=b'd$ for some $a',b'$, then $a=(a'e^{-1})(ed)$ and $b = (b'e^{-1})(ed)$. This indeed means that the gcd is unique up to invertible elements.


$\newcommand{\Z}{\mathbb{Z}}$$\renewcommand{\epsilon}{\varepsilon}$It means

if $d$ is a GCD, then for each unit $\epsilon$ we have that $\epsilon d$ is a GCD, and all GCDs have this form.

For instance in $\Z$ the pair $2, 3$ has the two GCDs $1, -1$.


I am taking the following definition. Let $R$ be an integral domain, and $a_{1}, \dots, a_{n} \in R$. An element $d \in R$ is said to be a GCD of $a_{1}, \dots, a_{n}$ if

  1. $d \mid a_{i}$ for all $i$;
  2. for each $e \in R$, if $e \mid a_{i}$ for all $i$, then $e \mid d$.

Of course a GCD need not exist for all choices of $a_{1}, \dots , a_{n}$.