The Gaussian integers are the ones of the form $m + ni$ where $m,n$ are both integers. I need to show that given any two Gaussian integers $a$ and $b$, $ab = 0$ must imply that $a = 0$ or $b = 0$.
I tried to show it by contradiction. Assume we have $a \neq 0 $ and $b \neq 0$ such that $ab= 0$. Then $(m_1 + n_1i)(m_2+n_2i) = 0$, hence $(m_1m_2 - n_1n_2) + (m_1n_2 + m_2n_1)i = 0$, hence $ m_1m_2 = n_1n_2$ and $m_1n_2 = -m_2n_1$. We then multiply these two equations together to get $m_1^{2}(m_2n_2) = -n_1^{2}(m_2n_2)$ but then I can't really do the cancellation law because maybe $m_2 = 0$ or $n_2 = 0$. I am stuck. Any suggestions?
Here is one approach. Define the norm $N: \mathbb{Z}[i] \rightarrow \mathbb{Z}$ by $N(a+bi) = (a+bi)(a-bi) = a^{2}+b^{2}$. Here are some steps, which I leave you to prove, which will together prove your claim.
$1)$ Prove that the norm $N$ is multiplicative, i.e. for $\alpha, \beta \in \mathbb{Z}[i]$, $N(\alpha\beta) = N(\alpha)N(\beta)$.
$2)$ Prove that $N(\alpha) = 0$ if and only if $\alpha = 0$.
$3)$ Finally, using the fact that $\mathbb{Z}$ is an integral domain, use $1$ and $2$ to conclude $\mathbb{Z}[i]$ is an integral domain.
The thing I like about this approach in particular is that defining the norm $N$ can also be used to show the stronger fact that $\mathbb{Z}[i]$ is a Euclidean domain.