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. Solutiony=3x+2โนyโ2=3xโนx=3yโ2โ. So fโ1(y)=3yโ2โ. Join Discord PreviousSet Operation ProofsNextNumber Theory