Symmetric difference of two sets – Sets

Let us take A = {1, 3, 5, 7} and B = {5, 7, 8}. Then A difference B = {1, 3} and B difference A = {8}

The union of (A difference B) and (B difference A) is {1, 3, 8}. It is the union of all those elements in A which are not in B and those elements in B which are not in A. It is called the symmetric difference of A and B. t is denoted by A∆B.

For any two sets A and B  A∆B = (A difference B)U(B difference A)