Bodh Prabodh

Sets · Part 4 of 4

De Morgan's Laws & Counting Problems

De Morgan's laws with Venn diagrams and numbers, n(A union B) formulas, three word problems, the three-set formula, exam traps and a full-chapter revision.

  • 12 min video
  • 21 topics
  • 3 check questions
  • Full transcript
Practise the chapter

Topics in this part

  1. Welcome
  2. Part 4 overview
  3. Quick recall
  4. An everyday sentence
  5. De Morgan's laws
  6. Law 1 on a Venn diagram
  7. De Morgan's laws with numbers
  8. Practice: De Morgan
  9. Counting with two sets
  10. Useful counting results
  11. Word problem 1: neither
  12. Word problem 2: passed both
  13. Word problem 3: both and only one
  14. Practice: n(A union B)
  15. Three sets: the formula
  16. Three sets: worked example
  17. Exam traps: where marks are lost
  18. Quick results for the exam
  19. Chapter formula sheet
  20. Recap of the whole chapter
  21. Next chapter

Notes for this part

Check yourself

3 questions on this part from the chapter bank. Pick an answer, then check. No score is shared with anyone.

Question 1
Which of these numbers belongs to the interval (−3,5](-3, 5]?
Question 2
If n(U)=50n(U)=50 and n(A)=30n(A)=30, then n(A′)n(A') is
Question 3
Which pair of sets is disjoint?

Want more like these? Browse the whole question bank or take the chapter quiz.

Transcript

English captions of this part, in time order. The narration is in Hinglish; these are the on-screen English subtitles.

0:00 Welcome

0:02 Welcome back to Bodh Prabodh.

0:05 Part 4 overview

0:05 This is the last part of Sets: De Morgan's laws, and counting problems. This is where sets become useful in real life, and where many exam marks are won.

0:17 Quick recall

0:17 Quick recall from Part 3. A is 1 to 6, and B is 2, 4, 6, 8. What is A minus B? The answer is option A: 1, 3, 5. Go through A, and keep only what is not in B.

0:46 An everyday sentence

0:46 Suppose your friend says: I do not like tea or coffee. What does it really mean? He does not like tea, and he does not like coffee. Both are rejected. Saying not, on the whole bracket, turned the word or into and.

1:04 That tiny observation is De Morgan's law.

1:08 De Morgan's laws

1:08 De Morgan's first law: the complement of A union B equals A complement intersection B complement. Second law: the complement of A intersection B equals A complement union B complement.

1:22 The rule to remember: when the complement passes through a bracket, the union turns into an intersection, and the intersection turns into a union. Union and intersection swap, and each set gets its own complement.

1:38 Law 1 on a Venn diagram

1:38 Let us see Law 1 on a Venn diagram. First, A union B complement: everything outside both circles. Now A complement: everything outside A. That includes the part of B that is not in A, and the outside region.

1:55 B complement: everything outside B. That includes the part of A that is not in B, and the outside region. Now keep only what is common to both A complement and B complement.

2:10 Only the outside region remains. It is exactly the first picture. Law 1 is proved.

2:17 De Morgan's laws with numbers

2:17 Seeing is good, but numbers make it solid. Let U be 1 to 10, A be 1, 2, 3, 4, and B be 3, 4, 5, 6. A union B is 1 to 6. Its complement is 7, 8, 9, 10. A complement is 5 to 10.

2:39 B complement is 1, 2, 7, 8, 9, 10. Their intersection is 7, 8, 9, 10. Same answer. Law 1 verified. For Law 2, A intersection B is 3, 4. Its complement is everything except 3 and 4.

2:59 And A complement union B complement is also everything except 3 and 4. Law 2 verified.

3:08 Practice: De Morgan

3:08 Pause and try. What is the complement of A union B, in terms of A complement and B complement? The answer is option B. Complement turns the union into an intersection, so it is A complement intersection B complement.

3:39 Counting with two sets

3:39 Now counting. How many elements are in A union B? The tempting answer is: n of A, plus n of B. But look at the overlap. Suppose 20 students like tea, 15 like coffee, and 8 like both.

3:57 If we add 20 and 15, those 8 students are counted twice, once in each group. The fix: subtract the overlap once. So n of A union B equals n of A, plus n of B, minus n of A intersection B.

4:15 Here, 20 plus 15 minus 8 gives 27 students who like at least one drink.

4:22 Useful counting results

4:22 Some results that follow from this. If A and B are disjoint, there is no overlap, so n of A union B is just n of A plus n of B. The number of elements only in A, that is A minus B, equals n of A minus n of A intersection B.

4:41 And the number of elements outside A is n of U minus n of A. This one answers every question that says neither, or none.

4:51 Word problem 1: neither

4:51 Word problem one. In a class of 60 students, 40 play cricket, 25 play football, and 10 play both. How many play neither? Step one: write the given numbers.

5:08 n of U is 60, n of C is 40, n of F is 25, n of C intersection F is 10. Step two: find those who play at least one. 40 plus 25 minus 10 equals 55. Step three: neither means outside the union.

5:29 60 minus 55 equals 5. So 5 students play neither game. Always end with a sentence that answers the question. Examiners give a mark for it.

5:43 Word problem 2: passed both

5:43 Word problem two, a little harder. Out of 100 students, 65 passed Maths, 70 passed Science, and 5 failed in both. How many passed both? First, those who failed both are outside the union.

6:00 So the union has 100 minus 5, which is 95 students. Now use the formula backwards. 95 equals 65 plus 70 minus n of M intersection S. 65 plus 70 is 135.

6:16 So n of M intersection S equals 135 minus 95, which is 40. Forty students passed both.

6:27 Word problem 3: both and only one

6:27 Word problem three, with one more question. In a group of 80 people, 50 drink tea, 40 drink coffee, and 15 drink neither. How many drink both? And how many drink only tea?

6:43 First write what is given. n of U is 80, n of T is 50, n of C is 40, and neither is 15. Neither means outside the union. So the union has 80 minus 15, which is 65 people.

6:59 Now use the formula backwards. 65 equals 50 plus 40 minus the overlap. So the overlap is 90 minus 65, which is 25. Twenty-five people drink both. Only tea means tea but not coffee: 50 minus 25, which is 25.

7:19 Only coffee is 40 minus 25, which is 15. Now check: both 25, only tea 25, only coffee 15, neither 15. Total 80. Always check that the regions add up to the total.

7:37 Practice: n(A union B)

7:37 Pause and try. n of A is 30, n of B is 25, and n of A intersection B is 10. Find n of A union B. The answer is 45. 30 plus 25 minus 10.

8:03 Three sets: the formula

8:03 Now three sets. The idea is the same, with one more step. Add the three singles. Then subtract the three pair overlaps, because the pairs were counted twice.

8:16 But the middle, where all three meet, was added three times and subtracted three times, so it is lost. We add it back once. So n of A union B union C equals n of A, plus n of B, plus n of C, minus n of A intersection B, minus n of B intersection C, minus n of A intersection C, plus n of A intersection B intersection C.

8:42 A simple way to remember: plus, minus, plus. Singles, pairs, triple.

8:50 Three sets: worked example

8:50 Example. n of A is 30, n of B is 28, n of C is 24. The pairs: n of A intersection B is 10, n of A intersection C is 9, n of B intersection C is 8. The triple, n of A intersection B intersection C, is 4.

9:10 Find n of the union. Singles: 30 plus 28 plus 24 is 82. Pairs: 10 plus 9 plus 8 is 27. So far 82 minus 27 is 55. Add back the triple: 55 plus 4 is 59. The union has 59 elements.

9:31 And the number outside all three circles is n of U minus 59.

9:37 Exam traps: where marks are lost

9:37 Time to learn from the mistakes that cost marks. First, in counting, forgetting to subtract the overlap, or subtracting it twice. Second, writing an element twice in a set, or listing zero as a natural number.

9:51 Third, mixing belongs-to with subset, and using the wrong bracket in an interval. Fourth, saying a set with n elements has 2 to the power n proper subsets.

10:04 It is 2 to the power n minus 1. Fifth, treating A minus B like B minus A. And last, finding a complement without knowing the universal set.

10:15 Quick results for the exam

10:15 Here are quick results that save time in the exam. If A is a subset of B, then A union B is B, A intersection B is A, and A minus B is phi. Also, B complement is a subset of A complement.

10:31 The order of complements reverses. And A minus B equals A intersection B complement. This is a very useful rewriting: but not becomes and not.

10:43 Chapter formula sheet

10:43 Here is the complete formula sheet of the chapter. Pause the video and copy it down. This is exactly what the PDF notes contain as well. Subsets: 2 to the power n.

10:54 Proper subsets: 2 to the power n minus 1. Power set: 2 to the power n elements. Intervals: length b minus a. De Morgan: complement swaps union and intersection.

11:10 Counting: plus, minus, plus.

11:14 Recap of the whole chapter

11:14 Recap of the whole chapter. A set is a well-defined collection, written by roster or set-builder form. We met empty, finite, infinite, singleton and equal sets, then subsets, power sets, intervals, the universal set and Venn diagrams.

11:32 Then union, intersection, difference, complement, and De Morgan's laws, and finally the counting formulas. Now your work begins. Download the practice PDF, attempt every question without looking at the answers, and only then check.

11:50 That is how learning sticks.

11:52 Next chapter

11:52 That completes Chapter 1, Sets. Next, we begin Chapter 2, Relations and Functions. Thank you for learning with Bodh Prabodh. See you soon.

Report a mistake on this page