In set theory, the symmetric difference of two sets A and B is the set of elements either in A or in B but not in both.

Definition

Given two sets A and B,

Example

Suppose A = {1,3,5,7,9} and B = {1,2,3,4,5}:

See also

Community content is available under CC-BY-SA unless otherwise noted.