Relations
1. Introduction to Relations
A relation is a mathematical way of describing a connection between elements of two sets. It is defined as a subset of the Cartesian product of two sets.
Ordered Pair
An ordered pair is written as
where:
- is the first element
- is the second element
Order matters.
Example:
Cartesian Product
For two sets
their Cartesian product is
If
then
Relation
A relation from set to set is any subset of the Cartesian product.
Example:
Let
Then
is a relation on .
Domain
The domain is the set of all first elements.
If
then
Codomain
The codomain is the target set.
If
then
Range
The range is the set of second elements that actually appear in the relation.
Example:
Then
2. Representation of Relations
Relations can be represented in three common ways.
A. Set (Roster) Representation
The relation is written as a collection of ordered pairs.
Example:
This is the simplest representation.
B. Matrix Representation
Suppose
and
The matrix representation is
where
- Entry is 1 if the pair exists.
- Entry is 0 otherwise.
C. Directed Graph (Digraph)
Each element is represented as a vertex.
Each ordered pair
is represented by a directed edge
Example:
For
the digraph contains
3. Types of Relations
Empty Relation
A relation containing no ordered pairs.
Universal Relation
A relation containing every possible ordered pair.
Example:
If
then
Identity Relation
A relation containing only pairs where both elements are equal.
Example:
then
Inverse Relation
The inverse relation reverses every ordered pair.
If
then
In general,
Complement of a Relation
The complement contains every ordered pair that is not in the relation.
Example:
If
and
then
Summary
| Topic | Definition |
|---|---|
| Ordered Pair | Pair of elements where order matters |
| Cartesian Product | Set of all possible ordered pairs |
| Relation | Subset of Cartesian product |
| Domain | First elements of the relation |
| Codomain | Target set |
| Range | Second elements actually used |
| Set Representation | Collection of ordered pairs |
| Matrix Representation | Binary matrix showing existing pairs |
| Digraph | Directed graph representation |
| Empty Relation | No ordered pairs |
| Universal Relation | All possible ordered pairs |
| Identity Relation | Only pairs |
| Inverse Relation | Reverse every ordered pair |
| Complement Relation | All pairs not present in the relation |