The Learning Point‎ > ‎Mathematics‎ > ‎

Set Theory 2: Difference and Symmetric Difference of Two Sets

Example 1

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-2,-4,-1,-7,-3} and Set B = {-7,-1,-9,-10,-5,-8,-2,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9,-10,-5,-8}
Difference A - B = {-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-10,-5,-8,-3} 

Example 2

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-2} and Set B = {-1,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-1,-5}
Difference A - B = {-9,-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-5,-9,-2} 

Example 3

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-1,-4,-6,-9} and Set B = {-8,-9,-6,-4,-7,-3,-10,-5,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-8,-7,-3,-5}
Difference A - B = {}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-7,-3,-5} 

Example 4

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-6,-7,-10,-3,-4,-1} and Set B = {-3,-6,-5,-1,-8,-7,-9}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-5,-9}
Difference A - B = {-10,-4}
Symmetric Difference = Union of (B-A) and (A-B) = {-5,-9,-10,-4} 

Example 5

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-7,-6,-8,-4,-2,-9,-5,-3} and Set B = {-10,-7,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-1}
Difference A - B = {-6,-8,-4,-2,-9,-5,-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-6,-8,-4,-2,-9,-5,-3} 

Example 6

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-6,-3,-10,-5,-2} and Set B = {-7,-8,-3,-9,-10,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-7,-8,-9,-1}
Difference A - B = {-6,-5,-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-8,-9,-1,-6,-5,-2} 

Example 7

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-2,-8,-9} and Set B = {-6,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-6,-10}
Difference A - B = {-4,-2,-8,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-10,-4,-2,-8,-9} 

Example 8

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-1,-6,-10,-5,-2,-7,-4} and Set B = {-3,-4,-8,-9,-1,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-3,-8}
Difference A - B = {-6,-10,-5,-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-3,-8,-6,-10,-5,-2} 

Example 9

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-7,-4,-3} and Set B = {-10,-3,-6,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-10,-6}
Difference A - B = {-1,-7}
Symmetric Difference = Union of (B-A) and (A-B) = {-10,-6,-1,-7} 

Example 10

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-7,-10,-2,-9,-8,-6} and Set B = {-10,-9,-8,-6,-5,-3}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-5,-3}
Difference A - B = {-7,-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-5,-3,-7,-2} 

Example 11

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-1,-5,-7,-8,-4,-2,-3} and Set B = {-1,-6,-4,-10,-9,-5,-8,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-6,-10}
Difference A - B = {-2,-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-10,-2,-3} 

Example 12

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-5,-10,-7,-2,-4} and Set B = {-1,-4,-10,-2,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-1}
Difference A - B = {-9,-7}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-9,-7} 

Example 13

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-5,-2} and Set B = {-5,-3,-4,-6,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-3,-4,-6,-7}
Difference A - B = {-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-3,-4,-6,-7,-2} 

Example 14

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-2,-7,-10,-3,-1,-4} and Set B = {-2,-3,-8,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-8}
Difference A - B = {-9,-7,-10,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-9,-7,-10,-1} 

Example 15

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-5,-6,-1,-10,-9} and Set B = {-1,-9,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-8,-5,-6}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-5,-6} 

Example 16

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-5,-6,-4} and Set B = {-2,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2}
Difference A - B = {-9,-6,-4}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-9,-6,-4} 

Example 17

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-10,-2,-3} and Set B = {-4,-2,-9}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9}
Difference A - B = {-10,-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-10,-3} 

Example 18

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-2,-10,-9} and Set B = {-8,-3,-10,-5,-9,-2,-1,-7,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-8,-3,-5,-1,-7,-6}
Difference A - B = {-4}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-3,-5,-1,-7,-6,-4} 

Example 19

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-6,-3,-1,-10,-5,-9,-7,-8,-2} and Set B = {-1,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-6,-3,-5,-9,-7,-8,-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-3,-5,-9,-7,-8,-2} 

Example 20

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-3,-6,-10,-9,-2,-4,-5} and Set B = {-10,-9,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-8,-3,-2,-4,-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-3,-2,-4,-5} 

