Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Set Theory Formulas

Set Operations
Fundamental Properties
Cardinality
Power Set
Important Rules

Set Operations

Union Of Sets



Formula:

AB={xxA or xB}A \cup B = \{ x \mid x \in A \ \text{or} \ x \in B \}
The union of two sets brings together all the elements from both sets without any duplicates. Think of it as combining two groups into one bigger group that contains every unique member from both.
The sets being united
An element
Element xx is in set AA
Element xx is in set BB
If A={1,2,3}A = \{1, 2, 3\} and B={3,4,5}B = \{3, 4, 5\}, then AB={1,2,3,4,5}A \cup B = \{1, 2, 3, 4, 5\}
Combining data sets, merging lists, unifying groups

Intersection Of Sets



Formula:

AB={xxA and xB}A \cap B = \{ x \mid x \in A \ \text{and} \ x \in B \}
The intersection of two sets includes only the elements that are present in both sets. It's like finding common friends between two people.
The sets being intersected
An element
Element xx is in both sets AA and BB
If A={2,3,4}A = \{2, 3, 4\} and B={3,4,5}B = \{3, 4, 5\}, then AB={3,4}A \cap B = \{3, 4\}
Finding commonalities, overlapping interests, shared attributes

Set Difference



Formula:

AB={xxA and xB}A \setminus B = \{ x \mid x \in A \ \text{and} \ x \notin B \}
The difference between two sets AA and BB consists of elements that are in AA but not in BB. It's like removing certain items from your collection.
The sets involved
An element
Element xx is in set AA
Element xx is not in set BB
If A={1,2,3,4}A = \{1, 2, 3, 4\} and B={3,4,5}B = \{3, 4, 5\}, then AB={1,2}A \setminus B = \{1, 2\}
Excluding items, filtering data, subtracting groups

Complement Of A Set



Formula:

A=UA={xxU and xA}A' = U \setminus A = \{ x \mid x \in U \ \text{and} \ x \notin A \}
The complement of a set includes everything that's not in the set, relative to a universal set UU. It's like considering all the things you're not choosing.
The set you're taking the complement of
The universal set containing all possible elements
An element
Element xx is not in set AA
Element xx is in the universal set UU
If U={1,2,3,4,5}U = \{1, 2, 3, 4, 5\} and A={2,3}A = \{2, 3\}, then A={1,4,5}A' = \{1, 4, 5\}
Finding what is excluded, logical negation, probability of the opposite event

Cartesian Product



Formula:

A×B={(a,b)aA, bB}A \times B = \{ (a, b) \mid a \in A, \ b \in B \}
The Cartesian product pairs every element of set AA with every element of set BB, forming ordered pairs. Imagine creating all possible combinations between two lists.
The sets being combined
An ordered pair with aa from AA and bb from BB
Element aa is in set AA
Element bb is in set BB
If A={1,2}A = \{1, 2\} and B={x,y}B = \{x, y\}, then A×B={(1,x),(1,y),(2,x),(2,y)}A \times B = \{ (1, x), (1, y), (2, x), (2, y) \}
Creating coordinate grids, modeling relationships, forming combinations

Fundamental Properties

Commutative Law Of Union



Formula:

AB=BAA \cup B = B \cup A
The order in which you unite two sets doesn't matter; you'll end up with the same set. It's like mixing two ingredients together—the result is the same no matter the order.
The sets being united
If A={apple,banana}A = \{apple, banana\} and B={banana,cherry}B = \{banana, cherry\}, then AB={apple,banana,cherry}=BAA \cup B = \{apple, banana, cherry\} = B \cup A
Simplifying set expressions, proving set identities

Commutative Law Of Intersection



Formula:

AB=BAA \cap B = B \cap A
The order in which you find the common elements between two sets doesn't matter. It's like checking shared interests between two people; the overlap is the same regardless of who you start with.
The sets being intersected
If A={red,blue}A = \{red, blue\} and B={blue,green}B = \{blue, green\}, then AB={blue}=BAA \cap B = \{blue\} = B \cap A
Simplifying calculations, proving properties of sets

Associative Law Of Union



Formula:

(AB)C=A(BC)(A \cup B) \cup C = A \cup (B \cup C)
When uniting multiple sets, the grouping doesn't affect the result. It's like grouping ingredients differently when mixing; the final mix is the same.
The sets being united
If A={1}A = \{1\}, B={2}B = \{2\}, C={3}C = \{3\}, then (AB)C=A(BC)={1,2,3}(A \cup B) \cup C = A \cup (B \cup C) = \{1, 2, 3\}
Rearranging expressions for simplification, computational efficiency

