TL;DR
A group is a set together with an operation that combines two elements into a third. The operation must be associative, there must be an identity element that changes nothing, and every element must have an inverse that undoes it. Nothing else is required, and that short list is enough to get a rich theory.
Groups are the right language for symmetry: the ways you can rotate or reflect a shape and still end up with the same shape, or the ways you can shuffle a deck of cards.
Where you'll see it: in the symmetry groups of crystals and molecules, in the cryptography that uses arithmetic modulo a prime, and in the gauge groups that describe the fundamental forces in physics.
Intuition
Doing things and undoing them
Take a square and rotate it by a quarter turn. Doing that four times brings it back to where it started. Each rotation can be undone by another rotation, and doing nothing is also a legitimate move. Those few facts (you can combine moves, you can undo each one, and there is a move that does nothing) are the whole idea of a group.
Why does the idea exist? Many different systems share the same algebra of combining and undoing. Integers under addition, rotations of a square, and clock arithmetic all behave the same way. A group is the abstraction that keeps only what they share, so a theorem proved once applies to all of them.
The picture below shows the four rotations of a square. Each arrow is one quarter turn, and following the arrows four times returns to the start.
flowchart LR R0["0 degrees (identity)"] -->|"quarter turn"| R90["90 degrees"] R90 -->|"quarter turn"| R180["180 degrees"] R180 -->|"quarter turn"| R270["270 degrees"] R270 -->|"quarter turn"| R0
The math
A group is a pair , where is a set and is a binary operation satisfying:
- Associativity: for all .
- Identity: there is an element with for all .
- Inverses: for each there is an element with .
Closure is built in: takes values in . The group is abelian (or commutative) if also for all . The number of elements of is its order, written .
Notation: means "is an element of", and is the Cartesian product, the set of all ordered pairs. The operation is a placeholder; for numbers it might be or , and for rotations it is "do one move and then the other".
Examples and non-examples
The same definition covers very different objects:
- The integers under addition: the identity is , and the inverse of is . This group is abelian and infinite.
- The integers modulo 5, written , under addition modulo 5. The identity is , and the inverse of is (with its own inverse).
- The nonzero residues modulo 5, , under multiplication modulo 5. Worked example 2 checks this one.
- The symmetries of an equilateral triangle, which form a non-abelian group of order 6.
Non-examples are just as useful. The positive integers under addition are not a group, because they have no identity (0 is not positive) and no inverses (there is no positive ). The natural numbers under subtraction are not a group either: subtraction is not associative, since but .
Order of an element and subgroups
For an element of a finite group, the order of is the smallest positive with , where means with copies. A subgroup is a subset that is itself a group under the same operation.
A standard fact, Lagrange's theorem, says that the order of every subgroup divides the order of the group, so divides whenever is a subgroup of the finite group . The proof uses cosets and is not needed to use the result.
Worked examples
Consider under addition modulo 4. Its Cayley table lists for each pair:
| 0 | 1 | 2 | 3 | |
|---|---|---|---|---|
| 0 | 0 | 1 | 2 | 3 |
| 1 | 1 | 2 | 3 | 0 |
| 2 | 2 | 3 | 0 | 1 |
| 3 | 3 | 0 | 1 | 2 |
- Closure: every entry is in .
- Identity: the row and column for copy the labels exactly, so is the identity.
- Inverses: , so is the inverse of ; , so is its own inverse.
- Associativity holds because addition of integers is associative, and reducing mod 4 does not break it.
- The table is symmetric about the diagonal, so the group is abelian.
Interpretation: a clock with four hours is exactly this group. Each hour is a position, and adding hours is the operation.
Check that under multiplication modulo 5 is a group.
- Closure: , , , , and each result is in the set.
- Identity: , since for all .
- Inverses: , so is the inverse of . , so is its own inverse. is its own inverse.
- Associativity holds because multiplication of integers is associative.
- Order of the element : , , , . So has order 4, and the group is generated by .
- The subgroup has order 2, which divides 4, as Lagrange's theorem requires.
Interpretation: the same algebra that gives modular arithmetic for cryptography is a group, and the order of an element controls how its powers cycle.
Take under multiplication modulo 4.
- Compute . The result is not in .
- Closure fails, so is not a group, whatever else is true.
- The identity is present and the operation is associative, but the first condition is already broken.
Interpretation: when checking a candidate group, test closure first, because a single failure settles the question. Some sets fail for a reason that is easy to miss, like sneaking in from a product.
Tradeoffs and failure modes
Groups capture symmetry and reversibility. They say nothing about addition as a combined structure with multiplication, and that is why ring and field theory exist separately.
| Situation | Problem | Better choice |
|---|---|---|
| The operation is not reversible (like the integers under multiplication, where 0 has no inverse) | No inverses, so it is not a group | A monoid or a semigroup |
| The operation is not associative (like subtraction) | Groups need associativity to make powers and products unambiguous | A quasigroup or a loop, if the rest of the structure holds |
| You need two operations that interact, like and | A group has only one operation | A ring or a field |
| The group is huge but the question is local | Full classification is hard | Look at subgroups, or at the action on a small set |
A common error is to assume a group is commutative. Most interesting groups are not: the symmetries of a triangle do not commute, and matrix multiplication for general matrices does not either. Check the axioms as written, and do not assume extra properties.
History
The idea grew out of the study of polynomial equations. Joseph-Louis Lagrange, in the 1770s, noticed that the way the roots of a polynomial could be permuted controlled whether the equation could be solved by radicals.
Évariste Galois, working around 1830, turned these permutations into a structure. He defined what is now called a group of permutations and showed that the solvability of an equation depends on the properties of that group. He died in 1832 at age 20, and his papers were published later.
The abstract definition, with a single set and an operation and no reference to permutations, was given by Arthur Cayley in 1854. In the 1870s Felix Klein's Erlangen program used groups to classify geometries by the symmetries each one preserves. Since then groups have become a common language across algebra, geometry and physics.
Check yourself
QuestionIs the set of even integers under addition a group? Check all three axioms and name the identity.Show answer
Yes. Closure holds because the sum of two even integers is even. Addition is associative. The identity is , which is even. The inverse of an even is , also even. So it is an abelian group with identity .
QuestionCompute the order of the element in and say which powers of give each element.Show answer
, , , . So has order 4, and its powers run through all of . The group is cyclic, generated by .
QuestionWhy does the identity element have to be unique in any group? Give the one-line argument.Show answer
Suppose and are both identities. Then , since is an identity acting on and is an identity acting on . So they coincide.
QuestionA cryptosystem uses the group for a prime . Why does the order of the group matter to the designer, and what does Lagrange's theorem say about the possible orders of subgroups?Show answer
The order determines how many elements the group contains and how the powers of a generator cycle. Lagrange's theorem says every subgroup's order divides , so the designer can see in advance which subgroup sizes are possible. Choosing so that has a large prime factor limits the attacks that exploit small subgroups.
QuestionGive an example of a group that is not abelian, and explain in one sentence why its operation fails to commute.Show answer
The symmetries of an equilateral triangle form a non-abelian group. A rotation followed by a reflection is not the same as the reflection followed by the rotation. Conjugating a rotation by a reflection turns it into the rotation in the opposite direction, so the two orders give different symmetries.
Sources
- Group (mathematics), Wikipedia: https://en.wikipedia.org/wiki/Group_(mathematics)
- Évariste Galois, Wikipedia: https://en.wikipedia.org/wiki/%C3%89variste_Galois
- Lagrange's theorem (group theory), Wikipedia: https://en.wikipedia.org/wiki/Lagrange%27s_theorem_(group_theory)