Groups, Subgroups, and Cosets

⚡ Key Takeaways

Groups, Subgroups, and Cosets — A group is a set with an associative binary operation, an identity, and inverses. A subgroup is a subset that is itself a group under the same operation. Cosets partition a group into equal-sized translates of a subgroup, yielding Lagrange's Theorem: the order of a subgroup divides the order of the group. Applies throughout algebra, number theory, geometry, physics (symmetry), and cryptography. Foundational concepts formalized by Galois, Cayley, and others in the 19th century.

💡 The Core Insight

A group encodes "doing and undoing" — every action can be reversed. A subgroup is a self-contained world of such actions sitting inside a larger one. The miracle is that this smaller world tiles the bigger one perfectly: the cosets of HH are like identical floor tiles, all the same size, covering GG with no gaps and no overlaps. Counting tiles gives Lagrange's Theorem, and the way these tiles interact (when they form a group themselves) leads to quotient groups and the deepest structural theorems of algebra.

Formal Statement

DefinitionGroup

A group is an ordered pair (G,⋅)(G, \cdot) where GG is a non-empty set and ⋅:G×G→G\cdot : G \times G \to G is a binary operation satisfying:

1
∀a,b∈G:a⋅b∈G(closure)\quad \forall a,b \in G : \quad a \cdot b \in G \quad \text{(closure)}

Derivation hint: This is built into the codomain of the operation ⋅:G×G→G\cdot : G \times G \to G; the output never escapes GG.

2
∀a,b,c∈G:(a⋅b)⋅c=a⋅(b⋅c)(associativity)\quad \forall a,b,c \in G : \quad (a \cdot b) \cdot c = a \cdot (b \cdot c) \quad \text{(associativity)}

Derivation hint: Associativity lets us write abcabc unambiguously; it is an axiom, not derived, and fails for operations like subtraction.

3
∃ e∈G  ∀a∈G:e⋅a=a⋅e=a(identity)\quad \exists\, e \in G \ \ \forall a \in G : \quad e \cdot a = a \cdot e = a \quad \text{(identity)}

Derivation hint: ee acts neutrally on both sides; uniqueness follows since two identities e,e′e, e' give e=e⋅e′=e′e = e \cdot e' = e'.

4
∀a∈G  ∃ a−1∈G:a⋅a−1=a−1⋅a=e(inverses)\quad \forall a \in G \ \ \exists\, a^{-1} \in G : \quad a \cdot a^{-1} = a^{-1} \cdot a = e \quad \text{(inverses)}

Derivation hint: Each element has a two-sided inverse; uniqueness follows from b=b(ac)=(ba)c=cb = b(ac) = (ba)c = c when b,cb,c are both inverses of aa. The symbols: GG is the underlying set, ⋅\cdot the operation (often written multiplicatively as abab or omitted), ee the identity, a−1a^{-1} the inverse of aa. The order of GG, denoted ∣G∣|G|, is its cardinality. A group is abelian (commutative) if additionally ab=baab = ba for all a,ba,b.

DefinitionSubgroup

A subset H⊆GH \subseteq G is a subgroup of GG, written H≤GH \leq G, if HH is non-empty and forms a group under the restriction of ⋅\cdot. Equivalently (the one-step subgroup test):

5
H≤G  ⟺  H≠∅  and  ∀a,b∈H: a⋅b−1∈H\quad H \leq G \iff H \neq \varnothing \ \text{ and }\ \forall a,b \in H : \ a \cdot b^{-1} \in H

Derivation hint: Taking a=ba=b gives e∈He \in H; then a=ea=e gives b−1∈Hb^{-1} \in H; then closure under ⋅\cdot follows from a(b−1)−1=ab∈Ha(b^{-1})^{-1} = ab \in H. The trivial subgroup is {e}\{e\}; GG is a subgroup of itself. Any other is a proper, nontrivial subgroup. The subgroup generated by a∈Ga \in G is ⟨a⟩={an:n∈Z}\langle a \rangle = \{ a^n : n \in \mathbb{Z}\}, a cyclic subgroup.

DefinitionCosets and Index

For H≤GH \leq G and g∈Gg \in G, the left coset of HH by gg and the right coset are

6
gH={ gh:h∈H },Hg={ hg:h∈H }\quad gH = \{\, gh : h \in H \,\}, \qquad Hg = \{\, hg : h \in H \,\}

Derivation hint: A coset is the image of HH under left- (or right-) translation by gg; it is generally not a subgroup unless g∈Hg \in H. The set of all distinct left cosets is denoted G/HG/H (read "GG mod HH"). The index of HH in GG is the number of distinct left cosets:

