Folioby Interconnected
Log InSign Up

Symmetry as algebra: when a square's rotations become a group

Take a square, rotate it, flip it, and treat each motion as something you can multiply. This concrete exercise leads directly to the dihedral group D4 and reveals why abstract algebra grew out of the study of symmetry.

FO
Folio Official
March 1, 2026

Anyone encountering the definition of a group for the first time is entitled to ask: who dreamed up these abstract axioms, and what problem were they trying to solve?

The short answer is symmetry. The concept of a group emerged historically as a way to capture the algebraic structure hidden inside geometric symmetry. To see how this works in the most concrete possible setting, we turn to the humblest object that still has a rich story to tell: a square.

1 Eight ways to move a square

Label the vertices of a square 1,2,3,4. A symmetry of the square is a rigid motion – a rotation or a reflection – that maps the square back onto itself. The vertices may be permuted, but the shape as a whole looks the same before and after. There are exactly eight such motions.

Rotations (counterclockwise):

err2r3​:do nothing (the identity):90° rotation(1→2→3→4→1):180° rotation(1→3, 2→4):270° rotation(1→4→3→2→1)​

Reflections (across a line of symmetry):

srsr2sr3s​:reflection across the vertical axis(1↔2, 3↔4):reflection across a diagonal:reflection across the horizontal axis:reflection across the other diagonal​

The collection of all eight symmetries is denoted D4​ and called the dihedral group of the square.

2 Multiplying symmetries

Given two symmetries, we can perform them in succession and call the result their "product." If we first apply r and then apply s, we write sr (reading right to left, as with function composition).

Here is the crucial observation: the composition of any two of these eight symmetries always produces another one of the eight. The set is closed under composition. Even more, the arithmetic of these compositions reveals surprising structure.

Example 1.
Four successive 90° rotations bring the square full circle, back to the starting position:
r4=e
Reflecting twice through the same axis also returns everything to its original state:
s2=e
A 90° rotation followed by a reflection yields the same result as a different reflection:
sr=r3s

That last equation, sr=r3s, is particularly telling. It says that sr=rs: the order in which you rotate and reflect matters. This is not a minor technicality – it is the central feature. D4​is a non-abelian group. The non-commutativity encodes a genuine geometric phenomenon: rotating a square and then flipping it is not the same as flipping it and then rotating it.

3 WhyD4​is a group

Let us verify that D4​ satisfies all three group axioms.

Associativity. For any three symmetries a, b, c, we have (ab)c=a(bc). This is not something that requires checking case by case; it is an automatic consequence of the fact that composition of functions is always associative. Performing three rigid motions in sequence gives the same outcome regardless of how we mentally group them.

Identity. The "do nothing" motion e serves as the identity element: applying no transformation before or after any symmetry a simply gives a back.

Inverses. Every symmetry can be undone. A 90° rotation is reversed by a 270° rotation, so r−1=r3. Any reflection is its own inverse, since reflecting twice restores the original: s−1=s.

Remark 2.
The existence of inverses is not a coincidence – it reflects a structural fact about symmetry itself. Every symmetry of a geometric object is a bijection from the object to itself, and every bijection has an inverse. Whenever you work with symmetries, inverses come for free. This is precisely why the group axioms are so naturally suited to describing symmetry: they capture exactly the properties that symmetry operations inherently possess.

4 The Cayley table

To describe the algebraic structure of D4​ completely, it suffices to write down the Cayley table (or multiplication table): an 8×8 grid whose entry in row a and column b records the product ab, for all eight elements {e,r,r2,r3,s,rs,r2s,r3s}.

A glance at the completed table reveals a striking regularity:

  • Every row contains each of the eight elements exactly once.

  • Every column contains each of the eight elements exactly once.

An array with this property is called a Latin square in combinatorics. That the Cayley table of a group always forms a Latin square is no coincidence; it is a direct consequence of the cancellation law.

Theorem 3.
The Cayley table of any finite group G is a Latin square: each element of G appears exactly once in every row and every column.
Proof.
Fix an element a∈G and consider the row labeled by a. The entries in this row are {ag∣g∈G}. If two entries coincide, say ag=ag′, then the cancellation law forces g=g′. So the ∣G∣ entries in row a are pairwise distinct. Since all of them belong to G and there are exactly ∣G∣ of them, every element of G appears exactly once. The argument for columns is analogous. □

