✦ VidyaVerseOpen in the book reader

Home › Books › High School Mathematics

Chapter 5: Sets, Relations and Logic

High School Mathematics · PART I — Number · by GS Shashidhara

Read in the book reader – search and larger text

KEY IDEA — Learning objectives

After studying this chapter you will be able to:

▪ describe sets in roster and set-builder form and recognise empty, finite, infinite, equal and equivalent sets;

▪ find subsets and power sets, and use the universal set and complements;

▪ perform union, intersection, difference and symmetric difference, and use Venn diagrams;

▪ prove set identities, including De Morgan’s laws;

▪ solve counting problems with two and three sets using the inclusion–exclusion principle;

▪ form Cartesian products and classify relations as reNexive, symmetric, transitive or equivalence relations;

▪ use the logical connectives, construct truth tables, and form the converse, inverse and contrapositive;

▪ negate statements containing “all”, “some” and “there exists”.

SYLLABUS LINK — Where this chapter fits

▪ NCERT/CBSE: Class 11 Sets; Relations and Functions; Mathematical Reasoning (logic) in earlier Class 11 syllabi; Class 12 Relations (equivalence relations).

▪ ICSE / ISC: ISC Class 11 Sets, Relations and Functions; Class 9–10 set language in problem solving.

▪ Cambridge IGCSE 0580: E1.2 Sets (notation, Venn diagrams with up to three sets).

▪ GCSE (England): P6 (Venn diagrams and set notation for probability); N5 (systematic listing).

▪ US Common Core: HSS-CP.A.1 (subsets, unions,

intersections, complements); mathematical practice standard MP3 (constructing arguments).

▪ IB DP: Analysis & Approaches — sets in probability; proof (direct, contradiction, contrapositive).

▪ Olympiad: counting subsets, inclusion–exclusion, logic puzzles.

5.1 Sets and Their Description

A set is a well-defined collection of distinct objects, called its elements or members. “Well-defined” means that for any object we can decide whether or not it belongs to the set. “The prime numbers less than 20” is a set; “the good students of a class” is not, because good is a matter of opinion.

Sets are named with capital letters and elements with small letters. We write x ∈ A for “x is an element of A” and x ∉ A for “x is not an element of A”.

Two ways to describe a set

▪ Roster (tabular) form: list the elements inside braces: V = {a, e, i, o, u}. Order does not matter, and repeated elements are written only once.

▪ Set-builder form: describe the property shared by the elements: V = {x : x is a vowel of the English alphabet}. The colon is read “such that”.

Example 5.1. Write in roster form: (a) A = {x : x is a prime number less than 20} (b) B = {x ∈ ℤ : x2 < 10}.

Solution. (a) The primes below 20 are 2, 3, 5, 7, 11, 13, 17, 19.

(b) x2 < 10 means −√10 < x < √10, i.e. −3.16… < x < 3.16…; the integers are −3 to 3.

∴ (a) A = {2, 3, 5, 7, 11, 13, 17, 19} (b) B = {−3, −2, −1, 0, 1, 2, 3}.

Example 5.2. Write {1, 4, 9, 16, 25} in set-builder form.

Solution. The elements are the squares of 1, 2, 3, 4, 5.

∴ {n2 : n ∈ , n ≤ 5}.ℕ

Kinds of sets

▪ The empty (null, void) set = { } has no elements, e.g. {x ∈ ∅

ℕ : x < 1}. Note that {0} and { } are ∅not empty: each has

one element.

▪ A singleton set has exactly one element, e.g. {x : x is an even prime} = {2}.

▪ A set is finite if its elements can be counted to an end, otherwise infinite. The number of elements of a finite set A is its cardinal number, written n(A) or ∣A∣.

▪ Two sets are equal (A = B) if they have exactly the same elements; they are equivalent if n(A) = n(B). {1, 2, 3} and {a, b, c} are equivalent but not equal.

HERITAGE OF INDIAN MATHEMATICS — Counting the

uncountable — Jaina mathematics

Jaina texts such as the Anuyogadvāra Sūtra (early centuries CE) classified numbers as saṅkhyāta (countable), asaṅkhyāta (innumerable) and ananta (infinite), and even distinguished several orders of infinity — a remarkable anticipation of ideas that Georg Cantor made rigorous in the 19th century. The Jaina doctrine of syādvāda (“perhaps-ism”) also developed a seven- fold scheme of predication (saptabhaṅgī) that historians of logic compare with modern many-valued logics.

5.2 Subsets, Power Set and Universal Set

A is a subset of B, written A ⊆ B, if every element of A is also an element of B. If, in addition, A ≠ B, then A is a proper subset, written A ⊂ B. (Many school books use ⊂ for both; the meaning is usually clear from the context.)

▪ Every set is a subset of itself, and ∅ is a subset of every set.

▪ A = B if and only if A ⊆ B and B ⊆ A — this is the standard way of proving two sets equal.

▪ ℕ ⊂ e ⊂ ℤ ⊂ ℚ ⊂ ℝ (Chapter 1). Intervals such as [a, b] are subsets of ℝ.

The power set P(A) is the set of all subsets of A.

KEY IDEA — Number of subsets

If n(A) = n, then A has 2n subsets (so n(P(A)) = 2n) and 2n − 1 proper subsets.

Reason: to build a subset, decide for each of the n elements independently whether to include it — 2 choices each, giving 2 × 2 × … × 2 = 2n subsets.

Example 5.3. Write the power set of A = {a, b, c}.

Solution. Subsets with 0, 1, 2 and 3 elements:

∴ P(A) = { , {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, ∅ c}} — 23 = 8 subsets.

COMMON MISTAKE — ∈ versus ⊆

∈ relates an element to a set; ⊆ relates a set to a set. For A = {1,

2}: 1 ∈ A , {1} ⊆ A , but {1} ∈ A and 1 ⊆ A is meaningless.✓✓✗

For B = {1, {1}}, both 1 ∈ B and {1} ∈ B are true!

In any discussion the set containing all the objects under consideration is called the universal set U. In a Venn diagram it is drawn as a rectangle, and other sets as circles inside it.