7
[G:H]=∣G/H∣=#{distinct left cosets gH}\quad [G : H] = |G/H| = \#\{\text{distinct left cosets } gH\}

Derivation hint: Each coset has the same cardinality ∣H∣|H| via the bijection h↦ghh \mapsto gh, so the cosets are equal-sized blocks.

TheoremLagrange's Theorem

Let GG be a finite group and H≤GH \leq G. Then ∣H∣|H| divides ∣G∣|G|, and

8
∣G∣=[G:H]⋅∣H∣\quad |G| = [G : H]\cdot |H|

Derivation hint: The left cosets partition GG into [G:H][G:H] disjoint blocks, each of size ∣H∣|H|; multiply block-count by block-size. In particular the order of any element aa (the smallest n>0n>0 with an=ea^n = e, equal to ∣⟨a⟩∣|\langle a\rangle|) divides ∣G∣|G|, whence:

9
a∣G∣=efor all a∈G\quad a^{|G|} = e \quad \text{for all } a \in G

Derivation hint: Let n=ord(a)n = \mathrm{ord}(a). By Lagrange n∣∣G∣n \mid |G|, say ∣G∣=nk|G| = nk; then a∣G∣=(an)k=ek=ea^{|G|} = (a^n)^k = e^k = e.

Why It Holds / Derivation

ProofCosets Partition the Group; Lagrange Follows

We prove that the left cosets of H≤GH \leq G form a partition of GG, all of equal size, and deduce Lagrange's Theorem.

Step 1 — Every element lies in some coset. For any g∈Gg \in G, since e∈He \in H we have g=ge∈gHg = ge \in gH. Thus ⋃g∈GgH=G\bigcup_{g \in G} gH = G (the cosets cover GG).

Step 2 — Two cosets are equal or disjoint. Suppose g1H∩g2H≠∅g_1 H \cap g_2 H \neq \varnothing; pick xx in the intersection. Then x=g1h1=g2h2x = g_1 h_1 = g_2 h_2 for some h1,h2∈Hh_1, h_2 \in H, giving

g1=g2h2h1−1.g_1 = g_2 h_2 h_1^{-1}.

Since HH is a subgroup, h2h1−1∈Hh_2 h_1^{-1} \in H. For any element g1h∈g1Hg_1 h \in g_1 H,

g1h=g2(h2h1−1h)∈g2H,g_1 h = g_2 (h_2 h_1^{-1} h) \in g_2 H,

so g1H⊆g2Hg_1 H \subseteq g_2 H. By symmetry g2H⊆g1Hg_2 H \subseteq g_1 H, hence g1H=g2Hg_1 H = g_2 H. Therefore distinct cosets are disjoint.

Step 3 — All cosets have the same size. The map φ:H→gH\varphi : H \to gH defined by φ(h)=gh\varphi(h) = gh is a bijection: it is surjective by definition of gHgH, and injective because gh1=gh2  ⟹  h1=h2gh_1 = gh_2 \implies h_1 = h_2 (left-multiply by g−1g^{-1}). Hence ∣gH∣=∣H∣|gH| = |H| for every gg.

Step 4 — Count. By Steps 1–2, GG is the disjoint union of exactly [G:H][G:H] left cosets; by Step 3 each has ∣H∣|H| elements. Therefore

∣G∣=[G:H]⋅∣H∣,|G| = [G:H]\cdot|H|,

which is equation [8]. Since [G:H][G:H] is a positive integer, ∣H∣∣∣G∣|H| \mid |G|. ■\blacksquare

∎
⚠️ Common mistake

Lagrange's Theorem is a one-way statement: it says ∣H∣∣∣G∣|H| \mid |G|, but it does not guarantee that for every divisor dd of ∣G∣|G| there exists a subgroup of order dd. The converse fails (see the counterexample below). Partial converses exist — Cauchy's Theorem (a subgroup of prime order pp exists whenever p∣∣G∣p \mid |G|) and the Sylow Theorems for prime-power divisors.

mathematician · Joseph-Louis Lagrange | 1736–1813

Lagrange, an Italian-French mathematician of immense breadth, never worked with the abstract group concept — it did not exist in his lifetime. In his 1770–71 study of the solvability of polynomial equations (Réflexions sur la résolution algébrique des équations), he examined how the roots of an equation are permuted and how many distinct values a rational function of the roots can take. The number of such values, he observed, divides n!n! — the seed of what we now call "Lagrange's Theorem." The general group-theoretic statement was crystallized only decades later by Galois, Cauchy, and Jordan. Lagrange's name attached to the theorem honors this originating insight even though the modern framing is anachronistic.

Building Intuition

🧠 Intuition

