Definition · applies to sets · also called $A \setminus B$, relative complement

High school

Consider1 two sets $A$ and $B$. The set difference $A \setminus B$ is the set of elements of $A$ that are not in $B$.

Examples

Worked examples

Examples

Distinctions involving this term

  • Types of difference: Many quantities compare two things by “how far apart” they are. A difference is the result of subtraction and can be negative. No distance is negative. An error compares an approximation with the truth, a change compares the end with the start, and a set difference removes elements.

All definitions · All distinctions · All examples