Module 2 · JEE Mathematics

Sets, Relations & Functions β€” Organize, Connect, Transform

No formulas. No memorization. Just stories, animations, and "AHA!" moments.
🎯 Take Mock Test
🧸 Sets πŸ—ΊοΈ Relations πŸ₯€ Functions πŸ“ˆ Real Funcs 🎯 Practice

Sets Are Just Labeled Boxes Full of Things

Imagine you have two labeled boxes: Box A contains toys {1, 2, 3}. Box B contains {3, 4, 5}. That's all a set is β€” a collection of distinct objects with a label.

Sets = Labeled Toy Boxes
Every set is like a box with a label. Inside the box are distinct items β€” no duplicates allowed. You can have a box of numbers, a box of letters, a box of colors, or even a box of other boxes!

Set notation: A = {1, 2, 3} means "Box A contains items 1, 2, and 3."
∈ means "is in the box" (3 ∈ A). βˆ‰ means "is not in the box" (5 βˆ‰ A).

Key rule: Order doesn't matter. {1, 2, 3} = {3, 1, 2}. And no duplicates: {1, 1, 2} is just {1, 2}.
πŸ’‘ A set is a box. ∈ means "inside the box." βˆ‰ means "outside the box." That's the whole language.
🧸 Sets = Toy Boxes
Set A = {1, 2, 3} 1 2 3 Set B = {3, 4, 5} 3 4 5 βˆͺ A βˆͺ B = {1, 2, 3, 4, 5}
Union (βˆͺ): Pour both boxes into one big box. A βˆͺ B = {1, 2, 3, 4, 5}. The 3 only appears once β€” sets don't have duplicates!

Types of Sets

Sets come in different flavors. Here are the ones you'll see in JEE:

