CLASS XI MATHS CHAPTER 2

Chapter 2 - Relations and Functions

Beginner
Topper

1. Introduction - Ordered Pairs and Linking Two Sets

Relation links two sets. Before that ordered pair (a,b) where order matters. (1,2) is different from (2,1) because first element 1 second 2. Example: (Alex, Math) means Alex studies Math. (Math, Alex) is different nonsense Math studies Alex no meaning order matters.

Real life: Seat arrangement (Roll No, Seat No) ordered pair, (Student, Subject) enrollment, (Person, Phone Number) contact list.

Cartesian Product A×B = set of all possible ordered pairs (a,b) where a∈A b∈B. Example A={1,2} B={x,y} then A×B={(1,x),(1,y),(2,x),(2,y)} 2×2=4 pairs. Formula n(A×B)=n(A)×n(B). If A has 3 students and B has 3 subjects, A×B has 3×3=9 possible student-subject pairs table.

Relation R is subset of A×B R⊆A×B meaning we choose some pairs from all possible pairs that satisfy a condition. Example R = "is enrolled in" we choose only actual enrollments not all possible. Domain = set of all first elements used, Range = set of all second elements used.

Ordered pair (a,b) order matters (a,b)≠(b,a) (1,2)≠(2,1) (Alex,Math)≠(Math,Alex) first element a second b | Real life (Roll,Seat) (Student,Subject) (Person,Phone) | Cartesian product A×B all possible ordered pairs (a,b) a∈A b∈B Example A={1,2} B={x,y} A×B={(1,x),(1,y),(2,x),(2,y)} 4 pairs Formula n(A×B)=n(A)×n(B) 3×3=9 pairs table | Relation R⊆A×B subset of A×B choose some pairs condition Domain set of all first elements Range set of all second elements
Visual Learning Method: Ordered pair (a,b) order matters (1,2)≠(2,1) (Alex,Math)≠(Math,Alex) first second, seat (Roll,Seat) (Student,Subject) (Person,Phone), Cartesian product A×B all possible pairs (a,b) a∈A b∈B A={1,2} B={x,y} A×B 4 pairs {(1,x),(1,y),(2,x),(2,y)} n(A×B)=n(A)×n(B) 3×3=9 table, Relation R⊆A×B subset choose some pairs Domain first elements Range second elements.
Daily Analogy: Ordered pair like name tag first name last name order matters. Cartesian product like all possible combinations of shirts and pants you own pairing every shirt with every pant. Relation like you actually wear some combinations only not all possible you choose subset that you like.
Introduction - Ordered Pairs
Introduction
Revision Points - Easy:

2. Cartesian Product - All Possible Pairings

A×B = {(a,b): a∈A b∈B} all ordered pairs. Properties: A×B ≠ B×A generally order matters unless A=B or one empty. Example A={1,2} B={3,4} A×B={(1,3),(1,4),(2,3),(2,4)} B×A={(3,1),(3,2),(4,1),(4,2)} different. n(A×B)=n(A)×n(B). If A has m elements B has n elements A×B has m×n elements.

A×B×C three sets ordered triple (a,b,c). Real life: A=shirts {red,blue} B=pants {jeans,shorts} A×B 4 outfits. A×A = A² = {(a1,a1),(a1,a2),(a2,a1),(a2,a2)}.

Important: Number of relations from A to B = 2^(n(A)×n(B)) because each pair can be either in relation or not two choices. Example A has 2 B has 3 A×B has 6 pairs relations =2^6=64 possible relations.

