Set Theory Calculator

Explore set theory with interactive Venn diagrams and comprehensive set operations. Visualize set relationships and perform complex calculations.

Set A
Set B
Set C

Set Operations

A ∪ B (Union)

Elements in A or B or both

A ∩ B (Intersection)

Elements in both A and B

A - B (Difference)

Elements in A but not in B

A' (Complement)

Elements in U but not in A

A △ B (Symmetric Difference)

Elements in A or B but not both

A × B (Cartesian Product)

Ordered pairs (a,b) where a∈A, b∈B

Set Properties

|A| (Cardinality of A):0
|B| (Cardinality of B):0
|C| (Cardinality of C):0
|U| (Cardinality of U):0
A ⊆ B (A subset of B):No
B ⊆ A (B subset of A):No
A ∩ B = ∅ (Disjoint):No
A = B (Equal sets):No

Set Theory Fundamentals

Set theory is a branch of mathematical logic that studies collections of objects, called sets. It forms the foundation for many areas of mathematics.

Basic Concepts

Set

A well-defined collection of distinct objects, called elements or members.

Example: A = {1, 2, 3, 4}

Element

An object that belongs to a set. We write a ∈ A to mean "a is an element of A".

Example: 2 ∈ {1, 2, 3}

Empty Set

The set containing no elements, denoted as ∅ or {}.

Example: ∅ = {}

Universal Set

The set that contains all elements under consideration, denoted as U.

Example: U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}

Set Operations

Union (∪)

The union of sets A and B contains all elements that are in A, or in B, or in both.

Notation: A ∪ B = {x : x ∈ A or x ∈ B}

Example: If A = {1, 2, 3} and B = {3, 4, 5}, then A ∪ B = {1, 2, 3, 4, 5}

Intersection (∩)

The intersection of sets A and B contains all elements that are in both A and B.

Notation: A ∩ B = {x : x ∈ A and x ∈ B}

Example: If A = {1, 2, 3} and B = {3, 4, 5}, then A ∩ B = {3}

Difference (-)

The difference A - B contains all elements that are in A but not in B.

Notation: A - B = {x : x ∈ A and x ∉ B}

Example: If A = {1, 2, 3} and B = {3, 4, 5}, then A - B = {1, 2}

Complement (')

The complement of set A contains all elements in the universal set U that are not in A.

Notation: A' = {x : x ∈ U and x ∉ A}

Example: If U = {1, 2, 3, 4, 5} and A = {1, 2}, then A' = {3, 4, 5}

Symmetric Difference (△)

The symmetric difference contains elements that are in either A or B, but not in both.

Notation: A △ B = (A - B) ∪ (B - A)

Example: If A = {1, 2, 3} and B = {3, 4, 5}, then A △ B = {1, 2, 4, 5}

Set Relationships

Set Laws

Commutative Laws

  • A ∪ B = B ∪ A
  • A ∩ B = B ∩ A

Associative Laws

  • (A ∪ B) ∪ C = A ∪ (B ∪ C)
  • (A ∩ B) ∩ C = A ∩ (B ∩ C)

Distributive Laws

  • A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
  • A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)

De Morgan's Laws

  • (A ∪ B)' = A' ∩ B'
  • (A ∩ B)' = A' ∪ B'

Applications