Empty, Finite, Infinite, Equal, Subset, Superset, Universal
Empty set βˆ…: A box with nothing in it. {} or βˆ….
Finite set: A box with a countable number of items. {1, 2, 3}.
Infinite set: A box that never ends. β„• = {1, 2, 3, ...}.
Equal sets: Two boxes with exactly the same items. {1, 2} = {2, 1}.
Subset A βŠ† B: Every item in box A is also in box B. {1, 2} βŠ† {1, 2, 3}.
Superset A βŠ‡ B: Box A contains everything box B has and possibly more.
Universal set U: The biggest box β€” contains ALL items under consideration.
🧠 Think of βŠ† as "fits inside." {1, 2} βŠ† {1, 2, 3} means the smaller box fits entirely inside the bigger one.
πŸ”„ Intersection, Difference, Complement β€” Venn Diagram View
A ∩ B (Intersection) ∩ A βˆ’ B (Difference) A A' (Complement) U (universe) A A' Power set P(A) = set of ALL subsets of A. If |A| = n, then |P(A)| = 2ⁿ Cardinality: n(AβˆͺB) = n(A) + n(B) βˆ’ n(A∩B) De Morgan's Laws: (A βˆͺ B)' = A' ∩ B'   |   (A ∩ B)' = A' βˆͺ B' "Not (A or B)" = "Not A and Not B" β€” like a double negative in English!
Intersection (∩): Items in BOTH boxes. Difference (βˆ’): Items in A but NOT in B. Complement ('): Everything in the universe U that's NOT in A. Power set: All possible subsets, including βˆ… and A itself.
πŸ”„ De Morgan's Law β€” The Complement Dance
Universal Set U A B Complement = everything outside A βˆͺ B (shown in red) De Morgan's Law: (A βˆͺ B)' = A' ∩ B'  |  (A ∩ B)' = A' βˆͺ B'
De Morgan's laws are like logical double negatives. "Not (A or B)" means the same as "Not A and Not B." The complement of the union is the intersection of the complements.
🌟 Set Cardinality Formula
n(A βˆͺ B) = n(A) + n(B) βˆ’ n(A ∩ B)
Count everything in A, add everything in B, then subtract what you double-counted (the intersection). Like counting students in two classrooms β€” those in both get counted twice!

Worked Example: Venn Diagram with Three Sets

In a survey of 100 students: 50 like Math (M), 40 like Physics (P), 30 like Chemistry (C), 20 like both M and P, 15 like both P and C, 10 like both M and C, 5 like all three. How many like none?

1 Fill the Venn diagram from the center out β–Ά
Start with the triple intersection: M∩P∩C = 5.

M∩P only = 20 βˆ’ 5 = 15 (total who like both minus those who like all three)
P∩C only = 15 βˆ’ 5 = 10
M∩C only = 10 βˆ’ 5 = 5

M only = 50 βˆ’ 15 βˆ’ 5 βˆ’ 5 = 25
P only = 40 βˆ’ 15 βˆ’ 5 βˆ’ 10 = 10
C only = 30 βˆ’ 5 βˆ’ 5 βˆ’ 10 = 10
2 Sum all the regions β–Ά
Total in at least one = 25 + 10 + 10 + 15 + 10 + 5 + 5 = 80

Students who like none = 100 βˆ’ 80 = 20.

Worked Example: Power Set

Find the power set of A = {a, b, c}. How many subsets does it have?

1 Count the subsets β–Ά
For each of the 3 elements, you can either include it or exclude it. So 2 Γ— 2 Γ— 2 = 2Β³ = 8 subsets.
2 List them all β–Ά
βˆ… (empty set), {a}, {b}, {c}, {a,b}, {a,c}, {b,c}, {a,b,c}

These 8 subsets form the power set P(A). The empty set and the original set A are always included!

Worked Example: De Morgan's Law in Action

Given U = {1, 2, 3, 4, 5, 6, 7, 8}, A = {1, 2, 3, 4}, B = {3, 4, 5, 6}. Verify that (A βˆͺ B)' = A' ∩ B'.

1 Find A βˆͺ B and its complement β–Ά
A βˆͺ B = {1, 2, 3, 4, 5, 6}
(A βˆͺ B)' = U βˆ’ (A βˆͺ B) = {7, 8}
2 Find A', B' and their intersection β–Ά
A' = U βˆ’ A = {5, 6, 7, 8}
B' = U βˆ’ B = {1, 2, 7, 8}
A' ∩ B' = {5, 6, 7, 8} ∩ {1, 2, 7, 8} = {7, 8}

(A βˆͺ B)' = {7, 8} = A' ∩ B' βœ…
De Morgan's Law is verified!

Relations Are Just Connections Between Things

A relation connects elements of one set to elements of another (or the same) set. Think of it like a friendship map: "Alice knows Bob," "Bob knows Charlie." Each arrow is an ordered pair.

Relations = Social Media Connections
Imagine a social network. People (set A) can follow other people (set B). Each follow is an ordered pair (follower, followee).

Ordered pair (a, b): The first element comes from set A (domain), the second from set B (codomain). Unlike sets, order matters here. (Alice, Bob) means Alice follows Bob β€” it's different from (Bob, Alice)!

Cartesian product A Γ— B: The set of ALL possible ordered pairs. If A has 3 people and B has 3 people, A Γ— B has 9 possible connections. A relation is just a SUBSET of these possible connections.
πŸ’‘ A relation = a set of arrows. Domain = where arrows start. Codomain = where arrows could go. Range = where arrows actually go.
πŸ—ΊοΈ Relations = Friendship Arrows
Domain πŸ‘© Alice πŸ‘¨ Bob πŸ‘¦ Charlie Codomain πŸ‘§ Diana πŸ‘© Eve πŸ‘¨ Frank Each arrow = ordered pair (domain β†’ codomain). A relation = any set of arrows.
Domain = {Alice, Bob, Charlie}. Codomain = {Diana, Eve, Frank}. Range = {Diana, Eve, Frank} (all three have arrows pointing to them). The relation R = {(Alice, Diana), (Alice, Eve), (Bob, Diana), (Charlie, Frank)}.

Types of Relations on the Same Set

When domain and codomain are the SAME set (A to A), we get special types:

πŸ”„ Reflexive, Symmetric, Transitive β€” The Three Musketeers
Reflexive βœ… Everyone follows themselves A B C self-loop Symmetric βœ… If Aβ†’B then Bβ†’A A B C Transitive βœ… If Aβ†’B and Bβ†’C then Aβ†’C A B C Equivalence Relation = Reflexive + Symmetric + Transitive (all three together!)
Reflexive: Every element relates to itself (self-loop). Symmetric: If A relates to B, B relates to A (bidirectional). Transitive: If A→B and B→C, then A→C (chain). An equivalence relation has ALL three properties — it groups elements into classes.
πŸ“ Cartesian Product β€” All Possible Ordered Pairs
Set A a b c Set B 1 2 3 A Γ— B (Cartesian Product) (a,1) (a,2) (a,3) (b,1) (b,2) (b,3) (c,1) (c,2) (c,3) A relation is a SUBSET of A Γ— B. Any set of these 9 pairs!
Cartesian product A Γ— B: The set of ALL possible ordered pairs combining every element of A with every element of B. If |A| = m and |B| = n, then |A Γ— B| = m Γ— n. A relation is just a subset β€” you pick which pairs to include.

Worked Example: Identifying Relation Types

Let A = {1, 2, 3} and R = {(1,1), (1,2), (2,1), (2,2), (3,3)}. Is R reflexive? Symmetric? Transitive? An equivalence relation?

1 Check reflexive β–Ά
Reflexive means EVERY element relates to itself. Need (1,1), (2,2), (3,3). All three are present. βœ… Reflexive.
2 Check symmetric β–Ά
Symmetric means if (a,b) is in R, then (b,a) must also be in R.
(1,2) is in R β†’ (2,1) is in R βœ…
All other pairs are self-pairs which are trivially symmetric. βœ… Symmetric.
3 Check transitive and equivalence β–Ά
Transitive: if (a,b) and (b,c) in R then (a,c) in R.
(1,2) and (2,1) β†’ (1,1) βœ… (present)
(2,1) and (1,2) β†’ (2,2) βœ… (present)
No other pair combinations apply. βœ… Transitive.

Since R is reflexive + symmetric + transitive = Equivalence relation βœ…. It partitions A into {1, 2} and {3}.
🌟 Equivalence Relations = Sorting Machine
An equivalence relation partitions a set into disjoint groups (equivalence classes). Elements in the same group are "equivalent" to each other.
Example: "Has the same birthday" is an equivalence relation. It groups people by their birth date. Everyone in a group shares the same birthday! "Congruence modulo n" is another classic example.

Worked Example: Number of Relations

If |A| = m and |B| = n, how many possible relations can exist from A to B?

1 Think of the grid β–Ά
|A Γ— B| = m Γ— n. A relation is any subset of A Γ— B. The number of subsets of a set with k elements is 2k.

Therefore, number of relations from A to B = 2mΓ—n.

Example: |A| = 2, |B| = 3 β†’ mn = 6 β†’ 2⁢ = 64 possible relations!

A Function Is a Vending Machine: One Button β†’ One Snack

A function is a special kind of relation. A vending machine: each button (input) gives EXACTLY ONE snack (output). Not zero, not two β€” exactly one.

Is It a Function? The "One Button β†’ One Snack" Rule
Function: Button 1 gives chips, Button 2 gives cookies. Every button gives exactly one snack. βœ…

Not a function: Button 1 gives chips AND cookies. One input β†’ two outputs. ❌

Still a function: Button 1 and Button 2 both give chips. Different inputs β†’ same output is fine!

Domain: The set of buttons you can press.
Codomain: All snacks that could come out.
Range: Snacks that actually come out for some button.
🧠 Functions are the strict parent of relations: "One input, exactly one output. No exceptions!"
πŸ₯€ Functions = Vending Machines
πŸ₯€ SNACK MACHINE Btn 1 Btn 2 Btn 3 🍫 πŸ₯¨ Domain = {1,2,3} Codomain = {🍫,πŸ₯¨,πŸͺ,🍬} Range = {🍫,πŸ₯¨,πŸͺ} (snacks that actually come out)
Domain = buttons you can press (inputs). Codomain = all snacks in the machine (possible outputs). Range = snacks that actually drop for some button. Each button β†’ exactly one snack. That's a function!
πŸ”„ One-One (Injective) vs Many-One β€” Mapping Diagrams
One-One (Injective) βœ… a b c 1 2 3 Many-One ❌ a b c 1 2 3 Onto (Surjective) βœ… a b c 1 2 3
One-one (injective): Each input maps to a unique output (distinct arrows, no sharing). Many-one: Multiple inputs share the same output. Onto (surjective): Every possible output is used. Bijective: One-one AND onto = perfect pairing!

Composition of Functions

Think of composition as a conveyor belt. f(g(x)) means: first apply g, then apply f to the result.

⛓️ Composition f(g(x)) β€” The Conveyor Belt
x β†’ g Apply g first β†’ f Then apply f β†’ f(g(x)) f(g(x)) = "apply g, then f" β€” the output of g becomes the input of f
Watch the ball move: x enters g β†’ g(x) comes out β†’ that goes into f β†’ final result f(g(x)). Like a factory assembly line where each machine transforms the product further.

Worked Example: Domain and Range

Find the domain and range of f(x) = √(x βˆ’ 3).

1 Domain: what x values are allowed? β–Ά
The square root of a negative number is not real. So we need x βˆ’ 3 β‰₯ 0 β†’ x β‰₯ 3.
Domain: [3, ∞)
2 Range: what y values come out? β–Ά
√(anything) is always β‰₯ 0. For x = 3, f(3) = 0. As x β†’ ∞, f(x) β†’ ∞.
Range: [0, ∞)

Worked Example: Composite Function

If f(x) = 2x + 1 and g(x) = xΒ², find f(g(3)) and g(f(3)). Are they equal?

1 Compute f(g(3)) β€” apply g first, then f β–Ά
g(3) = 3Β² = 9
f(g(3)) = f(9) = 2(9) + 1 = 18 + 1 = 19
2 Compute g(f(3)) β€” apply f first, then g β–Ά
f(3) = 2(3) + 1 = 7
g(f(3)) = g(7) = 7Β² = 49

f(g(3)) = 19 β‰  49 = g(f(3))
Composition is NOT commutative: f(g(x)) β‰  g(f(x)) in general. Order matters!

Worked Example: Checking Bijectivity

Is the function f: ℝ β†’ ℝ defined by f(x) = 2x + 3 bijective? Find its inverse if it exists.

1 Check one-one (injective) β–Ά
If f(a) = f(b), then 2a + 3 = 2b + 3 β†’ 2a = 2b β†’ a = b.
Different inputs always give different outputs. βœ… One-one.
2 Check onto (surjective) β–Ά
For any y in ℝ, can we find x such that f(x) = y?
y = 2x + 3 β†’ x = (y βˆ’ 3)/2. For any real y, x is real. βœ… Onto.

Since f is both one-one AND onto, it is bijective.
3 Find the inverse β–Ά
Since f is bijective, its inverse exists. Swap x and y: x = 2y + 3 β†’ y = (x βˆ’ 3)/2.
f⁻¹(x) = (x βˆ’ 3)/2
Verify: f⁻¹(f(x)) = f⁻¹(2x + 3) = (2x + 3 βˆ’ 3)/2 = x βœ…
f(f⁻¹(y)) = f((y βˆ’ 3)/2) = 2(y βˆ’ 3)/2 + 3 = y βœ…
🌟 Invertible Functions
A function is invertible if you can "reverse the vending machine" β€” press a button that exactly undoes what the original did. This is only possible if the function is bijective (one-one AND onto).
f⁻¹(f(x)) = x and f(f⁻¹(y)) = y. Like a perfect undo button! Only bijective functions are invertible.
Functions at a Glance
One-one (injective): Different inputs β†’ different outputs. No two buttons give the same snack.
Onto (surjective): Every snack in the machine is reachable by some button.
Bijective: Both one-one AND onto. Perfect matching. The only kind that's invertible!
Many-one: Not one-one. Two different inputs give the same output.
Into: Not onto. Some snacks in the machine never come out.
🧠 Injective = no collisions. Surjective = full coverage. Bijective = perfect 1-to-1 mapping.

Seeing Functions: The V-Shape, the Staircase, the Step

Some functions have such distinctive graphs that they get special names. These appear constantly in JEE β€” learn their shapes, not their formulas!

Modulus Function: f(x) = |x|

The absolute value (modulus) measures distance from zero. |x| = x if x β‰₯ 0, |x| = -x if x < 0. The graph is a perfect V-shape.

πŸ“ The V-Shape β€” f(x) = |x|
x β†’ ↑ y = |x| -4 -2 0 2 4 f(x) = |x| V-shape, vertex at origin |x| = distance from 0 on the number line. Always non-negative.
The modulus function creates a V-shape. For x β‰₯ 0, it's the line y = x (45Β° slope). For x < 0, it's y = -x (reflects across the y-axis). The vertex at (0, 0) is the minimum β€” the closest you can get to 0.

Signum Function: sgn(x)

The signum function tells you the SIGN of a number: -1 if negative, 0 if zero, 1 if positive.

⏫ The Step Function β€” sgn(x)
x β†’ ↑ y = sgn(x) -2 -1 0 1 2 1 0 -1 sgn(x) = 1 if x > 0 sgn(x) = 0 if x = 0 sgn(x) = -1 if x < 0 sgn(x) = |x|/x for x β‰  0. It "signs" the number!
Signum: A step function with three possible values. At x = 0, sgn(0) = 0 (the only zero output). For any positive x, sgn(x) = 1. For any negative x, sgn(x) = -1. The open circles at the jumps show discontinuity.

Greatest Integer Function: f(x) = [x] (Floor)

The greatest integer function [x] returns the largest integer ≀ x. Also called the floor function. Its graph is a staircase!

πŸ—οΈ The Staircase β€” f(x) = [x] (Greatest Integer)
x β†’ ↑ y = [x] [x] = greatest integer ≀ x Example: [3.7] = 3, [-2.3] = -3 [x] rounds DOWN to the nearest integer. Also called "floor."
[x] creates a staircase ascending to the right. Each step is flat (constant value) from integer n to just before n+1. At the integer n itself, the value jumps up by 1. Note: [-2.3] = -3 (rounds DOWN, not towards zero!).

Fractional Part Function: f(x) = {x}

The fractional part {x} = x - [x]. It extracts the decimal part of x. The graph is a sawtooth wave!

🦷 The Sawtooth β€” {x} = x - [x] (Fractional Part)
x β†’ ↑ y = {x} 1 0 -2 -1 0 1 2 {x} = x - [x] Sawtooth wave, always in [0, 1) {x} extracts the decimal part. E.g., {3.7} = 0.7, {-2.3} = 0.7
Fractional part {x}: A sawtooth wave that resets to 0 at every integer. It rises linearly from 0 to almost 1, then drops back to 0. It's always in the range [0, 1). The function is periodic with period 1.
🌟 Real Functions Cheat Sheet
|x| = distance from 0 (V-shape)  |  sgn(x) = sign of x (step)  |  [x] = floor (staircase)  |  {x} = x - [x] (sawtooth)
Learn the SHAPES, not the formulas. In JEE, visual recognition of these graphs saves precious minutes.

Worked Example: Modulus Equation

Solve |2x βˆ’ 5| = 9.

1 Set up two cases β–Ά
|2x βˆ’ 5| = 9 means the distance from 2x βˆ’ 5 to 0 is 9.
So either 2x βˆ’ 5 = 9 or 2x βˆ’ 5 = βˆ’9.
2 Solve both cases β–Ά
Case 1: 2x βˆ’ 5 = 9 β†’ 2x = 14 β†’ x = 7
Case 2: 2x βˆ’ 5 = βˆ’9 β†’ 2x = βˆ’4 β†’ x = βˆ’2

Solution set: {βˆ’2, 7}

These Traps Trip Up Even Top Students

Confusing ∈ and βŠ†
Wrong: If A = {{1, 2}, 3}, then 1 ∈ A ❌
Right: 1 βˆ‰ A because A contains {1, 2} (a set) and 3, not the element 1 directly.

∈ is for elements (items inside the box). βŠ† is for subsets (boxes inside boxes).
{1, 2} ∈ A βœ… (the set {1,2} is an element of A)
1 βˆ‰ A ❌ (1 is inside {1,2}, which is in A, but not directly in A)
⚠️ ∈ = "is an element of" (direct member). βŠ† = "is a subset of" (fits inside). Don't mix them!
Forgetting That Order Matters in Relations
Wrong: (a, b) = (b, a) in all cases ❌
Right: (a, b) β‰  (b, a) unless a = b.

Ordered pairs are the foundation of relations. (Alice, Bob) means Alice follows Bob. (Bob, Alice) means Bob follows Alice. Completely different relationships!

In a Cartesian product, (1, 2) and (2, 1) are TWO DIFFERENT pairs.
⚠️ (a, b) β‰  (b, a). Order always matters in ordered pairs!
Thinking "Onto" Means "Every Input Has an Output"
Wrong: "A function is onto because every input maps to something." ❌
Right: Every function has this property β€” that's what makes it a function!

Onto (surjective) means every element of the CODOMAIN is used, not every element of the domain. It's about covering the target set, not about having defined outputs.

Think: "Every possible snack actually comes out for some button" β€” that's onto.
⚠️ Into = some codomain elements unused. Onto = ALL codomain elements used. Don't confuse "function" with "onto"!
Greatest Integer of Negative Numbers
Wrong: [-2.3] = -2 ❌
Right: [-2.3] = -3 βœ…

[x] is the greatest integer ≀ x. For -2.3, the integers ≀ -2.3 are ... -5, -4, -3. The greatest among these is -3.

Think: [-2.3] = -3 because -3 ≀ -2.3 < -2. The floor function always rounds DOWN, not towards zero!
⚠️ [x] rounds DOWN. For negatives, [-2.3] = -3, not -2. "Floor" means lower, not closer to zero.

4 Strategies That Crack Almost Any Problem

"Draw the Venn Diagram"
For any set problem with multiple sets and overlaps, draw a Venn diagram. Start from the innermost intersection and work outward. Label each region. Then add up the regions.

Example: In a class of 100, 60 play cricket, 50 play football, 30 play both. How many play neither?
Draw two overlapping circles. The intersection is 30. Cricket only = 60βˆ’30 = 30. Football only = 50βˆ’30 = 20. Total who play = 30+30+20 = 80. Neither = 100βˆ’80 = 20.
πŸ’‘ Venn diagrams turn abstract set problems into simple addition problems. Always start from the center!
"The Vertical and Horizontal Line Tests"
These two tests are all you need for function classification:

Vertical line test: Is it a function? Draw a vertical line across the graph. If it hits the graph more than once, it's NOT a function (one input β†’ multiple outputs).

Horizontal line test: Is it one-one? Draw a horizontal line across the graph. If it hits the graph more than once, it's NOT one-one (two inputs share the same output).

Every function passes the vertical line test. One-one functions also pass the horizontal line test.
πŸ’‘ Vertical line = "is it a function?" Horizontal line = "is it one-one?" Two tests, zero calculations!
"Check Reflexive First"
When identifying relation types, always check reflexive first. It's the easiest β€” just check if EVERY element has a self-loop (a,a).

If it's not reflexive, it can't be an equivalence relation. Save time by checking this first!

Then check symmetric (if a→b then b→a). Then transitive (if a→b and b→c then a→c). Only if all three hold is it an equivalence relation.
πŸ’‘ Reflexive is the quickest check. No self-loops? Not an equivalence relation. Move on!
"f(g(x)) = Apply Inside-Out"
Composition f(g(x)) looks confusing, but it's just "apply g to x, then apply f to the result." Read from the inside out.

Example: f(x) = √x, g(x) = x + 1. f(g(3)) = f(3+1) = f(4) = √4 = 2.

The notation f∘g means "f after g" β€” first g, then f. Think of it as a pipeline: x β†’ g β†’ f β†’ result.
πŸ’‘ f(g(x)) = "inside-out." Start with x, apply g, then apply f. Conveyor belt!

Multi-Step Problems That Combine Multiple Concepts

Example 1: Sets + Cardinality + Venn Diagram

In a group of 200 students: 120 take Physics (P), 90 take Chemistry (C), 80 take Math (M). 50 take P and C, 40 take C and M, 30 take P and M, 20 take all three. How many take exactly two subjects? How many take none?

1 Find the "exactly two" regions β–Ά
P∩C only = 50 βˆ’ 20 = 30 (total P∩C minus those who also take M)
C∩M only = 40 βˆ’ 20 = 20
P∩M only = 30 βˆ’ 20 = 10

Exactly two subjects = 30 + 20 + 10 = 60
2 Find "exactly one" and "none" β–Ά
P only = 120 βˆ’ 30 βˆ’ 10 βˆ’ 20 = 60
C only = 90 βˆ’ 30 βˆ’ 20 βˆ’ 20 = 20
M only = 80 βˆ’ 10 βˆ’ 20 βˆ’ 20 = 30

Total in at least one = 60 + 20 + 30 + 30 + 20 + 10 + 20 = 190
None = 200 βˆ’ 190 = 10

Example 2: Relations + Equivalence Classes

Let R be a relation on β„€ (integers) defined by aRb if aΒ² ≑ bΒ² (mod 5). Show that R is an equivalence relation and find the equivalence classes.

1 Show reflexive β–Ά
For any a ∈ β„€, aΒ² ≑ aΒ² (mod 5) trivially. So aRa holds for all a. βœ… Reflexive.
2 Show symmetric and transitive β–Ά
Symmetric: If aΒ² ≑ bΒ² (mod 5), then bΒ² ≑ aΒ² (mod 5). So aRb β†’ bRa. βœ…

Transitive: If aΒ² ≑ bΒ² (mod 5) and bΒ² ≑ cΒ² (mod 5), then aΒ² ≑ cΒ² (mod 5). So aRb and bRc β†’ aRc. βœ…

Since reflexive + symmetric + transitive, R is an equivalence relation.
3 Find equivalence classes β–Ά
Squares modulo 5 are: 0²≑0, 1²≑1, 2²≑4, 3²≑9≑4, 4²≑16≑1.

So the squares are only 0, 1, or 4 mod 5. Equivalence classes:
β€’ [0] = {a : aΒ² ≑ 0 mod 5} = {..., -5, 0, 5, 10, ...} (multiples of 5)
β€’ [1] = {a : aΒ² ≑ 1 mod 5} = numbers ≑ Β±1 mod 5 = {..., -4, -1, 1, 4, 6, 9, ...}
β€’ [2] = {a : aΒ² ≑ 4 mod 5} = numbers ≑ Β±2 mod 5 = {..., -3, -2, 2, 3, 7, 8, ...}

Three equivalence classes partition β„€!

Example 3: Function + Domain + Composite

If f(x) = 1/(x βˆ’ 2) and g(x) = √(x + 3), find the domain of f(g(x)) and g(f(x)).

1 Domain of f(g(x)) β–Ά
f(g(x)) = f(√(x + 3)) = 1/(√(x + 3) βˆ’ 2)

Restrictions:
1. Inside √: x + 3 β‰₯ 0 β†’ x β‰₯ βˆ’3
2. Denominator β‰  0: √(x + 3) β‰  2 β†’ x + 3 β‰  4 β†’ x β‰  1

Domain: [βˆ’3, 1) βˆͺ (1, ∞)
2 Domain of g(f(x)) β–Ά
g(f(x)) = g(1/(x βˆ’ 2)) = √(1/(x βˆ’ 2) + 3) = √((1 + 3(x βˆ’ 2))/(x βˆ’ 2)) = √((3x βˆ’ 5)/(x βˆ’ 2))

Restrictions:
1. Denominator of f: x β‰  2
2. Inside √: (3x βˆ’ 5)/(x βˆ’ 2) β‰₯ 0

Solve inequality: critical points at x = 5/3 and x = 2.
Sign analysis: x < 5/3 β†’ (+)/(βˆ’) = βˆ’ ❌ | 5/3 ≀ x < 2 β†’ (+)/(βˆ’) = βˆ’ ❌ | x > 2 β†’ (+)/(+) = + βœ…

Domain: (βˆ’βˆž, 5/3] βˆͺ (2, ∞)

Practice Zone: Think, Don't Compute

These questions test if you truly understand the ideas. No calculation needed β€” just reasoning!

← Back Calculus β†’