MCS-212 · Block 2 Unit 1

Sets, Relations and Functions

Section 4 of 9

Block 2 · Unit 1Sets, Relations and Functions13 min · Section 4 of 9

1.4Laws of set algebra and duality

Covers IGNOU MCS-212 §1.3.2, E15–E17

The set operations obey a list of laws that should look familiar: they are the laws of logic from Block 1, Unit 1, and the laws of Boolean algebra from Unit 3. Indeed (P(U),∪,∩,′,∅,U)(P(U), \cup, \cap, {}', \emptyset, U) is a Boolean algebra. These laws let us simplify set expressions and database queries.

The laws

LawUnion formIntersection formLogic version
AssociativeA∪(B∪C)=(A∪B)∪CA \cup (B \cup C) = (A \cup B) \cup CA∩(B∩C)=(A∩B)∩CA \cap (B \cap C) = (A \cap B) \cap C∨\lor, ∧\land associative
CommutativeA∪B=B∪AA \cup B = B \cup AA∩B=B∩AA \cap B = B \cap Ap∨q≡q∨pp \lor q \equiv q \lor p
IdentityA∪∅=AA \cup \emptyset = AA∩U=AA \cap U = Ap∨F≡pp \lor F \equiv p, p∧T≡pp \land T \equiv p
ComplementA∪A′=UA \cup A' = UA∩A′=∅A \cap A' = \emptysetp∨¬p≡Tp \lor \neg p \equiv T
DistributiveA∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)distributive laws
De Morgan(A∪B)′=A′∩B′(A \cup B)' = A' \cap B'(A∩B)′=A′∪B′(A \cap B)' = A' \cup B'¬(p∨q)≡¬p∧¬q\neg(p \lor q) \equiv \neg p \land \neg q

De Morgan’s laws also hold for differences: A∖(B∪C)=(A∖B)∩(A∖C)A \setminus (B \cup C) = (A \setminus B) \cap (A \setminus C) and A∖(B∩C)=(A∖B)∪(A∖C)A \setminus (B \cap C) = (A \setminus B) \cup (A \setminus C).

The duality principle

The dual of A∪∅=AA \cup \emptyset = A is A∩U=AA \cap U = A; the dual of A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C) is A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C). So proving one law of each pair proves both.

How to prove a set identity

To prove X=YX = Y for set expressions, use one of:

  1. Element argument: show x∈X⇒x∈Yx \in X \Rightarrow x \in Y and x∈Y⇒x∈Xx \in Y \Rightarrow x \in X.
  2. Membership table: like a truth table, with 1 for “in” and 0 for “not in”; X=YX = Y if their columns agree in every row.
  3. Laws: transform XX into YY step by step.

A Venn diagram is a good way to check or disprove an identity, but for a proof examiners expect one of the three methods above.

Key takeaways

  • Set laws mirror logic laws: ∪↔∨\cup \leftrightarrow \lor, ∩↔∧\cap \leftrightarrow \land, ′↔¬{}' \leftrightarrow \neg, ∅↔F\emptyset \leftrightarrow F, U↔TU \leftrightarrow T.
  • De Morgan: (A∪B)′=A′∩B′(A \cup B)' = A' \cap B', (A∩B)′=A′∪B′(A \cap B)' = A' \cup B'.
  • Dual: swap ∪↔∩\cup \leftrightarrow \cap and ∅↔U\emptyset \leftrightarrow U.
  • Prove identities by element arguments, membership tables or laws; disprove with a counterexample.

Practice questions

Answer on paper first, then check. The explanation matters more than the letter you chose.

Question 1 · multiple choice

What is the dual of A∪U=UA \cup U = U?

Show answer

Answer: C. A∩∅=∅A \cap \emptyset = \emptyset

Swap ∪→∩\cup \to \cap and U→∅U \to \emptyset. Option 2 swaps only the operation, giving a false statement.

Question 2 · multiple choice

By De Morgan’s law, (A∩B)′(A \cap B)' equals:

Show answer

Answer: B. A′∪B′A' \cup B'

The complement of an intersection is the union of the complements. Option 1 forgets to change ∩\cap into ∪\cup.

Question 3 · multiple choice

Which is equal to A∖(B∪C)A \setminus (B \cup C)?

Show answer

Answer: A. (A∖B)∩(A∖C)(A \setminus B) \cap (A \setminus C)

To avoid both BB and CC, an element must avoid BB and avoid CC. Option 2 is the formula for A∖(B∩C)A \setminus (B \cap C).

Question 4 · multiple choice

Which counterexample shows (A∪B)∩C≠A∪(B∩C)(A \cup B) \cap C \neq A \cup (B \cap C)?

Show answer

Answer: D. A={1}A = \{1\}, B=∅B = \emptyset, C=∅C = \emptyset

Left side {1}∩∅=∅\{1\} \cap \emptyset = \emptyset; right side {1}∪∅={1}\{1\} \cup \emptyset = \{1\}. In options 1–3 both sides are equal, so they do not disprove the identity.

Question 5 · multiple choice

Which method is NOT enough on its own to prove a set identity in an exam?

Show answer

Answer: D. One Venn diagram

A Venn diagram shows the idea, but a written proof needs an element argument, a table or laws. A Venn diagram is fine for disproving with a clear counterexample region.

Question 6 · short answer

Prove A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C) by an element argument.

Show worked answer

x∈A∩(B∪C)x \in A \cap (B \cup C) ⟺ x∈Ax \in A and (x∈Bx \in B or x∈Cx \in C) ⟺ (x∈Ax \in A and x∈Bx \in B) or (x∈Ax \in A and x∈Cx \in C) [distributive law of logic] ⟺ x∈A∩Bx \in A \cap B or x∈A∩Cx \in A \cap C ⟺ x∈(A∩B)∪(A∩C)x \in (A \cap B) \cup (A \cap C). Since each step is an equivalence, both sets have exactly the same elements, so they are equal.

↑ ↓ move↵ openTab switch type