Sonzaschool
Rudi

Sekondari ya Juu · Kidato cha Sita

Basic Applied Mathematics 2

Number of Element in Set

takriban dakika 8 kusoma

Mada za sehemu hiiSet TheoryMada 4

Number of elements in a set

The number of elements in set A is denoted by n(A)n(A)

Example

Let A be a set of all positive odd integers which are less than 10. Find n(A)n(A)

Solution

A={1,3,5,7,9}A = \{1, 3, 5, 7, 9\}

Now n(A)=5n(A) = 5

Example

Let A={xR:x2x2=0}A = \{x \in \mathbb{R} : x^2 - x - 2 = 0\}. Find n(A)n(A)

Solution

x2x2=0a×c=2x21x2x2=0x(x+1)2(x+1)=0(x2)(x+1)=0x=2, x=1A={1,2}now n(A)=2\begin{aligned} &x^2 - x - 2 = 0 \\ &a \times c = -2 \\ &x^2 - 1x - 2x - 2 = 0 \\ &x(x + 1) - 2(x + 1) = 0 \\ &(x - 2)(x + 1) = 0 \\ &x = 2, \ x = -1 \\ &A = \{-1, 2\} \\ &\text{now } n(A) = 2 \end{aligned}

Note

  1. The number of elements of a set is defined only for a finite set
  2. If AUA \subseteq U then the number of elements of AA' is n(A)=n(U)n(A)n(A') = n(U) - n(A)

Example

If AUA \subseteq U and BUB \subseteq U then show that n(AB)=n(A)+n(B)n(AB)n(A \cup B) = n(A) + n(B) - n(A \cap B)

Proof

Refer to the Venn diagram below

Venn diagram showing two overlapping sets A and B with regions labeled a, b, and c R.H.S=n(A)+n(B)n(AB)=(a+b)+(b+c)b=a+2b+cb=a+b+c=n(AB)=L.H.S\begin{aligned} \text{R.H.S} &= n(A) + n(B) - n(A \cap B) \\ &= (a + b) + (b + c) - b \\ &= a + 2b + c - b \\ &= a + b + c \\ &= n(A \cup B) \\ &= \text{L.H.S} \end{aligned}

Example

  1. Given n(X)=18n(X) = 18, n(Y)=26n(Y) = 26, n(XY)=12n(X \cap Y) = 12. Find n(XY)n(X \cup Y)
  2. Given n(ST)=19n(S \cup T) = 19, n(S)=15n(S) = 15, n(ST)=10n(S \cap T') = 10. Find n(ST)n(S \cap T)
  3. Given n(AB)=5n(A \cap B) = 5, n(AB)=16n(A \cup B) = 16, n((AB))=4n((A \cup B)') = 4, n(AB)=8n(A - B) = 8. Find i) n(A)n(A) ii) n(AB)n(A \cup B') iii) n(μ)n(\mu) iv) n(AB)n(A' \cap B)

Solutions

n(XY)=n(X)+n(Y)n(XY)=18+2612=32n(XY)=32\begin{aligned} n(X \cup Y) &= n(X) + n(Y) - n(X \cap Y) \\ &= 18 + 26 - 12 \\ &= 32 \\ n(X \cup Y) &= 32 \end{aligned}
  1. n(ST)=19n(S \cup T) = 19, n(S)=15n(S) = 15, n(ST)=10n(S \cap T') = 10

n(ST)=?n(S \cap T) = ?

n(ST)=n(S)n(ST)=1510=5n(ST)=5\begin{aligned} n(S \cap T) &= n(S) - n(S \cap T') \\ &= 15 - 10 \\ &= 5 \\ n(S \cap T) &= 5 \end{aligned}
  1. n(AB)=5n(A \cap B) = 5, n(AB)=16n(A \cup B) = 16, n((AB))=4n((A \cup B)') = 4, n(AB)=8n(A - B) = 8

i) n(A)=?n(A) = ? ii) n(AB)n(A \cup B') iii) n(μ)n(\mu) iv) n(AB)n(A' \cap B)

n(A)=n(AB)+n(AB)=8+5=13\begin{aligned} n(A) &= n(A - B) + n(A \cap B) \\ &= 8 + 5 \\ &= 13 \end{aligned}

ii)

n(AB)=n(A)+n(B)=13+4=17n(AB)=17\begin{aligned} n(A \cup B') &= n(A) + n(B') \\ &= 13 + 4 \\ &= 17 \\ n(A \cup B') &= 17 \end{aligned}

iii)

n(μ)=n(AB)+n((AB))=16+4=20n(μ)=20\begin{aligned} n(\mu) &= n(A \cup B) + n((A \cup B)') \\ &= 16 + 4 \\ &= 20 \\ n(\mu) &= 20 \end{aligned}

iv)

n(AB)=n(B)n(AB)n(AB)=n(AB)n(A)+n(AB)n(AB)n(AB)=1613+55n(AB)=3\begin{aligned} n(A' \cap B) &= n(B) - n(A \cap B) \\ n(A' \cap B) &= n(A \cup B) - n(A) + n(A \cap B) - n(A \cap B) \\ n(A' \cap B) &= 16 - 13 + 5 - 5 \\ n(A' \cap B) &= 3 \end{aligned}
  1. By using n(AB)=n(A)+n(B)n(AB)n(A \cup B) = n(A) + n(B) - n(A \cap B) show that:
n(ABC)=n(A)+n(B)+n(C)n(AB)n(AC)n(BC)+n(ABC)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)

Solutions

Let BC=KB \cup C = K

L.H.S n(ABC)=n(AK)n(A \cup B \cup C) = n(A \cup K)

=n(A)+n(K)n(AK)=n(A)+n(BC)n(A(BC))=n(A)+n(B)+n(C)n(BC)n((AB)(AC))=n(A)+n(B)+n(C)n(BC)(n(AB)+n(AC)n((AB)(AC)))=n(A)+n(B)+n(C)n(BC)n(AB)n(AC)+n(ABC)\begin{aligned} &= n(A) + n(K) - n(A \cap K) \\ &= n(A) + n(B \cup C) - n(A \cap (B \cup C)) \\ &= n(A) + n(B) + n(C) - n(B \cap C) - n((A \cap B) \cup (A \cap C)) \\ &= n(A) + n(B) + n(C) - n(B \cap C) - (n(A \cap B) + n(A \cap C) - n((A \cap B) \cap (A \cap C))) \\ &= n(A) + n(B) + n(C) - n(B \cap C) - n(A \cap B) - n(A \cap C) + n(A \cap B \cap C) \end{aligned}

Example

  1. A class has 15 boys and 15 girls. In the class 20 students are studying science, 14 students are studying math, 10 boys are studying science, 10 boys are studying math, 8 boys are studying both math and science, 4 girls are studying neither math nor science.

Find

i) How many students study math only?

ii) How many students study science only?

iii) How many students study both math and science?

  1. In a class of 35 students each student takes either one of two subjects (physics, chemistry and biology). If 13 students take chemistry, 22 students take physics, 17 students take biology, 6 students take both physics and chemistry and 3 students take both biology and chemistry. Find the number of students who take both biology and physics.
Venn diagram for science and math problem showing number of students in each region

Solution for problem 1

i) Students who study math only = 2+12 + 1 = 3 students

ii) Students who study science only = 2+72 + 7 = 9 students

iii) Students who study both math and science = 8+38 + 3 = 11 students

Solution for problem 2

Venn diagram for physics, chemistry and biology problem

18x=1518 - x = 15

x=3x = 3

Mwalimu

Unasoma somo hili? Niulize nikuelezee chochote kilichomo.

Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.

Ingia ili kuuliza