In Class 11 you saw relation as set of ordered pairs. In Class 12, we study relation on same set. Example: On set of friends {A,B,C}, relation 'is brother of' may contain (A,B) if A is brother of B. Relation R is subset of A×A. Domain is set of first elements, range second. Example A={1,2,3}, R={(1,1),(2,2),(1,2)} is a relation on A. It tells who is connected to whom.
Relation R ⊆ A×A on set A. Example A={1,2,3} R={(1,1),(2,2),(1,2)}. Domain = {x: (x,y)∈R}, Range = {y: (x,y)∈R}. Relation is connection between elements.
• Relation R on A is subset of A×A, set of ordered pairs
• Example A={1,2,3} R={(1,1),(2,2),(1,2)}
• Domain: first elements, Range: second elements
• Tells who is related to whom
• Different from function, relation can have one-to-many
Reflexive means every element is related to itself. For all a∈A, (a,a)∈R. Think of 'is equal to' - every number equals itself. Example A={1,2,3}, R={(1,1),(2,2),(3,3),(1,2)} is reflexive because it has (1,1),(2,2),(3,3). If missing (2,2), not reflexive. Check reflexive: look for all (a,a).
Reflexive: ∀a∈A (a,a)∈R. Must contain all self pairs. Example A={1,2,3} R={(1,1),(2,2),(3,3),(1,2)} reflexive. R={(1,1),(2,2)} not reflexive on {1,2,3} as (3,3) missing. Equality, 'is subset of' reflexive.
• Definition: ∀a∈A, (a,a)∈R
• Must have all (a,a) pairs
• Example: {1,2,3} needs (1,1),(2,2),(3,3) to be reflexive
• Equality, 'is equal to', 'is subset of' are reflexive
• Check: List diagonal, all present?
Symmetric: If a related to b then b related to a. If (a,b)∈R then (b,a)∈R. Example 'is sibling of' - if A sibling of B then B sibling of A. If R has (1,2) but not (2,1), not symmetric. Transitive: If a related to b and b related to c then a related to c. If (a,b)∈R and (b,c)∈R then (a,c)∈R. Example 'is ancestor of' transitive. Example A={1,2,3} R={(1,2),(2,3),(1,3)} transitive.
Symmetric: (a,b)∈R ⇒ (b,a)∈R. Transitive: (a,b)∈R and (b,c)∈R ⇒ (a,c)∈R. Symmetric examples: 'is sibling', 'is equal'. Transitive examples: 'is greater than', 'is ancestor', 'is equal'.
• Symmetric: (a,b)∈R ⇒ (b,a)∈R, mutual
• Example: If has (1,2) must have (2,1) for symmetric
• Transitive: (a,b) and (b,c) ⇒ (a,c), chain rule
• Example: (1,2),(2,3),(1,3) transitive
• Equality is symmetric and transitive
Equivalence relation is that is reflexive, symmetric and transitive all three together. It divides set into groups (equivalence classes) where all elements in a group are equivalent. Example: On integers, relation 'has same remainder when divided by 3' - reflexive (a same remainder as itself), symmetric (if a same as b then b same as a), transitive (if a same as b and b same as c then a same as c). So equivalence. It partitions into 3 classes: remainder 0,1,2.
Equivalence: reflexive + symmetric + transitive. Partitions set into equivalence classes. Example: 'is congruent mod n', 'is parallel to' for lines, 'has same remainder'. Classes are disjoint and cover whole set. [a] = {b: (a,b)∈R}.
• Definition: Reflexive + Symmetric + Transitive = Equivalence
• Partitions set into equivalence classes
• Example: Mod 3 relation partitions integers into 3 classes [0],[1],[2]
• Example: Parallel lines equivalence, same remainder equivalence
• [a] = all elements related to a
Function is special relation where each input has exactly one output. One-one (injective) means different inputs give different outputs, no two inputs share same output. Example f: N→N f(x)=2x is one-one because if 2x1=2x2 then x1=x2. But f: N→N f(x)=x² is not one-one on integers? On N it is one-one, on Z not because (-1)²=1². Test: f(a)=f(b) ⇒ a=b for one-one. Horizontal line test: graph cut at most once.
Function: each x∈A has unique y∈B. One-one (injective): f(a)=f(b) ⇒ a=b, distinct x distinct y. Example f(x)=2x one-one, f(x)=x² on N one-one but on Z not one-one. Many-one: exists a≠b with f(a)=f(b).
• Function: Every input exactly one output
• One-one: f(a)=f(b) ⇒ a=b, no two inputs same output
• Example: f(x)=2x one-one, f(x)=x² on N one-one, on Z not
• Many-one: At least one output shared by two inputs
• Test: Assume f(a)=f(b) and prove a=b
Onto (surjective) means every element in codomain B is hit by at least one element from domain. Range = Codomain. Example f: R→R f(x)=x³ is onto because every real y has x=cuberoot(y). But f: R→R f(x)=x² not onto because negative numbers in codomain never reached. Bijective = one-one and onto both together. Only bijective functions are invertible.
Onto (surjective): ∀y∈B ∃x∈A f(x)=y, range=codomain. Into: range⊂codomain. Bijective: one-one + onto = perfect pairing, invertible. Example x³ onto R→R, x² not onto R→R but onto R→[0,∞).
• Onto: Every y in codomain has pre-image, range=codomain
• Into: Range is proper subset of codomain
• Example: x³ R→R onto, x² R→R not onto (negatives left)
• Bijective: One-one + Onto = both, exact pairing
• Bijective ⇔ invertible
If f: A→B and g: B→C then gof: A→C defined as (gof)(x)=g(f(x)). First apply f then g. Order matters: fog ≠ gof generally. Example f(x)=2x, g(x)=x+3, fog(x)=f(g(x))=f(x+3)=2(x+3)=2x+6, gof(x)=g(f(x))=g(2x)=2x+3 different. Composition of two one-one is one-one, onto is onto, bijective is bijective.
Composition: f:A→B g:B→C gof:A→C gof(x)=g(f(x)). fog(x)=f(g(x)) if defined. Order important. Properties: If f,g one-one then gof one-one, if onto then onto, if bijective then bijective. Associative: ho(gof)=(hog)of.
• gof(x)=g(f(x)), first f then g
• fog(x)=f(g(x)), first g then f
• Example f=2x g=x+3 fog=2x+6 gof=2x+3 ≠
• Order matters: fog≠gof generally
• Property: one-one+one-one→one-one, onto+onto→onto
Function f: A→B invertible if there exists g: B→A such that gof=IA and fog=IB. g is inverse f⁻¹. Condition: f is bijective iff invertible. Example f: R→R f(x)=2x+3 bijective, inverse find: y=2x+3 ⇒ x=(y-3)/2 so f⁻¹(y)=(y-3)/2. Check f⁻¹(f(x))=x. Graph of inverse is mirror over y=x. Only bijective functions have inverse.
Invertible: ∃g B→A gof=IA and fog=IB, g=f⁻¹. f invertible ⇔ f bijective. To find inverse: set y=f(x) solve for x = g(y). Graph reflection over y=x. Example f(x)=2x+3 f⁻¹(x)=(x-3)/2.
• f invertible ⇔ f bijective (one-one+onto)
• f⁻¹: B→A, f⁻¹(f(x))=x, f(f⁻¹(y))=y
• Method: y=f(x) solve x in terms of y
• Example: 2x+3 → (x-3)/2
• Graph: f⁻¹ is mirror of f over y=x
Relations: 'is friend of' symmetric, 'is ancestor of' transitive, 'has same birthday' equivalence partitions people by birthday. Functions: Every student gets one roll number - function from students to roll numbers one-one. Aadhaar: person → Aadhaar number bijective. Netflix recommendation: user → movies. Composition: First convert Celsius to Fahrenheit then Fahrenheit to Kelvin is composition. Invertible: Encoding-decoding - encode message via function, decode via inverse. Biometric lock uses bijective mapping.
Real: Equivalence 'same pincode' partitions, database roll number function one-one, Aadhaar bijective, composition currency conversion, invertible encryption/decryption, function machine in factories, medical dosage function.
• Relation: 'same birthday' equivalence class birthday groups
• Function: Student→Roll number one-one
• Bijective: Person→Aadhaar unique and invertible
• Composition: C→F→K temperature conversion chain
• Invertible: Encode-decode, lock-unlock with inverse
• Daily: Netflix user→movies, bank account→balance
• Relation: R⊆A×A, subset of ordered pairs
• Reflexive: ∀a (a,a)∈R, all diagonal needed
• Symmetric: (a,b)∈R ⇒ (b,a)∈R
• Transitive: (a,b)∈R and (b,c)∈R ⇒ (a,c)∈R
• Equivalence: Reflexive+Symmetric+Transitive, partitions into classes [a]
• Function: Each input exactly one output
• One-one: f(a)=f(b)⇒a=b, distinct inputs distinct outputs
• Onto: Range=Codomain, every y has x
• Bijective: One-one+Onto ⇔ invertible
• Composition: gof(x)=g(f(x)), order matters
• Inverse: f invertible ⇔ bijective, y=f(x) solve for x, graph mirror over y=x
• Real: Same birthday equivalence, roll no one-one, Aadhaar bijective, encode-decode invertible