This unit is the bridge from set language to almost everything that follows. Functions, relations, and quotient constructions all start with the same idea: take a product set, then specify which pairs are allowed.
The point is not just to know the vocabulary. It is to understand what kind of statement each definition is making, because later chapters will build , , , orders, and classes from exactly this language.
Functions are special relations
Definition
A function
A function from to is a subset of such that every is paired with exactly one .
This is the set-theoretic definition used throughout the local notes.
The same information can be read in several equivalent ways:
- is the domain, the set of allowed inputs.
- is the target, the set of possible outputs.
- The graph of
fis the set of pairs(x, y)with . - The image of a set is the set of outputs reached by that set.
- The preimage of a set is the set of inputs that land there.
Common mistake
A function must not send one input to two outputs
A relation may connect one input to many outputs. A function cannot. Every input must have exactly one output.
Common mistake
The domain may depend on context
The formula 1/x is not a single function unless you specify a domain. It can
be a function on , on , or on another
domain where division by zero is excluded.
Reading a function carefully
Worked example
The square function has repeated outputs
Take the rule .
Then and , so different inputs may share the same output. That is allowed.
What is not allowed is a single input having two different outputs.
For example, the relation “” on is not a function if you
read it as a rule from x to y, because allows both and
.
Solution
What to remember
Image, preimage, and composition
For a function , the course uses the word image in three related ways:
f(x)is the image of the single inputx.- If , then is the image of the set.
f(X)is the full image off, meaning the actual outputs that appear.
The preimage of a set is
This exists even when f does not have an inverse function.
Composition is defined by
The order matters: means “first f, then g”.
Worked example
Compare image and preimage for
Let be given by , and let
Then
Also,
because every element of maps into .
If we instead take , then
Solution
Why this distinction matters
Injective, surjective, bijective
Definition
Three useful words
- Injective means different inputs never collide.
- Surjective means every target value is hit.
- Bijective means both injective and surjective.
Equivalent formulations are often useful:
fis injective if implies .fis surjective if .fis bijective if every element of the target is hit exactly once.
These words matter because they tell you whether an inverse function can exist.
Theorem
Inverse functions exist exactly for bijections
For a function , an inverse function exists if and only if f is
bijective.
Proof
Why a bijection has an inverse
Worked example
Construct injective and non-injective examples
The function on is injective and surjective, so it is bijective.
The function on is not injective because 1 and have
the same image.
The function on is injective but not surjective onto , because it never reaches nonpositive numbers.
Solution
What to look for first
Common mistake
Do not confuse preimage with inverse function
always makes sense as a preimage. The inverse function only
exists when f is bijective.
Left and right inverses
There is a useful distinction here.
- A left inverse
hsatisfies . - A right inverse
gsatisfies .
These conditions are not the same in general.
Worked example
One map with a left inverse but no right inverse
Let and . Define
This map is injective but not surjective, because δ is never hit.
So it can have a left inverse, but it cannot have a right inverse.
For instance, define by
Then .
Solution
Why the missing output blocks a right inverse
Worked example
One map with a right inverse but no left inverse
Define by
This map is surjective but not injective, so it can have a right inverse but no left inverse.
A right inverse is given by with
Then .
Solution
Why collisions block a left inverse
Relations
Definition
A relation
A relation on a pair of sets and is any subset of .
If , we simply call it a relation on .
We write xRy to mean .
This is the broader notion. A function is just a relation with the extra rule that every input has exactly one output.
For a relation :
- the domain of is the set of
xthat relate to at least oney; - the image or range of is the set of
ythat are hit by at least onex.
Worked example
A relation need not be a function
Let be the set of countries and the set of cities.
The relation “y is a capital city of x” is a relation on .
Whether it is a function depends on the historical period and the country.
The relation on is also a relation. It is not a function
when read from x to y, because one input may have multiple outputs.
Solution
Why the relation language is still useful
Relations on one set
Relations are especially important.
Theorem
Four properties used constantly
A relation on may have these properties:
- Reflexive:
xRxfor every - Symmetric:
xRyimpliesyRx - Antisymmetric: if
xRyandyRx, then - Transitive: if
xRyandyRz, thenxRz
Two special kinds of relations appear everywhere in later chapters:
- a partial order is reflexive, antisymmetric, and transitive;
- an equivalence relation is reflexive, symmetric, and transitive.
The difference between symmetric and antisymmetric is easy to blur:
- symmetric says the arrows go both ways whenever one goes one way;
- antisymmetric says two-way arrows force equality.
Worked example
The divisibility relation is a partial order
On positive integers, write when a divides b.
This relation is reflexive because every number divides itself. It is antisymmetric because if and , then for positive integers. It is transitive because divisibility passes through chains.
So divisibility is a partial order.
Solution
Why this matters
Worked example
A simple equivalence relation
Congruence modulo m is an equivalence relation on .
The idea is that two integers belong to the same class if they have the same
remainder modulo m.
For example, modulo 3 the integers split into three classes:
- numbers congruent to
0 - numbers congruent to
1 - numbers congruent to
2
Those classes partition the whole set.
Equivalence classes and quotient sets
Definition
Equivalence class
Let be an equivalence relation on .
For , the equivalence class of x is
Definition
Quotient set
If is an equivalence relation on , then the set of equivalence classes
is written X / \sim.
Equivalence classes are the reason quotient constructions work. Instead of tracking every representative separately, we package all equivalent representatives into one object.
Theorem
Equivalence classes partition the set
If is an equivalence relation on , then the equivalence classes cover , and any two classes are either equal or disjoint.
Proof
Why the classes do not overlap partially
This is the mechanism behind the later constructions of the integers and the rationals from equivalence classes of pairs.
Common mistakes
Common mistake
Do not treat preimage as inverse function
is always a subset of the domain. It does not require f to be
bijective.
Common mistake
Symmetric is not the same as antisymmetric
is antisymmetric but not symmetric. Equality is both symmetric and antisymmetric, while divisibility is antisymmetric but not symmetric.
Common mistake
A relation can fail to be a function in several ways
It may send one input to many outputs, or it may leave some inputs with no output at all.
Quick checks
Quick check
Is on the real numbers a relation? Is it a function?
First ask whether it is a subset of . Then ask whether every input has exactly one output.
Solution
Answer
Quick check
Is defined when f is not bijective?
Separate preimage notation from inverse-function notation.
Solution
Answer
Quick check
If a relation is reflexive, symmetric, and transitive, what is it called?
Recall the special name for a relation that partitions the set into classes.
Solution
Answer
Why this unit matters later
The rest of the course repeatedly uses these ideas:
- is built using set language and induction.
- and are built from equivalence classes.
- on numbers is a partial order.
- Quotient sets explain why the same object can have many representatives.
If this unit is clear, the later constructions become much easier to read because the notation is no longer doing hidden work.