Number of elements in a set
The number of elements in set A is denoted by n(A)
Example
Let A be a set of all positive odd integers which are less than 10. Find n(A)
Solution
A={1,3,5,7,9}
Now n(A)=5
Example
Let A={x∈R:x2−x−2=0}. Find n(A)
Solution
x2−x−2=0a×c=−2x2−1x−2x−2=0x(x+1)−2(x+1)=0(x−2)(x+1)=0x=2, x=−1A={−1,2}now n(A)=2
Note
- The number of elements of a set is defined only for a finite set
- If A⊆U then the number of elements of A′ is n(A′)=n(U)−n(A)
Example
If A⊆U and B⊆U then show that n(A∪B)=n(A)+n(B)−n(A∩B)
Proof
Refer to the Venn diagram below
R.H.S=n(A)+n(B)−n(A∩B)=(a+b)+(b+c)−b=a+2b+c−b=a+b+c=n(A∪B)=L.H.S
Example
- Given n(X)=18, n(Y)=26, n(X∩Y)=12. Find n(X∪Y)
- Given n(S∪T)=19, n(S)=15, n(S∩T′)=10. Find n(S∩T)
- Given n(A∩B)=5, n(A∪B)=16, n((A∪B)′)=4, n(A−B)=8. Find i) n(A) ii) n(A∪B′) iii) n(μ) iv) n(A′∩B)
Solutions
n(X∪Y)n(X∪Y)=n(X)+n(Y)−n(X∩Y)=18+26−12=32=32
- n(S∪T)=19, n(S)=15, n(S∩T′)=10
n(S∩T)=?
n(S∩T)n(S∩T)=n(S)−n(S∩T′)=15−10=5=5
- n(A∩B)=5, n(A∪B)=16, n((A∪B)′)=4, n(A−B)=8
i) n(A)=? ii) n(A∪B′) iii) n(μ) iv) n(A′∩B)
n(A)=n(A−B)+n(A∩B)=8+5=13
ii)
n(A∪B′)n(A∪B′)=n(A)+n(B′)=13+4=17=17
iii)
n(μ)n(μ)=n(A∪B)+n((A∪B)′)=16+4=20=20
iv)
n(A′∩B)n(A′∩B)n(A′∩B)n(A′∩B)=n(B)−n(A∩B)=n(A∪B)−n(A)+n(A∩B)−n(A∩B)=16−13+5−5=3
- By using n(A∪B)=n(A)+n(B)−n(A∩B) show that:
n(A∪B∪C)=n(A)+n(B)+n(C)−n(A∩B)−n(A∩C)−n(B∩C)+n(A∩B∩C)
Solutions
Let B∪C=K
L.H.S n(A∪B∪C)=n(A∪K)
=n(A)+n(K)−n(A∩K)=n(A)+n(B∪C)−n(A∩(B∪C))=n(A)+n(B)+n(C)−n(B∩C)−n((A∩B)∪(A∩C))=n(A)+n(B)+n(C)−n(B∩C)−(n(A∩B)+n(A∩C)−n((A∩B)∩(A∩C)))=n(A)+n(B)+n(C)−n(B∩C)−n(A∩B)−n(A∩C)+n(A∩B∩C)
Example
- 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?
- 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.
Solution for problem 1
i) Students who study math only = 2+1 = 3 students
ii) Students who study science only = 2+7 = 9 students
iii) Students who study both math and science = 8+3 = 11 students
Solution for problem 2
18−x=15
x=3