Chapter 3 Sets and Functions Notes – 9th Class Math New Book

Chapter 3 Sets and Functions notes thumbnail listing the exercises of the chapter, 9th class math new book

Chapter 3, Sets and Functions, from the 9th class Mathematics new book (Punjab). Learn to write sets, count overlapping groups, and read relations and functions from tables, graphs and arrows.

Tap a section to open or close it.
3.1 Mathematics as the Study of Patterns, Structures and Relationships

Patterns, structures and relationships

A pattern follows a rule. In the sequence below, the rule adds three each time. A structure shows how the parts fit together, as the rows in a triangle do.

Terms 1, 4, 7, 10 and 13 with an increase of three between adjacent terms 1471013+3+3+3+3
Each term is three more than the previous term.
$$13+3=16$$

The Fibonacci sequence starts with 0 and 1. Add the previous two terms to get each new term.

Fibonacci sequence
$$F_n=F_{n-1}+F_{n-2}\quad(n\ge2)$$
$$0,1,1,2,3,5,8,13,21,\ldots$$
Fibonacci tiling of squares with side lengths 1, 1, 2, 3, 5, 8, 13 and 21 3581321Side lengths 1, 1, 2, 3, 5, 8, 13, 21
Add the two previous side lengths to get the next square. The curve joins quarter circles inside the squares.

In the book’s triangle pattern, the stages contain 1, 4 and 16 smallest triangles. Each new row in a stage contains two more small triangles than the row above it.

Three equal-size triangles subdivided into one, four and sixteen small triangles 1 triangle4 triangles16 triangles
The four-row stage has 1, 3, 5 and 7 small triangles from top to bottom.
$$1+3+5+7=16$$
Triangle pattern with horizontal rows and perpendicular guide lines
The rows are parallel to the base, and the dashed guides meet the base at right angles.

3.1.1 Basic Definitions

A set is a well-defined collection of distinct elements. You can tell for each object whether it belongs. Changing the order of the elements, or repeating an element, does not change the set.

FormSet of English vowels
DescriptiveThe vowels of the English alphabet
Tabular or roster$\{a,e,i,o,u\}$
Set-builder$\{x\mid x\text{ is an English vowel}\}$

Use the membership symbol when a value belongs to the set and the crossed symbol when it is outside the set.

$$a\in\{a,e,i,o,u\}$$
$$c\notin\{a,e,i,o,u\}$$
SymbolSetExamples or rule
$\mathbb N$Natural numbers$\{1,2,3,\ldots\}$
$\mathbb W$Whole numbers$\{0,1,2,3,\ldots\}$
$\mathbb Z$Integers$\{\ldots,-2,-1,0,1,2,\ldots\}$
$O$Odd integers$\{\ldots,-3,-1,1,3,\ldots\}$
$E$Even integers$\{\ldots,-2,0,2,4,\ldots\}$
$P$Prime numbers$\{2,3,5,7,11,\ldots\}$
$\mathbb Q$Rational numbers$\frac pq\text{ with }p,q\in\mathbb Z,\ q\ne0$
$\mathbb Q'$Irrational numbers$\sqrt2,\ \pi$
$\mathbb R$Real numbersAll rational and irrational numbers
  • A singleton has one element. The empty set has zero elements and is written $\varnothing$ or $\{\ \}$. Note that $\{0\}$ is a singleton, not the empty set.
  • Equal sets have the same elements. This requires containment in both directions.
  • Equivalent sets have the same number of elements. A set of three letters and a set of three numbers are equivalent. We write $A\sim B$.
  • A subset uses only elements of the original set. A proper subset leaves out at least one element. The whole set is its own improper subset.
  • If $A\subseteq B$, then $B$ is a superset of $A$, written $B\supseteq A$. The number sets are nested: $\mathbb N\subset\mathbb W\subset\mathbb Z\subset\mathbb Q\subset\mathbb R$.
  • $n(A)$ is the number of elements (cardinality) of $A$. For $A=\{1,3,5,7,9,11\}$, $n(A)=6$.
  • In set-builder notation, $\land$ means “and” and $\lor$ means “or”.
  • The universal set includes every element being considered in that problem.
Subsets
$$A\subseteq B\quad\text{if every element of }A\text{ belongs to }B$$
$$A\subset B\quad\text{if }A\subseteq B\text{ and }B-A\ne\varnothing$$
$$A=B\quad\text{if }A\subseteq B\text{ and }B\subseteq A$$

The power set lists every subset, including the empty set and the whole set. List them in order of size to avoid missing one.

Power set
$$\mathcal P(A)=\{X\mid X\subseteq A\}$$
$$n(\mathcal P(A))=2^{n(A)}$$
$$\mathcal P(\{a,b\})=\{\varnothing,\{a\},\{b\},\{a,b\}\}$$

Exercise 3.1 Examples · Exercise 3.1 Solutions

3.2 Operations on Sets

Operations on Sets

  • Union includes every element in either set or both sets.
  • Intersection includes the elements common to both sets.
  • Difference keeps elements of the first set that are outside the second set.
  • Complement keeps all elements of the universal set outside the named set: $A'=\{x\mid x\in U\land x\notin A\}$, also written $A^c$.
