Example 1: A Gaussian integer is a complex number , where and are integers. Show that the set of Gaussian integers forms a ring under ordinary addition and multiplication of complex numbers.
Solution:
Let and be any two elements of then
and
These are Gaussian integers and therefore is closed under addition as well as multiplication of complex numbers. Addition and multiplication are both associative and commutative compositions for complex numbers.
Also, multiplication distribution with respect addition. The additive inverse of is as
The Gaussian integer is the multiplicative identity. Therefore, the set of Gaussian integer is a commutative ring with unity.
Example 2: Prove that the set of residue {0, 1, 2, 3, 4} modulo 5 is a ring with respect to addition and multiplication of residue classes (mod 5).
Solution: Let R = {0, 1, 2, 3, 4}. Addition and multiplication tables for given set R are as under:
+ mod 5

0 
1 
2 
3 
4 
mod 5 
0 
1 
2 
3 
4 
0 
0 
1 
2 
3 
4 
0 
0 
0 
0 
0 
0 
1 
1 
2 
3 
4 
0 
1 
0 
1 
2 
3 
4 
2 
2 
3 
4 
0 
1 
2 
0 
2 
4 
1 
3 
3 
3 
4 
0 
1 
2 
3 
0 




4 
4 
0 
1 
2 
3 
4 





From the addition composition table following is clear:
(i) Since all elements of the table belong to the set, it is closed under addition (mod 5).
(ii) Addition (mod 5) is always associative.
(iii) is the identity of addition.
(iv) The additive inverse of the elements 0, 1, 2, 3, 4 are 0, 4, 3, 2, 1 respectively.
(v) Since the elements equidistant from the principal diagonal are equal to each other, the addition (mod 5) is commutative.
From the multiplication composition table, we see that (R, .) is semi group. i.e. following axioms hold good.
(vi) Since all the elements of the table are in R, the set R is closed under multiplication (mod 5).
(vii) Multiplication (mod 5) is always associative.
(viii) The multiplication (mod 5) is left as well as right distributive over addition (mod 5).
Hence is a ring.