Math Fundamentals18 sections · 814 units
Open in Course

Vocabulary - Difference

Elements in first only

The difference A∖BA \setminus B (or A−BA - B) is the set of elements in AA but not in BB.

For example, if A={1,2,3}A = \{1, 2, 3\} and B={2,4}B = \{2, 4\}, then A∖B={1,3}A \setminus B = \{1, 3\}. You remove 22 because it appears in BB.

Difference is not symmetric: A∖BA \setminus B differs from B∖AB \setminus A. Order matters here.