How Mathematics Works

Isomorphism, the Idea of Two Structures With the Same Shape

See how two systems with different contents can behave identically, with worked examples from clocks, logarithms, graphs and a number game.

Key takeaways

  • An isomorphism is a one-to-one pairing between two structures that preserves the operations or relations in both directions.
  • Isomorphic structures can look unrelated while sharing every structural property.
  • Having the same number of elements is necessary for isomorphism but far from enough.
  • To show two structures are not isomorphic, find a structural property that one has and the other lacks.

An isomorphism is a perfect translation between two mathematical structures. It pairs the objects of one with the objects of the other, one for one, so that every relationship or operation in the first is matched exactly in the second.

When such a translation exists, the two structures are called isomorphic. Their members may be numbers in one case and rotations in the other, but any statement about the structure alone that holds in one holds in the other. You only need to solve the problem once.

A first example with rotations

Take the four rotations that leave a square looking unchanged: turns of 0°, 90°, 180° and 270°. Combine two by doing one after the other. A 270° turn followed by a 180° turn totals 450°, which has the same effect as 90°.

Now take the numbers 0, 1, 2 and 3, and add them as on a four-hour clock, keeping the remainder after division by 4. There, 3 + 2 = 1.

Pair a turn of 0° with 0, 90° with 1, 180° with 2 and 270° with 3. Every combination of turns corresponds to the matching sum.

rotations:   270° then 180° = 90°
numbers:     3 + 2 = 1  (remainder of 5 on division by 4)

The two systems are one pattern wearing two costumes. Anything you learn about the clock arithmetic, such as "adding 2 twice returns to the start", translates at once: two half turns return the square to where it began.

What the definition requires

Suppose one set has an operation ∗ and another has an operation ⋄. A function f from the first to the second is an isomorphism if:

  1. f is a bijection: it pairs the elements perfectly, with none left over and none used twice.
  2. f preserves the operation: f(a ∗ b) = f(a) ⋄ f(b) for all a and b.

The second line says that you can combine first and then translate, or translate first and then combine, and get the same result. The first line ensures the translation can be run backward, and the reverse map then preserves the operation too. The needed vocabulary is explained in injective, surjective and bijective functions.

What counts as structure depends on the subject. In algebra it is operations. In graph theory it is which points are joined. For ordered sets it is which element comes before which.

Reading it as a pair of tables

For small systems, you can see an isomorphism by writing out the complete table of results. Here is addition with remainders mod 4.

+ 0 1 2 3
0 0 1 2 3
1 1 2 3 0
2 2 3 0 1
3 3 0 1 2

Replace every 0 with "0°", every 1 with "90°", every 2 with "180°" and every 3 with "270°", in the headings and the body alike. What you get is exactly the table for combining the square's rotations. Isomorphism, for a finite operation, means that one table becomes the other by consistently renaming entries, possibly after reordering rows and columns to match.

The renaming must be consistent. Sending 1 to 180° would fail, because 1 added to itself four times is the first return to 0, while a half turn returns to the start after only two repeats. Sending 1 to 270° works just as well as 90°, which shows that there can be more than one correct translation.

Logarithms, an isomorphism that saved labor

Consider all real numbers under addition, and all positive real numbers under multiplication. These look quite different: one includes negatives and has 0 as its identity element, while the other has identity 1.

Yet the exponential function f(x) = eˣ is a bijection from the first to the second, and

f(a + b) = e^(a + b) = e^a · e^b = f(a) · f(b)
f(0) = 1           identity goes to identity
f(−a) = 1 / f(a)   inverses go to inverses

Its inverse is the natural logarithm, with ln(xy) = ln x + ln y for positive x and y. This turns a multiplication into an addition. Before electronic calculators, people multiplied large numbers by looking up logarithms, adding them and converting back. A slide rule does the same thing by adding lengths. The history is told in logarithms and the slide rule.

Same size, different shape

Two structures with the same number of elements need not be isomorphic. Here is a second system with four elements: the symmetries of a rectangle that is not a square. They are doing nothing, a half turn, a flip left to right and a flip top to bottom.

Each of these, done twice, returns the rectangle to its start. Among the square's rotations, a 90° turn done twice gives a half turn, which is not the start. An isomorphism would have to carry that behavior across, so none exists.

The same split shows up in multiplication of remainders.

System Elements Squares Matches
Multiplication mod 5 1, 2, 3, 4 2² = 4, not 1 Square rotations
Multiplication mod 8 1, 3, 5, 7 3², 5², 7² all give 1 Rectangle symmetries