Example 21

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-6,-8,-7,-4,-1,-9,-2,-3} and Set B = {-3,-5,-10,-2,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-5,-10}
Difference A - B = {-6,-8,-7,-1,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-5,-10,-6,-8,-7,-1,-9} 

Example 22

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-5,-3,-10,-6,-8,-2,-1} and Set B = {-7,-2,-6,-9}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-7,-9}
Difference A - B = {-5,-3,-10,-8,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-9,-5,-3,-10,-8,-1} 

Example 23

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-1,-6,-5,-4} and Set B = {-5,-4,-1,-7,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-7,-10}
Difference A - B = {-8,-6}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-10,-8,-6} 

Example 24

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-1,-8,-5,-2,-10,-7,-3} and Set B = {-2,-8}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-4,-1,-5,-10,-7,-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-1,-5,-10,-7,-3} 

Example 25

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-7,-4,-8,-10,-3} and Set B = {-10,-9,-2}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9,-2}
Difference A - B = {-1,-7,-4,-8,-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-2,-1,-7,-4,-8,-3} 

Example 26

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-2,-8,-9} and Set B = {-6,-8,-10,-2}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-6,-10}
Difference A - B = {-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-10,-9} 

Example 27

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-4,-9,-2,-8,-5,-7} and Set B = {-6,-3,-9,-7,-4,-5,-8,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-6,-3}
Difference A - B = {-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-3,-2} 

Example 28

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-3,-10,-7,-2,-9,-1} and Set B = {-8,-4,-9}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-8,-4}
Difference A - B = {-3,-10,-7,-2,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-4,-3,-10,-7,-2,-1} 

Example 29

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-5,-2,-3,-8} and Set B = {-7,-1,-6,-4,-8,-2}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-7,-1,-6,-4}
Difference A - B = {-10,-5,-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-1,-6,-4,-10,-5,-3} 

Example 30

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-7,-5,-4,-9,-3,-6,-8,-1} and Set B = {-3,-2,-8,-1,-5,-6,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2}
Difference A - B = {-7,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-7,-9} 

Example 31

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-5,-4,-10,-8,-6,-3,-2} and Set B = {-10,-3,-6,-9,-8,-2,-4,-7,-1,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9,-7}
Difference A - B = {}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-7} 

Example 32

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-5,-9,-3,-10,-6,-2,-7,-4,-1} and Set B = {-5,-3,-2}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-9,-10,-6,-7,-4,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-10,-6,-7,-4,-1} 

Example 33

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-3,-6,-7,-5,-2,-10,-8,-9} and Set B = {-2,-5,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-3,-6,-7,-8,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-3,-6,-7,-8,-9} 

Example 34

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-3} and Set B = {-7,-2,-3,-8}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-7,-2,-8}
Difference A - B = {-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-2,-8,-10} 

Example 35

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-2,-6,-3,-9,-7,-10} and Set B = {-3,-8,-7,-2}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-8}
Difference A - B = {-1,-6,-9,-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-1,-6,-9,-10} 

Example 36

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-7,-6,-8,-10,-5} and Set B = {-9,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9,-1}
Difference A - B = {-4,-7,-6,-8,-10,-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-1,-4,-7,-6,-8,-10,-5} 

Example 37

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-8,-3,-10,-7,-2,-6,-1} and Set B = {-8,-9,-2,-3,-5,-6,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-5}
Difference A - B = {-7,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-5,-7,-1} 

Example 38

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-7,-10,-8,-5} and Set B = {-9,-10,-1,-4,-6,-2,-3,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9,-1,-6,-2,-3}
Difference A - B = {-7,-8}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-1,-6,-2,-3,-7,-8} 

Example 39

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-3,-4,-2} and Set B = {-7,-3,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-7,-1}
Difference A - B = {-10,-4,-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-1,-10,-4,-2} 

Example 40

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-5,-1,-3,-8,-10,-4} and Set B = {-9,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9}
Difference A - B = {-5,-3,-8,-10,-4}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-5,-3,-8,-10,-4} 

Example 41

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-7,-1,-4,-10,-9,-8,-6,-5,-3} and Set B = {-3,-9,-1,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-7,-4,-10,-8,-6}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-4,-10,-8,-6} 