Think of a group as the full set of moves you can make on some symmetric object — say all the ways to reposition a square so it lands on itself (the dihedral group). A subgroup is a self-consistent subset of those moves: for instance, "only rotations." Now translate the rotation subgroup by a single reflection: you get the coset of all rotations-followed-by-that-reflection. There are exactly two cosets here — pure rotations and rotation+reflection — each containing the same number of moves. The group splits into a clean stack of identical layers. The deep point: a subgroup imposes a grid on the group. Picking gHgH is like asking "which layer am I in?" Lagrange's count is just "number of layers ×\times layer thickness = total." This is why ∣H∣|H| must divide ∣G∣|G| — you cannot tile a floor with identical tiles unless the tile area divides the floor area.

:::svg[Cosets of a subgroup H partition the group G into equal-sized, disjoint blocks; here |G|=12, |H|=3, index [G:H]=4] G (|G| = 12) = H ⊔ g₂H ⊔ g₃H ⊔ g₄H H = eH e h₁ h₂ g₂H g₃H g₄H 4 cosets × 3 elements each = 12 = |G|. Each block: |gH| = |H| = 3.

Worked Examples

ExampleThe integers mod 12 and a subgroup

Given: G=(Z12,+)G = (\mathbb{Z}_{12}, +), the integers {0,1,…,11}\{0,1,\dots,11\} under addition mod 12, with ∣G∣=12|G| = 12. Let H=⟨4⟩={0,4,8}H = \langle 4 \rangle = \{0, 4, 8\}.

Step 1 — Verify HH is a subgroup. Check HH is closed and contains inverses: 4+8=12≡04+8 = 12 \equiv 0, 4+4=84+4 = 8, 8+8=16≡48+8 = 16 \equiv 4, inverse of 44 is 88, inverse of 88 is 44, inverse of 00 is 00. So H≤GH \leq G with ∣H∣=3|H| = 3.

Step 2 — Form the (left = right, since abelian) cosets. Using additive notation g+Hg + H:

  • 0+H={0,4,8}0 + H = \{0,4,8\}
  • 1+H={1,5,9}1 + H = \{1,5,9\}
  • 2+H={2,6,10}2 + H = \{2,6,10\}
  • 3+H={3,7,11}3 + H = \{3,7,11\}
  • 4+H={4,8,0}=0+H4 + H = \{4,8,0\} = 0+H (repeat — stop)

Step 3 — Count cosets. There are 44 distinct cosets, so [G:H]=4[G:H] = 4.

Step 4 — Verify Lagrange. ∣G∣=[G:H]⋅∣H∣=4×3=12.|G| = [G:H]\cdot|H| = 4 \times 3 = 12. ✓

 [G:H]=4,∣H∣=3,4⋅3=12=∣G∣ \boxed{\,[G:H] = 4,\qquad |H| = 3,\qquad 4 \cdot 3 = 12 = |G|\,}

(All quantities dimensionless — counts of elements.)

ExampleCosets of rotations inside the dihedral group D4D_4

Given: G=D4G = D_4, the symmetry group of the square, with ∣G∣=8|G| = 8. Elements: rotations {e,r,r2,r3}\{e, r, r^2, r^3\} (by 0°,90°,180°,270°0°,90°,180°,270°) and reflections {s,sr,sr2,sr3}\{s, sr, sr^2, sr^3\}. Let H=⟨r⟩={e,r,r2,r3}H = \langle r \rangle = \{e, r, r^2, r^3\}, the rotation subgroup, ∣H∣=4|H| = 4.

Step 1 — Left cosets. Compute gHgH for representatives:

  • eH={e,r,r2,r3}eH = \{e, r, r^2, r^3\} (all rotations)
  • sH={s,sr,sr2,sr3}sH = \{s, sr, sr^2, sr^3\} (all reflections)

Step 2 — Are there others? Any rotation rkr^k gives rkH=Hr^k H = H. Any reflection gg gives gH=sHgH = sH. So exactly two cosets.

Step 3 — Index and Lagrange. [G:H]=2[G:H] = 2, hence ∣G∣=2×4=8|G| = 2 \times 4 = 8. ✓

Step 4 — Bonus observation. Because the index is 22, HH is automatically a normal subgroup (left cosets == right cosets), and the quotient G/H≅Z2G/H \cong \mathbb{Z}_2 records "rotation vs. reflection" parity.

 [D4:⟨r⟩]=2,∣⟨r⟩∣=4,2⋅4=8=∣D4∣ \boxed{\,[D_4 : \langle r\rangle] = 2,\qquad |\langle r\rangle| = 4,\qquad 2\cdot 4 = 8 = |D_4|\,}

Common Misconceptions

⚠️ Common mistake