Set operations
$$A\cup B=\{x\mid x\in A\ \text{or}\ x\in B\}$$
$$A\cap B=\{x\mid x\in A\ \text{and}\ x\in B\}$$
$$A-B=\{x\mid x\in A\ \text{and}\ x\notin B\}$$
$$A'=U-A$$

Worked example. Combine the sets for their union. Keep only the two shared elements for their intersection.

$$\{1,2,3\}\cup\{2,3,4,5\}=\{1,2,3,4,5\}$$
$$\{1,2,3\}\cap\{2,3,4,5\}=\{2,3\}$$

3.2.1 Identification of Sets Using Venn Diagram

The rectangle represents the universal set. Circles represent sets within it. Disjoint sets share no elements. Overlapping sets have $A\cap B\ne\varnothing$, but neither set is a subset of the other.

A contains 1, 3 and 5. The shaded complement inside U contains 2 and 4. UA24135
The rectangle is U. The shaded part outside circle A contains the complement, $A'=\{2,4\}$.
Disjoint sets

The circles share no region.

Union for disjoint sets UAB
$A\cup B$ is the shaded region.
Intersection for disjoint sets UAB
$A\cap B$ is empty, so no region is shaded.
A minus B for disjoint sets UAB
$A- B$ is the shaded region.
B minus A for disjoint sets UAB
$B- A$ is the shaded region.
Overlapping sets

The circles have a common lens and each has its own separate part.

Union for overlapping sets UAB
$A\cup B$ is the shaded region.
Intersection for overlapping sets UAB
$A\cap B$ is the shaded region.
A minus B for overlapping sets UAB
$A- B$ is the shaded region.
B minus A for overlapping sets UAB
$B- A$ is the shaded region.
A inside B

Every point of A is also inside B.

Union for a inside b UAB
$A\cup B$ is the shaded region.
Intersection for a inside b UAB
$A\cap B$ is the shaded region.
A minus B for a inside b UAB
$A- B$ is empty, so no region is shaded.
B minus A for a inside b UAB
$B- A$ is the shaded region.
B inside A

Every point of B is also inside A.

Union for b inside a UAB
$A\cup B$ is the shaded region.
Intersection for b inside a UAB
$A\cap B$ is the shaded region.
A minus B for b inside a UAB
$A- B$ is the shaded region.
B minus A for b inside a UAB
$B- A$ is empty, so no region is shaded.
Results from the Venn diagrams

Disjoint sets: $n(A\cup B)=n(A)+n(B)$, $A-B=A$, $B-A=B$.

Overlapping sets: $n(A-B)=n(A)-n(A\cap B)$, $n(B-A)=n(B)-n(A\cap B)$.

$A\subseteq B$: $A\cup B=B$, $A\cap B=A$, $A-B=\varnothing$, $n(B-A)=n(B)-n(A)$.

$B\subseteq A$: $A\cup B=A$, $A\cap B=B$, $B-A=\varnothing$.

3.2.2 Operations on Three Sets

Work out the set operation in parentheses first. The commutative laws let you swap the order of two sets. The associative laws let you move the parentheses when using the same operation. The distributive laws let you expand a union across an intersection or an intersection across a union.

LawIdentity
Commutative Law of Union$A\cup B=B\cup A$
Commutative Law of Intersection$A\cap B=B\cap A$
Associative Law of Union$A\cup (B\cup C)=(A\cup B)\cup C$
Associative Law of Intersection$A\cap (B\cap C)=(A\cap B)\cap C$
Distributive Law of Union over Intersection$A\cup (B\cap C)=(A\cup B)\cap (A\cup C)$
Distributive Law of Intersection over Union$A\cap (B\cup C)=(A\cap B)\cup (A\cap C)$
De Morgan’s Law for Union$(A\cup B)'=A'\cap B'$
De Morgan’s Law for Intersection$(A\cap B)'=A'\cup B'$

De Morgan’s laws change union to intersection, or intersection to union, when the complement moves inside the parentheses.

Check with sets. Take $U=\{1,2,\ldots,10\}$, $A=\{1,2,3\}$, $B=\{2,3,4,5\}$ and $C=\{3,4,5,6,7,8\}$.

$$\begin{aligned} A\cup(B\cap C)&=\{1,2,3\}\cup\{3,4,5\}\\[7pt] &=\{1,2,3,4,5\}\\[7pt] (A\cup B)\cap(A\cup C)&=\{1,2,3,4,5\}\cap\{1,2,3,4,5,6,7,8\}\\[7pt] &=\{1,2,3,4,5\} \end{aligned}$$
$$\begin{aligned} (A\cup B)'&=\{1,2,3,4,5\}'\\[7pt] &=\{6,7,8,9,10\}\\[7pt] A'\cap B'&=\{4,5,6,7,8,9,10\}\cap\{1,6,7,8,9,10\}\\[7pt] &=\{6,7,8,9,10\} \end{aligned}$$

Both sides agree, so the distributive law and De Morgan’s law hold for these sets.