Example 42

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-6,-10,-3,-2,-7,-1,-5} and Set B = {-3,-2,-6,-5,-4,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-10,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-10,-1} 

Example 43

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-4,-3,-10,-6} and Set B = {-1,-5,-2,-4,-3,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-1,-5,-2}
Difference A - B = {-8,-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-5,-2,-8,-10} 

Example 44

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-5,-2} and Set B = {-10,-3,-8,-4,-2,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-10,-3,-8,-4}
Difference A - B = {-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-10,-3,-8,-4,-9} 

Example 45

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-1,-10,-8} and Set B = {-2,-9,-7,-4,-8,-5,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-9,-7,-5,-6}
Difference A - B = {-1,-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-9,-7,-5,-6,-1,-10} 

Example 46

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-5,-8,-2,-6,-9,-7} and Set B = {-4,-2,-6,-1,-8,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4,-1}
Difference A - B = {-5,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-1,-5,-9} 

Example 47

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-10,-7,-4,-9} and Set B = {-4,-10,-3,-2,-9,-7,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-3,-2}
Difference A - B = {}
Symmetric Difference = Union of (B-A) and (A-B) = {-3,-2} 

Example 48

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-2,-6,-10,-3,-1} and Set B = {-1,-3,-2}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-6,-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-10} 

Example 49

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-4,-3,-7,-8,-9,-10,-5,-2,-6} and Set B = {-4,-3,-1,-9}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-7,-8,-10,-5,-2,-6}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-8,-10,-5,-2,-6} 

Example 50

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-10,-2,-7,-1,-4} and Set B = {-9,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9}
Difference A - B = {-8,-2,-7,-1,-4}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-8,-2,-7,-1,-4} 

Example 51

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-7,-10,-1,-3,-5,-8,-2,-9} and Set B = {-7,-3,-10,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-1,-8,-2,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-8,-2,-9} 

Example 52

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-2,-7,-9,-10,-8,-4,-6} and Set B = {-3,-7,-4,-1,-2,-10,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-3,-1}
Difference A - B = {-9,-8}
Symmetric Difference = Union of (B-A) and (A-B) = {-3,-1,-9,-8} 

Example 53

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-3,-8,-2,-4,-6,-10,-7} and Set B = {-2,-8,-7,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-1,-3,-4,-6}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-3,-4,-6} 

Example 54

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-3} and Set B = {-6,-4,-5,-3,-7,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-6,-4,-5,-7,-10}
Difference A - B = {-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-4,-5,-7,-10,-1} 

Example 55

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-7,-3,-10,-6} and Set B = {-7,-2,-5,-6,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-5}
Difference A - B = {-1,-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-5,-1,-3} 

Example 56

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-2,-3,-8,-4,-5} and Set B = {-2,-5,-1,-6,-10,-3,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-6,-10}
Difference A - B = {-8}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-10,-8} 

Example 57

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-5,-8,-10,-3} and Set B = {-10,-1,-2,-8,-4,-3,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-1,-2,-4}
Difference A - B = {}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-2,-4} 

Example 58

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-7,-9,-10,-6,-1} and Set B = {-9,-4,-7,-5,-6,-3}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4,-5,-3}
Difference A - B = {-8,-10,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-5,-3,-8,-10,-1} 

Example 59

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-7,-5,-2,-1,-9,-3,-8} and Set B = {-7,-8,-2,-5,-6,-10,-4,-3}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-6,-10,-4}
Difference A - B = {-1,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-10,-4,-1,-9} 

Example 60

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-5,-6,-8,-10,-3,-1} and Set B = {-10,-1,-4,-6,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-8,-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-3} 

Example 61

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-2,-6,-4,-8,-9,-3} and Set B = {-5,-9}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-5}
Difference A - B = {-2,-6,-4,-8,-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-5,-2,-6,-4,-8,-3} 

Example 62

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-2,-7} and Set B = {-2,-8,-5,-7,-6,-10,-4,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-8,-5,-6,-10,-4,-1}
Difference A - B = {}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-5,-6,-10,-4,-1} 

Example 63

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-7,-1,-6,-9,-5} and Set B = {-2,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2}
Difference A - B = {-8,-1,-6,-9,-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-8,-1,-6,-9,-5} 