5.3 Operations on Sets and Venn Diagrams

For sets A and B in a universal set U:

OperationSymbol Definition
UnionA ∪ B{x : x ∈ A or x ∈ B} (or both)
IntersectionA ∩ B{x : x ∈ A and x ∈ B}
DifferenceA − B{x : x ∈ A and x ∉ B} (also written A B)∖
ComplementA′{x ∈ U : x ∉ A} = U − A (also written Aᶜ)

Symmetric

A Δ B(A − B) ∪ (B − A)

difference

If A ∩ B = , the sets are ∅disjoint.

Figure 5.1 Venn diagrams of the basic set operations (shaded regions)

Example 5.4. U = {1, 2, …, 10}, A = {1, 2, 3, 4, 5}, B = {2, 4, 6, 8, 10}. Find A ∪ B, A ∩ B, A − B, B − A, A′, (A ∪ B)′ and A′ ∩ B′.

Solution. A ∪ B = {1, 2, 3, 4, 5, 6, 8, 10}; A ∩ B = {2, 4}. A − B = {1, 3, 5}; B − A = {6, 8, 10}; A′ = {6, 7, 8, 9, 10}. (A ∪ B)′ = {7, 9}. B′ = {1, 3, 5, 7, 9}, so A′ ∩ B′ = {7, 9}. ∴ Notice that (A ∪ B)′ = A′ ∩ B′ — an example of De Morgan’s law.

KEY IDEA — Laws of the algebra of sets

▪ 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).

▪ Identity and complement: A ∪ = A, A ∩ U = A, A ∪ A′ ∅ = U, A ∩ A′ = , (A′)′ = A.∅

▪ De Morgan’s laws: (A ∪ B)′ = A′ ∩ B′; (A ∩ B)′ = A′ ∪ B′.

Example 5.5. Prove that A − B = A ∩ B′.

Solution. x ∈ A − B ⇔ x ∈ A and x ∉ B ⇔ x ∈ A and x ∈ B′ ⇔ x ∈ A ∩ B ′.

∴ Each set is contained in the other, so A − B = A ∩ B′. □

Example 5.6. Prove De Morgan’s law (A ∪ B)′ = A′ ∩ B′.

Solution. x ∈ (A ∪ B)′ ⇔ x ∉ A ∪ B ⇔ x is in neither A nor B ⇔ x ∉ A and x ∉ B ⇔ x ∈ A′ and x ∈ B′ ⇔ x ∈ A′ ∩ B′.

∴ Proved. In words: “not (A or B)” means “not A and not B”. □

FROM THE HISTORY OF MATHEMATICS — Cantor, Venn and De Morgan

Georg Cantor (1845–1918) founded set theory in a series of papers beginning in 1874, and showed that some infinite sets are “larger” than others — the real numbers cannot be listed in a sequence, while the rationals can. John Venn introduced his diagrams in 1880, and Augustus De Morgan stated the laws named after him in his Formal Logic (1847).

5.4 Counting with Sets: Inclusion– Exclusion

KEY IDEA — Inclusion–exclusion principle

For finite sets A, B, C:

n(A ∪ B) = n(A) + n(B) − n(A ∩ B)

n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(B ∩ C) −

n(C ∩ A) + n(A ∩ B ∩ C)

Also: n(A − B) = n(A) − n(A ∩ B) and n(A′) = n(U) − n(A).

Reason for two sets. Adding n(A) and n(B) counts the elements of A ∩ B twice, so we subtract them once.

Example 5.7. In a class of 60 students, 35 like cricket, 28 like football and 10 like both. How many like (a) at least one game (b) neither (c) cricket only?

Solution. (a) n(C ∪ F) = 35 + 28 − 10 = 53.

(b) 60 − 53 = 7.

(c) n(C − F) = 35 − 10 = 25.

∴ (a) 53 (b) 7 (c) 25.

Example 5.8. Of 100 students, 45 study Mathematics, 40 Physics and 38 Chemistry; 15 study M and P, 12 study P and C, 10 study M and C, and 5 study all three. Find how many study (a) at least one

(b) none (c) exactly one (d) exactly two of the subjects.

Solution. (a) n(M ∪ P ∪ C) = 45 + 40 + 38 − 15 − 12 − 10 + 5 = 91.

(b) 100 − 91 = 9.

Fill the Venn diagram from the centre outwards (Figure 5.2). Centre: 5. Exactly M and P: 15 − 5 = 10; exactly P and C: 12 − 5 = 7; exactly M and C: 10 − 5 = 5.

Only M: 45 − 10 − 5 − 5 = 25; only P: 40 − 10 − 7 − 5 = 18; only C: 38 − 5 − 7 − 5 = 21.

(c) Exactly one = 25 + 18 + 21 = 64. (d) Exactly two = 10 + 7 + 5 = 22.

∴ (a) 91 (b) 9 (c) 64 (d) 22. Check: 64 + 22 + 5 = 91

✓.

Figure 5.2 Venn diagram for Example 5.8 — always Ill from the centre

outwards

5.5 Ordered Pairs and the Cartesian Product

An ordered pair (a, b) has a first and a second component; (a, b) = (c, d) only if a = c and b = d. So (2, 3) ≠ (3, 2), although {2, 3} = {3, 2}.

The Cartesian product of A and B is the set of all ordered pairs with first component from A and second from B:

A × B = {(a, b) : a ∈ A, b ∈ B}, n(A × B) = n(A) × n(B).

The name honours René Descartes: ℝ × ℝ is the coordinate plane of Chapter 18.

Example 5.9. If A = {1, 2} and B = {x, y, z}, find A × B and n(B × A).

Solution. A × B = {(1, x), (1, y), (1, z), (2, x), (2, y), (2, z)}. ∴ n(A × B) = n(B × A) = 6, but A × B ≠ B × A (the pairs are reversed).

5.6 Relations

A relation R from A to B is any subset of A × B. If (a, b) ∈ R we write a R b. The set of first components is the domain of R and the set of second components its range; B is the codomain. A relation from A to A is called a relation on A.

Since A × B has n(A)n(B) elements, there are 2n(A)n(B) different relations from A to B.