For the first row, the pairing is explicit: send k to 2ᵏ mod 5. The values for k = 0, 1, 2, 3 are 1, 2, 4, 3. Adding exponents on a four-hour clock matches multiplying the results. These objects are all groups, introduced in group theory as the mathematics of symmetry.

Four systems with four elements, two shapes
Square rotations A quarter turn needs four repeats to return Multiply mod 5 The number 2 needs four repeats to reach 1 Rectangle symmetries Every move undoes itself Multiply mod 8 Every number squares to 1 Square rotations A quarter turn needs four repeats to return Multiply mod 5 The number 2 needs four repeats to reach 1 Rectangle symmetries Every move undoes itself Multiply mod 8 Every number squares to 1

Left and right in each row are isomorphic to each other; the two rows are not.

Isomorphic graphs

A graph is a set of points, called vertices, some pairs of which are joined by edges. Two graphs are isomorphic if their vertices can be paired so that joined pairs correspond to joined pairs. How the picture is drawn does not matter.

Label the corners of a pentagon 0 to 4 and join each i to i + 1, counting mod 5. Then draw a five-pointed star on another set of labels 0 to 4 by joining each i to i + 2. The map f(i) = 2i mod 5 sends the pentagon edge from i to i + 1 to the pair 2i and 2i + 2, which is a star edge. The pentagon and the star are the same graph.

Now compare a single hexagon with two separate triangles. Both have six vertices, six edges and two edges at every vertex. But in the hexagon you can walk from any vertex to any other, and in the triangles you cannot. They are not isomorphic.

Deciding whether two large graphs are isomorphic is a well-known computational question. Practical programs handle many cases quickly, and its exact difficulty in theory remained unsettled as of the mid-2020s.

A game in disguise

Two players take turns choosing numbers from 1 to 9, without repeats. The first to hold three numbers adding to 15 wins.

Arrange the numbers in a magic square:

2  7  6
9  5  1
4  3  8

Every row, column and diagonal adds to 15, and these eight lines are exactly the eight ways to make 15 from three different numbers between 1 and 9. So choosing a number is claiming a square, and winning is completing a line. The game is tic-tac-toe. If you know how to force a draw in one, you can in the other, by translating each move.

This is a common route to a solution: find a familiar structure hiding behind an unfamiliar one, a habit that figures in approaching a new problem.

When the match is only partial

Sometimes a map preserves the operation but loses information. Send each integer to the word "even" or "odd", and combine the words by the familiar rules, such as odd plus odd is even. The rule f(a + b) = f(a) ⋄ f(b) holds for all integers a and b.

This is not an isomorphism, because countless integers share each word. Such operation-preserving maps are called homomorphisms. They are useful precisely because they simplify. To see that 3,517 + 2,946 + 11 cannot equal 6,475, note that odd plus even plus odd is even, while 6,475 is odd.

An isomorphism is the special homomorphism that forgets nothing. For operations like these, a bijective homomorphism is automatically reversible in the required way. In other subjects you must check the reverse direction separately. A map of graphs can pair vertices perfectly and carry every edge to an edge, while the target has extra edges that came from nowhere. That is not an isomorphism, which is why the graph definition demands that joined pairs correspond in both directions.

How to test for isomorphism

To prove two structures isomorphic, you build a map and check it. To prove they are not, you need an invariant: a property any isomorphism must preserve.

  • number of elements
  • whether the operation gives the same result in either order
  • how many elements are their own inverse
  • for graphs, the list of how many edges meet each vertex, and whether the graph is in one piece
  • for ordered sets, whether there is a smallest element

The last one shows that the integers and the natural numbers, which can be paired as sets, are not isomorphic as ordered sets, since the integers have no least member.

Matching invariants do not prove isomorphism. The hexagon and the two triangles agreed on several counts before the connectedness test separated them.

Why mathematicians care

Isomorphism lets mathematics study form apart from material. A theorem proved about "any group with four elements in which one element needs four repeats" applies to rotations, clock arithmetic and every future example.

It also supports classification: listing, up to isomorphism, all structures of a given kind. There are exactly two groups with four elements, the two shapes above. Vector spaces of the same finite dimension over the same field are all isomorphic, which is why a choice of coordinates lets you work with lists of numbers.

Isomorphic is still weaker than identical. A particular isomorphism is a choice, and sometimes there are several. An isomorphism from a structure to itself, such as swapping 1 and 3 in addition mod 4, is called an automorphism, and it records the structure's internal symmetry. The broader idea of declaring different things equivalent is covered in equivalence relations.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 32 articles in How Mathematics Works →

Latest news on this topic