De Morgan’s Laws: Set Rules, Truth Tables, and Examples
Use De Morgan’s laws to negate AND and OR, find set complements, and solve probability problems. See Venn diagrams and six worked examples.
TL;DR
De Morgan's laws turn a negated AND into OR, and a negated OR into AND. Negate both parts. In set notation, complement each set and switch intersection with union.
Key Points
- The complement of a union is the intersection of the complements.
- The complement of an intersection is the union of the complements.
- In logic, mathematical OR includes the possibility that both parts are true.
- Draw complements relative to the same universal set.
- In probability, “at least one” and “none” describe complementary events.
What are De Morgan's laws for sets and statements?
The two laws tell you how to move a complement inside parentheses. All set complements below are taken relative to the same universal set . Use for the elements of outside .
| Meaning | Set law | Logical law |
|---|---|---|
| Neither condition holds | ||
| The conditions do not both hold |
The notation means union, or membership in either set, including the overlap. The symbol means intersection, or membership in both sets. The symbols , , and mean OR, AND, and NOT for statements. The same relationships work because statements about an element’s membership are true or false.
How does a Venn diagram prove the laws?
Use a rectangle for and two overlapping circles for and . The diagram has four regions. A point is outside both circles, in alone, in alone, or in both.
- Complement of the union: The union includes both circles. Its complement is the region outside both. It belongs to and at the same time.
- Complement of the intersection: The intersection is only the overlap. Its complement includes the other three regions. Every point in these regions is outside at least one circle.
For an algebraic membership proof, take any . Membership in means belongs to neither nor . It therefore belongs to both and . Every step can be reversed. For the other law, membership in means at least one of and holds. This is membership in . University College London presents the same rule using membership in sets.
How do truth tables verify both laws?
Each row gives one possible pair of truth values. For each law, compare the two columns for its left and right sides. OpenStax’s logic treatment uses this test to establish equivalence.
| True | True | False | False | False | False |
| True | False | False | False | True | True |
| False | True | False | False | True | True |
| False | False | True | True | True | True |
Check the middle rows when choosing between “neither” and “not both.” If only is true, then “neither” is false but “not both” is true.
How do you use the laws in probability and with more sets?
For events, the universal set is the sample space. If means the th event occurs, the event that none occurs is
The event that at least one fails is the complementary version for intersections.
The equations hold regardless of independence. If the events are independent, their complements are independent too, so the probability that none occurs is the product of their complementary probabilities. OpenStax extends the laws to three sets, and MIT's probability notes review the same event operations.
Worked Examples of De Morgan's Laws
Example 1
Let , , and . Find .
- The union is .
- The elements outside that union are .
- The same result follows from intersecting with .
Example 2
With the same , , and , find .
- The intersection is .
- Its complement is .
- The answer includes 2, which belongs to alone and is therefore outside .
Example 3
Negate “The school office is open AND the receptionist is at the desk.”
- Let be the first statement and the second.
- Replace AND with OR and negate the two parts.
- The negation is “The office is closed OR the receptionist is away from the desk,” with both possibilities allowed.
Example 4
A form asks applicants to select email or text updates, with both options permitted. Describe an applicant who selected neither update type.
- Let mean email was selected and mean text was selected.
- “Neither” is .
- The applicant did not select email and did not select texts. Leaving just one box unchecked would allow the other option.
Example 5
Two fair dice are rolled. Find the probability of rolling at least one six.
- Let and be the events of a six on the first and second die.
- A roll without any six lies in . Its probability is , using independence.
- The probability of at least one six is . The playing-card probability guide compares a sample-space approach for a single draw.
Example 6
Simplify .
- Negate the outside AND to get .
- Apply the other law to the remaining negated OR.
- The result is .
Mistakes That Change the Result
Mistake 1: Negating the operands and retaining the operator
For a negated union you need an intersection of the complements. Test an element that belongs to only one of the original sets to see the difference.
Mistake 2: Taking a complement without a universal set
If , the complement in is . In it is . State the universe before listing the complement.
Mistake 3: Assuming all probabilities multiply
De Morgan's law identifies the complement without probability assumptions. A product of marginal probabilities needs independence. With a shared condition or sampling without replacement, calculate the joint event using appropriate conditional probabilities.
Try It Yourself
- Negate “The library has the book OR has the audiobook.”
- Out of 30 students, 17 play chess, 12 play a sport, and 7 do both. How many do neither?
- Simplify .
Answers and Reasoning
- The library has neither the book nor the audiobook. Both parts must be false.
- The union contains students. Its complement has students.
- The result is . Any element outside at least one set is outside the intersection.
Questions About De Morgan's Laws
Are the laws valid if one set is empty?
Yes. If , then . For the first law, , the same result as . For the second law, , the same result as .
How do the laws relate to the phrase “unless”?
Translate the whole statement into AND, OR, and NOT before moving a negation. In the standard inclusive reading, “ unless ” is , which is equivalent to . Its negation is .
Conclusion
- Negate each part and switch AND with OR, or switch intersection with union.
- Keep the universal set fixed.
- For a probability problem, use the laws to identify the event before calculating its probability.
Read More
Research Behind This Article
- OpenStax, Contemporary Mathematics — Set Operations with Three Sets. OpenStax
- University College London, Algebra 1 — De Morgan’s Laws. UCL
- OpenStax, Contemporary Mathematics — De Morgan’s Laws. OpenStax
- Massachusetts Institute of Technology, Introduction to Probability — Mathematical Background. MIT OpenCourseWare