KEY IDEA — Types of relations on a set A

▪ Re@exive: a R a for every a ∈ A.

▪ Symmetric: a R b ⇒ b R a.

▪ Transitive: a R b and b R c ⇒ a R c.

▪ Equivalence relation: reNexive, symmetric and transitive.

Example 5.10. On A = {1, 2, 3, 4} let a R b mean “a divides b”. List R and decide which properties it has.

Solution. R = {(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)}.

ReNexive: every a divides itself . Symmetric: 1 R 2 but 2 R 1 ✓

fails . Transitive: a ∣ b and b ∣ c ⇒ a ∣ c .✗✓

∴ Re@exive and transitive, but not symmetric (so not an equivalence relation).

Example 5.11. On ℤ define a R b if a − b is divisible by 3. Show that R is an equivalence relation and describe its classes.

Solution. ReNexive: a − a = 0 = 3 × 0 . Symmetric: if 3 ∣ a − b✓ then 3 ∣ −(a − b) = b − a . Transitive: if 3 ∣ a − b and 3 ∣ b − c then 3✓ ∣ (a − b) + (b − c) = a − c .✓

∴ R is congruence modulo 3 (Chapter 4). It splits into ℤ three equivalence classes: {…, −3, 0, 3, 6, …}, {…, −2, 1, 4, 7, …} and {…, −1, 2, 5, 8, …}.

NOTE — Equivalence classes form a partition

An equivalence relation always splits its set into non-overlapping classes (a partition), and conversely every partition defines an equivalence relation (“lies in the same part as”). “Has the same birthday as” partitions the students of a school into at most 366 classes.

A relation f from A to B is a function (or mapping) if every element of A is related to exactly one element of B. Functions are studied in detail in Chapter 15.

5.7 Statements and Logical Connectives

A statement (proposition) is a sentence that is either true (T) or false (F), but not both. “7 is a prime number” is a true statement; “5 > 9” is a false statement. Questions, commands, exclamations and open sentences such as “x + 2 = 5” are not statements.

ConnectiveSymbol Read asTrue when
Negation¬pnot pp is false
Conjunctionp ∧ qp and qboth p and q are true
Disjunctionp ∨ qp or qat least one of p, q is true
Conditionalp → qif p then qexcept when p is true and q

is false

p if and only if p and q have the same truth

Biconditionalp ↔ qqvalue

Truth tables

pq¬pp ∧ qp ∨ qp → qp ↔ q
TTFTTTT
TFFFTFF
FTTFTTF
FFTFFTT

TEACHER’S TIP — Why is “if p then q” true when p is false? Think of p → q as a promise: “If you score 90%, I will give you a bicycle.” The promise is broken only if you score 90% and do not get the bicycle. If you do not score 90%, the promise has not been broken, whatever happens. So p → q is false only in the row p = T, q = F.

Example 5.12. Show by a truth table that p → q is logically equivalent to ¬p ∨ q.

Solution. Compare the columns:

pq¬p¬p ∨ qp → q
TTFTT
TFFFF
FTTTT
FFTTT

∴ The last two columns are identical, so p → q ≡ ¬p ∨ q.

A compound statement that is true in every row of its truth table is a tautology (e.g. p ∨ ¬p); one that is false in every row is a contradiction (e.g. p ∧ ¬p).

Example 5.13. Show that (p ∧ q) → p is a tautology.

Solution. The only way a conditional can be false is if (p ∧ q) is true and p is false. But if p ∧ q is true then p is true. So that case never occurs.

∴ (p ∧ q) → p is true in every case — a tautology.

5.8 Converse, Inverse and Contrapositive

For the conditional p → q:

NameFormEquivalent to the original?
Converseq → pnot necessarily

not necessarily (it is equivalent

Inverse¬p → ¬qto the converse)
Contrapositive¬q → ¬palways

Example 5.14. Write the converse, inverse and contrapositive of “If a number is divisible by 6, then it is divisible by 3”, and state which are true.

Solution. Original (true): if 6 ∣ n then 3 ∣ n.

Converse: if 3 ∣ n then 6 ∣ n — false (n = 9).

Inverse: if 6 ∤ n then 3 ∤ n — false (n = 9).

Contrapositive: if 3 ∤ n then 6 ∤ n — true.

∴ The original and its contrapositive are true; the converse and inverse are false.

Proof by contrapositive is a powerful method: to prove “if n2 is even then n is even”, prove instead “if n is odd then n2 is odd” — which is easy, since (2k + 1)2 = 2(2k2 + 2k) + 1.

5.9 Quantifiers and Negation

The universal quantifier ∀ means “for all”; the existential quantifier ∃ means “there exists”. “For every real x, x2 ≥ 0” is written ∀x ∈ ℝ, x2 ≥ 0.

KEY IDEA — Negating statements

▪ ¬(p ∧ q) ≡ ¬p ∨ ¬q and ¬(p ∨ q) ≡ ¬p ∧ ¬q (De

Morgan’s laws in logic).

▪ ¬(p → q) ≡ p ∧ ¬q.

▪ ¬(∀x, P(x)) ≡ ∃x, ¬P(x): “not all” means “some are not”.

▪ ¬(∃x, P(x)) ≡ ∀x, ¬P(x): “there is none” means “all are not”.

Example 5.15. Negate: (a) All birds can Ny. (b) There exists an even prime. (c) If it rains, the match is cancelled.

Solution. (a) Not all birds can Ny: “Some bird cannot Ny.” (True — the ostrich.)

(b) “No prime is even”, i.e. “Every prime is odd.” (False — 2.)

(c) Using ¬(p → q) ≡ p ∧ ¬q: “It rains and the match is not cancelled.”

∴ As shown.

COMMON MISTAKE — The negation of “all” is not “none” The negation of “All students passed” is “At least one student did not pass”, not “No student passed”. Similarly, the negation of “x > 5” is “x ≤ 5”, not “x < 5”.

FROM THE HISTORY OF MATHEMATICS — Boole and the

Navya-Nyāya

