Algebraic Structures
Algebraic Structures, Sets, Functions, and Modular Arithmetic
Algebraic structures—also called abstract algebra or modern algebra—study systems made from sets and operations. Instead of focusing only on particular calculations, abstract algebra asks a broader question:
What properties do different mathematical systems share, and what conclusions follow from those shared properties?
For example, the integers, vectors, matrices, and modular numbers may look very different. However, some of them share properties such as associativity, identity elements, and inverses. Abstract algebra identifies these common patterns and organizes them into structures such as groups, rings, and fields.
The subject begins with familiar number systems and operations, then gradually generalizes their properties.
1. The Basic Properties of Operations
Binary operations and closure
A binary operation combines two elements of a set and produces another element of that same set. The word “binary” refers to the fact that two inputs are involved.
For a set S, a binary operation takes an ordered pair (a,b) of elements of S and returns an element of S.
Symbolically, a binary operation can be viewed as a function
∗:S×S→S.The notation S×S represents the Cartesian product of S with itself: the set of all ordered pairs (a,b) where both a and b belong to S.
The requirement that the output also belongs to S is called closure. Thus, if ∗ is a binary operation on S, then for every a,b∈S,
a∗b∈S.Closure means that the operation never takes the calculation outside the set.
For example, the natural numbers are closed under addition because adding two natural numbers always produces another natural number:
3+7=10.However, the natural numbers are not closed under subtraction. For example,
7−11=−4,and −4 is not a natural number.
In the terminology used here, calling something a binary operation on a set automatically includes the condition of closure.
Commutativity
An operation is commutative if the order of the two inputs does not affect the result.
For addition, commutativity means
a+b=b+a.For multiplication, it means
ab=ba.For example,
4+9=9+4and
3⋅8=8⋅3.Not every operation is commutative. Matrix multiplication, for example, generally depends on the order of multiplication. In general,
AB=BA.This distinction becomes important when studying algebraic systems whose operations do not behave like ordinary arithmetic.
Associativity
An operation is associative if the grouping of the elements does not affect the result.
For addition, associativity means
(a+b)+c=a+(b+c).For multiplication, it means
(ab)c=a(bc).The parentheses indicate which operation is performed first. Associativity says that either grouping produces the same answer.
For example,
(2+3)+4=2+(3+4)=9.Associativity is different from commutativity:
- Commutativity changes the order: a+b versus b+a.
- Associativity changes the grouping: (a+b)+c versus a+(b+c).
Identity elements
An identity element is an element that leaves every other element unchanged under an operation.
For addition, an element e is an additive identity if
e+a=a+e=afor every element a in the set.
For ordinary numbers, the additive identity is 0 because
0+a=a+0=a.For multiplication, the multiplicative identity is 1 because
1a=a1=a.Vector spaces also have an additive identity: the zero vector, usually written 0. It satisfies
0+v=v+0=v.The identity must belong to the set being studied. This detail matters for the natural numbers if the natural numbers are defined as
N={1,2,3,4,…}.Under this convention, N does not contain 0, so it has no additive identity.
Inverses
An inverse reverses the effect of an element with respect to an operation.
For addition, the additive inverse of a is an element −a such that
a+(−a)=0.For example, the additive inverse of 7 is −7 because
7+(−7)=0.For a vector v, the additive inverse is −v, and
v+(−v)=0.If
v=(23),then
−v=(−2−3).An inverse can exist only if the required inverse is in the set. For example, the set {0,1,2,3,…} contains 3 but not −3, so 3 does not have an additive inverse within that set.
An algebraic structure is understood by identifying which operations and properties it possesses: closure, associativity, commutativity, identity elements, and inverses.
Think About It
Why does the set of nonnegative integers have an additive identity but fail to have additive inverses for all of its elements?
2. Familiar Number Systems as Algebraic Structures
Beginning with familiar number systems helps reveal how algebraic structures are built.
The natural numbers
Using the convention in the lesson, the natural numbers are
N={1,2,3,4,…}.This is an infinite set.
Under addition, the natural numbers have these properties:
- They are closed under addition.
- Addition is commutative.
- Addition is associative.
- They do not have an additive identity because 0∈/N.
- They do not have additive inverses for their elements.
For example, 5 has no additive inverse in N because its additive inverse would be −5, which is not in N.
Under multiplication, the natural numbers are also closed, commutative, and associative. Their multiplicative identity is 1, which belongs to N.
Under subtraction, however, the natural numbers are not closed, since subtracting a larger natural number from a smaller one can produce a negative number.
The nonnegative integers
If zero is added to the natural numbers, the resulting set is
{0,1,2,3,…}.This set has an additive identity, because
0+n=nfor every element n in the set.
However, it still does not contain additive inverses for positive numbers. The additive inverse of 4 is −4, which is absent from the set.
Adding zero therefore creates an identity element but does not yet create a complete additive group.
The integers
The set of integers is denoted by
Z={…,−3,−2,−1,0,1,2,3,…}.It contains:
- The positive counting numbers
- Zero
- The negative counting numbers
The negative integers provide the additive inverses of the positive integers.
Under addition, the integers have all of the following properties:
- Closure: If a,b∈Z, then a+b∈Z.
- Associativity: (a+b)+c=a+(b+c).
- Identity: 0+a=a.
- Additive inverses: Every integer a has an inverse −a.
- Commutativity: a+b=b+a.
Therefore, the integers form a group under addition. This is the first major example of a group.
The notation “under addition” is essential. A set can have one algebraic structure under one operation and a different structure under another operation.
The rational numbers
The rational numbers are denoted by
Q.They consist of numbers that can be represented as fractions
ba,where a,b∈Z and b=0.
The denominator cannot be zero because division by zero is not defined.
Examples of rational numbers include
32,−47,5=15.Different fractions can represent the same rational number. For example,
64=32.Thus, fractions should be understood as representations of rational numbers rather than as completely different numbers in every case.
The rationals are closed under addition. Adding two rational numbers produces another rational number:
ba+dc=bdad+bc.Since integers are closed under addition and multiplication, and since bd=0, the result is rational.
The rational numbers also have:
- Associative addition
- Additive identity 0
- Additive inverse −ba for every ba
Therefore, Q is a group under addition.
The real numbers
The real numbers are denoted by
R.They include the familiar numbers used in ordinary measurement and calculation, including both rational and irrational numbers.
Examples of irrational real numbers include numbers such as
2and other nonterminating, nonrepeating decimals.
Under addition, the real numbers form a group:
- The sum of two real numbers is real.
- Addition is associative.
- The identity is 0.
- Every real number x has additive inverse −x.
The complex numbers
The complex numbers are denoted by
C.A complex number has the form
a+bi,where a,b∈R and i is defined by
i2=−1.The number a is called the real part, while b is the coefficient of the imaginary part.
To add complex numbers, the real parts are added together and the coefficients of i are added together:
(a+bi)+(c+di)=(a+c)+(b+d)i.For example,
(4+3i)+(−7+2i)=(4−7)+(3+2)i=−3+5i.The complex numbers form a group under addition. Their additive identity is 0, and the additive inverse of a+bi is
−(a+bi)=−a−bi.Complex numbers appear in areas including differential equations and quantum mechanics. Their importance illustrates a recurring feature of mathematics: structures developed for theoretical reasons can later become useful in unexpected applications.
3. Groups, Rings, Fields, and Related Structures
The properties above are not merely a list of facts about numbers. They are the building blocks used to define broad classes of algebraic systems.
A group is a set equipped with a binary operation satisfying closure, associativity, an identity element, and inverses for all elements. The operation need not be commutative.
If the group operation is also commutative, the group is called an abelian group.
The integers under addition are an example of an abelian group because addition is commutative.
Abstract algebra also studies other structures, including:
- Semigroups, which emphasize an associative operation.
- Monoids, which have an associative operation and an identity.
- Rings, which involve addition and multiplication and a distributive relationship between them.
- Fields, in which addition and multiplication have especially strong properties, including multiplicative inverses for nonzero elements.
- Integral domains, unique factorization domains, principal ideal domains, and Euclidean domains, which describe increasingly specific kinds of rings.
- Vector spaces, which combine vector addition with scalar multiplication.
- Topological groups, which add topological ideas to group structure.
These structures form a hierarchy. Some are more general, while others impose additional requirements. A more specialized structure satisfies everything required of a more general structure, plus extra conditions.
For example, a group has more structure than a semigroup because it includes an identity and inverses in addition to associativity.
Multiplicative identities and unity
A multiplicative identity is often called unity and is written 1. In a matrix setting, the multiplicative identity is the identity matrix.
A ring may be described as having unity if it contains such a multiplicative identity. A ring without unity lacks that element.
Commutative multiplication
A ring is called commutative when multiplication is commutative:
ab=ba.Matrix multiplication usually is not commutative, so matrices provide an important example of why the order of operations must be treated carefully.
The purpose of abstract algebra is to uncover the common algebraic patterns behind apparently different systems.
Think About It
Why is it useful to describe both vectors and integers using properties such as identity and inverse, even though vectors and integers are different kinds of objects?
4. Applications of Abstract Algebra
Abstract algebra has both theoretical and practical applications.
Factoring polynomials
One important application is polynomial factorization. Later algebraic theory can provide methods for factoring polynomials more effectively than ordinary computational techniques alone.
This may seem like a modest application, but polynomial factorization appears throughout mathematics and other technical fields.
ISBN error detection
ISBN codes are identification numbers used for books. Their structure allows many typing errors to be detected.
The underlying idea uses number-theoretic relationships among the digits. If a digit is entered incorrectly or digits are arranged incorrectly in certain ways, the code may fail its checking rule, signaling that an error occurred.
The checking system does not necessarily detect every possible mistake, but it can detect many common errors.
Cryptography
Number theory and group theory also contribute to cryptography, the study of secure communication.
A cryptographic system transforms information so that an unauthorized person who intercepts it cannot easily understand it. This is important for protecting information such as payment details and personal identity.
One relevant number-theoretic fact is that multiplying two very large prime numbers is easy when the primes are known, but factoring their product can be extremely difficult when the original primes are unknown. This difference between multiplication and factorization helps support certain cryptographic methods.
Unexpected usefulness of mathematics
Mathematical structures often become useful in areas that were not anticipated when the structures were first developed.
Complex numbers, for example, were originally connected to solving algebraic equations, but they later became important in physics. Number theory was once often viewed as pure mathematics, yet it now supports cryptography and secure Internet transactions.
This suggests a powerful general observation:
Mathematical systems that are especially rich and beautiful often turn out to be especially useful.
The usefulness may not be obvious at the time a theory is created. Exploring mathematical structures can therefore have value even before a practical application is known.
5. Modular Arithmetic
The clock analogy
Modular arithmetic is sometimes called clock arithmetic because it behaves like the hours on a clock.
On a twelve-hour clock, moving forward twelve hours returns to the same displayed hour. For example, starting at 9 and moving forward five hours gives 2:
9+5≡2(mod12).The symbol ≡ means “is congruent to” in the specified modulus.
In modular arithmetic, numbers that differ by a multiple of the modulus are treated as equivalent. For modulus 12,
1, 13, 25, 37,…all represent the same position because each differs from the others by a multiple of 12.
Thus,
13≡1(mod12).The modulus determines how many positions the clock has before it repeats.
Computing with remainders
To calculate modulo n, one may divide by n and keep the remainder.
For example, modulo 4,
2+2=4.The remainder when 4 is divided by 4 is 0, so
2+2≡0(mod4).Similarly,
3+2=5,and the remainder when 5 is divided by 4 is 1, so
3+2≡1(mod4).Also,
3+3=6,and the remainder when 6 is divided by 4 is 2, so
3+3≡2(mod4).The statement 2+2≡0(mod4) does not contradict ordinary arithmetic. It means that the two numbers occupy the same position when numbers are organized in cycles of length 4.
The set Zn
For a positive integer n, define
Zn={0,1,2,…,n−1}.This set has exactly n elements. For example,
Z4={0,1,2,3}and
Z10={0,1,2,…,9}.The number n itself is not included in Zn because it is congruent to 0 modulo n:
n≡0(modn).Addition in Zn is defined by adding normally and then taking the remainder modulo n.
For example, in Z4,
3+2≡1(mod4).This operation is closed because the answer is always represented by one of the elements 0,1,…,n−1.
Identities and inverses in modular arithmetic
The additive identity in Zn is 0:
0+a≡a(modn).Every element has an additive inverse, meaning another element that adds to 0 modulo n.
In Z4:
- The inverse of 0 is 0.
- The inverse of 1 is 3, because 1+3=4≡0(mod4).
- The inverse of 2 is 2, because 2+2=4≡0(mod4).
- The inverse of 3 is 1.
The notation −1≡3(mod4) is valid because −1 and 3 differ by 4.
An element can have many integer representatives but only one representative within the standard set Zn. For example, all of the following represent the same modular element modulo 12:
1, 13, 25, −11.There is no conflict in saying that 7 and −5 are both additive inverses of 5 as ordinary integers modulo 12, because they represent the same element of the modular system:
7≡−5(mod12).Other modular systems
The modulus does not have to be 12. Examples include:
- Modulo 10, which has positions 0 through 9.
- Modulo 7, which can model a repeating seven-day cycle.
- Modulo 2, which has only two classes: even and odd.
In modulo 2,
Z2={0,1}.Every even integer is congruent to 0, and every odd integer is congruent to 1.
Modular arithmetic is therefore useful for any situation involving repetition or cycles.
Formal definition of a binary operation on Zn
The Cartesian product of Zn with itself is
Zn×Zn={(x,y):x∈Zn and y∈Zn}.The notation means “the set of all ordered pairs (x,y) such that x and y are elements of Zn.”
A binary operation on Zn is a function
∗:Zn×Zn→Zn.Its inputs are ordered pairs of elements from Zn, and its outputs are elements of Zn.
For modular addition, the operation is usually written with the familiar plus symbol:
+:Zn×Zn→Zn.The same symbol is being used both for the operation itself and for ordinary addition followed by reduction modulo n. This is an example of abuse of notation. It is acceptable as long as the context makes the intended meaning clear.
Under modular addition, Zn forms a group. Addition is closed, associative, and commutative; 0 is the identity; and every element has an additive inverse.
Think About It
Why can 13 and 1 be treated as the same element in Z12 but as different numbers in the ordinary integer system?
6. Sets and Set Operations
Abstract algebra relies heavily on set language. A set is a collection of objects, called its elements.
A set may contain numbers, words, people, vectors, or other mathematical objects.
The empty set
The empty set is the set containing no elements. It can be written as
∅or
{}.The empty set is not the number 0. The number 0 is an object, while ∅ is a set containing no objects.
Subsets
A set A is a subset of a set B if every element of A is also an element of B.
The notation is
A⊆B.Formally,
A⊆B⟺∀x(x∈A⇒x∈B).This reads: A is a subset of B if, for every element x, membership in A implies membership in B.
A subset may be smaller than the original set, but it may also be equal to it. Thus,
A⊆Ais always true.
To prove that A⊆B, the standard method is:
- Choose an arbitrary element x∈A.
- Show that this same element satisfies x∈B.
- Conclude that every element of A belongs to B.
The empty set is a subset of every set:
∅⊆A.The reason is that there is no element in ∅ that could violate the subset condition. This is an example of a statement being vacuously true.
Equality of sets
Two sets are equal exactly when they contain the same elements.
A standard way to prove set equality is to prove containment in both directions:
A=B⟺A⊆B and B⊆A.This is called double inclusion.
For example, if every element of A belongs to B, and every element of B belongs to A, then neither set contains anything the other lacks, so the sets are equal.
Quantifiers
Two logical symbols are especially useful in set theory.
The symbol
∀means “for all,” and is called the universal quantifier.
The symbol
∃means “there exists,” and is called the existential quantifier.
For example,
∀x∈R,x+0=xmeans that every real number is unchanged when 0 is added to it.
The statement
∃x∈Z such that x+3=0means that there exists an integer satisfying the equation. In this case, x=−3.
Union
The union of A and B, written
A∪B,contains all elements that belong to A, to B, or to both.
Formally,
A∪B={x:x∈A or x∈B}.The “or” here is inclusive: an element may belong to both sets.
For example, if
A={1,2,3}andB={3,4,5},then
A∪B={1,2,3,4,5}.The element 3 appears only once because sets do not count repeated elements.
A generalized union can combine many sets:
α∈Ω⋃Aα.This means the set of all elements that belong to at least one of the sets Aα.
Intersection
The intersection of A and B, written
A∩B,contains exactly the elements that belong to both sets.
Formally,
A∩B={x:x∈A and x∈B}.Using the earlier example,
A∩B={3}.For a family of sets, the generalized intersection is written
α∈Ω⋂Aα.An element belongs to this intersection only if it belongs to every set in the family.
Complements
A universe of discourse, usually denoted by U, is the larger set under consideration. If A⊆U, the complement of A consists of all elements of U that are not in A.
The complement may be written as
Acor
U∖A.Formally,
Ac={x∈U:x∈/A}.The universe is important because a complement depends on what objects are being considered. The complement of “even integers” within the integers differs from the complement of “even integers” within the natural numbers.
7. Functions
A function is a rule that assigns each element of a domain exactly one output in a codomain.
A function may be written
f:A→B.Here:
- A is the domain.
- B is the codomain.
- f(a) is the unique output assigned to a.
The phrase “exactly one” is crucial. A function cannot assign two different outputs to the same input.
The output values that actually occur are called the image of the function. The image is a subset of the codomain:
Im(f)⊆B.The image does not necessarily equal the entire codomain.
Onto functions
A function is onto, or surjective, if every element of the codomain is the image of at least one domain element.
Formally, f:A→B is onto if
∀b∈B, ∃a∈A such that f(a)=b.Thus,
Im(f)=B.A function can be a valid function without being onto. Some elements of the codomain may never be reached.
One-to-one functions
A function is one-to-one, or injective, if different inputs always produce different outputs.
Formally,
f(a1)=f(a2)⇒a1=a2.Equivalently, if a1=a2, then
f(a1)=f(a2).Injectivity prevents two distinct domain elements from being assigned to the same output.
Bijections and inverses
A function that is both one-to-one and onto is called a bijection.
A bijection pairs each element of the domain with exactly one element of the codomain, and every codomain element is paired with exactly one domain element.
Because of this perfect pairing, a bijection has an inverse function. The inverse reverses the assignment:
f−1(b)=awhenever
f(a)=b.The inverse exists as a function because injectivity ensures that an output b comes from no more than one input, while surjectivity ensures that every b comes from at least one input.
A function is a precise assignment rule: every domain element receives exactly one output, while injectivity and surjectivity describe how completely and uniquely the codomain is reached.
Think About It
Why are both injectivity and surjectivity needed for a function to have an inverse that is itself a function?
Comprehensive Review
Abstract algebra studies sets equipped with operations and focuses on the properties those operations satisfy.
The central properties are:
- Closure: operating on elements of a set produces another element of the same set.
- Commutativity: changing the order does not change the result.
- Associativity: changing the grouping does not change the result.
- Identity: a special element leaves every element unchanged.
- Inverse: a special element reverses another element under the operation.
These properties can be observed in familiar number systems. The natural numbers are closed under addition and multiplication but lack an additive identity under the convention that excludes zero. Adding zero creates an additive identity but not additive inverses. The integers include all additive inverses and therefore form a group under addition. The rational, real, and complex numbers also form groups under addition.
Modular arithmetic creates finite cyclic systems in which numbers differing by multiples of a modulus are treated as equivalent. The set Zn contains the standard representatives 0 through n−1, and modular addition gives it a group structure.
Sets provide the language for describing algebraic systems. Subsets are proved using universal statements, set equality is established through double inclusion, and union, intersection, and complement describe ways of combining or restricting sets.
Functions provide the language for describing operations formally. A binary operation is a function from S×S to S. General functions have domains, codomains, and images. Injective functions preserve uniqueness of inputs, surjective functions reach every codomain element, and bijections have both properties and therefore possess inverse functions.
The unifying goal is to recognize that different mathematical objects can obey the same structural rules. Once those shared rules are identified, theorems proved for one example can be applied to every other system with the same structure.

Ask anything
We've read this whole study set, so questions about it get the best answers.