Cosets are usually not subgroups. The coset gHgH contains the identity ee if and only if g∈Hg \in H, in which case gH=HgH = H itself. For g∉Hg \notin H, the coset gHgH has no identity element and is therefore not a group. Treating gHgH as a subgroup is a frequent and fatal error.

Left cosets ≠ right cosets in general. gHgH and HgHg coincide for all gg precisely when HH is normal. In a non-abelian group with a non-normal subgroup, the left and right partitions differ, even though both have the same number of blocks [G:H][G:H].

CounterexampleThe converse of Lagrange fails

Lagrange says every subgroup's order divides ∣G∣|G|. The converse — "for every divisor dd of ∣G∣|G| there is a subgroup of order dd" — is false. Take G=A4G = A_4, the alternating group on 44 symbols, with ∣A4∣=12|A_4| = 12. The divisor d=6d = 6 divides 1212, yet A4A_4 has no subgroup of order 66. Why: A subgroup HH of order 66 would have index 22, hence be normal, and G/H≅Z2G/H \cong \mathbb{Z}_2. Then for every gg, g2∈Hg^2 \in H. But A4A_4 contains the eight 33-cycles, each of order 33; for a 33-cycle σ\sigma, σ=σ4=(σ2)2∈H\sigma = \sigma^4 = (\sigma^2)^2 \in H, so all eight 33-cycles would lie in HH. Together with ee that already exceeds 66 elements — contradiction. Hence no subgroup of order 66 exists.

Connections

connection

Cosets are the engine behind the most important constructions in algebra. When a subgroup is normal, its cosets themselves form a group under (aH)(bH)=(ab)H(aH)(bH) = (ab)H — the quotient group G/HG/H — which feeds directly into the Isomorphism Theorems and the study of Normal Subgroups and Quotient Groups. Lagrange's element-order corollary [9], applied to G=(Z/nZ)×G = (\mathbb{Z}/n\mathbb{Z})^\times, yields Euler's Theorem and Fermat's Little Theorem in number theory. The index and coset machinery generalizes to Group Actions and the Orbit-Stabilizer Theorem, where orbits play the role of cosets of stabilizers. Cyclic subgroups ⟨a⟩\langle a \rangle connect to Cyclic Groups and Generators, and the whole apparatus extends to Sylow Theorems (partial converses of Lagrange).

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1770–1771 — Lagrange studies permutations of roots of polynomials and observes that the number of values of a symmetric function divides n!n! — the proto-form of Lagrange's Theorem.
- 1799 — Ruffini attempts to prove the unsolvability of the quintic, implicitly using permutation-group ideas and subgroup structure.
- 1815 — Cauchy publishes systematic work on permutations and "substitutions," introducing cycle notation and proving early structural results.
- 1830–1832 — Évariste Galois introduces the term groupe, normal subgroups, and the connection between solvability of equations and group structure — the conceptual birth of group theory. He dies in a duel at 20; his work is published posthumously in 1846.
- 1854 — Arthur Cayley gives the first abstract definition of a finite group via multiplication tables ("On the theory of groups, as depending on the symbolic equation θn=1\theta^n = 1").
- 1870 — Camille Jordan publishes Traité des substitutions, the first comprehensive treatise, consolidating Galois theory and proving deep results about permutation groups.
- 1872 — Ludwig Sylow proves the Sylow Theorems, the most powerful partial converses to Lagrange's Theorem.
- 1882 — Walther von Dyck gives the modern abstract axiomatic definition of a group, including infinite groups, freeing the concept from permutations entirely.
- 1897 — William Burnside publishes Theory of Groups of Finite Order, the first English-language treatise, shaping 20th-century finite group theory.

Subtleties & Limits

open-problem

While the basic theory is complete, several deep threads radiate from these foundations. The converse-of-Lagrange question — which divisors of ∣G∣|G| are actually orders of subgroups — has no simple answer; the full picture requires the Sylow theorems, Hall subgroups (which exist for all "divisor-coprime" orders only in solvable groups, a theorem of Philip Hall), and detailed structure theory. The Classification of Finite Simple Groups (completed ~2004, spanning ~10,000+ journal pages) is the monumental endpoint of the program begun with Lagrange and Galois: it lists the "atoms" from which all finite groups are built via quotients and extensions. Open frontiers include the study of coset geometries and buildings (Tits), efficient algorithms for the coset enumeration problem (Todd–Coxeter, undecidable in full generality for infinite presentations), and quantitative questions about subgroup growth in infinite groups.

See Also

Cyclic Groups and Generators · Normal Subgroups and Quotient Groups · Sylow Theorems · Group Actions and the Orbit-Stabilizer Theorem · Euler's Theorem and Fermat's Little Theorem · Permutations and Symmetric Groups · Isomorphism Theorems