A×B={(a,b): a∈A b∈B} all ordered pairs Properties A×B≠B×A generally order matters unless A=B or empty Example A={1,2} B={3,4} A×B={(1,3),(1,4),(2,3),(2,4)} B×A={(3,1),(3,2),(4,1),(4,2)} different n(A×B)=n(A)×n(B) m×n elements | A×B×C triple (a,b,c) Real life shirts {red,blue} pants {jeans,shorts} 4 outfits A×A=A² {(a1,a1),(a1,a2),(a2,a1),(a2,a2)} | Number of relations from A to B =2^(n(A)×n(B)) each pair two choices in or not Example A 2 B 3 A×B 6 relations 2^6=64 possible
Visual Learning Method: A×B={(a,b): a∈A b∈B} all ordered pairs, A×B≠B×A generally order matters A={1,2} B={3,4} A×B 4 pairs {(1,3),(1,4),(2,3),(2,4)} B×A different {(3,1),(3,2),(4,1),(4,2)}, n(A×B)=n(A)×n(B) m×n, shirts {red,blue} pants {jeans,shorts} 4 outfits, A×A=A² 4 pairs, number relations 2^(n(A)×n(B)) each pair two choices 2 elements 3 elements 6 pairs 2^6=64 relations.
Daily Analogy: Cartesian product like menu combinations. Shirts 2 pants 2 all combos 4 outfits. Number of relations like you can choose to like or dislike each outfit 2 choices each 2^4=16 possible like lists.
Cartesian Product - All Pairings
Cartesian Product
Revision Points - Easy:

3. Relations - Domain Range Types

Relation R from A to B is subset of A×B R⊆A×B. Example A={1,2,3} B={a,b} A×B 6 pairs R={(1,a),(2,b)} relation choosing 2 pairs. Domain of R = set of all first elements {1,2} Range = set of all second elements {a,b} Codomain = B whole set {a,b} where relation goes.

Types: Empty relation φ no pair no connection, Universal relation A×B itself all pairs all connected. Example empty: no student enrolled no pair, universal: every student enrolled in every subject all 9 pairs.

Representation: roster list pairs {(1,2),(2,4)}, set-builder R={ (x,y): y=2x x∈A}, arrow diagram arrows from A to B, table.

Real life: Relation "is father of" set of ordered pairs (Father, Child), "is taller than" (Person1 taller than Person2).

Relation R from A to B subset A×B R⊆A×B Example A={1,2,3} B={a,b} A×B 6 pairs R={(1,a),(2,b)} 2 pairs Domain set of all first elements {1,2} Range set of all second {a,b} Codomain B whole {a,b} | Types Empty φ no pair no connection Universal A×B all pairs all connected Empty no student enrolled no pair Universal every student every subject all 9 pairs | Representation roster {(1,2),(2,4)} set-builder R={(x,y): y=2x x∈A} arrow diagram arrows table | Real life is father of (Father,Child) is taller than (Person1 taller than Person2)
Visual Learning Method: Relation R⊆A×B subset Example A={1,2,3} B={a,b} 6 pairs R={(1,a),(2,b)} 2 pairs Domain first elements {1,2} Range second {a,b} Codomain B whole {a,b}, Types Empty φ no pair no connection Universal A×B all pairs all connected empty no student enrolled universal every student every subject all 9 pairs, roster {(1,2),(2,4)} set-builder R={(x,y): y=2x} arrow diagram arrows table, father of (Father,Child) taller than (Person1 taller Person2).
Daily Analogy: Relation like friendship connections choosing some pairs from all possible. Domain like set of people who have at least one friend, Range like set of people who are friends with someone. Empty no friendships, Universal everyone friends with everyone.
Relations - Domain Range
Relations
Revision Points - Easy:

4. Functions - Special Relation - Machine Input Output

Function is special relation where each element of domain has exactly one image in codomain unique output no element has two outputs. Definition: f: A→B is function if every a∈A has unique b∈B with (a,b)∈f. Example A={1,2,3} B={a,b} f={(1,a),(2,a),(3,b)} function each input one output. g={(1,a),(1,b),(2,a)} not function because 1 has two outputs a and b confusion not allowed.

Domain = set of all inputs where function defined A, Codomain = set B where output goes possible values, Range = set of actual outputs that occur subset of codomain Range⊆Codomain. Example f={(1,a),(2,a),(3,b)} Domain {1,2,3} Codomain {a,b} Range {a,b} actual outputs both a and b used. If f={(1,a),(2,a)} Domain {1,2} Codomain {a,b} Range {a} only a used b not used Range subset Codomain.