George Boole turned logic into algebra in The Laws of Thought (1854); his “Boolean algebra” of true/false values is the foundation of every digital computer. Centuries earlier, the Navya-Nyāya school of Indian logic, founded by Gaṅgeśa in his Tattvacintāmaṇi (14th century), developed a precise technical language for analysing inference, negation (abhāva) and quantification.

OLYMPIAD CORNER — Counting with subsets

How many ordered pairs (A, B) of subsets of S = {1, 2, …, n} satisfy A ⊆ B? For each element x there are exactly three possibilities: x ∉ B; x ∈ B but x ∉ A; x ∈ A (and so x ∈ B). The choices are independent, so the answer is 3n. Turning a set problem into “independent choices for each element” solves many olympiad counting problems.

Chapter Summary

▪ A set is a well-defined collection; roster form lists elements, set-builder form states the property.

▪ ∅ ⊆ A ⊆ A for every A; A = B ⇔ A ⊆ B and B ⊆ A. An n- element set has 2n subsets.

▪ A ∪ B, A ∩ B, A − B = A ∩ B′, A′ = U − A, A Δ B = (A − B) ∪ (B − A).

▪ De Morgan: (A ∪ B)′ = A′ ∩ B′, (A ∩ B)′ = A′ ∪ B′.

▪ n(A ∪ B) = n(A) + n(B) − n(A ∩ B); for three sets add the triple intersection back. Fill Venn diagrams from the centre out.

▪ n(A × B) = n(A)n(B); there are 2n(A)n(B) relations from A to B.

▪ Equivalence relation = reNexive + symmetric + transitive; its classes partition the set.

▪ p → q is false only when p is true and q is false; p → q ≡ ¬p ∨ q ≡ ¬q → ¬p.

▪ ¬(∀x P) ≡ ∃x ¬P; ¬(∃x P) ≡ ∀x ¬P.

Exercise 5A — Foundation Problems

1. Write in roster form: (a) the set of letters of the word MATHEMATICS (b) {x ∈ ℕ : x divides 24} (c) {x ∈ ℤ : −2 ≤ x < 3}.

2. Write in set-builder form: (a) {2, 4, 6, 8, 10} (b) {1, 1/2, 1/3, 1/4, …} (c) {1, 8, 27, 64}.

3. Classify as empty, singleton, finite or infinite: (a) {x ∈ ℕ : x < 1}

(b) {x : x is an even prime} (c) the set of lines through a given point (d) {x ∈ ℝ : x2 = −4}.

4. Are A = {1, 2, 3} and B = {3, 1, 2, 2} equal? Explain.

5. Find n(A) if A = {x ∈ ℕ : 10 < x < 20 and x is prime}.

6. List all subsets of {1, 2}. How many subsets and proper subsets does a set with 5 elements have?

7. True or false? (a) {1} ∈ {1, 2} (b) 1 ∈ {1, 2} (c) ⊆ {1} (d)∅ {1, 2} ⊆ {1, 2, 3} (e) {a} ⊆ {{a}}.

8. U = {1, 2, …, 9}, A = {1, 3, 5, 7, 9}, B = {2, 3, 5, 7}. Find A ∪ B, A ∩ B, A − B, B′ and A′ ∩ B.

9. Using the sets of Q8, verify De Morgan’s law (A ∪ B)′ = A′ ∩ B′.

10. If n(A) = 20, n(B) = 28 and n(A ∪ B) = 36, find n(A ∩ B).

11. If n(A) = 15, n(A ∩ B) = 6 and n(A ∪ B) = 29, find n(B).

12. In a group of 50 people, 30 drink tea and 25 drink coffee, and everyone drinks at least one. How many drink both? How many drink tea only?

13. If A = {a, b} and B = {1, 2, 3}, write A × B and find n(A × B).

14. Find x and y if (x + 1, y − 2) = (3, 1).

15. A = {1, 2, 3, 6} and B = {4, 5, 6, 9}. Write the relation R = {(a,

b) ∈ A × B : b = a + 3} in roster form and state its domain and range.

16. Which of these are statements? (a) 7 is a prime number. (b) Close the door. (c) x + 2 = 5. (d) Every square is a rectangle.

17. Let p: “It is raining” and q: “I carry an umbrella.” Write in words: (a) p ∧ q (b) p → q (c) ¬p ∨ q.

18. Find the truth value: (a) 2 + 3 = 5 and 4 is odd. (b) 2 + 3 = 5 or 4 is odd. (c) If 3 > 5, then 1 = 2.

19. Write the negation: (a) √2 is rational. (b) All students passed.

(c) Some numbers are prime.

20. Construct the truth table of ¬(p ∨ q).

Exercise 5B — Standard Problems

1. Prove that A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C).

2. Prove De Morgan’s law (A ∩ B)′ = A′ ∪ B′.

3. Prove the absorption laws A ∪ (A ∩ B) = A and A ∩ (A ∪ B) = A.

4. If A ⊆ B, prove that A ∪ B = B, A ∩ B = A and B′ ⊆ A′.

5. In a survey of 200 families, 80 read a Hindi newspaper, 70 an English newspaper and 40 read both. How many read neither?

6. In a school of 120 students, 65 speak Hindi, 50 English and 45 Kannada; 20 speak Hindi and English, 15 English and Kannada, 25 Hindi and Kannada, and 10 speak all three. How many speak

(a) none (b) exactly one (c) exactly two of these languages?

7. If A = {1, 2, 3, 4} and B = {3, 4, 5, 6}, find A Δ B and verify that A Δ B = (A ∪ B) − (A ∩ B).

8. If n(A) = 3 and n(B) = 4, find n(A × B) and the number of relations from A to B.

9. On ℕ define a R b if a + b is even. Prove that R is an equivalence relation and find its classes.

10. On {1, 2, 3}, R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1), (2, 3), (3, 2)}. Is R reNexive, symmetric, transitive?

11. Which of these relations from {1, 2, 3} to {1, 2, 3} are functions? (a) {(1, 2), (2, 3), (3, 2)} (b) {(1, 2), (1, 3), (2, 1), (3, 1)} (c) {(1, 1), (2, 1)}.

12. Show by a truth table that p → q ≡ ¬q → ¬p.

