In set theory, the Set difference of two sets A ∪ B {\displaystyle A \cup B} is the set of all elements in A {\displaystyle A} that are not in B {\displaystyle B} .