Vertical line test for graph: draw vertical line if it cuts graph at most once then function one output per input if cuts more than once not function.

Real life: vending machine function input money button → one snack unique output, each student has one roll number unique function Student→Roll No, each person has one Aadhaar number function Person→Aadhaar.

Equal functions: two functions equal if same domain and same output for each input f(x)=g(x) for all x.

Function special relation each element domain exactly one image unique output no two outputs Definition f:A→B every a∈A unique b∈B (a,b)∈f Example A={1,2,3} B={a,b} f={(1,a),(2,a),(3,b)} function each one output g={(1,a),(1,b),(2,a)} not function 1 has two outputs a and b not allowed | Domain all inputs where defined A Codomain set B possible values Range actual outputs occur subset Codomain Range⊆Codomain Example f={(1,a),(2,a),(3,b)} Domain {1,2,3} Codomain {a,b} Range {a,b} both used f={(1,a),(2,a)} Domain {1,2} Codomain {a,b} Range {a} only a used b not used Range subset Codomain | Vertical line test graph vertical line cuts at most once function one output per input cuts more than once not function | Real life vending machine input money button → one snack unique Student→Roll No unique Person→Aadhaar unique | Equal functions same domain same output f(x)=g(x) all x
Visual Learning Method: Function special relation each domain exactly one image unique output no two outputs f:A→B every a unique b (a,b)∈f Example A={1,2,3} B={a,b} f={(1,a),(2,a),(3,b)} function each one output g={(1,a),(1,b),(2,a)} not function 1 two outputs a b not allowed, Domain all inputs A Codomain B possible Range actual outputs subset Range⊆Codomain Example f={(1,a),(2,a),(3,b)} Domain {1,2,3} Codomain {a,b} Range {a,b} both used f={(1,a),(2,a)} Domain {1,2} Codomain {a,b} Range {a} only a, vertical line test cuts at most once function cuts more than once not function, vending machine input→one snack Student→Roll No Person→Aadhaar unique.
Daily Analogy: Function like a machine each input button gives exactly one snack not two. If one button gives two snacks confusion not function. Domain buttons you can press, Codomain all possible snacks inside machine, Range snacks that actually come out some may never come out Range subset Codomain.
Functions - Special Relation Machine
Functions
Revision Points - Easy:

5. Types of Functions - One-One Many-One Onto

One-one injective: different inputs give different outputs no two inputs have same output. Example f(x)=2x one-one because 1→2 2→4 different inputs different outputs. f(x)=x² not one-one because 1→1 -1→1 two inputs same output 1 and -1 both 1 many-one.

Many-one: two or more inputs same output. Example f(x)=x² many-one as above 1 and -1 same 1.

Onto surjective: every element of codomain has pre-image Range=Codomain all codomain used no element left unused. Example A={1,2} B={a,b} f={(1,a),(2,b)} onto Range {a,b}=Codomain {a,b} all used. If f={(1,a),(2,a)} Range {a}≠Codomain {a,b} b unused not onto into.

Into: there exists at least one element in codomain with no pre-image Range⊂Codomain proper subset some codomain unused not onto.

Bijective: both one-one and onto one-one and every codomain used perfect pairing.

Real life: one-one Student→Roll No different students different roll no, many-one Students→Birth Month many students same month, onto Tickets→Seats every seat has ticket if onto.