Example 64

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-9,-7,-5,-8,-10,-3} and Set B = {-3,-8,-4,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4}
Difference A - B = {-1,-9,-7,-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-1,-9,-7,-10} 

Example 65

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-8,-6,-9,-4} and Set B = {-10,-2,-6,-4,-5,-7,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-5,-7,-1}
Difference A - B = {-8,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-5,-7,-1,-8,-9} 

Example 66

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-4,-5,-3,-1,-6,-8} and Set B = {-8,-3,-5,-2,-1,-4,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-7}
Difference A - B = {-9,-6}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-7,-9,-6} 

Example 67

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-10,-7,-1} and Set B = {-7,-1,-8,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-8,-6}
Difference A - B = {-9,-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-8,-6,-9,-10} 

Example 68

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-4,-2,-9,-1,-3,-8} and Set B = {-8,-2,-5,-7,-4,-6,-10,-3}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-5,-7,-6}
Difference A - B = {-9,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-5,-7,-6,-9,-1} 

Example 69

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-4,-5,-9,-1,-6} and Set B = {-6,-1,-3,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-3,-7}
Difference A - B = {-10,-4,-5,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-3,-7,-10,-4,-5,-9} 

Example 70

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-3,-1,-8,-2,-5} and Set B = {-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4}
Difference A - B = {-3,-1,-8,-2,-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-3,-1,-8,-2,-5} 

Example 71

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-9,-6,-4,-3,-5,-1,-8} and Set B = {-2,-9,-7,-5,-8,-3,-6,-1,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-7}
Difference A - B = {-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-7,-10} 

Example 72

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-7,-4,-8,-5,-10,-9,-1} and Set B = {-5,-2,-10,-4,-9,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2}
Difference A - B = {-7,-8}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-7,-8} 

Example 73

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-8,-2,-7,-3,-5} and Set B = {-9,-6,-4,-1,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9,-6,-1,-10}
Difference A - B = {-8,-2,-7,-3,-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-6,-1,-10,-8,-2,-7,-3,-5} 

Example 74

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-9,-10,-6,-5} and Set B = {-4,-7,-3,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4,-7,-3}
Difference A - B = {-1,-9,-10,-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-7,-3,-1,-9,-10,-5} 

Example 75

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-2,-9,-5} and Set B = {-4,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4,-1}
Difference A - B = {-2,-9,-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-1,-2,-9,-5} 

Example 76

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-7,-5,-8,-9,-1,-6} and Set B = {-3,-2,-9,-7,-4,-1,-8,-6,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-3,-2,-4}
Difference A - B = {-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-3,-2,-4,-10} 

Example 77

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-5,-2,-7,-3} and Set B = {-6,-4,-10,-5,-2,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-6,-10}
Difference A - B = {-3}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-10,-3} 

Example 78

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-3,-7,-5,-10,-2,-4} and Set B = {-1,-9,-6,-10,-3,-2,-8,-4,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-1,-9,-6}
Difference A - B = {-7}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-9,-6,-7} 

Example 79

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-7,-3,-1,-5} and Set B = {-10,-5,-7,-2,-8,-3,-1,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-10,-2,-8,-4}
Difference A - B = {}
Symmetric Difference = Union of (B-A) and (A-B) = {-10,-2,-8,-4} 

Example 80

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-3,-6,-9,-5,-7,-2,-10} and Set B = {-7,-4,-3,-9,-1,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4,-1}
Difference A - B = {-5,-2,-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-1,-5,-2,-10} 

Example 81

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-5,-4,-1,-3,-6,-7} and Set B = {-2,-5,-6,-3,-4,-7,-9,-10}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-9,-10}
Difference A - B = {-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-9,-10,-1} 

Example 82

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-8,-1,-4,-7,-6,-3,-2,-10} and Set B = {-4,-7,-5,-8,-6,-10,-3,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-5}
Difference A - B = {-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-5,-2} 

Example 83

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-9,-3,-2,-1,-5} and Set B = {-3,-2,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4}
Difference A - B = {-9,-1,-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-9,-1,-5} 

