9th Class Maths Unit 3 Sets and Functions – Notes and Solved Exercises (New Syllabus)

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

  1. Mathematics as patterns, structures and relationships
  2. Sets: forms, types, subsets and power set
  3. Operations on sets and Venn diagrams
  4. Properties of union and intersection, De Morgan’s laws
  5. Inclusion–exclusion principle (real-world problems)
  6. Cartesian product and binary relations
  7. Functions and their types
  8. Exercise 3.1 – 3.3 solved
  9. Review Exercise 3 solved
  10. 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”.

FormExample
DescriptiveA is the set of vowels of the English alphabet
Tabular (roster)A = {a, e, i, o, u}
Set-builderA = {x | x is a vowel of the English alphabet}
SymbolSet
NNatural numbers {1, 2, 3, …}
WWhole numbers {0, 1, 2, …}
ZIntegers {0, ±1, ±2, …}
O / EOdd {±1, ±3, …} / Even {0, ±2, ±4, …}
PPrimes {2, 3, 5, 7, 11, …}
Q / Q′Rational / irrational numbers
RReal numbers = Q ∪ Q′
TermMeaning
Singleton setOne element, e.g. {3}. {0} is a singleton, not empty.
Empty setNo element: ∅ or { }
Equal setsExactly the same elements: {1, 2, 3} = {2, 1, 3}
Equivalent sets (~)Same number of elements
Subset A ⊆ BEvery element of A is in B; B is a superset
Proper subset A ⊂ BA ⊆ B and B has at least one extra element
Improper subsetA set is an improper subset of itself
Universal set UAll 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

OperationDefinitionA = {1,2,3}, B = {2,3,4,5}
Union A ∪ Bx ∈ A or x ∈ B{1, 2, 3, 4, 5}
Intersection A ∩ Bx ∈ A and x ∈ B{2, 3}
Difference A − Bin 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

PropertyStatement
CommutativeA ∪ B = B ∪ A; A ∩ B = B ∩ A
AssociativeA ∪ (B ∪ C) = (A ∪ B) ∪ C; A ∩ (B ∩ C) = (A ∩ B) ∩ C
DistributiveA ∪ (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

Two sets: n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
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.

TypeCondition
IntoRange 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. SetSet-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-builderTabular 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. SetTwo 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) ZN, W
(v) QZ, N
(vi) RQ, 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