One-one injective different inputs different outputs no two same output Example f(x)=2x one-one 1→2 2→4 different f(x)=x² not one-one 1→1 -1→1 two inputs same 1 many-one | Many-one two or more inputs same output Example f(x)=x² many-one 1 and -1 same 1 | Onto surjective every codomain has pre-image Range=Codomain all used no left unused Example A={1,2} B={a,b} f={(1,a),(2,b)} onto Range {a,b}=Codomain {a,b} all used f={(1,a),(2,a)} Range {a}≠Codomain {a,b} b unused not onto into | Into at least one codomain no pre-image Range⊂Codomain proper subset some unused not onto | Bijective both one-one and onto perfect pairing | Real life one-one Student→Roll No different students different roll no many-one Students→Birth Month many same month onto Tickets→Seats every seat has ticket if onto
Visual Learning Method: One-one injective different inputs different outputs no two same output f(x)=2x one-one 1→2 2→4 different f(x)=x² not one-one 1→1 -1→1 two same output many-one, many-one two or more inputs same output f(x)=x² many-one 1 and -1 same 1, onto surjective every codomain has pre-image Range=Codomain all used f={(1,a),(2,b)} onto Range {a,b}=Codomain {a,b} all used f={(1,a),(2,a)} Range {a}≠Codomain {a,b} b unused not onto into, into at least one codomain no pre-image Range⊂Codomain proper subset some unused not onto, bijective both one-one and onto perfect pairing, Student→Roll No one-one different students different roll no Students→Birth Month many-one many same month Tickets→Seats onto every seat has ticket.
Daily Analogy: One-one like assigning unique ID each person different ID no sharing. Many-one like many people sharing same birthday month many inputs same output. Onto like every chair in classroom occupied no empty chair all codomain used Range=Codomain. Into like some chairs empty some codomain unused.
Types of Functions
Types Functions
Revision Points - Easy:

6. Real Functions - Identity Constant Polynomial Modulus Signum Greatest Integer

Real functions f: R→R real numbers to real numbers. Important graphs:

Identity function f(x)=x input same as output graph straight line 45° passing through origin slope 1 Domain R Range R.

Constant function f(x)=c fixed constant example f(x)=5 always 5 graph horizontal line y=5 Domain R Range {c} single value {5}.

Polynomial f(x)=a0+a1x+a2x²+... example f(x)=x² parabola U shape Domain R Range [0,∞) ≥0 because x²≥0.

Modulus absolute value f(x)=|x| = x if x≥0 -x if x<0 distance from 0 always ≥0 V shape graph Domain R Range [0,∞). Example |3|=3 |-3|=3 distance 3.

Signum function f(x)=1 if x>0 0 if x=0 -1 if x<0 sign of number positive 1 zero 0 negative -1 graph three horizontal lines Domain R Range {-1,0,1} only three values.

Greatest integer [x] or floor function greatest integer ≤x example [2.3]=2 [2.9]=2 [3]=3 [-1.2]=-2 greatest ≤-1.2 is -2 not -1 because -2≤-1.2<-1. Graph steps staircase. Domain R Range integers Z ...-2,-1,0,1,2...

Rational f(x)=1/x Domain R-{0} exclude 0 division by zero not allowed Range R-{0} hyperbola.