Associative Law Of Intersection



Formula:

(AB)C=A(BC)(A \cap B) \cap C = A \cap (B \cap C)
When finding common elements among multiple sets, how you group them doesn't change the outcome. It's like narrowing down shared interests among friends; the sequence doesn't matter.
The sets being intersected
If A={1,2}A = \{1,2\}, B={2,3}B = \{2,3\}, C={2,4}C = \{2,4\}, then (AB)C=A(BC)={2}(A \cap B) \cap C = A \cap (B \cap C) = \{2\}
Simplifying complex intersections, logical deductions

Distributive Law Of Intersection Over Union



Formula:

A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)
Intersecting a set with the union of two sets is the same as uniting the intersections of the set with each of the two sets individually. It's like finding common items after combining two lists separately.
The sets involved
If A={1,2,3}A = \{1,2,3\}, B={3,4}B = \{3,4\}, C={3,5}C = \{3,5\}, then A(BC)={3}A \cap (B \cup C) = \{3\} and (AB)(AC)={3}(A \cap B) \cup (A \cap C) = \{3\}
Simplifying expressions, solving set equations

Distributive Law Of Union Over Intersection



Formula:

A(BC)=(AB)(AC)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)
Uniting a set with the intersection of two sets is the same as intersecting the unions of the set with each of the two sets individually. It's like combining your list with shared items of others, or finding common ground after including all possibilities.
The sets involved
If A={1}A = \{1\}, B={1,2}B = \{1,2\}, C={1,3}C = \{1,3\}, then A(BC)={1}A \cup (B \cap C) = \{1\} and (AB)(AC)={1,2,3}{1,3}={1,3}(A \cup B) \cap (A \cup C) = \{1,2,3\} \cap \{1,3\} = \{1,3\}
Rewriting expressions for easier computation, logical reasoning

Identity Law Of Union



Formula:

A=AA \cup \emptyset = A
Uniting any set with the empty set doesn't change the original set. It's like adding nothing to a group; the group stays the same.
Any set
The empty set
If A={1,2}A = \{1,2\}, then A={1,2}A \cup \emptyset = \{1,2\}
Simplifying expressions, understanding the role of the empty set

Identity Law Of Intersection



Formula:

AU=AA \cap U = A
Intersecting any set with the universal set leaves the original set unchanged. It's like comparing your collection to everything possible; only your items matter.
Any set
The universal set
If A={1,2}A = \{1,2\} and UU contains all numbers, then AU={1,2}A \cap U = \{1,2\}
Simplifying expressions, theoretical foundations

Idempotent Law Of Union



Formula:

AA=AA \cup A = A
Uniting a set with itself doesn't change it. It's like combining a group with itself; nothing new is added.
Any set
If A={1,2,3}A = \{1,2,3\}, then AA={1,2,3}A \cup A = \{1,2,3\}
Simplifying redundant operations, mathematical proofs

Idempotent Law Of Intersection



Formula:

AA=AA \cap A = A
Intersecting a set with itself leaves it unchanged. It's like finding common elements within the same group; everything matches.
Any set
If A={x,y,z}A = \{x,y,z\}, then AA={x,y,z}A \cap A = \{x,y,z\}
Simplifying expressions, reducing complexity in proofs

Double Complement Law



Formula:

(A)=A(A')' = A
Taking the complement of a complement brings you back to the original set. It's like undoing a reversal; you return to where you started.
Any set
Complement of set AA
Complement of the complement of AA
If A={1,2}A = \{1,2\} within U={1,2,3,4}U = \{1,2,3,4\}, then A={3,4}A' = \{3,4\} and (A)={1,2}=A(A')' = \{1,2\} = A
Simplifying complex expressions, logical negations

Complement Of Universal Set



Formula:

U=U' = \emptyset
The complement of the universal set is the empty set because there are no elements outside of everything considered.
The universal set
Complement of the universal set
The empty set
If U={all elements}U = \{all\ elements\}, then U=U' = \emptyset
Understanding limits, theoretical concepts

Complement Of Empty Set



Formula:

=U\emptyset' = U
The complement of the empty set is the universal set because it contains everything that isn't in the empty set—which is everything.
The empty set
The universal set
Complement of the empty set
If U={1,2,3}U = \{1,2,3\}, then ={1,2,3}\emptyset' = \{1,2,3\}
Establishing foundational concepts, simplifying expressions

De Morgan's First Law



Formula:

(AB)=AB(A \cup B)' = A' \cap B'
The complement of the union of two sets is the intersection of their complements. It's like saying everything that's not in either set is what's not in AA and not in BB.
Sets involved
Complements of AA and BB
If U={1,2,3,4}U = \{1,2,3,4\}, A={1,2}A = \{1,2\}, B={2,3}B = \{2,3\}, then (AB)={4}(A \cup B)' = \{4\} and AB={4}A' \cap B' = \{4\}
Logical reasoning, simplifying complex expressions

De Morgan's Second Law



Formula:

(AB)=AB(A \cap B)' = A' \cup B'
The complement of the intersection of two sets is the union of their complements. It's like everything not shared between AA and BB is everything not in AA or not in BB.
Sets involved
Complements of AA and BB
If U={1,2,3,4}U = \{1,2,3,4\}, A={1,2}A = \{1,2\}, B={2,3}B = \{2,3\}, then (AB)={1,3,4}(A \cap B)' = \{1,3,4\} and AB={1,3,4}A' \cup B' = \{1,3,4\}
Logical negations, simplifying expressions in probability and logic

Cardinality

Cardinality Of A Set



Formula:

A=n|A| = n
The cardinality of a set is the number of elements it contains. It's like counting how many items are in your collection.
The set
Number of elements in set AA
A non-negative integer
If A={a,b,c}A = \{a, b, c\}, then A=3|A| = 3
Measuring set sizes, comparing quantities, finite mathematics

Cardinality Of Union Of Two Sets



Formula:

AB=A+BAB|A \cup B| = |A| + |B| - |A \cap B|
When combining two sets, the total number of unique elements is the sum of their sizes minus the number of elements they share. This avoids double-counting shared elements.
Sets being united
Cardinalities of sets AA and BB
Number of elements common to both sets
If A=5|A| = 5, B=7|B| = 7, and AB=2|A \cap B| = 2, then AB=5+72=10|A \cup B| = 5 + 7 - 2 = 10
Calculating probabilities, combining datasets, survey analysis

Principle Of Inclusion-Exclusion For Three Sets



Formula:

ABC=A+B+CABACBC+ABC|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C|
To find the total number of unique elements across three sets, we add their sizes, subtract the sizes of all pairwise intersections to correct for double-counting, and then add back the size of the triple intersection to correct for elements subtracted too many times.
Sets being united
Cardinalities of the sets
Sizes of pairwise intersections
Size of the intersection of all three sets
If A=10|A| = 10, B=15|B| = 15, C=20|C| = 20, AB=5|A \cap B| = 5, AC=4|A \cap C| = 4, BC=6|B \cap C| = 6, and ABC=2|A \cap B \cap C| = 2, then ABC=10+15+20546+2=32|A \cup B \cup C| = 10 + 15 + 20 - 5 - 4 - 6 + 2 = 32
Complex probability calculations, overlapping group analysis, database queries

Power Set

Cardinality Of Power Set



Formula:

P(A)=2A|\mathcal{P}(A)| = 2^{|A|}
The power set of AA includes all possible subsets of AA, and its size is 22 raised to the number of elements in AA. It's like calculating all possible combinations of items you can select from your collection.
The original set
Power set of AA
Number of elements in set AA
Total number of subsets
If A={1,2,3}A = \{1,2,3\}, then P(A)=23=8|\mathcal{P}(A)| = 2^3 = 8
Combinatorics, probability, binary representations

Important Rules

Transitivity Of Subsets



Formula:

If ABA \subseteq B and BCB \subseteq C, then ACA \subseteq C
If every element of AA is in BB, and every element of BB is in CC, then every element of AA must also be in CC. It's like a chain of containment.
Sets involved
Symbol meaning 'is a subset of'
If A={1}A = \{1\}, B={1,2}B = \{1,2\}, and C={1,2,3}C = \{1,2,3\}, then ACA \subseteq C
Logical deductions, hierarchical classifications

Empty Set Is A Subset Of Every Set



Formula:

A\emptyset \subseteq A
The empty set is considered a subset of any set because there are no elements in it that could possibly violate the subset condition. It's like an empty container fitting into any space.
The empty set
Any set
Symbol meaning 'is a subset of'
For any set AA, A\emptyset \subseteq A
Mathematical proofs, defining foundational concepts

Extensionality Principle



Formula:

A=B    x(xA    xB)A = B \iff \forall x (x \in A \iff x \in B)
Two sets are equal if and only if they have exactly the same elements. It's like saying two collections are the same if everything in one is also in the other and vice versa.
Sets being compared
For all elements xx
If and only if
Element xx is in set AA
If A={1,2,3}A = \{1,2,3\} and B={3,2,1}B = \{3,2,1\}, then A=BA = B
Determining set equality, logical reasoning