Page 10 - Introduction-to-Set-Theory _Main.pdf10001_Neat
P. 10
Set Operations: Difference
The difference of two sets A and B, denoted by A - B or A \ B, is the set of all elements that are in A but
not in B. This operation removes the elements of B from A.
For example, if A = {1, 2, 3} and B = {3, 4, 5}, then A - B = {1, 2}. Unlike union and intersection, the
difference operation is not commutative, meaning A - B ≠ B - A in general.
Set A Set B A-B B-A
{1, 2, 3} {3, 4, 5} {1, 2} {4, 5}