Back to Course

Functions and Groups

The Fundamentals of Functions

A function is a rule assigning each element in a Domain to a unique element in a Codomain.
Mapping DiagramVisualizes Domain, Codomain, and Range using a two-set mapping diagram.The Fundamentals of FunctionsSet A (Domain)Set B (Codomain)Range (Image)f: A → B
Describes the mapping of elements from the source set to the target set.
=The Domain; set of all possible inputs(set)
=The Codomain; set of all potential outputs(set)
=The Range; the actual set of outputs reached(subset of B)
Domain: The collection of all valid input values (pre-images).
Codomain: The entire set into which the function is defined to map.
Range: The Image of the entire domain, representing the actual outputs used in .

Classification of Mappings

Mappings are categorized as Injective (one-to-one), Surjective (onto), or Bijective based on their element pairings.
Injective (1-1) Surjective (Onto) Bijective (Both) Not Injective
The formal definition of an injective (one-to-one) function.
=Distinct elements of the domain(elements)
=The image of element 'a' under mapping 'f'(output)
Injective: Each input maps to a unique, distinct output. Passed by the Horizontal Line Test.
Surjective: Every element in the codomain is mapped to by at least one element in the domain.
Bijective: A one-to-one correspondence where the function is both injective and surjective.

Binary Operations and Group Axioms

A set with a Binary Operation is a group if it satisfies four essential axioms.
Group AxiomsChecklist graphic defining Closure, Associativity, Identity, and Inverse.G1: Closure∀ a, b ∈ G, a * b ∈ GG2: Associativity(a * b) * c = a * (b * c)G3: Identity∃ e ∈ G s.t. a * e = e * a = aG4: Inverse∀ a ∈ G, ∃ a⁻¹ s.t. a * a⁻¹ = eExample: (ℤ, +) where identity e = 0 and inverse a⁻¹ = -a
The structural conditions for a set to be an algebraic group.
=Closure: result stays in the set(axiom)
=Associativity: $(a * b) * c = a * (b * c)$(axiom)
=Identity: Existence of element 'e'(axiom)
=Inverse: Every element has a partner to reach 'e'(axiom)
Closure: For all .
Associativity: For all , .
Identity: There exists such that .
Inverse: For every , there is such that .
Reversal Law: — the inverse of a product reverses the order.

Abelian Groups and Group Order

An Abelian group satisfies the Commutative law, meaning the order of operation does not change the result.
* a b a b p q q r symmetric = Abelian
Commutativity: The defining feature of Abelian groups. Visualized as symmetry across the main diagonal of a Cayley Table.
Order of a Group: Represented as , this is the total count of elements in the set.
Finite vs Infinite: A Finite Group has a specific integer order, while an Infinite Group (like integers under addition) does not.

Composition and Inverse of Functions

The Composition of two functions and is written as — apply first, then feed the result into .
The output of f becomes the input of g.
=Inner function — applied first
=Outer function — applied to the result of f
Order matters: means apply first, then . Do not confuse with .
Verification: and — composing a function with its inverse gives the identity.
Shorthand: , , and so on.
An Inverse Function reverses the mapping of : if , then . Only Bijective functions have inverses.
Applying f then f⁻¹ (or vice versa) returns the original input.
=The inverse function of f
is not bijective
does not exist as a function
is a linear function
The inverse is always another linear function
Algebraic method: Set , swap and , solve for — this gives .
Domain-Range swap: Domain of = Range of , and Range of = Domain of .
Graphical symmetry: The graph of is the reflection of the graph of across the line .

Algebraic Structure Hierarchy

Algebraic structures build up in layers: a Groupoid gains associativity to become a Semi-group, adds an identity to become a Monoid, and adds inverses to become a Group.
Groupoid: A set closed under a binary operation (closure only).
Semi-group: A groupoid where the operation is also associative.
Monoid: A semi-group that has an identity element .
Group: A monoid where every element has an inverse.
Key non-examples: is a semi-group (no identity 0), is a monoid (identity 1, but most elements lack integer inverses).