1.Relation 1 MZI
Table of contents
- Cartesian Product
- Definition and Basic Notation of Binary Relation
- Relation Presentations: Arrow diagram, matrix, and digraph
- Important Theorem
1. Cartesian Product
1.1 Definition
The Cartesian product is a way to combine two sets into a new set of pairs.
- Cartesian product: for two sets A and B, the Cartesian product A×B is defined as A×B:={(a,b)∣a∈A,b∈B}7.
- Ordered pair: an element (a,b) within a Cartesian product is called an ordered pair or a 2-tuple.
- Equality of pairs: two ordered pairs (a,b) and (c,d) are equal if and only if a=c and b=d 5 6.
📝 If A={1,2} and B={a,b,c}, then A×B={(1,a),(1,b),(1,c),(2,a),(2,b),(2,c)} 6.
1.2 Ordered n-tuples
The concept of a Cartesian product can be extended to any number of sets.
- n-tuple: for n sets A1,A2,…,An, the Cartesian product is A1×A2×⋯×An={(a1,a2,…,an)∣ai∈Ai for i=1,2,…,n}.
- Ordered n-tuple: the resulting element (a1,a2,…,an) is called an ordered n-tuple or simply an n-tuple.
- Equality of n-tuples: two n-tuples (a1,a2,…,an) and (b1,b2,…,bn) are equal if and only if ai=bi for every i=1,2,…,n.
- Power notation: if all sets are identical (A1=A2=⋯=An=A), the product is written as An 8.
📝 An ordered 3-tuple might look like (1,x,true), where each element comes from a different set 8.
1.3 Some important theorems 9 10 11
Several mathematical properties govern how Cartesian products behave.
| Property | Description |
|---|---|
| Element membership | (a,b)∈A×B⟺(a∈A)∧(b∈B) |
| Symmetry of elements | (a,b)∈A×B⟺(b,a)∈B×A |
| Empty set rule | A=∅⟹A×B=B×A=∅ |
| Commutativity condition | A×B=B×A⟺(A=B)∨(A=∅)∨(B=∅) |
The size of a Cartesian product is determined by the sizes of the individual sets.
| Set Type | Cardinality Formula |
|---|---|
| Two finite sets | $ |
| n finite sets | $ |
📝 If set A has 2 elements and set B has 3 elements, the cardinality of A×B is 2⋅3=6 10.
2. Definition and Basic Notation of Binary Relation
2.1 Binary relation
A binary relation establishes a connection between elements of two sets.
- Binary relation: a binary relation from set A to set B is defined as a subset of the Cartesian product A×B.
- Relation notation: if R is a relation from A to B, we write aRb to state that a is related to b, which is equivalent to saying (a,b)∈R.
- Non-relation notation: if a is not related to b, it can be written as aRb, aRˉb, or ¬(aRb).
- Relation on a set: a relation on a single set A is a relation from A to A, meaning it is a subset of A×A 13.
21.
📝 If R is a relation where aRb means "a divides b", then (2,4)∈R because 2 divides 4 26.
2.2 Domain and range of relation 14 20 21 27 30 31 35 36
Every relation has a specific set of starting elements and ending elements.
- Domain: the domain of R, denoted dom(R), is the set of all elements a∈A for which there exists at least one b∈B such that aRb.
- Range: the range of R, denoted ran(R), is the set of all elements b∈B such that there exists at least one a∈A where aRb 14.
| Term | Set Notation |
|---|---|
| Domain | dom(R):={a∈A∣∃b∈B(aRb)} |
| Range | ran(R):={b∈B∣∃a∈A(aRb)} |
23.
📝 In a relation R={(1,x),(2,x),(2,y)}, the domain is {1,2} and the range is {x,y} 26.
| Relation R | Domain | Range |
|---|---|---|
| Student x takes course y | {Alex, Ben, Cathy} | {DM, C, DS, MVS} |
| a divides b (on A={2,3,4},B={2,4,8,9,15}) | {2, 3, 4} | {2, 4, 8, 9, 15} |
| a is a prime factor of b (on A={2,3,4,8,9}) | {2, 3} | {2, 3, 4, 8, 9} |
📝 If R is a relation on integers Z where aRb if a=b2, then dom(R)={x2∣x∈Z} and ran(R)=Z 37 38.
3. Relation Presentations: Arrow diagram, matrix, and digraph
3.1 Arrow diagrams
Arrow diagrams are a visual way to show how elements from one set relate to elements in another set.
- Visual structure: The diagram uses sets as containers for elements and arrows to show the connections.
- Directionality: The arrows indicate the direction of the relation from the first set to the second set.
- Set types: These diagrams can represent a relation between two different sets or a relation on a single set.

