Math Fundamentals18 sections · 814 units
Open in Course

Vocabulary - Difference

Elements in first only

The difference ABA \setminus B (or ABA - 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 AB={1,3}A \setminus B = \{1, 3\}. You remove 22 because it appears in BB.

Difference is not symmetric: ABA \setminus B differs from BAB \setminus A. Order matters here.