Group vs. ring vs. field
Groups, rings, and fields are sets with operations that obey some of the rules of arithmetic. A group has one operation, which is associative, has an identity element, and can be undone. A ring has an addition and a multiplication; its addition forms a commutative group, but its elements need not have multiplicative inverses. A field is a commutative ring in which every nonzero element has a multiplicative inverse, so division by nonzero elements is possible.
field ⊂ ring ⊂ commutative group (under addition)
Definitions
Consider a set $G$ with a binary operation $\ast$. The set $G$ is a group if
- $\ast$ is associative: $(a \ast b) \ast c = a \ast (b \ast c)$ for all $a, b, c \in G$,
- $G$ has an identity element $e$ such that $e \ast g = g \ast e = g$ for all $g \in G$, and
- every element $g \in G$ has an inverse $g^{-1}$ such that $g \ast g^{-1} = g^{-1} \ast g = e$.
Examples
-
$\mathbb{Z}$ with addition
Adding $0$ changes nothing, and adding $-3$ undoes adding $3$.
-
The integers $\mathbb{Z}$, with addition and multiplication
The integers form a group under addition, because adding $0$ changes nothing, adding $-n$ undoes adding $n$, and addition is associative.
-
The nonzero real numbers, with multiplication
The nonzero real numbers form a group under multiplication, because $1$ is an identity and $1/x$ is the inverse of $x$.
-
The rational numbers $\mathbb{Q}$, with addition and multiplication
The rational numbers form a group under addition, because $0$ is an identity and $-q$ is the inverse of $q$.
-
The integers modulo $5$, $\setdef{0, 1, 2, 3, 4}$, with addition and multiplication modulo $5$
The integers modulo $5$ form a group under addition modulo $5$, because $0$ is an identity and $5 - n$ is the inverse of $n$.
-
The integers modulo $6$, $\setdef{0, 1, 2, 3, 4, 5}$, with addition and multiplication modulo $6$
The integers modulo $6$ form a group under addition modulo $6$, because $0$ is an identity and $6 - n$ is the inverse of $n$.
-
The $2 \times 2$ real matrices, with matrix addition, multiplication by real numbers, and matrix multiplication
The $2 \times 2$ real matrices form a group under matrix addition, because the zero matrix is an identity and $-A$ is the inverse of $A$.
Non-examples
-
$\nats$ with addition
$\nats$ with addition is not a group, because no positive integer has an additive inverse in $\nats$.
Properties
- The identity element of a group is unique, and so is the inverse of each element.
Consider a set $R$ with two binary operations, addition $+$ and multiplication $\cdot$. The set $R$ is a ring if
- $R$ with $+$ is a commutative group, whose identity element is written $0$,
- multiplication is associative and has an identity element, written $1$, and
- multiplication distributes over addition: $a (b + c) = a b + a c$ and $(a + b) c = a c + b c$ for all $a, b, c \in R$.
Examples
-
The integers $\mathbb{Z}$, with addition and multiplication
The integers, with addition and multiplication, form a ring, because they form a commutative group under addition, multiplication is associative and has the identity $1$, and multiplication distributes over addition.
-
The rational numbers $\mathbb{Q}$, with addition and multiplication
The rational numbers, with addition and multiplication, form a ring, because they satisfy the usual rules of arithmetic, including the distributive law.
-
The integers modulo $5$, $\setdef{0, 1, 2, 3, 4}$, with addition and multiplication modulo $5$
The integers modulo $5$, with addition and multiplication modulo $5$, form a ring, because the rules of integer arithmetic still hold after taking remainders.
-
The integers modulo $6$, $\setdef{0, 1, 2, 3, 4, 5}$, with addition and multiplication modulo $6$
The integers modulo $6$, with addition and multiplication modulo $6$, form a ring, because the rules of integer arithmetic still hold after taking remainders.
-
The $2 \times 2$ real matrices, with matrix addition, multiplication by real numbers, and matrix multiplication
The $2 \times 2$ real matrices form a ring, because matrix multiplication is associative, has the identity matrix $I$ as its identity, and distributes over addition.
Non-examples
-
The nonzero real numbers, with multiplication
The nonzero real numbers, with multiplication, do not form a ring, because a ring needs an addition too, and the nonzero real numbers are not closed under addition: $1 + (-1) = 0$.
Properties
- Multiplication in a ring need not be commutative. A ring whose multiplication is commutative is called a commutative ring.
- Elements of a ring need not have multiplicative inverses, so division need not be possible.
- In every ring, $0 \cdot a = a \cdot 0 = 0$ and $(-1) \cdot a = -a$ for all $a$.
A field is a set of numbers (or other objects) that can be added, subtracted, multiplied, and divided by every nonzero element, following the same rules as the arithmetic of real numbers.
Consider a set $F$ with two binary operations, addition $+$ and multiplication $\cdot$. The set $F$ is a field if
- $F$ is a ring with $+$ and $\cdot$,
- multiplication is commutative,
- There exists an additive identity $0$ and a multiplicative identity $1$ such that $0 \neq 1$, and
- every element $a \neq 0$ has a multiplicative inverse $a^{-1}$ such that $a a^{-1} = 1$.
Examples
-
The rational numbers $\mathbb{Q}$, with addition and multiplication
The rational numbers, with addition and multiplication, form a field, because multiplication is commutative and every nonzero fraction $a/b$ has the inverse $b/a$.
-
The integers modulo $5$, $\setdef{0, 1, 2, 3, 4}$, with addition and multiplication modulo $5$
The integers modulo $5$ form a field, because every nonzero element has a multiplicative inverse: $1 \cdot 1 = 1$, $2 \cdot 3 = 6 = 1$, and $4 \cdot 4 = 16 = 1$ modulo $5$.
Non-examples
-
The integers $\mathbb{Z}$, with addition and multiplication
The integers, with addition and multiplication, do not form a field, because most integers do not have multiplicative inverses. For example, $2$ has no multiplicative inverse in $\mathbb{Z}$ because $1/2$ is not an integer.
-
The nonzero real numbers, with multiplication
The nonzero real numbers are not a field without $0$ because a field requires there is an additive identity.
-
The integers modulo $6$, $\setdef{0, 1, 2, 3, 4, 5}$, with addition and multiplication modulo $6$
The integers modulo $6$ do not form a field, because $2$ has no multiplicative inverse: $2 k$ modulo $6$ is $0$, $2$, or $4$, and none of these is $1$. Also, $2 \cdot 3 = 0$ modulo $6$, although neither $2$ nor $3$ is $0$.
-
The $2 \times 2$ real matrices, with matrix addition, multiplication by real numbers, and matrix multiplication
The $2 \times 2$ real matrices do not form a field, because matrix multiplication is not commutative, and nonzero singular matrices, such as \(\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}\), have no inverse.
Properties
- A field has no zero divisors: if $a b = 0$, then $a = 0$ or $b = 0$.
- The integers modulo $n$ form a field if and only if $n$ is prime.
- The scalars of a vector space come from a field.
Examples
| Example | group | ring | field | Why |
|---|---|---|---|---|
| The nonzero real numbers, with multiplication | ✓ | ✗ | ✗ | |
| The integers $\mathbb{Z}$, with addition and multiplication | ✓ | ✓ | ✗ | |
| The rational numbers $\mathbb{Q}$, with addition and multiplication | ✓ | ✓ | ✓ | |
| The $2 \times 2$ real matrices, with matrix addition, multiplication by real numbers, and matrix multiplication | ✓ | ✓ | ✗ | |
| The integers modulo $6$, $\setdef{0, 1, 2, 3, 4, 5}$, with addition and multiplication modulo $6$ | ✓ | ✓ | ✗ | |
| The integers modulo $5$, $\setdef{0, 1, 2, 3, 4}$, with addition and multiplication modulo $5$ | ✓ | ✓ | ✓ | The integers modulo $5$ form a field, but the integers modulo $6$ do not, because $5$ is prime and $6$ is not. |
Notes
- A ring is a group under addition, but a ring is usually not a group under multiplication, because $0$ has no multiplicative inverse.
- The nonzero elements of a field are a group under multiplication.
- Some authors do not require a ring to have a multiplicative identity $1$.