13. Show that p ↔ q ≡ (p → q) ∧ (q → p).

14. Show that [(p → q) ∧ p] → q is a tautology. (This is the rule of inference called modus ponens.)

15. Negate “For every real number x, x2 ≥ 0” and decide which of the two statements is true.

Exercise 5C — Higher-Order Thinking Problems

1. Prove that A − (B ∪ C) = (A − B) ∩ (A − C).

2. If A ∪ B = A ∪ C and A ∩ B = A ∩ C, prove that B = C.

3. In a town of 10 000 people, 40% read newspaper A, 20% read B, 10% read C, 5% read A and B, 3% read B and C, 4% read A and C, and 2% read all three. Find the number who read (a) none of the papers (b) A only.

4. In a survey of 100 people, 72 like coffee and 64 like tea. Find the greatest and least possible numbers who like both.

5. How many subsets of {1, 2, …, 10} contain 1 but not 2?

6. How many reNexive relations and how many symmetric relations are there on a set with 3 elements?

7. Prove by contrapositive: if n2 is even, then n is even.

8. On an island, knights always tell the truth and knaves always

lie. A says, “B is a knave.” B says, “A and I are both knights.” What are A and B?

9. The “exclusive or” p ⊕ q is true when exactly one of p, q is true. Express it using ∧, ∨ and ¬, and give its truth table.

10. Prove that ¬(p → q) ≡ p ∧ ¬q.

Exercise 5D — Olympiad Problems

1. How many subsets of {1, 2, …, 10} have an even number of elements?

2. How many ordered pairs (A, B) of subsets of {1, 2, 3, 4} satisfy A ⊆ B?

3. How many ordered pairs (A, B) of subsets of {1, 2, 3, 4, 5} satisfy A ∪ B = {1, 2, 3, 4, 5}?

4. How many integers from 1 to 100 are divisible by 2, 3 or 5?

5. How many subsets of {1, 2, …, 12} (including ) contain no two∅ consecutive integers?

6. Give two different proofs that a set with n elements has 2n subsets.

7. Sets A, B, C each have 10 elements; every two of them have 4 elements in common, and all three have 2 in common. Find n(A ∪ B ∪ C).

8. Three boxes are labelled “Apples”, “Oranges” and “Mixed”, and every label is wrong. By taking out just one fruit from one box (without looking inside), how can you relabel all three boxes correctly?

9. On the island of knights and knaves, A says, “At least one of us is a knave.” What are A and B?

10. Prove that (A ∩ B) × C = (A × C) ∩ (B × C).

11. How many equivalence relations are there on {1, 2, 3, 4}?

12. How many functions are there from a 3-element set to a 4- element set? How many of them are one-one?

Exercise 5E — NCERT-Aligned Practice

These problems practise the reasoning skills of NCERT Grade 9 (Propositions and their Converses) and the Class 10 appendix

Proofs in Mathematics. Tags name the matching NCERT chapter.

1. [G9-9] Which of the following are propositions (statements that are either true or false)? (a) 7 is a prime number. (b) Close the

door. (c) x + 2 = 5. (d) Every square is a rectangle. (e) Is 9 odd?

2. [G9-9] Write the converse of “If a quadrilateral is a square, then its diagonals are equal.” Is the converse true?

3. [G9-9] Write the converse of “If a triangle is equilateral, then each of its angles is 60°.” Is the converse true? Combine the statement and its converse into one “if and only if” statement.

4. [C10-A1] Negate “All prime numbers are odd.” Which is true, the statement or its negation?

5. [C10-A1] Find a counterexample to: “n2 + n + 41 is prime for every natural number n.”

6. [C10-A1] Write the contrapositive of “If n2 is even, then n is even,” and use it to prove the statement.

7. [G9-9] Is the statement “If 2 + 2 = 5, then 10 is odd” true or false? Explain.

8. [G9-9] Name the hypothesis and the conclusion in “The sum of two odd numbers is even,” and prove it.

9. [G9-9] Statement: “If x = 3, then x2 = 9.” Is it true? Is its converse true?

10. [C10-A1] Prove by contradiction that there is no largest even number.

11. [G9-9] In a class of 40 students, 25 like cricket, 20 like football and 8 like both. How many like neither?

12. [C10-A1] All mammals are warm-blooded. A whale is a mammal. What can you deduce? Name the type of reasoning used.

Brain Teasers

1. In a village the barber shaves exactly those men who do not shave themselves. Who shaves the barber?

2. Is the sentence “This statement is false” true or false?

3. In a survey, 70% like apples, 75% bananas, 80% cherries and 85% dates. What is the least possible percentage who like all four?

4. Two doors lead out of a room — one to freedom, one to doom. One guard always lies and one always tells the truth, but you do not know which is which. With one question to one guard, how can you escape?

5. “Some cats are black. All black things are dark.” Must some cats be dark?

6. How many subsets does the empty set have?

7. Hilbert’s Grand Hotel has infinitely many rooms, all occupied. A new guest arrives. How can the manager give her a room without evicting anyone?

8. Are there more natural numbers or more even natural numbers?

9. All Bloops are Razzies and all Razzies are Lazzies. Are all Bloops definitely Lazzies?

10. Three islanders each say, “Everyone else here is a knave.” How many of them are knights?

Multiple-Choice Questions

1. The number of subsets of a set with 4 elements is: (a) 4 (b) 8 (c) 16 (d) 15

2. Which set is empty? (a) {x ∈ ℕ : x2 = 4} (b) {0} (c) {x ∈ ℝ : x2 + 1 = 0} (d) { }∅

3. A ∩ A′ equals: (a) (b) A (c) U (d) A′∅

4. (A ∪ B)′ equals: (a) A′ ∪ B′ (b) A − B (c) A ∩ B (d) A′ ∩ B′

5. If n(A) = 10, n(B) = 6 and n(A ∩ B) = 3, then n(A ∪ B) is: (a) 16

(b) 13 (c) 19 (d) 3

6. If A ⊆ B, then A ∪ B equals: (a) A (b) (c) B (d) U∅

7. If n(A) = 2 and n(B) = 5, then n(A × B) is: (a) 7 (b) 32 (c) 25 (d) 10

