Set difference

Gives the set of all elements that belong to A but not to B. It is used in set theory to remove the members of one set from another.

A \setminus B = \{ x \mid x \in A \land x \notin B \}

What the symbols mean

the set from which elements are removed
the set whose elements are removed from A
a generic element being tested for membership

About this formula

  • FieldMathematics
  • TopicSet theory
  • LevelHigh school
  • Also calledrelative complement, set subtraction, set minus, difference of sets, setminus, ∖
  • SourceWikidata Q845126

Write it in Obsidian

MathLive is a free visual math editor for Obsidian. Run Find a formula, type “set difference”, and it goes into your note as editable LaTeX. You can also scan formulas from screenshots, PDFs and handwriting.

Related formulas