Relation: Definition
Definition
A relation from a set to a set is any subset of the Cartesian product .
If and are sets, then:
Each element of is an ordered pair , where and .
If the relation is defined on a single set , then it is called a binary relation on , and it is a subset of:
Example
Let and .
Then:
A possible relation from to is:
This means:
- is related to
- is related to
- is related to
A relation can be represented in many ways, such as:
- roster form
- set-builder form
- arrow diagram
- matrix form
- graph form
Main Content
1. Cartesian Product and Ordered Pairs
- The Cartesian product of two sets is the set of all possible ordered pairs formed by taking one element from the first set and one from the second set.
- Relations are built from Cartesian products, so understanding ordered pairs is the first step in understanding relations.
If:
then:
Any subset of this product is a relation from to .
Important points:
- Order matters in ordered pairs: in general.
- A relation may contain one pair, many pairs, or even no pairs at all.
- The empty relation is a valid relation because the empty set is a subset of every set.
Example
If:
then is a relation from to . It is not necessary to include all pairs from .
2. Types of Relations
Relations are classified based on the sets involved and the properties they satisfy.
a) Relation from one set to another set
A relation from to consists of pairs where the first element comes from and the second from .
Example:
- Students courses they take
- Employees departments they work in
b) Relation on a set
A relation on a set is a relation from to itself.
Example:
- “less than or equal to” on integers
- “is equal to” on numbers
- “is friends with” among people
c) Universal relation
The universal relation on is:
Every element is related to every element.
d) Empty relation
The empty relation is:
No element is related to any element.
Important points:
- Relations can be finite or infinite.
- Relations may be symmetric, transitive, reflexive, etc., depending on their structure.
- Relations on sets are especially important in abstract algebra and discrete mathematics.
Example
Let .
A relation on could be:
This is a relation on because every first and second element belongs to .
3. Representation of Relations
Relations can be described in several ways, and each representation is useful in different situations.
a) Roster form
The relation is written as a set of ordered pairs.
Example:
b) Set-builder form
The relation is described by a property satisfied by the ordered pairs.
Example:
c) Arrow diagram
Elements of one set are shown with arrows pointing to related elements in another set.
For example, if and , and
then the arrows are:
1 ---> a
2 ---> b
3 ---> a
d) Matrix representation
For finite sets, relations can be represented by a matrix containing 1s and 0s.
If , then the relation matrix has:
- entry 1 if
- entry 0 otherwise
e) Graph representation
A relation on a set can be represented using a directed graph:
- each element is a vertex
- each ordered pair is a directed edge
Example: If , draw an arrow from 1 to 2.
Important points:
- Roster form is simple and direct.
- Set-builder form is compact and mathematical.
- Arrow diagrams and graphs help visualize relations.
- Matrices are useful in computation and theorem proving.
Working / Process
1. Identify the sets involved
- Determine the source set and, if needed, the target set .
- If the relation is on one set, then both positions in the ordered pair come from the same set.
2. Form the Cartesian product
- Write all possible ordered pairs in or .
- This gives the complete set of possible related pairs.
3. Select the required pairs according to the rule
- Choose only those ordered pairs that satisfy the condition defining the relation.
- The selected subset is the relation.
Example
Let and define the relation by:
Step 1: Identify the set .
Step 2: Form :
Step 3: Keep only pairs where the first number is less than the second:
So this is the relation “less than” on the set .
Advantages / Applications
- Relations help model real-life connections such as student-course enrollment, family links, social networks, and scheduling dependencies.
- They are essential for defining functions, equivalence relations, and partial orders, which are central topics in higher mathematics.
- Relations are used in computer science for databases, graph theory, automata, logic, and algorithm design.
Additional applications
- In databases, relations are used to organize data in tables.
- In graph theory, relations correspond to directed edges.
- In mathematics, they help prove properties of structures and simplify reasoning in theorem proving.
- In logic, relations express predicates involving more than one object.
Summary
- A relation is a subset of a Cartesian product.
- Relations describe how elements of one set are connected to elements of another set or within the same set.
- They can be represented in several forms such as ordered pairs, arrows, matrices, and graphs.