Q1. U = multiples of 2 up to 30
U = {2, 4, 6, …, 30}
A = {6, 12, 18, 24, 30}, B = {8, 16, 24}
A ∩ B = {24}
Venn: 24 in the overlap; 6, 12, 18, 30 only in A; 8, 16 only in B; the other even numbers outside both circles.
Q2. U = integers 1 to 150
G = {1, 2, 4, 8, 16, 32, 64, 128}, H = {1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144}
G ∪ H = {1, 2, 4, 8, 9, 16, 25, 32, 36, 49, 64, 81, 100, 121, 128, 144}
G ∩ H = {1, 4, 16, 64}
Q3.
P = {2, 3, 5, 7, 11, 13, 17, 19}, Q (divisors of 210 up to 20) = {1, 2, 3, 5, 6, 7, 10, 14, 15}
P ∩ Q = {2, 3, 5, 7}
P ∪ Q = {1, 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19}
Q4. Commutative properties
(i) A ∪ B = {1, 2, 3, 4, 5, 6, 8, 10} = B ∪ A; A ∩ B = {4} = B ∩ A ✔
(ii) N ∪ Z = Z = Z ∪ N; N ∩ Z = N = Z ∩ N ✔
(iii) A ∪ B = R = B ∪ A; A ∩ B = A = B ∩ A ✔
Q5. De Morgan’s laws
A ∪ B = {a, b, c, d, e, f, g, h, j} ⇒ (A ∪ B)′ = {i}
A′ = {e, f, i, j}, B′ = {a, b, g, h, i} ⇒ A′ ∩ B′ = {i} ✔
A ∩ B = {c, d} ⇒ (A ∩ B)′ = {a, b, e, f, g, h, i, j}
A′ ∪ B′ = {a, b, e, f, g, h, i, j} ✔ — both De Morgan’s laws hold.
Q6.
A′ = {2, 4, 6, …, 20}
(i) A ∪ A′ = {1, 2, …, 20} = U ✔ (ii) A ∩ U = A ✔ (iii) A ∩ A′ = ∅ ✔
Q7. 55 students, 34 cricket, 30 hockey
n(C ∩ H) = 34 + 30 − 55 = 9 students
Q8. All three languages
500 = 250 + 150 + 50 − 40 − 30 − 10 + x ⇒ 500 = 370 + x
x = 130 (assuming everyone speaks at least one language)
Q9. People wearing caps
34 = 19 + 15 + n(C) − 3 − 4 − 2 + n(all three)
With nobody in all three groups: 34 = 25 + n(C) ⇒ n(C) = 9
Q10. Participants with books
35 = 17 + 11 + n(Bk) − 9 − 6 − 4 + 8 = 17 + n(Bk)
n(Bk) = 18
Q11. Shopping mall employees
A = {50, …, 89}, B = {101, …, 150}, C = {1, …, 49, 90, …, 100}
(a) A ∩ B = ∅ ⇒ A′ ∪ B′ = (A ∩ B)′ = U ⇒ (A′ ∪ B′) ∩ C = C = {1, 2, …, 49, 90, 91, …, 100}
(b) B′ ∩ C′ = (B ∪ C)′ = {50, …, 89} = A ⇒ n{A ∩ (B′ ∩ C′)} = 40
Q12. Sports
125 = 60 + 70 + 40 − 25 − 15 − 10 + x ⇒ x = 5 play all three
Only cricket 30, only football 35, only hockey 20, cricket & football only 20, football & hockey only 10, cricket & hockey only 5, all three 5.
Q13. Favourite foods (130 people)
(a) 40 + 65 + 50 − 20 − 35 − 27 + 12 = 85
(b) 130 − 85 = 45
(c) only nihari 5, only biryani 22, only korma 0 ⇒ 27
(d) Venn: N&B only 8, B&K only 23, N&K only 15, all three 12, outside 45.

Exercise 3.3

Q1. Relation in A = {1,2,3,4}Ordered pairsDomain / 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
Q4. f(x) = ax + b + 1
f(3) = 3a + b + 1 = 8 ⇒ 3a + b = 7
f(6) = 6a + b + 1 = 14 ⇒ 6a + b = 13
Subtract: 3a = 6 ⇒ a = 2, b = 1
Q5. g(x) = ax + b + 5
g(−1) = −a + b + 5 = 0 ⇒ −a + b = −5
g(2) = 2a + b + 5 = 10 ⇒ 2a + b = 5
Subtract: 3a = 10 ⇒ a = 10/3, b = −5/3
Q6.
5x + 2 = 32 ⇒ 5x = 30 ⇒ x = 6
Q7. f(x) = cx2 + d
c + d = 6 and 4c + d = 10 ⇒ 3c = 4
c = 4/3, d = 14/3

Review Exercise 3 (solved)