Example 84

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-5,-9,-7,-6,-2,-10,-8,-1} and Set B = {-5,-2,-6,-9}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-7,-10,-8,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-10,-8,-1} 

Example 85

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-3,-5,-7,-8,-10,-4,-6} and Set B = {-8,-2,-10,-7,-4,-3,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-1}
Difference A - B = {-5,-6}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-1,-5,-6} 

Example 86

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-6,-2,-8,-1} and Set B = {-9,-8,-5,-2}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9,-5}
Difference A - B = {-4,-6,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-5,-4,-6,-1} 

Example 87

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-9,-5,-4,-8,-2,-7,-3,-6} and Set B = {-4,-7,-2,-10,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-10}
Difference A - B = {-9,-5,-8,-3,-6}
Symmetric Difference = Union of (B-A) and (A-B) = {-10,-9,-5,-8,-3,-6} 

Example 88

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-4,-9,-2,-6,-1,-5} and Set B = {-9,-2,-7,-3,-10,-1,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-7,-3,-10}
Difference A - B = {-4,-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-3,-10,-4,-5} 

Example 89

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-3,-10,-4,-9,-1,-6,-7} and Set B = {-4,-6,-3,-7,-2,-8,-10,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-8}
Difference A - B = {-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-8,-9} 

Example 90

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-7,-3,-4,-9,-8,-5,-10} and Set B = {-9,-10,-3,-2,-7,-4,-8,-1,-6}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-6}
Difference A - B = {-5}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-6,-5} 

Example 91

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-7,-3,-5,-10,-1,-9,-8,-6} and Set B = {-2,-3,-5,-4,-7,-6,-10,-8}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2,-4}
Difference A - B = {-1,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-4,-1,-9} 

Example 92

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-2,-6,-8,-3,-10,-4,-9,-5} and Set B = {-6,-5,-10,-8,-4}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {}
Difference A - B = {-1,-2,-3,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-2,-3,-9} 

Example 93

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-10,-3,-5,-2,-8,-7,-9} and Set B = {-6,-10,-9,-1,-3,-4,-7}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-6,-1,-4}
Difference A - B = {-5,-2,-8}
Symmetric Difference = Union of (B-A) and (A-B) = {-6,-1,-4,-5,-2,-8} 

Example 94

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-7,-3,-2,-1,-9,-10,-5} and Set B = {-9,-4,-2,-7,-1,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4}
Difference A - B = {-3,-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-3,-10} 

Example 95

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-2,-1,-3,-5,-4,-9} and Set B = {-7,-5,-4,-6,-8}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-7,-6,-8}
Difference A - B = {-2,-1,-3,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-7,-6,-8,-2,-1,-3,-9} 

Example 96

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-3,-4,-10,-7,-2,-8,-6,-9} and Set B = {-2,-4,-1}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-1}
Difference A - B = {-3,-10,-7,-8,-6,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-1,-3,-10,-7,-8,-6,-9} 

Example 97

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-3,-5,-8,-4,-10} and Set B = {-9,-6,-7,-3,-2,-4,-1,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9,-6,-7,-2,-1}
Difference A - B = {-8,-10}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-6,-7,-2,-1,-8,-10} 

Example 98

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-1,-5,-8,-9,-3} and Set B = {-3,-2}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-2}
Difference A - B = {-1,-5,-8,-9}
Symmetric Difference = Union of (B-A) and (A-B) = {-2,-1,-5,-8,-9} 

Example 99

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-3,-6,-5,-10,-9,-1,-2} and Set B = {-4,-7,-3,-5}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-4,-7}
Difference A - B = {-6,-10,-9,-1,-2}
Symmetric Difference = Union of (B-A) and (A-B) = {-4,-7,-6,-10,-9,-1,-2} 

Example 100

You are given two sets A and B. Find B-A, A-B and the symmetric difference. Set A = {-6,-8,-2,-1,-7,-4} and Set B = {-7,-9,-10,-5,-4,-8}.


The difference X - Y = elements which are in X but not in Y 
Difference B - A = {-9,-10,-5}
Difference A - B = {-6,-2,-1}
Symmetric Difference = Union of (B-A) and (A-B) = {-9,-10,-5,-6,-2,-1}