Neural Sync Active
Relations and Functions
Registry Synced
Relations and Functions
447 words
2 min read
Reading compass
Now · 🎯 Learning Objectives
Relations and Functions
🎯 Learning Objectives
- Define relations as sets of ordered pairs
- Identify properties: reflexive, symmetric, transitive, antisymmetric
- Distinguish equivalence relations from partial orders
- Classify functions as injective/surjective/bijective
- Compose functions and find inverses
6.1 Relations
A relation R from A to B is a subset of A×B. We write aRb for (a,b)∈R.
Properties
| Property | Definition | Example on Z |
|---|---|---|
| Reflexive | ∀a:aRa | a≤a |
| Symmetric | aRb⟹bRa | a=b |
| Transitive | aRb∧bRc⟹aRc | a<b<c |
| Antisymmetric | aRb∧bRa⟹a=b | a≤b |
6.2 Equivalence Relations
A relation that is reflexive, symmetric, and transitive is an equivalence relation.
Partitions: An equivalence relation partitions the set into equivalence classes.
Example: a≡b(modn) (congruence mod n). Equivalence classes: {0},{1},…,{n−1} modulo n.
6.3 Partial Orders
A relation that is reflexive, antisymmetric, and transitive is a partial order.
- Total order: Every pair is comparable (≤ on R)
- Partial order: Some pairs incomparable (⊆ on sets)
Hasse Diagrams
A graphical representation of a partial order.
6.4 Functions
A function f:A→B is a relation where each a∈A relates to exactly one b∈B.
Types
| Type | Definition | Example |
|---|---|---|
| Injective (one-to-one) | f(a1)=f(a2)⟹a1=a2 | f(x)=3x |
| Surjective (onto) | ∀b∈B ∃a∈A:f(a)=b | f(x)=x3 |
| Bijective | Both injective and surjective | f(x)=x+1 |
Composition
(g∘f)(x)=g(f(x))
Inverse
f−1(y)=x iff f(x)=y. Exists only if f is bijective.
✅ Practice Questions
Q1: Determine if R={(1,1),(1,2),(2,1),(2,2),(3,3)} on {1,2,3} is an equivalence relation.
SolutionReflexive? Need (1,1),(2,2),(3,3) — all present. ✓ Symmetric? Check every pair: (1,2) has (2,1) ✓, (2,1) has (1,2) ✓, all self-pairs are symmetric. ✓ Transitive? (1,2) and (2,1)→(1,1) ✓; (2,1) and (1,2)→(2,2) ✓. Yes, it's an equivalence relation. Classes: {1,2} and {3}. Q2: Is f(x)=x2 on R injective? Surjective? SolutionNot injective: f(−2)=f(2)=4 but −2=2. Not surjective: f(x)≥0, so negative numbers have no preimage. If defined as f:R+→R+, it is bijective. Q3: Find the inverse of f(x)=3x+2. Solution