The full transformation monoid consists of every self-map of , with function composition as its binary operation. For , there are four functions: the identity function , the swap , and the constant functions . Their composition order matters: , whereas . Thus associativity does not imply commutativity.
Figure 1. . The arrow diagrams show each function. The Cayley table reads row , column as , applying first. Only and have inverse elements. The constant functions lose information and satisfy idempotence. Details.
Only and are bijections, and their inverse elements are themselves. They form a two-element group within this monoid. The constant functions instead satisfy and , so they are idempotent elements of a semigroup. Such irreversible transformations explain why the monoid setting is useful even when a group would be too restrictive.
Group Created 2026-09-24 Updated 2026-10-14
A group packages reversible operations together with a rule for composing them. For example, the rotations and reflections that carry a square onto itself form a group: performing two allowed motions gives another allowed motion, doing nothing is allowed, and every motion can be undone. The elements are the motions themselves, rather than the vertices they move. Labels in the figure track those vertices; they are markers, rather than extra decorations that the motions must preserve.
Figure 1.
Square symmetries composed in opposite orders
. The rotation is counterclockwise through , and the reflection is in the vertical axis. Products act rightmost first: . The red vertex starts at and ends at under , but at under . Both motions preserve the unmarked square, while their permutations of its vertices differ. Details.
Precisely, a group is a set equipped with a binary operation , written , satisfying the group axioms:
The group operation need not be ordinary numerical multiplication. With addition as the operation, the identity element is usually written and the inverse element of is written . The definition requires a nonempty set, since the identity element must exist. See McKernan's MIT lecture 1, Definition 1.1 for the axioms.
Why insist on associativity? It makes a string of operations unambiguous without specifying parentheses. For function composition, both and send to . This fixes the order of execution while allowing regrouping. Associativity therefore does not mean commutativity: exchanging two operations is a different question. Ordinary subtraction fails associativity, since whereas ; it cannot serve as a group operation on the integers.
An inverse element makes reversal exact and equations solvable. In any group, has the unique solution , since . Similarly, has solution . The side matters in a non-abelian group. Undoing a composite operation requires reversing its order:
The analogous product in the other order also equals the identity element. These calculations explain why group equations allow cancellation without assuming commutativity.
For the square with vertices , choose the rotation and reflection
Throughout this example, multiplication is function composition with the rightmost operation performed first: . Our notation means the dihedral group of the square, with eight elements; the alternative convention calls the same group . Its elements are
Here is clockwise rotation through , while each reflection is its own inverse element. There are exactly eight motions: the image of one vertex has four choices, and the image of an adjacent vertex has two choices; together these determine the motion. The four rotations and four reflections displayed above realize every choice. The vertex permutations give a concrete group action. The general polygon construction is discussed in Group Theory (v4.01) by James S. Milne (section 1.17).
Computing the two products rather than merely comparing their names gives
Thus but , proving . In fact is reflection in the line , whereas is reflection in . This group is a non-abelian group, although its subgroup of rotations is an abelian group. The relation expresses a geometric fact: conjugation of a counterclockwise rotation by a reflection turns it clockwise.
A contrasting example is the cyclic group under addition in modular arithmetic. Using representatives , the sum is modulo , and the inverse element of is . Repeated addition of runs through . The correspondence identifies this cyclic group with the rotation subgroup of : . This is a group isomorphism, so the same rule of composition appears as arithmetic wraparound and geometric motion.
By comparison, is an infinite cyclic group. It has identity element , inverse element for each integer , and a generator of a group , but no wraparound: , and no positive number of copies of sums to . Both examples are abelian groups. The nonnegative integers under addition have closure, associativity, and an identity element, but lack an inverse element for . Reversibility is precisely what fails.
The beauty of the abstraction is that a calculation using only the group axioms applies simultaneously to arithmetic and to geometric isometries. To make that connection universal, let each act on by the translation in a group . Each is a bijection, with inverse , and . Distinct elements give distinct maps because . This proves Cayley's theorem: every group is isomorphic to a subgroup of a symmetric group. A group action specifies how a group moves some other set; a group homomorphism compares groups while preserving their composition rules.
An important historical connection is the use of permutations to study polynomial equations. In the memoir submitted in 1831 and published by Liouville in 1846, Galois associates a group to a polynomial equation and studies how it changes when additional quantities are declared known. Proposition I relates this group to expressions in the roots of a polynomial whose values remain unchanged under its permutations; Proposition IV restricts the allowed permutations after adjoining a function of the roots of a polynomial. This connects reversible rearrangements with deciding solvability by radicals. See Galois's original memoir, pp. 417–433, especially Propositions I and IV; Liouville's introduction, p. 382.
Homomorphism 2026-10-13
A homomorphism is a map between algebraic structures preserving their specified operations. For a single binary operation, this means , where the source and target may use different operation symbols. A group homomorphism preserves the group operation; a ring homomorphism preserves addition and multiplication, with the identity convention specified; a module homomorphism preserves addition and scalar multiplication.
Reduction modulo is a ring homomorphism : adding or multiplying first and then reducing gives the same residue as reducing first and then operating. For example, , while the reduced operands give . This lets a complicated integer calculation be projected into simpler finite arithmetic. It also explains why a polynomial equation over the integers imposes necessary modular arithmetic conditions on any integer solution.
A homomorphism can lose information: and have the same image under that reduction. An isomorphism loses none of the structure because it has an operation-preserving inverse. Preservation of the operation, rather than preservation of arbitrary labels or sizes, is the essential condition.
Idempotence 2026-10-14
For a binary operation, idempotence means repeating an input does not change it: . An associative commutative idempotent operation defines a join order by .
Identity element Created 2026-09-24 Updated 2026-10-14
An identity element for a binary operation satisfies for every element of the underlying set. It is a two-sided identity: merely satisfying one of the two equations is insufficient. It is unique when it exists, since two candidates satisfy . This uniqueness does not require the associative property.
Ring Created 2026-09-24 Updated 2026-10-14
A ring is a set with two binary operations, addition and multiplication, satisfying three requirements. Under addition, is an abelian group: there is a zero, every element has an inverse element, and grouping or exchanging summands does not change the result. Multiplication is associative and has an identity element , so and . Finally, both versions of the distributive property hold:
Here every ring is unital, but the zero ring, with , is allowed. Commutativity of multiplication is an additional condition defining a commutative ring. These conventions agree with [ref].
The integers form a ring with their usual operations. The polynomial ring is another: addition combines coefficients, while multiplication uses the distributive property. For example,
The same rules justify symbolic calculations in both rings; this is why one definition can organize apparently different kinds of arithmetic. In every ring, , and . The first identity follows by distributing and subtracting ; the second follows by distributing . Thus familiar sign rules are consequences of the structure.
Order still matters in some rings. In the matrix ring , take
Then matrix multiplication gives
Nevertheless, matrix multiplication is associative, distributes over addition, and has the identity matrix as its identity element. This is a valid ring. On a column vector, applies first and second: swapping coordinates before discarding the second coordinate differs from doing those actions in reverse. The failure of commutativity records a meaningful difference in function composition.
Figure 1.
Two orders of matrix multiplication give different outputs on the same vector
. Details.
Semigroup Created 2026-09-24 Updated 2026-10-14
A semigroup is an algebraic magma whose binary operation has the associative property. Its products can be regrouped while preserving the order of their elements. An identity element and inverse elements are not required.
For example, the positive integers with addition form a semigroup, since and a sum of positive integers is positive. They have no identity element: it would have to be zero, which is outside that set. Nonempty words over an alphabet with concatenation give a noncommutative example without an identity element. Including the empty word instead gives a free monoid.
The usefulness of a semigroup is that an ordered list has one product regardless of its parentheses. This permits replacing a consecutive block by its already computed value. Here the empty set is also allowed as a semigroup; a monoid is necessarily nonempty because it contains an identity element.