Once we can write sets down, the next ques­tions are how big a set is and how two sets com­pare. Are they the same set? Do they have the same num­ber of ele­ments? Is one of them inside the other? This les­son answers these ques­tions with the ideas of car­di­nal num­ber, equal and equiv­a­lent sets, sub­sets, the power set and the uni­ver­sal set. Along the way we meet a neat count­ing result: a set with nn ele­ments has exactly 2n2^n sub­sets.

Car­di­nal num­ber

The num­ber of dis­tinct ele­ments con­tained in a finite set AA is called its car­di­nal num­ber, writ­ten n(A)n(A).

For exam­ple, if A={1,2,3,4}A = \{1, 2, 3, 4\} then n(A)=4n(A) = 4. For the let­ters of "BANANA", the set is {B,A,N}\{B, A, N\} and its car­di­nal num­ber is 3: repeated let­ters are counted once. And n(ϕ)=0n(\phi) = 0.

Equal sets

Two sets AA and BB are said to be equal if every ele­ment of AA is an ele­ment of BB and every ele­ment of BB is an ele­ment of AA. We write A=BA = B.

For exam­ple, A={1,2,3}A = \{1, 2, 3\} and B={3,1,2}B = \{3, 1, 2\} are equal: they have exactly the same ele­ments, only listed in a dif­fer­ent order. Sim­i­larly {x:x2=4}={−2,2}\{x : x^2 = 4\} = \{-2, 2\}.

Equiv­a­lent sets

Two finite sets AA and BB are equiv­a­lent if n(A)=n(B)n(A) = n(B). This is writ­ten A∼BA \sim B, read "AA is equiv­a­lent to BB".

For exam­ple, A={1,2,3}A = \{1, 2, 3\} and B={x,y,z}B = \{x, y, z\} have no ele­ment in com­mon, but n(A)=n(B)=3n(A) = n(B) = 3, so A∼BA \sim B.

Equal sets are always equiv­a­lent, but equiv­a­lent sets need not be equal. Equal means "the same ele­ments"; equiv­a­lent means only "the same num­ber of ele­ments".

Sub­set and super­set

A set AA is said to be a sub­set of a set BB if every ele­ment of AA is also an ele­ment of BB. In sym­bols we write A⊆BA \subseteq B, read "AA is a sub­set of BB". Here BB is called a super­set of AA.

For exam­ple, let A={1,2,3}A = \{1, 2, 3\} and B={1,2,3,4,5}B = \{1, 2, 3, 4, 5\}. Then:

  • A⊆BA \subseteq B, since 1, 2 and 3 are all in BB.
  • A⊆AA \subseteq A: every set is a sub­set of itself.
  • B⊈AB \not\subseteq A, since 4∈B4 \in B but 4∉A4 \notin A.
  • ϕ⊆A\phi \subseteq A and ϕ⊆B\phi \subseteq B: the empty set is a sub­set of every set, because it has no ele­ment that could fail to belong.

Two sets are equal exactly when each is a sub­set of the other: A=BA = B means A⊆BA \subseteq B and B⊆AB \subseteq A.

The num­ber sets fit inside each other: N⊆W⊆Z⊆Q⊆RN \subseteq W \subseteq Z \subseteq Q \subseteq R.

All the sub­sets of a set

Exam­ple 1

Write all pos­si­ble sub­sets of A={1,2,3}A = \{1, 2, 3\}.

List them by size:

  • with no ele­ment: ϕ\phi
  • with one ele­ment: {1},{2},{3}\{1\}, \{2\}, \{3\}
  • with two ele­ments: {1,2},{1,3},{2,3}\{1, 2\}, \{1, 3\}, \{2, 3\}
  • with three ele­ments: {1,2,3}=A\{1, 2, 3\} = A

That makes 1+3+3+1=81 + 3 + 3 + 1 = 8 sub­sets, and 8=238 = 2^3, where 3=n(A)3 = n(A).

The num­ber of pos­si­ble sub­sets of a set AA is 2n(A)2^{n(A)}.

The rea­son: to build a sub­set, go through the ele­ments one at a time and decide "in" or "out" for each. There are 2 choices for each of the nn ele­ments, so 2×2×⋯×2=2n2 \times 2 \times \cdots \times 2 = 2^n sub­sets in all.

Exam­ple 2

If n(A)=4n(A) = 4, how many sub­sets does AA have? List them for A={1,2,3,4}A = \{1, 2, 3, 4\}.

There are 24=162^4 = 16 sub­sets: ϕ\phi; {1},{2},{3},{4}\{1\}, \{2\}, \{3\}, \{4\}; {1,2},{1,3},{1,4},{2,3},{2,4},{3,4}\{1, 2\}, \{1, 3\}, \{1, 4\}, \{2, 3\}, \{2, 4\}, \{3, 4\}; {1,2,3},{1,2,4},{1,3,4},{2,3,4}\{1, 2, 3\}, \{1, 2, 4\}, \{1, 3, 4\}, \{2, 3, 4\}; and AA itself. Count­ing by size: 1+4+6+4+1=161 + 4 + 6 + 4 + 1 = 16.

Proper sub­sets

A set AA is a proper sub­set of BB if every ele­ment of AA is an ele­ment of BB, but not every ele­ment of BB is an ele­ment of AA. In other words, A⊆BA \subseteq B and A≠BA \neq B. We write A⊂BA \subset B, read "AA is a proper sub­set of BB".

A set AA itself is a sub­set of AA, but it is not a proper sub­set; it is called the improper sub­set of AA. So all the sub­sets except AA itself are proper.

For A={1,2,3}A = \{1, 2, 3\}, the proper sub­sets are ϕ\phi, {1}\{1\}, {2}\{2\}, {3}\{3\}, {1,2}\{1, 2\}, {2,3}\{2, 3\}, {1,3}\{1, 3\}: seven of them.

The num­ber of pos­si­ble proper sub­sets of a set AA is 2n(A)−12^{n(A)} - 1.

The power set

The set formed by all the sub­sets of a given set AA is called the power set of AA, writ­ten P(A)P(A). Its ele­ments are them­selves sets.

For A={1,2,3}A = \{1, 2, 3\}:

P(A)={ϕ,{1},{2},{3},{1,2},{1,3},{2,3},A}P(A) = \{\phi, \{1\}, \{2\}, \{3\}, \{1, 2\}, \{1, 3\}, \{2, 3\}, A\}

The num­ber of ele­ments in P(A)P(A) is 2n(A)2^{n(A)}. Notice that ϕ∈P(A)\phi \in P(A) and A∈P(A)A \in P(A), while 1∉P(A)1 \notin P(A) (the ele­ment 1 is not a sub­set; the set {1}\{1\} is).

Exam­ple 3

If A={a,b}A = \{a, b\}, write P(A)P(A) and find n(P(A))n(P(A)) and n(P(P(A)))n(P(P(A))).

P(A)={ϕ,{a},{b},{a,b}}P(A) = \{\phi, \{a\}, \{b\}, \{a, b\}\}, so n(P(A))=4n(P(A)) = 4. Then P(A)P(A) is a set with 4 ele­ments, so n(P(P(A)))=24=16n(P(P(A))) = 2^4 = 16.

The uni­ver­sal set

A set con­tain­ing all the ele­ments under con­sid­er­a­tion is known as the uni­ver­sal set, denoted UU. Which set is uni­ver­sal depends on the prob­lem. When study­ing the dig­its, UU might be {0,1,2,…,9}\{0, 1, 2, \ldots, 9\}; when solv­ing equa­tions in whole num­bers, U=WU = W; when study­ing real num­bers, U=RU = R. Every set in a given prob­lem is a sub­set of UU.

Exam­ple 4

Let U={1,2,3,…,10}U = \{1, 2, 3, \ldots, 10\}. Write in ros­ter form the sub­sets A={x:x is prime}A = \{x : x \text{ is prime}\} and B={x:x is a multiple of 3}B = \{x : x \text{ is a multiple of } 3\}, and find n(A)n(A) and n(B)n(B).

A={2,3,5,7}A = \{2, 3, 5, 7\} with n(A)=4n(A) = 4, and B={3,6,9}B = \{3, 6, 9\} with n(B)=3n(B) = 3. Nei­ther is a sub­set of the other.

Prac­tice

  1. Find n(A)n(A) for A={x:x is a letter of the word "MATHEMATICS"}A = \{x : x \text{ is a letter of the word "MATHEMATICS"}\}.
  2. Are {1,2,3,4}\{1, 2, 3, 4\} and {4,3,2,1}\{4, 3, 2, 1\} equal? Are {1,2}\{1, 2\} and {p,q}\{p, q\} equal or equiv­a­lent?
  3. Is {x:x2=1}\{x : x^2 = 1\} equal to {1}\{1\}? Explain.
  4. State true or false: (a) {2}⊆{1,2,3}\{2\} \subseteq \{1, 2, 3\} (b) 2⊆{1,2,3}2 \subseteq \{1, 2, 3\} (c) ϕ⊆{5}\phi \subseteq \{5\} (d) {1,4}⊂{1,2,3}\{1, 4\} \subset \{1, 2, 3\}
  5. Write all the sub­sets of {a,b,c}\{a, b, c\}.
  6. How many sub­sets and how many proper sub­sets does a set with 5 ele­ments have?
  7. Write the power set of {0,1}\{0, 1\}.
  8. A set has 64 sub­sets. How many ele­ments does it have?
  9. If n(A)=3n(A) = 3, find n(P(P(A)))n(P(P(A))).
  10. Arrange NN, ZZ, WW, RR, QQ so that each is a sub­set of the next.

Answers

Show answers
  1. The dis­tinct let­ters are M, A, T, H, E, I, C, S, so n(A)=8n(A) = 8.
  2. Yes, equal. {1,2}\{1, 2\} and {p,q}\{p, q\} are equiv­a­lent but not equal.
  3. No: {x:x2=1}={−1,1}\{x : x^2 = 1\} = \{-1, 1\}, which has an ele­ment −1-1 not in {1}\{1\}.
  4. (a) True (b) False: 2 is an ele­ment, not a set; write 2∈{1,2,3}2 \in \{1, 2, 3\}. (c) True (d) False: 4∉{1,2,3}4 \notin \{1, 2, 3\}.
  5. ϕ,{a},{b},{c},{a,b},{a,c},{b,c},{a,b,c}\phi, \{a\}, \{b\}, \{c\}, \{a, b\}, \{a, c\}, \{b, c\}, \{a, b, c\}
  6. 25=322^5 = 32 sub­sets and 3131 proper sub­sets.
  7. {ϕ,{0},{1},{0,1}}\{\phi, \{0\}, \{1\}, \{0, 1\}\}
  8. 2n=642^n = 64, so n=6n = 6.
  9. n(P(A))=8n(P(A)) = 8, so n(P(P(A)))=28=256n(P(P(A))) = 2^8 = 256.
  10. N⊆W⊆Z⊆Q⊆RN \subseteq W \subseteq Z \subseteq Q \subseteq R