Discretica

Sets & Relations

Reference · Always free

Explore sets, set operations, Venn diagrams, relations, and functions - the language of modern mathematics.

Concepts in this topic

  • Set Basics & OperationsUnderstand sets, membership, subsets, and fundamental set operations
  • Venn Diagrams & PropertiesVisualize set operations and learn key set identities
  • RelationsLearn about binary relations and their properties
  • FunctionsUnderstand functions as special relations, injections, surjections, and bijections

Key formulas & identities

Key formulas and identities for Sets & Relations, with each formula and what it means.
NameFormulaMeaning
UnionA ∪ B = {x | x ∈ A or x ∈ B}The set of elements belonging to at least one of the two sets
IntersectionA ∩ B = {x | x ∈ A and x ∈ B}The set of elements belonging to both sets
ComplementAᶜ = {x ∈ U | x ∉ A}The set of elements in the universal set that are not in A
De Morgan's Law for Sets (1)(A ∪ B)ᶜ = Aᶜ ∩ BᶜThe complement of a union is the intersection of the complements
De Morgan's Law for Sets (2)(A ∩ B)ᶜ = Aᶜ ∪ BᶜThe complement of an intersection is the union of the complements
Inclusion-Exclusion (Two Sets)|A ∪ B| = |A| + |B| - |A ∩ B|The size of a union equals the sum of sizes minus the intersection
Power Set Size|P(A)| = 2ⁿ (n = |A|)A set with n elements has 2ⁿ subsets
Cartesian Product Size|A × B| = |A| × |B|The number of ordered pairs is the product of the set sizes