Real functions f:R→R real to real | Identity f(x)=x input same output graph 45° line origin slope 1 Domain R Range R | Constant f(x)=c fixed example f(x)=5 always 5 graph horizontal y=5 Domain R Range {c} single {5} | Polynomial f(x)=a0+a1x+a2x²+... example f(x)=x² parabola U shape Domain R Range [0,∞) ≥0 x²≥0 | Modulus f(x)=|x| = x if x≥0 -x if x<0 distance from 0 ≥0 V shape Domain R Range [0,∞) |x| example |3|=3 |-3|=3 distance 3 | Signum f(x)=1 if x>0 0 if x=0 -1 if x<0 sign positive 1 zero 0 negative -1 graph three horizontal lines Domain R Range {-1,0,1} three values | Greatest integer [x] floor greatest integer ≤x [2.3]=2 [2.9]=2 [3]=3 [-1.2]=-2 greatest ≤-1.2 is -2 not -1 -2≤-1.2<-1 steps staircase Domain R Range integers Z ...-2,-1,0,1,2... | Rational f(x)=1/x Domain R-{0} exclude 0 division by zero not allowed Range R-{0} hyperbola
Visual Learning Method: Real functions f:R→R, identity f(x)=x same as output 45° line origin slope 1 Domain R Range R, constant f(x)=c fixed f(x)=5 always 5 horizontal y=5 Domain R Range {c} single {5}, polynomial f(x)=x² parabola U shape Domain R Range [0,∞) ≥0, modulus f(x)=|x| = x if x≥0 -x if x<0 distance ≥0 V shape Domain R Range [0,∞) |3|=3 |-3|=3 distance 3, signum f(x)=1 if x>0 0 if x=0 -1 if x<0 sign positive 1 zero 0 negative -1 three horizontal lines Domain R Range {-1,0,1}, greatest integer [x] floor greatest ≤x [2.3]=2 [2.9]=2 [3]=3 [-1.2]=-2 greatest ≤-1.2 is -2 -2≤-1.2<-1 steps staircase Domain R Range integers Z, rational f(x)=1/x Domain R-{0} exclude 0 division by zero not allowed Range R-{0} hyperbola.
Daily Analogy: Identity like mirror same input same output. Constant like always same snack regardless of button. Modulus like distance from home always positive |3|=3 km |-3|=3 km distance positive. Signum like traffic signal positive go 1 zero stop 0 negative reverse -1. Greatest integer like age floor you are 17.9 years but integer age 17 greatest ≤ actual.
Real Functions - Graphs
Real Functions
Revision Points - Easy:

7. Algebra of Functions - Addition Subtraction Multiplication Division Composition

If f and g are functions with same domain D then we can add subtract multiply divide:

(f+g)(x)=f(x)+g(x) addition combine outputs Example f(x)=2x+3 g(x)=x-1 (f+g)(x)=2x+3+x-1=3x+2 Domain common Df∩Dg.

(f-g)(x)=f(x)-g(x) subtraction Example (2x+3)-(x-1)=2x+3-x+1=x+4.

(f·g)(x)=f(x)·g(x) multiplication Example (2x+3)(x-1)=2x·x+2x·(-1)+3·x+3·(-1)=2x²-2x+3x-3=2x²+x-3.

(f/g)(x)=f(x)/g(x) division with condition g(x)≠0 no division by zero Example (2x+3)/(x-1) with x≠1 because g(x)=x-1≠0 => x≠1 Domain Df∩Dg minus points where g(x)=0.

Composition fog and gof: (fog)(x)=f(g(x)) read f of g of x plug g(x) inside f. Example f(x)=2x+3 g(x)=x-1 fog = f(g(x)) = f(x-1)=2(x-1)+3=2x-2+3=2x+1. gof = g(f(x)) = g(2x+3)=(2x+3)-1=2x+2. Note fog≠gof generally composition not commutative order matters.

Domain of fog: {x: x∈Dg and g(x)∈Df} x must be in domain of g and g(x) must be in domain of f.

Algebra same domain D (f+g)(x)=f(x)+g(x) Example f(x)=2x+3 g(x)=x-1 (f+g)=2x+3+x-1=3x+2 Domain Df∩Dg | (f-g)(x)=f(x)-g(x) Example (2x+3)-(x-1)=2x+3-x+1=x+4 | (f·g)(x)=f(x)·g(x) Example (2x+3)(x-1)=2x²-2x+3x-3=2x²+x-3 | (f/g)(x)=f(x)/g(x) condition g(x)≠0 no division by zero Example (2x+3)/(x-1) x≠1 because g(x)=x-1≠0 x≠1 Domain Df∩Dg minus where g=0 | Composition fog gof (fog)(x)=f(g(x)) read f of g of x plug g inside f Example f(x)=2x+3 g(x)=x-1 fog=f(g(x))=f(x-1)=2(x-1)+3=2x-2+3=2x+1 gof=g(f(x))=g(2x+3)=(2x+3)-1=2x+2 fog≠gof generally not commutative order matters | Domain fog {x: x∈Dg and g(x)∈Df} x in Dg and g(x) in Df
Visual Learning Method: (f+g)(x)=f(x)+g(x) Example 2x+3+x-1=3x+2 Domain Df∩Dg, (f-g)(x)=f(x)-g(x) (2x+3)-(x-1)=x+4, (f·g)(x)=f(x)·g(x) (2x+3)(x-1)=2x²+x-3, (f/g)(x)=f(x)/g(x) g(x)≠0 no division by zero (2x+3)/(x-1) x≠1 Domain Df∩Dg minus g=0, composition (fog)(x)=f(g(x)) f of g of x plug g inside f f(x)=2x+3 g(x)=x-1 fog=f(x-1)=2(x-1)+3=2x+1 gof=g(2x+3)=(2x+3)-1=2x+2 fog≠gof not commutative order matters, Domain fog {x: x∈Dg and g(x)∈Df}.
Daily Analogy: Algebra of functions like combining two machines outputs add subtract multiply. Composition like two machines in series output of first g goes as input to second f assembly line fog = f after g, gof = g after f order matters different results like putting on socks then shoes vs shoes then socks different.
Algebra of Functions
Algebra
Revision Points - Easy:

