Last updated: 4 December 2026 · Punjab Board 9th Class Mathematics (new syllabus 2025-26) · Unit 3
Easy, exam-focused notes for Unit 3: Sets and Functions of the new Punjab Board 9th class Maths book. Every exercise question (Exercise 3.1, 3.2, 3.3 and Review Exercise 3) is solved step by step, and the answers are checked against the textbook answer key.
In this unit
- Mathematics as patterns, structures and relationships
- Sets: forms, types, subsets and power set
- Operations on sets and Venn diagrams
- Properties of union and intersection, De Morgan’s laws
- Inclusion–exclusion principle (real-world problems)
- Cartesian product and binary relations
- Functions and their types
- Exercise 3.1 – 3.3 solved
- Review Exercise 3 solved
- MCQs for practice
3.1 Patterns, structures and relationships
Mathematics studies patterns (a rule that repeats), structures (objects plus the relations between them) and relationships. Examples: 1, 4, 7, 10, 13 (add 3 each time) and the Fibonacci sequence 0, 1, 1, 2, 3, 5, 8, 13 … where Fn = Fn−1 + Fn−2. Georg Cantor (1845–1918) developed set theory.
3.1.1 Sets – basic definitions
A set is a well-defined collection of distinct objects. Capital letters name sets; ∈ means “belongs to”, ∉ means “does not belong to”.
| Form | Example |
|---|---|
| Descriptive | A is the set of vowels of the English alphabet |
| Tabular (roster) | A = {a, e, i, o, u} |
| Set-builder | A = {x | x is a vowel of the English alphabet} |
| Symbol | Set |
|---|---|
| N | Natural numbers {1, 2, 3, …} |
| W | Whole numbers {0, 1, 2, …} |
| Z | Integers {0, ±1, ±2, …} |
| O / E | Odd {±1, ±3, …} / Even {0, ±2, ±4, …} |
| P | Primes {2, 3, 5, 7, 11, …} |
| Q / Q′ | Rational / irrational numbers |
| R | Real numbers = Q ∪ Q′ |
| Term | Meaning |
|---|---|
| Singleton set | One element, e.g. {3}. {0} is a singleton, not empty. |
| Empty set | No element: ∅ or { } |
| Equal sets | Exactly the same elements: {1, 2, 3} = {2, 1, 3} |
| Equivalent sets (~) | Same number of elements |
| Subset A ⊆ B | Every element of A is in B; B is a superset |
| Proper subset A ⊂ B | A ⊆ B and B has at least one extra element |
| Improper subset | A set is an improper subset of itself |
| Universal set U | All elements under consideration |
| Power set P(S) | Set of all subsets; if n(S) = m then n{P(S)} = 2m |
Note: N ⊂ W ⊂ Z ⊂ Q ⊂ R. The empty set has no proper subset.
3.2 Operations on sets
| Operation | Definition | A = {1,2,3}, B = {2,3,4,5} |
|---|---|---|
| Union A ∪ B | x ∈ A or x ∈ B | {1, 2, 3, 4, 5} |
| Intersection A ∩ B | x ∈ A and x ∈ B | {2, 3} |
| Difference A − B | in A but not in B | {1} |
| Complement A′ | U − A (in U, not in A) | — |
- Disjoint sets: A ∩ B = ∅ (e.g. odd and even natural numbers).
- Overlapping sets: A ∩ B ≠ ∅ but neither is a subset of the other.
- Venn diagram (John Venn, 1834–1883): rectangle = U, circles = sets.
- In general A − B ≠ B − A, and A′ = U − A.
3.2.2 Properties of union and intersection
| Property | Statement |
|---|---|
| Commutative | A ∪ B = B ∪ A; A ∩ B = B ∩ A |
| Associative | A ∪ (B ∪ C) = (A ∪ B) ∪ C; A ∩ (B ∩ C) = (A ∩ B) ∩ C |
| Distributive | A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C); A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) |
| De Morgan’s laws | (A ∪ B)′ = A′ ∩ B′; (A ∩ B)′ = A′ ∪ B′ |
3.2.3 Inclusion–exclusion principle
Three sets: n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(A ∩ C) − n(B ∩ C) + n(A ∩ B ∩ C)
Only A (three sets) = n(A) − n(A ∩ B) − n(A ∩ C) + n(A ∩ B ∩ C)
Example: 98 students, 58 swimming, 50 tug-of-war, everyone plays at least one: both = 58 + 50 − 98 = 10. Shopping-mall survey of 130: 57 garments, 50 cosmetics, 46 electronics, 31 G∩C, 25 G∩E, 21 C∩E, 12 all three → at least one = 57 + 50 + 46 − 31 − 25 − 21 + 12 = 88; none = 130 − 88 = 42.
3.3 Cartesian product and binary relations
- Cartesian product A × B = {(x, y) | x ∈ A and y ∈ B}. If n(A) = m and n(B) = n then n(A × B) = mn.
- Binary relation from A to B: any subset of A × B (usually named r). A relation in A is a subset of A × A.
- Domain = set of first elements; Range = set of second elements.
- A relation can be shown as a set of ordered pairs, a table or a graph (x = abscissa, y = ordinate).
Example: A = {1, 2, 3}, r = {(x, y) | x < y} = {(1, 2), (1, 3), (2, 3)}; Dom r = {1, 2}, Range r = {2, 3}.
3.3.2 Functions
A relation f from A to B is a function (f : A → B) if (i) Dom f = A and (ii) no element of A has two images (no two pairs have the same first element). y = f(x) is the image of x; B is the co-domain; the set of images is the range.
| Type | Condition |
|---|---|
| Into | Range f ⊂ B (some element of B is left without a pre-image) |
| One-one (injective) | Different elements have different images |
| Onto (surjective) | Range f = B (every element of B is an image) |
| Bijective (1–1 correspondence) | Both one-one and onto |
- Linear function: y = mx + c (graph is a straight line).
- Quadratic function: y = ax2 + bx + c.
- Example: f(x) = 2x − 1 ⇒ f(7) = 13; g(x) = x2 − 3 ⇒ g(−3) = 6.
Unit 3 textbook exercise (solved)
Exercise 3.1
| Q1. Set | Set-builder notation |
|---|---|
| (i) {1, 4, 9, …, 484} | {x | x = n2, n ∈ N ∧ 1 ≤ n ≤ 22} |
| (ii) {2, 4, 8, …, 256} | {x | x = 2n, n ∈ N ∧ 1 ≤ n ≤ 8} |
| (iii) {0, ±1, …, ±1000} | {x | x ∈ Z ∧ −1000 ≤ x ≤ 1000} |
| (iv) {6, 12, …, 120} | {x | x = 6n, n ∈ N ∧ 1 ≤ n ≤ 20} |
| (v) {100, 102, …, 400} | {x | x = 100 + 2n, n ∈ W ∧ 0 ≤ n ≤ 150} |
| (vi) {1, 3, 9, 27, …} | {x | x = 3n, n ∈ W} |
| (vii) {1, 2, 4, 5, 10, 20, 25, 50, 100} | {x | x is a divisor of 100} |
| (viii) {5, 10, …, 100} | {x | x = 5n, n ∈ N ∧ 1 ≤ n ≤ 20} |
| (ix) integers between −100 and 1000 | {x | x ∈ Z ∧ −100 < x < 1000} |
| Q2. Set-builder | Tabular form |
|---|---|
| (i) multiples of 3, x ≤ 36 | {3, 6, 9, …, 36} |
| (ii) x ∈ R, 2x + 1 = 0 | {−1/2} |
| (iii) x ∈ P, x < 12 | {2, 3, 5, 7, 11} |
| (iv) divisors of 128 | {1, 2, 4, 8, 16, 32, 64, 128} |
| (v) x = 2n, n ∈ N, n < 8 | {2, 4, 8, 16, 32, 64, 128} |
| (vi) x ∈ N, x + 4 = 0 | { } (x = −4 is not natural) |
| (vii) x ∈ N, x = x | {1, 2, 3, 4, …} = N |
| (viii) x ∈ Z, 3x + 1 = 0 | { } (x = −1/3 is not an integer) |
| Q3. Set | Two proper subsets (sample) |
|---|---|
| (i) {a, b, c} | {a}, {a, b} |
| (ii) {0, 1} | {0}, {1} |
| (iii) N | {1, 2}, set of even natural numbers |
| (iv) Z | N, W |
| (v) Q | Z, N |
| (vi) R | Q, Z |
| (vii) {x | x ∈ Q ∧ 0 < x ≤ 2} | {1, 2}, {1/2, 1} |
- Q4. Yes, the empty set ∅ (or { }) has no proper subset.
- Q5. {a, b} has two elements a and b, while {{a, b}} has only one element, the set {a, b}.
- Q6. n{P(S)} = 2n: (i) 20 = 1 (ii) 22 = 4 (iii) 27 = 128 (iv) 28 = 256 (v) {a, {b, c}} has 2 elements → 4 (vi) 3 elements → 8
Q7. Power sets
- (i) P{9, 11} = {∅, {9}, {11}, {9, 11}}
- (ii) P{+, −, ×, ÷} = {∅, {+}, {−}, {×}, {÷}, {+, −}, {+, ×}, {+, ÷}, {−, ×}, {−, ÷}, {×, ÷}, {+, −, ×}, {+, −, ÷}, {+, ×, ÷}, {−, ×, ÷}, {+, −, ×, ÷}} (16 subsets)
- (iii) P{∅} = {∅, {∅}}
- (iv) P{a, {b, c}} = {∅, {a}, {{b, c}}, {a, {b, c}}}
Exercise 3.2
Exercise 3.3
| Q1. Relation in A = {1,2,3,4} | Ordered pairs | Domain / Range |
|---|---|---|
| (i) y = x | {(1,1), (2,2), (3,3), (4,4)} | {1,2,3,4} / {1,2,3,4} |
| (ii) y + x = 5 | {(1,4), (2,3), (3,2), (4,1)} | {1,2,3,4} / {1,2,3,4} |
| (iii) x + y < 5 | {(1,1), (1,2), (1,3), (2,1), (2,2), (3,1)} | {1,2,3} / {1,2,3} |
| (iv) x + y > 5 | {(2,4), (3,3), (3,4), (4,2), (4,3), (4,4)} | {2,3,4} / {2,3,4} |
- Q2. Fig (1): not a function (one element has two images). Fig (2): bijective. Fig (3): bijective. Fig (4): into function (y has no pre-image).
- Q3. g(0) = 2, g(−3) = −7, g(2/3) = 4, h(1) = 2, h(−4) = 17, h(−1/2) = 5/4
Review Exercise 3 (solved)
| Q1 MCQ | Answer |
|---|---|
| (i) {1, 1/3, 1/5, 1/7, …} | (b) {x | x = 1/(2n+1), n ∈ W} |
| (ii) A = { }, P(A) = | (c) {{ }} |
| (iii) U − (A ∩ B) | (a) {1, 2, 4, 5} |
| (iv) overlapping, n(A − B) = | (d) n(A) − n(A ∩ B) |
| (v) A ⊆ B, n(B − A) = | (d) n(B) − n(A) |
| (vi) n(A ∩ B) = | (b) 15 |
| (vii) elements in A × B | (b) 12 |
| (viii) f(a + 1) for x2 − 3x + 2 | (d) a2 − a |
| (ix) 3x + 1 = 28 | (a) 9 |
| (x) f = {(1,a), (2,b), (3,b)} | (b) f is surjective |
| Q2. Set | Tabular form |
|---|---|
| (i) x = 2n, n ∈ N | {2, 4, 6, 8, …} |
| (ii) x = 2m + 1, m ∈ N | {3, 5, 7, 9, …} |
| (iii) x = 11n, n ∈ W, n < 11 | {0, 11, 22, …, 110} |
| (iv) x ∈ E, 4 < x < 6 | { } |
| (v) x ∈ O, 5 < x < 7 | { } |
| (vi) x ∈ Q, x2 = 2 | { } |
| (vii) x ∈ Q, x = −x | {0} |
| (viii) x ∈ R, x ∉ Q′ | Q |
| Q3 | Answer |
|---|---|
| (i) A′ | {1, 3, 5, 7, 9} |
| (ii) B′ | {6, 7, 8, 9, 10} |
| (iii) A ∪ B | {1, 2, 3, 4, 5, 6, 8, 10} |
| (iv) A − B | {6, 8, 10} |
| (v) A ∩ C | ∅ |
| (vi) A′ ∪ C′ | {1, 2, …, 10} = U |
| (vii) A′ ∪ C | {1, 3, 5, 7, 9} |
| (viii) U′ | ∅ |
- Q4. (i) A′ = U − A (ii) A ∩ U = A (iii) A ∪ U = U (iv) A ∪ ∅ = A (v) ∅ ∩ ∅ = ∅
- Q5. (i) In a Venn diagram, the part of A outside B is exactly A ∩ B′, so A − B = A ∩ B′. (ii) B lies completely outside A − B, so B ⊆ (A − B)′ and (A − B)′ ∩ B = B.
- Q8. P = multiples of 5, Q = multiples of 2 ⇒ P ∩ Q = {10, 20, 30, 40, …}
- Q9. (i) A ∩ (A ∪ B) = (A ∩ A) ∪ (A ∩ B) = A ∪ (A ∩ B) (distributive law). (ii) A ∪ (A ∩ B) = (A ∪ A) ∩ (A ∪ B) = A ∩ (A ∪ B). Both sides equal A.
- Q10. g(0) = −2, g(−1) = −9, g(−5/3) = −41/3, s(1) = 5, s(−9) = 645, s(7/2) = 95
More MCQs for practice
- A set with only one element is called:
(a) empty set (b) singleton set (c) universal set (d) power set
Answer: (b) singleton set - If n(A) = 5, then n{P(A)} =
(a) 5 (b) 10 (c) 25 (d) 32
Answer: (d) 32 - {0} is a:
(a) empty set (b) singleton set (c) null set (d) universal set
Answer: (b) singleton set - A ∩ A′ =
(a) A (b) U (c) ∅ (d) A′
Answer: (c) ∅ - A ∪ A′ =
(a) A (b) U (c) ∅ (d) A′
Answer: (b) U - (A ∪ B)′ =
(a) A′ ∪ B′ (b) A′ ∩ B′ (c) A ∩ B (d) A − B
Answer: (b) A′ ∩ B′ - If A ∩ B = ∅, the sets are:
(a) overlapping (b) equal (c) disjoint (d) equivalent
Answer: (c) disjoint - If n(A) = 3 and n(B) = 4, then n(A × B) =
(a) 7 (b) 12 (c) 1 (d) 81
Answer: (b) 12 - The set of first elements of a relation is its:
(a) range (b) co-domain (c) domain (d) image
Answer: (c) domain - A function where Range f = B is called:
(a) into (b) onto (c) one-one only (d) constant
Answer: (b) onto - A function that is both one-one and onto is:
(a) into (b) injective only (c) bijective (d) surjective only
Answer: (c) bijective - If f(x) = 2x − 1, then f(5) =
(a) 9 (b) 10 (c) 11 (d) 4
Answer: (a) 9 - Venn diagrams were introduced by:
(a) Georg Cantor (b) John Venn (c) Euler (d) Napier
Answer: (b) John Venn - n(A ∪ B) = n(A) + n(B) − ?
(a) n(A − B) (b) n(A ∩ B) (c) n(U) (d) n(A′)
Answer: (b) n(A ∩ B) - N ⊂ W ⊂ Z ⊂ Q ⊂ ?
(a) P (b) E (c) R (d) O
Answer: (c) R
What is Unit 3 of 9th class Maths (new syllabus)?
Unit 3 is Sets and Functions. It covers sets and their forms, subsets and power sets, operations on two and three sets, Venn diagrams, De Morgan’s laws, the inclusion–exclusion principle, binary relations and types of functions.
What is the inclusion–exclusion principle for three sets?
n(A∪B∪C) = n(A) + n(B) + n(C) − n(A∩B) − n(A∩C) − n(B∩C) + n(A∩B∩C).
What are De Morgan’s laws?
(A∪B)′ = A′∩B′ and (A∩B)′ = A′∪B′.
What is the difference between into, onto and bijective functions?
An into function leaves some element of B without a pre-image. An onto function covers every element of B. A bijective function is both one-one and onto.
How many subsets does a set with n elements have?
A set with n elements has 2^n subsets, so its power set has 2^n elements.
📄 Download these notes as PDF
Save this chapter to your phone or computer and read it offline, or share it with your friends.
The PDF downloads directly. Long chapters may take a few seconds.
More 9th Class Maths
Need a Maths home tutor?
Male & female Maths tutors in all major cities of Pakistan, home or online. 3-day free demo.