Q1 MCQAnswer
(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. SetTabular 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
Q3Answer
(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.
Note: the book prints Q5(i) as A − B = A ∪ B′. The correct identity is A − B = A ∩ B′ (intersection), which is what the Venn diagram shows.
Q6. Verify associative and distributive properties
(a) A = {1,2,3,4}, B = {3,…,8}, C = {5,6,7,9,10}
Union: (A∪B)∪C = {1,…,10} = A∪(B∪C) ✔; Intersection: (A∩B)∩C = ∅ = A∩(B∩C) ✔
A∪(B∩C) = {1,…,7} = (A∪B)∩(A∪C) ✔; A∩(B∪C) = {3,4} = (A∩B)∪(A∩C) ✔
(b) A = ∅, B = {0}, C = {0,1,2}: unions give {0,1,2}, intersections give ∅, A∪(B∩C) = {0} = (A∪B)∩(A∪C), A∩(B∪C) = ∅ = (A∩B)∪(A∩C) ✔
(c) A = N, B = Z, C = Q (N ⊂ Z ⊂ Q): unions = Q, intersections = N, A∪(B∩C) = Z = (A∪B)∩(A∪C), A∩(B∪C) = N = (A∩B)∪(A∩C) ✔
Q7. De Morgan’s laws, U = {1,…,20}
A = even, B = odd numbers of U ⇒ A ∪ B = U, A ∩ B = ∅, A′ = B, B′ = A
(A ∪ B)′ = ∅ and A′ ∩ B′ = B ∩ A = ∅ ✔
(A ∩ B)′ = U and A′ ∪ B′ = B ∪ A = U ✔
  • 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
Q11.
f(−2) = −2a + b = 3, f(4) = 4a + b = 10 ⇒ 6a = 7
a = 7/6, b = 16/3
Q12.
7x − 5 = 100 ⇒ 7x = 105 ⇒ x = 15
Q13.
g(0) = n = 5; g(4) = 16m + 5 = 20 ⇒ 16m = 15
m = 15/16, n = 5
Q14.
A = {1, …, 30}, B = {31, …, 55}, C = {76, …, 100}
A ∪ B ∪ C = {1, 2, …, 55, 76, 77, …, 100}
Q15. 180 students, maths and science
(a) 120 + 90 − 60 = 150
(b) 180 − 150 = 30
(c) 90 − 60 = 30
(d) 180 − 90 = 90
Q16. 300 developers
(a) 150 + 130 + 120 − 70 − 60 − 50 + 40 = 260
(b) only Python 60, only Java 50, only PHP 50 ⇒ 160
(c) 300 − 260 = 40
(d) only PHP = 120 − 60 − 50 + 40 = 50

More MCQs for practice

  1. A set with only one element is called:
    (a) empty set (b) singleton set (c) universal set (d) power set
    Answer: (b) singleton set
  2. If n(A) = 5, then n{P(A)} =
    (a) 5 (b) 10 (c) 25 (d) 32
    Answer: (d) 32
  3. {0} is a:
    (a) empty set (b) singleton set (c) null set (d) universal set
    Answer: (b) singleton set
  4. A ∩ A′ =
    (a) A (b) U (c) ∅ (d) A′
    Answer: (c) ∅
  5. A ∪ A′ =
    (a) A (b) U (c) ∅ (d) A′
    Answer: (b) U
  6. (A ∪ B)′ =
    (a) A′ ∪ B′ (b) A′ ∩ B′ (c) A ∩ B (d) A − B
    Answer: (b) A′ ∩ B′
  7. If A ∩ B = ∅, the sets are:
    (a) overlapping (b) equal (c) disjoint (d) equivalent
    Answer: (c) disjoint
  8. If n(A) = 3 and n(B) = 4, then n(A × B) =
    (a) 7 (b) 12 (c) 1 (d) 81
    Answer: (b) 12
  9. The set of first elements of a relation is its:
    (a) range (b) co-domain (c) domain (d) image
    Answer: (c) domain
  10. A function where Range f = B is called:
    (a) into (b) onto (c) one-one only (d) constant
    Answer: (b) onto
  11. A function that is both one-one and onto is:
    (a) into (b) injective only (c) bijective (d) surjective only
    Answer: (c) bijective
  12. If f(x) = 2x − 1, then f(5) =
    (a) 9 (b) 10 (c) 11 (d) 4
    Answer: (a) 9
  13. Venn diagrams were introduced by:
    (a) Georg Cantor (b) John Venn (c) Euler (d) Napier
    Answer: (b) John Venn
  14. 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)
  15. 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.

Scroll to Top