8. Formulas Short Tricks Real Life - Exam Ready Gold

Short tricks:

n(A×B)=n(A)×n(B) and n(A×B×C)=n(A)×n(B)×n(C).

Number of relations from A to B =2^(n(A)×n(B)) each pair two choices in or not.

Number of functions from A to B = n(B)^n(A) each element of A has n(B) choices for image multiply n(A) times. Example A 2 elements B 3 elements functions 3²=9.

Domain Range: For f(x)=√(x-a) Domain x≥a because inside root ≥0, Range ≥0. For f(x)=1/(x-a) Domain x≠a because denominator ≠0.

Modulus trick: |x|≥0 always, |x|=|-x|, |x|²=x², |x+y|≤|x|+|y| triangle inequality.

Greatest integer: [x]≤x<[x]+1, [x]+[-x]= -1 if x not integer 0 if x integer, [x+n]=[x]+n if n integer.

Real life: Function machine input→output vending machine money→snack, ATM pin→money, student→percentage, temperature→weather, distance→fare taxi fare function of distance, time→growth plant height function of time.

Short tricks n(A×B)=n(A)×n(B) n(A×B×C)=n(A)×n(B)×n(C) | Number relations A to B =2^(n(A)×n(B)) each pair two choices | Number functions A to B =n(B)^n(A) each A has n(B) choices Example A 2 B 3 functions 3²=9 | Domain Range f(x)=√(x-a) Domain x≥a inside root ≥0 Range ≥0 f(x)=1/(x-a) Domain x≠a denominator ≠0 | Modulus |x|≥0 always |x|=|-x| |x|²=x² |x+y|≤|x|+|y| triangle | Greatest integer [x]≤x<[x]+1 [x]+[-x]=-1 if x not integer 0 if integer [x+n]=[x]+n if n integer | Real life machine input→output vending machine money→snack ATM pin→money student→percentage temperature→weather distance→fare taxi fare function distance time→growth plant height function time
Visual Learning Method: n(A×B)=n(A)×n(B) n(A×B×C)=n(A)×n(B)×n(C), number relations 2^(n(A)×n(B)) each pair two choices, number functions n(B)^n(A) each A n(B) choices A 2 B 3 functions 3²=9, Domain f(x)=√(x-a) x≥a root ≥0 Range ≥0 f(x)=1/(x-a) x≠a denominator ≠0, modulus |x|≥0 |x|=|-x| |x|²=x² |x+y|≤|x|+|y| triangle, greatest integer [x]≤x<[x]+1 [x]+[-x]=-1 if not integer 0 if integer [x+n]=[x]+n if n integer, real life vending machine money→snack ATM pin→money student→percentage temperature→weather distance→fare taxi fare function distance time→growth plant height function time machine input→output.
Daily Analogy: Number of functions n(B)^n(A) like each of n(A) students can choose any of n(B) shirts total choices multiply. Modulus distance always positive. Greatest integer floor age. Functions everywhere distance→fare taxi fare increases with distance function of distance time→growth plant height grows with time.
Formulas Short Tricks Real Life
Formulas Tricks Real Life
Revision Points - Easy:

