Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Subsets






Containment and the Power Set


A subset relationship describes when one set is entirely contained within another. This concept provides the fundamental way to compare sets and establish hierarchies among collections. From subsets emerges the power set — the collection of all possible subsets a given set can produce — which connects directly to combinatorics and counting principles.



Subsets


    A set AA is a subset of a set BB if every element of AA is also an element of BB. This relationship is written:

    ABA \subseteq B


    The formal definition uses a universal quantifier:

    AB    x(xAxB)A \subseteq B \iff \forall x\,(x \in A \Rightarrow x \in B)


    Consider A={2,4}A = \{2, 4\} and B={1,2,3,4,5}B = \{1, 2, 3, 4, 5\}. Since both 22 and 44 appear in BB, we have ABA \subseteq B. However, {2,6}⊈B\{2, 6\} \not\subseteq B because 6B6 \notin B — a single missing element breaks the subset relationship.

    Two facts hold universally:

  • AAA \subseteq A for any set AA

  • A\emptyset \subseteq A for any set AA

  • The first fact is immediate since every element of AA trivially belongs to AA. The second follows because the empty set contains no elements, so there is no element that could fail to belong to AA.

Proper Subsets


A set AA is a proper subset of BB if AA is a subset of BB but AA is not equal to BB. This is written:

ABA \subset B


Equivalently:

AB    (AB)(AB)A \subset B \iff (A \subseteq B) \land (A \neq B)


The distinction matters: {1,2}{1,2}\{1, 2\} \subseteq \{1, 2\} is true, but {1,2}{1,2}\{1, 2\} \subset \{1, 2\} is false because the two sets are equal. For a proper subset, there must exist at least one element in BB that does not belong to AA.

If A={a,b}A = \{a, b\} and B={a,b,c}B = \{a, b, c\}, then ABA \subset B because cBc \in B but cAc \notin A.

The empty set satisfies A\emptyset \subset A for every non-empty set AA, since A\emptyset \subseteq A and A\emptyset \neq A. However, \emptyset \subset \emptyset is false because =\emptyset = \emptyset.

Superset


The superset relation is the inverse of the subset relation. If ABA \subseteq B, then BB is a superset of AA, written:

BAB \supseteq A


This is read as "BB contains AA" or "BB is a superset of AA." Similarly, if ABA \subset B, then BB is a proper superset of AA:

BAB \supset A


The superset notation simply reverses perspective. Whether to write ABA \subseteq B or BAB \supseteq A depends on which set you want to emphasize. Both statements convey the same relationship.

The standard number sets provide a natural example of superset chains:

CRQZN\mathbb{C} \supset \mathbb{R} \supset \mathbb{Q} \supset \mathbb{Z} \supset \mathbb{N}


Each set properly contains the one to its right: the complex numbers contain the reals, which contain the rationals, and so on.

Number of Subsets


    A set with nn elements has exactly 2n2^n subsets. This count includes both the empty set and the set itself.

    The reasoning is straightforward: for each element, there are two choices — include it in the subset or exclude it. With nn elements, this gives:

    2×2××2=2n2 \times 2 \times \cdots \times 2 = 2^n


    independent choices, yielding 2n2^n distinct subsets.

    For proper subsets, we exclude the set itself from the count, giving 2n12^n - 1 proper subsets.

    Examples:

  • 00 elements (the empty set) has 20=12^0 = 1 subset: itself

  • 33 elements has 23=82^3 = 8 subsets and 77 proper subsets

  • 1010 elements has 210=10242^{10} = 1024 subsets

  • This counting principle connects directly to the binomial coefficients: the number of subsets of size kk from a set of nn elements is (nk)\binom{n}{k}, and summing over all possible sizes gives:

    k=0n(nk)=2n\sum_{k=0}^{n} \binom{n}{k} = 2^n


Power Set


The power set of a set AA, denoted P(A)\mathcal{P}(A) or 2A2^A, is the set of all subsets of AA:

P(A)={S:SA}\mathcal{P}(A) = \{S : S \subseteq A\}


For A={1,2}A = \{1, 2\}, the power set is:

P({1,2})={,{1},{2},{1,2}}\mathcal{P}(\{1, 2\}) = \{\emptyset, \{1\}, \{2\}, \{1, 2\}\}


The empty set and AA itself are always elements of P(A)\mathcal{P}(A).

The cardinality of the power set follows directly from subset counting:

P(A)=2A|\mathcal{P}(A)| = 2^{|A|}


The power set of the empty set deserves attention:

P()={}\mathcal{P}(\emptyset) = \{\emptyset\}


This is not the empty set — it is a set containing one element (the empty set). The distinction matters: P()=1|\mathcal{P}(\emptyset)| = 1, not 00.

The power set transforms subset relationships into membership relationships: BAB \subseteq A if and only if BP(A)B \in \mathcal{P}(A).