📝 To represent a relation R1 from A={Amir, Budi, Cecep} to B={IF221, IF251, IF342, IF323}, you draw arrows from "Amir" to "IF251" and "IF323" to show those specific pairs exist in the relation. 41 42.
3.2 Tables 43
Tables provide a structured, grid-based way to list the elements of a relation.
- Organization: Elements from the domain are typically listed on one axis, while elements from the range are listed on the other.
- Mapping: The intersection of a row and a column shows whether a specific pair belongs to the relation.
| Relation Type | Visual Method |
|---|---|
| Arrow Diagram | Arrows between sets |
| Table | Grid of elements |
| Matrix | Binary numbers in a grid |
| Digraph | Nodes and directed edges |
3.3 Representation matrix of a relation 44
A representation matrix is a mathematical way to encode a relation using a grid of binary values.
- Matrix dimensions: For a relation R from set A to set B, the matrix MR has dimensions ∣A∣×∣B∣.
- Binary values: The matrix uses only two possible values to indicate the presence or absence of a relationship.
| Condition | Matrix Value (mij) |
|---|---|
| (ai,bj)∈R | 1 |
| (ai,bj)∈/R | 0 |
- Row and column mapping: Each row corresponds to a specific element from the first set, and each column corresponds to an element from the second set.

📝 Let A={1,2,3}, B={1,2}, and the relation R be defined by aRb if and only if a>b. Since the pairs in R are (2,1), (3,1), and (3,2), the representation matrix MR is: 011001 45 46 47 48 49 50 51 52.



3.4 Digraph
A digraph, or directed graph, is a visual representation used specifically for relations on a single set.
- Components: A digraph consists of a set V of vertices (nodes) and a set E of edges (ordered pairs).
- Vertex roles: In an edge (a,b), a is the initial vertex and b is the terminal vertex.
- Loops: An edge that starts and ends at the same vertex, such as (a,a), is called a loop.
- Constraint: A digraph can only represent a relation on a set A (where the relation is from A to A); it cannot represent a relation between two different sets A and B if A=B.