Gold Reference Table - Every Concept Formula Trick Real Life

ConceptFormula / Trick / FactReal Life Visual / Use
Ordered Pair(a,b) order matters (a,b)≠(b,a) first a second b (1,2)≠(2,1) (Alex,Math)≠(Math,Alex)Seat (Roll,Seat) (Student,Subject) (Person,Phone) name tag first last order matters
Cartesian ProductA×B={(a,b): a∈A b∈B} all possible ordered pairs Example A={1,2} B={x,y} A×B={(1,x),(1,y),(2,x),(2,y)} 4 pairs n(A×B)=n(A)×n(B) m×n A×B≠B×A generally unless A=B or empty A×A=A² {(a1,a1),(a1,a2),(a2,a1),(a2,a2)} A×B×C triple (a,b,c) n(A×B×C)=n(A)×n(B)×n(C)Shirts {red,blue} pants {jeans,shorts} 4 outfits all combos menu combinations
Number RelationsRelations A to B =2^(n(A)×n(B)) each pair two choices in or not Example A 2 B 3 A×B 6 pairs relations 64 possibleChoose to like or dislike each outfit 2 choices each 2^4=16 possible like lists
RelationR⊆A×B subset of A×B choose some pairs condition Example A={1,2,3} B={a,b} A×B 6 pairs R={(1,a),(2,b)} 2 pairs Domain set of all first elements {1,2} Range set of all second {a,b} Codomain B whole {a,b}Friendship connections choosing some pairs from all possible Domain people who have at least one friend Range people who are friends with someone
Types RelationEmpty φ no pair no connection Universal A×B all pairs all connected Empty no student enrolled no pair Universal every student every subject all 9 pairs Roster {(1,2),(2,4)} set-builder R={(x,y): y=2x x∈A} arrow diagram arrows table Father of (Father,Child) taller than (Person1 taller Person2)Empty no friendships Universal everyone friends with everyone father of father child taller than
Function DefinitionSpecial relation each domain exactly one image unique output no two outputs f:A→B every a∈A unique b∈B (a,b)∈f Example A={1,2,3} B={a,b} f={(1,a),(2,a),(3,b)} function each one output g={(1,a),(1,b),(2,a)} not function 1 has two outputs a and b not allowedMachine each input button exactly one snack not two confusion not function one button two snacks not allowed
Domain Codomain RangeDomain all inputs where defined A Codomain set B possible values Range actual outputs occur subset Codomain Range⊆Codomain Example f={(1,a),(2,a),(3,b)} Domain {1,2,3} Codomain {a,b} Range {a,b} both used f={(1,a),(2,a)} Domain {1,2} Codomain {a,b} Range {a} only a used b not used Range subset Codomain Vertical line test cuts at most once function cuts more than once not functionButtons you can press Domain all possible snacks inside Codomain snacks that actually come out Range some may never come out Range subset Codomain vertical line test
Equal FunctionsSame domain same output f(x)=g(x) all xSame buttons same snacks
One-One InjectiveDifferent inputs different outputs no two same output f(x)=2x one-one 1→2 2→4 different f(x)=x² not one-one 1→1 -1→1 two inputs same 1 many-oneUnique ID each person different ID no sharing Student→Roll No different students different roll no
Many-OneTwo or more inputs same output f(x)=x² many-one 1 and -1 same 1Many people same birthday month many inputs same output Students→Birth Month many same month
Onto SurjectiveEvery codomain has pre-image Range=Codomain all used no left unused Example A={1,2} B={a,b} f={(1,a),(2,b)} onto Range {a,b}=Codomain all used f={(1,a),(2,a)} Range {a}≠Codomain {a,b} b unused not onto intoEvery chair occupied no empty chair all codomain used Range=Codomain Tickets→Seats every seat has ticket onto
IntoAt least one codomain no pre-image Range⊂Codomain proper subset some unused not ontoSome chairs empty some codomain unused
BijectiveBoth one-one and onto perfect pairingPerfect pairing unique ID and all IDs used
Identityf(x)=x input same output graph 45° line origin slope 1 Domain R Range RMirror same input same output
Constantf(x)=c fixed f(x)=5 always 5 graph horizontal y=5 Domain R Range {c} single {5}Always same snack regardless of button
Polynomialf(x)=a0+a1x+a2x²+... Example f(x)=x² parabola U shape Domain R Range [0,∞) ≥0 x²≥0U shape parabola
Modulus |x||x|= x if x≥0 -x if x<0 distance from 0 ≥0 V shape Domain R Range [0,∞) |3|=3 |-3|=3 distance 3 |x|≥0 always |x|=|-x| |x|²=x² |x+y|≤|x|+|y| triangle inequalityDistance from home always positive |3|=3 km |-3|=3 km V shape distance positive
Signumf(x)=1 if x>0 0 if x=0 -1 if x<0 sign positive 1 zero 0 negative -1 graph three horizontal lines Domain R Range {-1,0,1} three valuesTraffic signal positive go 1 zero stop 0 negative reverse -1
Greatest Integer [x] Floor[x] floor greatest integer ≤x [2.3]=2 [2.9]=2 [3]=3 [-1.2]=-2 greatest ≤-1.2 is -2 not -1 -2≤-1.2<-1 steps staircase Domain R Range integers Z ...-2,-1,0,1,2... Properties [x]≤x<[x]+1 [x]+[-x]=-1 if x not integer 0 if integer [x+n]=[x]+n if n integerAge floor 17.9 years integer age 17 greatest ≤ actual steps staircase
Rationalf(x)=1/x Domain R-{0} exclude 0 division by zero not allowed Range R-{0} hyperbolaDivision by zero not allowed hyperbola
Algebra Addition Subtraction(f+g)(x)=f(x)+g(x) Example f(x)=2x+3 g(x)=x-1 (f+g)=2x+3+x-1=3x+2 Domain Df∩Dg (f-g)(x)=f(x)-g(x) Example (2x+3)-(x-1)=x+4Combining two machines outputs add subtract
Algebra Multiplication Division(f·g)(x)=f(x)·g(x) Example (2x+3)(x-1)=2x²+x-3 (f/g)(x)=f(x)/g(x) condition g(x)≠0 no division by zero Example (2x+3)/(x-1) x≠1 because g(x)=x-1≠0 x≠1 Domain Df∩Dg minus where g=0Multiplying outputs combining machines division no division by zero
Composition fog gof(fog)(x)=f(g(x)) read f of g of x plug g inside f Example f(x)=2x+3 g(x)=x-1 fog=f(g(x))=f(x-1)=2(x-1)+3=2x-2+3=2x+1 gof=g(f(x))=g(2x+3)=(2x+3)-1=2x+2 fog≠gof generally not commutative order matters Domain fog {x: x∈Dg and g(x)∈Df}Two machines in series output first g goes as input second f assembly line fog = f after g gof = g after f order matters socks then shoes vs shoes then socks different
Number FunctionsFunctions A to B =n(B)^n(A) each A has n(B) choices Example A 2 B 3 functions 3²=9Each of n(A) students can choose any of n(B) shirts total choices multiply n(B)^n(A)
Domain Range Tricksf(x)=√(x-a) Domain x≥a inside root ≥0 Range ≥0 f(x)=1/(x-a) Domain x≠a denominator ≠0Root ≥0 denominator ≠0
Real Life FunctionsMachine input→output vending machine money→snack ATM pin→money student→percentage temperature→weather distance→fare taxi fare function distance time→growth plant height function timeVending machine money→snack ATM pin→money student→percentage temperature→weather distance→fare taxi fare function distance time→growth plant height function time everywhere function input→output
Final Exam Ready Revision - Every Concept Formula Trick Real Life: