Let $R = \{a+bi\mid a,b \in \mathbb Z, i^2=-1\}$, with addition and multiplication defined by $(a+bi)+(c+di)=(a+c)+(b+d)i$ and $(a+bi)(c+di)=(ac-bd)+(bc+ad)i$, respectively.
(a) Verify that $R$ is an integral domain.
(b) Determine all units in $R$.
Let $R$ be a commutative ring with unity. Then $R$ is an integral domain if $R$ has no proper divisors of zero.
From this definition, I know that I must verify that $R$ has no proper divisors of zero, a nonzero element whose product is the zero element of the ring. But I first had a concern that how can this be a ring when $R$ has elements of complex numbers while $a$ and $b$ are elements of integers. Could it not be closed, and therefore not a ring at all? I may be confusing things. Also, it was defined where $a$ and $b$ belong to, but where did $c$ and $d$ come from?
I need help solving part (a)..
For (b), the solution says $1,-1,i,-i$ but I don't know why.
Thanks.