8. The relation “is congruent to” on the set of triangles is: (a) reNexive only (b) symmetric only (c) an equivalence relation

(d) none of these

9. ¬(p ∧ q) is equivalent to: (a) ¬p ∨ ¬q (b) ¬p ∧ ¬q (c) p ∨ q (d) p → q

10. The contrapositive of p → q is: (a) q → p (b) ¬q → ¬p (c) ¬p → ¬q

(d) p ∧ ¬q

11. p → q is false when: (a) p true, q true (b) p true, q false (c) p false, q true (d) p false, q false

12. Which is a tautology? (a) p ∨ ¬p (b) p ∧ ¬p (c) p → ¬p (d) p ↔ ¬p

13. The negation of “All roses are red” is: (a) No rose is red (b) All roses are not red (c) Some roses are not red (d) Some roses are red

14. A − B equals: (a) A ∩ B′ (b) A′ ∩ B (c) A ∪ B′ (d) B − A

15. The empty set is: (a) infinite (b) an element of every set (c) equal to {0} (d) a subset of every set

Solutions to Chapter 5

Solutions — Exercise 5A

1. (a) Distinct letters of M-A-T-H-E-M-A-T-I-C-S: M, A, T, H, E, I, C, S. (b) Divisors of 24. (c) Integers from −2 up to 2.

∴ (a) {M, A, T, H, E, I, C, S} (b) {1, 2, 3, 4, 6, 8, 12, 24}

(c) {−2, −1, 0, 1, 2}.

2. ANS (a) {2n : n ∈ ℕ, n ≤ 5} (b) {1/n : n ∈ ℕ} (c) {n3 : n ∈ ℕ, n ≤ 4}.

3. (a) No natural number is less than 1 — empty. (b) {2} — singleton. (c) Infinitely many lines — infinite. (d) No real square is negative — empty.

∴ (a) empty (b) singleton (c) infinite (d) empty.

4. Repetition and order do not matter; both sets have exactly the elements 1, 2, 3.

∴ Yes, A = B.

5. A = {11, 13, 17, 19}.

∴ n(A) = 4.

6. Subsets of {1, 2}: , {1}, {2}, {1, 2}. A 5-element set has 2∅5 = 32 subsets, of which 31 are proper.

∴ 4 subsets; 32 and 31.

7. (a) {1} is not an element of {1, 2} — false. (b) True. (c) is a∅ subset of every set — true. (d) True. (e) The only element of {{a}} is {a}, and a ≠ {a}, so {a} ⊄ {{a}} — false (but {a} ∈ {{a}} is true).

∴ (a) F (b) T (c) T (d) T (e) F.

8. A ∪ B = {1, 2, 3, 5, 7, 9}; A ∩ B = {3, 5, 7}; A − B = {1, 9}; B′ = {1, 4, 6, 8, 9}; A′ = {2, 4, 6, 8}, so A′ ∩ B = {2}.

∴ As shown.

9. (A ∪ B)′ = U − {1, 2, 3, 5, 7, 9} = {4, 6, 8}. A′ ∩ B′ = {2, 4, 6, 8} ∩ {1, 4, 6, 8, 9} = {4, 6, 8}.

∴ Both equal {4, 6, 8}. ✓

10. 36 = 20 + 28 − n(A ∩ B).

∴ n(A ∩ B) = 12.

11. 29 = 15 + n(B) − 6.

∴ n(B) = 20.

12. 50 = 30 + 25 − both ⇒ both = 5; tea only = 30 − 5.

∴ 5 drink both; 25 drink tea only.

13. A × B = {(a, 1), (a, 2), (a, 3), (b, 1), (b, 2), (b, 3)}.

∴ n(A × B) = 6.

14. x + 1 = 3 and y − 2 = 1.

∴ x = 2, y = 3.

15. 1 → 4, 2 → 5, 3 → 6, 6 → 9 (all in B).

∴ R = {(1, 4), (2, 5), (3, 6), (6, 9)}; domain {1, 2, 3, 6}; range {4, 5, 6, 9}.

16. (a) a true statement; (b) a command; (c) an open sentence — its truth depends on x; (d) a true statement.

∴ (a) and (d) are statements.

17. ANS (a) It is raining and I carry an umbrella. (b) If it is raining, then I carry an umbrella. (c) It is not raining or I carry an umbrella.

18. (a) T ∧ F = F. (b) T ∨ F = T. (c) The hypothesis 3 > 5 is false, so the conditional is true.

∴ (a) False (b) True (c) True.

19. ANS (a) √2 is not rational (√2 is irrational). (b) Some student did not pass. (c) No number is prime.

20. Work out p ∨ q first, then negate:

pqp ∨ q¬(p ∨ q)
TTTF
TFTF
FTTF
FFFT

∴ ¬(p ∨ q) is true only when both p and q are false (same column as ¬p ∧ ¬q).

Solutions — Exercise 5B

1. x ∈ A ∩ (B ∪ C) ⇔ x ∈ A and (x ∈ B or x ∈ C) ⇔ (x ∈ A and x ∈ B) or (x ∈ A and x ∈ C) ⇔ x ∈ (A ∩ B) ∪ (A ∩ C).

∴ Proved. □

2. x ∈ (A ∩ B)′ ⇔ x ∉ A ∩ B ⇔ x ∉ A or x ∉ B ⇔ x ∈ A′ or x ∈ B′ ⇔ x ∈ A′ ∪ B′.

∴ Proved. □

3. A ∩ B ⊆ A, so A ∪ (A ∩ B) ⊆ A; and clearly A ⊆ A ∪ (A ∩ B). Similarly A ⊆ A ∪ B gives A ∩ (A ∪ B) = A.

∴ Both absorption laws hold. □

4. Every element of A is in B, so A ∪ B adds nothing new: A ∪ B = B; and every element of A is common to both: A ∩ B = A. If x ∈ B′ then x ∉ B, so x ∉ A (otherwise x ∈ B), i.e. x ∈ A′.

∴ Proved. □

5. n(H ∪ E) = 80 + 70 − 40 = 110.

