Let \(\displaystyle D\) be a finite integral domain. Prove that \(\displaystyle D\) is a field and explain with a counterexample why finiteness is necessary.
Step by step with comments, a check and common mistakes.
Step-by-step solution
If \(\displaystyle a\neq 0\), the map is injective: from \(\displaystyle ax=ay\) we get \(\displaystyle a(x-y)=0\), and since \(\displaystyle D\) has no zero divisors, \(\displaystyle x=y\).
\[\displaystyle ax=ay \Rightarrow x=y\]
Since \(\displaystyle D\) is finite, an injective map from \(\displaystyle D\) to itself is also surjective.
\[\displaystyle f:D\to D,\quad f(x)=ax\]
Hence there exists \(\displaystyle b\in D\) with \(\displaystyle ab=1\), so every nonzero element has an inverse.
\[\displaystyle ab=1\]
Comment: Uses that \(\displaystyle 1\neq 0\) in \(\displaystyle D\), which is part of the definition of a domain.
Since \(\displaystyle D\) is commutative, \(\displaystyle ba=ab=1\) and \(\displaystyle D\) is a field.
\[\displaystyle ba=ab=1\]
Finiteness is necessary: in \(\displaystyle \mathbb{Z}\), the map \(\displaystyle x\mapsto 2x\) is injective but not surjective, since no integer \(\displaystyle x\) satisfies \(\displaystyle 2x=1\).
\[\displaystyle 2x=1\]
Comment: So \(\displaystyle 2\) has no inverse in \(\displaystyle \mathbb{Z}\), even though \(\displaystyle \mathbb{Z}\) is an integral domain.
The correct conclusion is that injectivity yields inverses only when the set is finite, and this fails in \(\displaystyle \mathbb{Z}\).
Answer
Multiplying by a nonzero \(\displaystyle a\) is injective, hence surjective, so \(\displaystyle a\) has an inverse; in \(\displaystyle \mathbb{Z}\), which is infinite, \(\displaystyle 2\) has no inverse