5 Generators and relations

Remarkably, the entire structure of D4​– all sixty-four entries of its Cayley table – can be reconstructed from just three equations:

r4=e,s2=e,srs−1=r−1

The third relation is equivalent to sr=r−1s=r3s, and it captures a beautifully intuitive geometric fact: conjugating a rotation by a reflection reverses the direction of the rotation. When you look in a mirror, clockwise becomes counterclockwise. The algebraic relation srs−1=r−1 is nothing more than this everyday observation, stated precisely.

Remark 4.
Specifying a group by listing generators and the relations they satisfy is called giving a presentation. For the dihedral group we write
D4​=⟨r,s∣r4=s2=e,srs−1=r−1⟩
Rather than memorizing eight individual elements and their sixty-four pairwise products, we need only two generators – r for a basic rotation, s for a basic reflection – together with three relations that govern how they interact. Everything else follows.

6 Why abstraction pays off

If the symmetries of a single square were all we cared about, listing eight operations and a multiplication table would be perfectly adequate. So why bother introducing the abstract machinery of groups?

Because exactly the same algebraic structure shows up in entirely unrelated contexts.

Example 5.
The following three objects have nothing in common on the surface, yet all three share the same group structure – the cyclic group Z/2Z of order 2:
  • The set {0,1} under addition modulo 2.

  • The set {1,−1} under multiplication.

  • The two symmetries of a line segment: "leave it alone" and "flip it end to end."

Once we abstract away the specific nature of the underlying objects and focus on the algebraic structure, we gain the ability to transfer results between settings. Techniques developed for analyzing the symmetries of a square apply equally well to the classification of crystal structures, to the physics of subatomic particles, and to the design of cryptographic protocols. Proving a theorem in the abstract setting proves it simultaneously for every concrete realization of that structure. This is the fundamental promise of algebra.

7 Takeaway

Groups arise naturally as the collection of all symmetries of a geometric object, and the three group axioms capture exactly the properties that symmetry operations always satisfy. The dihedral group D4​ is small enough to hold in your head yet rich enough to exhibit non-commutativity, Cayley tables, and presentations by generators and relations – the core vocabulary of the subject. If you are beginning abstract algebra, there is no better laboratory than this group of eight.

Group TheoryAlgebraBetween the Lines
FO
Folio Official

Mathematics "between the lines" — exploring the intuition textbooks leave out, written in LaTeX on Folio.

1 followers·107 articles

Share your expertise with the world

Write articles with LaTeX support, build your audience, and earn from your knowledge.

Start Writing — It's Free

More from Folio Official

Folio Official·March 1, 2026

Cosets and quotient groups: the art of controlled forgetting

The quotient group G/N is the first major conceptual hurdle in group theory. By computing small examples by hand -- from clock arithmetic to D4 modulo its center -- we build the intuition for what "dividing" a group really means, and why normality is indispensable.

Group TheoryAlgebraBetween the Lines
1
Folio Official·February 27, 2026

The group axioms: why these three?

Associativity, identity, inverses -- textbooks present these axioms as if they were carved in stone. But why not two? Why not four? By systematically adding and removing axioms, we discover the engineering brilliance behind the definition of a group.

Group TheoryAlgebraBetween the Lines
Folio Official·March 1, 2026

Cosets and Lagrange's Theorem

Beginning with the definition of cosets of a subgroup, we prove Lagrange's theorem --- the assertion that the order of a subgroup divides the order of the group. As applications, we derive Fermat's little theorem and Euler's theorem, and we exhibit the alternating group A_4 as a counterexample to the converse.

Group TheoryAlgebraTextbook
2
Folio Official·March 1, 2026

Composition Series and the Jordan--Hölder Theorem

We introduce normal series and composition series, establishing the framework for decomposing a group into simple factors. The Jordan--Hölder theorem proves the uniqueness of the composition factors, and we develop the theory of solvable groups with its connections to the derived series.

Group TheoryAlgebraTextbook
1