∴ 200 − 110 = 90 families read neither.

6. n(H ∪ E ∪ K) = 65 + 50 + 45 − 20 − 15 − 25 + 10 = 110, so (a) none = 10.

Exactly two: H and E only 20 − 10 = 10; E and K only 15 − 10 = 5; H and K only 25 − 10 = 15; total 30.

Exactly one: H only 65 − 10 − 15 − 10 = 30; E only 50 − 10 − 5 − 10 = 25; K only 45 − 5 − 15 − 10 = 15; total 70.

∴ (a) 10 (b) 70 (c) 30. (Check: 70 + 30 + 10 = 110 )✓

7. A − B = {1, 2}, B − A = {5, 6}, so A Δ B = {1, 2, 5, 6}. Also A ∪ B = {1, …, 6} and A ∩ B = {3, 4}, so (A ∪ B) − (A ∩ B) = {1, 2, 5, 6}.

∴ A Δ B = {1, 2, 5, 6}, verified.

8. n(A × B) = 3 × 4 = 12; each relation is a subset of A × B. ∴ 12; 212 = 4096 relations.

9. ReNexive: a + a = 2a is even. Symmetric: a + b = b + a. Transitive: if a + b and b + c are even, then a + c = (a + b) + (b + c) − 2b is even.

∴ R is an equivalence relation with two classes: the odd numbers and the even numbers.

10. ReNexive (all (a, a) present). Symmetric (each pair appears✓✓

with its reverse). Transitive : (1, 2) and (2, 3) are in R but (1, 3)✗ is not.

∴ Re@exive and symmetric, but not transitive.

11. (a) Each of 1, 2, 3 has exactly one image . (b) 1 has two images✓ ✗. (c) 3 has no image .✗

∴ Only (a) is a function.

12. Compare the columns:

pqp → q¬q¬p¬q → ¬p
TTTFFT
TFFTFF
FTTFTT
FFTTTT

∴ The columns for p → q and ¬q → ¬p agree, so they are equivalent.

13. (p → q) ∧ (q → p) is true when both conditionals are true: in row TT (T ∧ T), row TF (F ∧ T = F), row FT (T ∧ F = F), row FF (T ∧ T). This gives T, F, F, T — the column of p ↔ q.

∴ Proved.

14. The conditional could be false only if (p → q) ∧ p is true and q is false. But then p is true and p → q is true, forcing q true — impossible.

∴ It is a tautology.

15. Negation: “There exists a real number x with x2 < 0.”

∴ The original statement is true; its negation is false.

Solutions — Exercise 5C

1. x ∈ A − (B ∪ C) ⇔ x ∈ A and x ∉ B ∪ C ⇔ x ∈ A and x ∉ B and x ∉ C ⇔ (x ∈ A − B) and (x ∈ A − C).

∴ A − (B ∪ C) = (A − B) ∩ (A − C). (A De Morgan law for diAerences.) □

2. Let x ∈ B. If x ∈ A, then x ∈ A ∩ B = A ∩ C, so x ∈ C. If x ∉ A, then x ∈ A ∪ B = A ∪ C, so x ∈ C. Thus B ⊆ C, and by symmetry C ⊆ B. ∴ B = C. □

3. Percentage reading at least one = 40 + 20 + 10 − 5 − 3 − 4 + 2 = 60%. A only = 40 − 5 − 4 + 2 = 33%.

∴ (a) 40% of 10 000 = 4000 (b) 33% = 3300.

4. Both ≤ the smaller set: at most 64. Also n(C ∩ T) = 72 + 64 − n(C ∪ T) ≥ 136 − 100 = 36.

∴ Greatest 64, least 36.

5. 1 must be in, 2 must be out; each of the other 8 elements is free. ∴ 28 = 256.

6. For n = 3, A × A has 9 pairs. ReNexive relations must contain the 3 diagonal pairs; the other 6 pairs are free: 26 = 64. Symmetric relations: the 3 diagonal pairs are free and the 6 o:- diagonal pairs form 3 {(a, b), (b, a)} couples, each in or out together: 23+3 = 64.

∴ 64 re@exive and 64 symmetric relations.

7. Contrapositive: if n is odd then n2 is odd. If n = 2k + 1, n2 = 4k2 + 4k + 1 = 2(2k2 + 2k) + 1, which is odd.

∴ Since the contrapositive is true, the original

statement is true. □

8. If B were a knight, his statement would be true, so A would be a knight; but then A’s statement “B is a knave” would be true — contradiction. So B is a knave. Then A’s statement is true, so A is a knight. (Check: B’s claim “both knights” is indeed false.) ∴ A is a knight, B is a knave.

9. p ⊕ q ≡ (p ∨ q) ∧ ¬(p ∧ q) (“p or q, but not both”).

pqp ∨ q¬(p ∧ q)p ⊕ q
TTTFF
TFTTT
FTTTT
FFFTF

∴ As shown; p ⊕ q is the negation of p ↔ q.

10. Using p → q ≡ ¬p ∨ q and De Morgan: ¬(p → q) ≡ ¬(¬p ∨ q) ≡ ¬¬p ∧ ¬q ≡ p ∧ ¬q.

∴ Proved.

Solutions — Exercise 5D

1. Pair each subset containing 10 with the same subset without

10. In each pair the sizes differ by 1, so exactly one is even. There are 210/2 pairs.

∴ 512.

2. Each element has 3 independent options (Olympiad Corner, Section 5.9).

∴ 34 = 81.

3. For A ∪ B = S each element must be in A only, in B only, or in both — 3 options each.

∴ 35 = 243.

4. Inclusion–exclusion: 50 + 33 + 20 − 16 − 10 − 6 + 3.

∴ 74.

5. Let an be the number of such subsets of {1, …, n}. A subset either omits n (an−1 ways) or contains n and omits n − 1 (an−2 ways). So an = an−1 + an−2, with a1 = 2, a2 = 3: 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377.

∴ 377 (a Fibonacci number).

6. Proof 1: each element is in or out — 2n choices (Section 5.2).

Proof 2 (induction): a set with n + 1 elements has the subsets of the first n elements (2n of them), together with each of these plus the new element (another 2n): total 2n+1.