3.2.3 Real-World Applications

The cardinality of a finite set is its number of elements. Inclusion–exclusion counts everyone in a union once by subtracting repeated counts.

Inclusion–exclusion
$$n(A\cup B)=n(A)+n(B)-n(A\cap B)$$
$$n(A\cup B\cup C)=n(A)+n(B)+n(C)-n(A\cap B)-n(A\cap C)-n(B\cap C)+n(A\cap B\cap C)$$

Worked example. In a group of 20 people, 12 are in A and 11 are in B. All 20 belong to at least one of the sets. Find how many are in both.

$$\begin{aligned} n(A\cap B)&=12+11-20\\[7pt] &=3 \end{aligned}$$

For three sets, fill in the centre first. Subtract the centre from each pair total. Then find the single-set regions. Subtract the union total from the group size to find the number outside all three.

Exercise 3.2 Examples · Exercise 3.2 Solutions

3.3 Binary Relations

Binary Relations

The Cartesian product pairs each element of the first set with every element of the second. A binary relation from A to B is any subset of that product. A relation on A uses A for both coordinates.

Cartesian product, domain and range
$$A\times B=\{(x,y)\mid x\in A\ \text{and}\ y\in B\}$$
$$\operatorname{Dom}r=\{x\mid (x,y)\in r\text{ for some }y\}$$
$$\operatorname{Ran}r=\{y\mid (x,y)\in r\text{ for some }x\}$$

The domain is the set of first coordinates. The range is the set of second coordinates. List each distinct value once.

3.3.1 Relation as Table, Ordered Pair and Graphs

A tank begins with one litre and gains one litre each minute. Use the elapsed minutes as x and the amount of water as y.

$$y=x+1$$
MinutesWater in litres
$0$$0+1=1$
$1$$1+1=2$
$2$$2+1=3$
$3$$3+1=4$
$4$$4+1=5$
$5$$5+1=6$
$$r=\{\left(0,1\right),\left(1,2\right),\left(2,3\right),\left(3,4\right),\left(4,5\right),\left(5,6\right)\}$$
A line graph of tank volume y equals x plus one, with points from zero minutes and one litre to five minutes and six litres. 123456781234567Oy = x + 1(0, 1)(1, 2)(2, 3)(3, 4)(4, 5)(5, 6)xy
The points show the six recorded minutes. The line shows the rule relating time and water amount.

3.3.2 Function and its Domain and Range

A function sends every input to exactly one output. The codomain is the allowed target set. The range contains the targets that are actually reached.

Function notation
$$f\colon A\to B$$
$$\operatorname{Dom}f=A$$
$$\operatorname{Ran}f\subseteq B$$
$$y=f(x)$$

Here $y$ is the image (value) of $x$ under $f$.

Into

The range is a proper subset of the codomain. A target such as 8 receives no arrow.

Inputs 1, 3 and 5 point to 2, 4 and 6. Target 8 receives no arrow. AB1352468
The three outputs form a proper subset of B.
One-to-one or injective

Different inputs have different outputs. The output c is unused, so this example is also into.

Input 1 points to a and input 2 points to b, with c unused. AB12abc
Each output reached by an arrow receives exactly one.
Onto or surjective

Every element of the codomain is an output. An onto function can send two different inputs to the same output.

c1 and c2 point to m1. c3 points to m2. Every target is reached. ABc₁c₂c₃m₁m₂
Both targets are reached, and the first receives two arrows.
Bijective

The function is one-to-one and onto. Every target has exactly one arrow arriving at it.

a maps to z, b maps to x, and c maps to y. Each target is reached exactly once. ABabcxyz
Each element of A is paired with a different element of B, and every target is used.

3.3.3 Notation of Function

A rule describes an infinite function without listing every pair. The textbook’s square example starts at −1 and continues through the nonnegative integers.

$$f(x)=x^2\quad(x\in\mathbb Z,\ x\ge-1)$$
$$\operatorname{Ran}f=\{0,1,4,9,16,\ldots\}$$
The first six inputs of the square function. Minus one and one both map to one. DomainRange−101234014916
The diagram shows the first six inputs of the square rule. The range lists 1 once, even though two inputs give that output.

3.3.4 Linear and Quadratic Functions

A linear function has a straight-line graph. A quadratic function has a nonzero squared term.

Two function rules
$$y=mx+c$$
$$y=ax^2+bx+c\qquad(a\ne0)$$

Worked example. To evaluate a rule at a negative input, put the input in parentheses before squaring.

$$g(x)=x^2+2$$
$$\begin{aligned} g(-2)&=(-2)^2+2\\[7pt] &=4+2\\[7pt] &=6 \end{aligned}$$

Exercise 3.3 Examples · Exercise 3.3 Solutions

Exercise solutions of Chapter 3

Popular posts from this blog

Chapter 13 MCQs and Short Questions with Answers – 9th Class Math

Exercise 3.1 Solutions – 9th Class Math New Book (Sets, Subsets and Power Sets)

Exercise 1.1 Solutions – 9th Class Math New Book (Real Numbers and Their Properties)