📝 To draw a digraph for R={(1,1),(1,3),(2,1),(2,3),(2,4),(3,1),(3,2),(4,1)} in the set {1,2,3,4}, you draw four nodes and connect them with arrows according to each pair, including a loop at node 1. 54 55.
📝 To draw a digraph for R={(a,a),(a,b),(b,a),(b,c),(b,d),(c,a),(c,d),(d,b)} in the set {a,b,c,d}, you place nodes for each letter and draw directed edges for every pair, such as a loop at a. 56 57.
4. Important Theorem
4.1 Set operations on relations 59
If A and B are two sets, and R1 and R2 are relations from A to B, we can perform several operations to create new relations.
| Operation | Symbol | Definition |
|---|---|---|
| Union | R1∪R2 | (a,b)∈R1 or (a,b)∈R2 |
| Intersection | R1∩R2 | (a,b)∈R1 and (a,b)∈R2 |
| Symmetric difference | R1⊕R2 | (a,b)∈R1 or (a,b)∈R2, but not both |
| Difference | R1∖R2 | (a,b)∈R1 and (a,b)∈/R2 |
| Complement | ¬R or Rˉ | (a,b)∈/R |
4.2 Inverse relations 59
An inverse relation reverses the direction of the original relation by swapping the elements in each ordered pair.
| Relation | Symbol | Definition |
|---|---|---|
| Inverse relation | R−1 | {(b,a)∈B×A∣(a,b)∈R} |
📝 If R is a relation where xRy means x<y, then the inverse relation R−1 is defined by y<x, which is the same as x>y 93.
4.3 Exercises on set operations
The following exercises demonstrate how to apply set operations to specific relations.
4.4 Exercise: Set operations on finite sets 60 68
This exercise tests the ability to perform union, intersection, symmetric difference, difference, complement, and inverse operations on specific sets of ordered pairs.
- Given sets: A={a,b,c} and B={a,b,c,d}.
- Relation 1 (R1): {(a,a),(b,b),(c,c)}.
- Relation 2 (R2): {(a,a),(a,b),(a,c),(a,d)}.
| Operation | Result |
|---|---|
| Intersection (R1∩R2) | {(a,a)} |
| Union (R1∪R2) | {(a,a),(a,b),(a,c),(a,d),(b,b),(c,c)} |
| Symmetric difference (R1⊕R2) | {(a,b),(a,c),(a,d),(b,b),(c,c)} |
| Difference (R1∖R2) | {(b,b),(c,c)} |
| Difference (R2∖R1) | {(a,b),(a,c),(a,d)} |
| Complement (Rˉ1) | {(a,b),(a,c),(a,d),(b,a),(b,c),(b,d),(c,a),(c,b),(c,d)} |
| Inverse (R2−1) | {(a,a),(b,a),(c,a),(d,a)} |
4.5 Exercise: Set operations on real number relations 69 88
This exercise applies set operations to relations defined by inequalities on the set of real numbers R.
- Relation 1 (R1): xR1y iff x<y.
- Relation 2 (R2): xR2y iff x>y.
| Operation | Resulting Relation |
|---|---|
| Union (R1∪R2) | {(x,y)∣x=y} |
| Intersection (R1∩R2) | ∅ |
| Difference (R1∖R2) | R1 or {(x,y)∣x<y} |
| Difference (R2∖R1) | R2 or {(x,y)∣x>y} |
| Symmetric difference (R1⊕R2) | {(x,y)∣x=y} |
📝 For the intersection R1∩R2, we look for x such that x<y and x>y. Since these cannot both be true, the intersection is the empty set ∅ 77.
4.6 Exercise: Inverse and complement of real number relations 89 106
This exercise focuses on finding the inverse and complement for relations defined on R.
- Relation R: xRy iff x<y.
- Relation S: xSy iff x=y.
| Original Relation | Inverse (R−1 or S−1) | Complement (Rˉ or Sˉ) |
|---|---|---|
| x<y | x>y | x≥y |
| x=y | x=y | x=y |
📝 If S is the relation x=y, its complement Sˉ is the set of all pairs where the condition x=y is false, which means x=y 106.
4.7 Exercise: Operations on integer relations 107 115
This exercise calculates the inverse and complement for relations defined on the set of integers Z.
- Relation R: xRy iff x≤y.
| Operation | Resulting Relation |
|---|---|
| Inverse (R−1) | x≥y |
| Complement (Rˉ) | x>y |
4.8 Important theorems of inverse relations 116
Several fundamental properties describe the relationship between a relation and its inverse.
| Property | Mathematical Statement |
|---|---|
| Domain of inverse | dom(R−1)=ran(R) |
| Range of inverse | ran(R−1)=dom(R) |
| Double inverse | (R−1)−1=R |
| Subset preservation | R⊆S⟺R−1⊆S−1 |
© 2026 Maeve. All rights reserved. This content is protected by copyright.