∴ Proved both ways.

7. n(A ∪ B ∪ C) = 10 + 10 + 10 − 4 − 4 − 4 + 2.

∴ 20.

8. Take a fruit from the box labelled “Mixed”. Its label is wrong, so it contains only one kind — the kind you drew, say apples. The box labelled “Oranges” cannot contain oranges, and cannot contain apples (already found), so it is “Mixed”; the remaining box is “Oranges”.

∴ Draw from the box labelled “Mixed”.

9. If A were a knave, his statement “at least one of us is a knave” would be true — impossible for a knave. So A is a knight, and his statement is true; since A is not a knave, B must be.

∴ A is a knight; B is a knave.

10. (x, c) ∈ (A ∩ B) × C ⇔ x ∈ A, x ∈ B, c ∈ C ⇔ (x, c) ∈ A × C and (x,

c) ∈ B × C.

∴ Proved. □

11. Count partitions of {1, 2, 3, 4}: one block (1); blocks of sizes 3 + 1 (4); 2 + 2 (3); 2 + 1 + 1 (6); 1 + 1 + 1 + 1 (1).

∴ 1 + 4 + 3 + 6 + 1 = 15 (the Bell number B4).

12. Each of the 3 elements has 4 possible images: 43. For one-one maps the images must differ: 4 × 3 × 2.

∴ 64 functions, of which 24 are one-one.

Solutions — Exercise 5E

1. A proposition must have a definite truth value. (c) depends on x, so it is an open sentence. (b) is a command and (e) is a question. ∴ (a) and (d) only.

2. Converse: “If the diagonals of a quadrilateral are equal, then it is a square.”

Counterexample: a 4 cm × 2 cm rectangle has equal diagonals but is not a square.

∴ The converse is false.

3. Converse: “If each angle of a triangle is 60°, then the triangle is equilateral.” Equal angles are opposite equal sides, so all three sides are equal.

∴ True. A triangle is equilateral if and only if each of its angles is 60°.

4. Negation: “Some prime number is not odd.” The number 2 is prime and even.

∴ The negation is true, so the statement is false.

5. When n = 40: 402 + 40 + 41 = 40(40 + 1) + 41 = 41 × 40 + 41 = 412 = 1681.

∴ n = 40 gives 1681 = 412, which is not prime.

6. Contrapositive: “If n is odd, then n2 is odd.”

Proof: n = 2k + 1 gives n2 = 4k2 + 4k + 1 = 2(2k2 + 2k) + 1, which is odd.

A statement and its contrapositive are logically equivalent. ∴ Proved. □

7. An implication “if P then Q” is false only when P is true and Q is false. Here P (2 + 2 = 5) is false.

∴ True (vacuously).

8. Hypothesis: a and b are odd. Conclusion: a + b is even.

a = 2m + 1, b = 2n + 1 ⇒ a + b = 2(m + n + 1).

∴ Proved. □

9. 32 = 9, so the statement is true. Converse: “If x2 = 9, then x = 3.” But x = −3 also satisfies x2 = 9.

∴ Statement true; converse false.

10. Suppose N is the largest even number. Then N + 2 is even and N + 2 > N, a contradiction.

∴ No largest even number exists. □

11. n(C ∪ F) = 25 + 20 − 8 = 37.

Neither = 40 − 37.

∴ 3 students.

12. From the two premises, the conclusion follows necessarily. ∴ A whale is warm-blooded; this is deductive reasoning.

Solutions — Brain Teasers

1. If the barber shaves himself, he is a man who shaves himself, so he must not; if he does not, he must. Either way is a contradiction.

∴ No such barber can exist — this is Bertrand Russell’s paradox (1901), which showed that “the set of all sets that are not members of themselves” cannot exist and led to modern axiomatic set theory.

2. If it is true, then it is false; if false, then true.

∴ It is neither — it is not a statement in the logical sense (the Liar paradox).

3. The percentages not liking each fruit are 30, 25, 20 and 15, adding to 90. At most 90% miss at least one fruit.

∴ At least 10% like all four.

4. Ask either guard: “If I asked the other guard which door leads to freedom, what would he say?” Both guards will point to the door of doom; take the other door.

∴ Go through the door not indicated.

5. Every black cat is a black thing and hence dark.

∴ Yes — some cats (the black ones) are dark.

6. ∅ has exactly one subset, namely itself (2∅0 = 1).

∴ One.

7. Move the guest in room n to room n + 1 for every n; room 1 becomes free.

∴ Shift everyone up by one room.

8. The pairing n ↔ 2n matches every natural number with exactly one even number.

∴ The two sets have the same size (cardinality) — a part of an infinite set can be as large as the whole.

9. Bloops ⊆ Razzies ⊆ Lazzies, and ⊆ is transitive.

∴ Yes.

10. If two were knights, each would be calling the other a knave — a lie, impossible. If none were knights, each knave’s statement “everyone else is a knave” would be true — impossible. With exactly one knight, his statement is true and each knave’s is false.

∴ Exactly one knight.

Solutions — Multiple-Choice Questions

1. 24.

∴ (c) 16.

2. x2 = −1 has no real solution; {0} and { } each have one∅ element, and x = 2 works in (a).

∴ (c).

3. Nothing is both in A and not in A.

∴ (a) .∅

4. De Morgan’s law.

∴ (d) A′ ∩ B′.

5. 10 + 6 − 3.

∴ (b) 13.

6. A adds no new elements.

∴ (c) B.

7. 2 × 5.

∴ (d) 10.

8. Congruence of triangles is reNexive, symmetric and transitive. ∴ (c) an equivalence relation.

9. De Morgan’s law in logic.

∴ (a) ¬p ∨ ¬q.

10. Negate both parts and swap them.

∴ (b) ¬q → ¬p.

11. The only false row.

∴ (b).

12. Either p or not p is always true.

∴ (a) p ∨ ¬p.

13. “Not all” means “some are not”.

∴ (c).

14. Section 5.3, Example 5.5.

∴ (a) A ∩ B′.

15. ∅ ⊆ A for every set A.

∴ (d).