![]() |
VOOZH | about |
The difference of sets is the operation defined on sets; it is a way to find elements which is present in one set but not in the other. It is also called the set-theoretic difference or complement of one set relative to another.
š _difference_of_setsIn the figure above, for two sets A and D, the difference of sets AāD is the set of all elements that are in A but not in D. Similarly, DāA is the set of elements in D but not in A.
Aā D = {x / x ā A and x ā D}: removing elements of A ā© D from set A.
OR
D ā A = {x / x ā D and x ā A}: removing elements of D ā© A from set D.
The difference between sets can be found with the help of the following steps:
- Step 1: Identify the given non-empty sets and write them in set-builder form.
- Step 2: Identify the order of difference, i.e., if we are asked to find P ā Q or Q ā P.
- Step 3: Express the difference in mathematical form.
- Step 4: Strike off all the common elements present in both the given sets.
- Step 5: All elements left in the first set after removing common elements are the difference of the two sets.
Example: If P = {5, 10, 15, 20, 25, 30} and Q = {10, 20, 30, 40, 50, 60}, then find:
Solution:
P ā Q implies all elements present in P and not in Q.
Step 1. Express the difference in mathematical form.
P ā Q = {5, 10, 15, 20, 25, 30} ā {10, 20, 30, 40, 50, 60}Step 2. Strike off all the elements present in both P and Q.
{5,10, 15,20, 25,30} ā {10, 20, 30, 40, 50, 60}.
P ā Q is the set of elements left in set P afterwards, i.e.,
P ā Q ={5, 15, 25}.Now, Q ā P implies all elements present in Q and not in P.
Step 1. Express the difference in mathematical form.
Q ā P = {10, 20, 30, 40, 50, 60} ā {5, 10, 15, 20, 25, 30}.Step 2. Strike off all the elements present in both P and Q.
{10, 20, 30, 40, 50, 60} ā {5,10, 15,20, 25,30}.
Q ā P is the set of elements left in set Q afterwards, i.e.,
Q ā P = {40, 50, 60}.
While finding the difference of two sets, it is very important to keep the order of the difference in mind. Just like the subtraction of two numbers is not commutative (9 ā 0 ā 0 ā 9), the difference of any two sets is not commutative, i.e., P ā Q ā Q ā P. This means that changing the order of the sets while subtracting may alter the results.
Example: If P = {4, 5, 6, 7, 8} and Q = {6, 7, 8, 10}, is P ā Q = Q ā P?
Solution:
LHS = P ā Q = {4, 5, 6, 7, 8} - {6, 7, 8, 10} = {4, 5}
RHS = Q ā P = {6, 7, 8, 10} - {4, 5, 6, 7, 8} = {10}
LHS ā RHSThus, P ā Q ā Q ā P
If P, Q, and R are three non-empty sets, then the difference between the three of them can be depicted as P ā Q ā R.
This implies all the elements present in set P but not in sets Q and R. This is depicted in the Venn diagram below, where the pink-shaded region depicts P ā Q ā R and the blue-shaded portion is the area not included in the difference.
The symmetric difference of sets P and Q is expressed as P Ī Q and defined as
P Ī Q = (P - Q) U (Q - P)
OR
P Ī Q = (P āŖ Q) - (P ā© Q)
In the Venn diagram below, the pink-shaded portion represents P Ī Q.
Example: If P = {4, 5, 6, 7, 8} and Q = {6, 7, 8, 10}, find P Ī Q.
Solution:
- Step - 1: Find P - Q.
P - Q = {4, 5, 6, 7, 8} - {6, 7, 8, 10} = {4, 5}- Step - 2: Find Q - P.
Q - P = {6, 7, 8, 10} - {4, 5, 6, 7, 8} = {10}- Step - 3: Find P Ī Q = (P - Q) U (Q - P).
P Ī Q = (P - Q) U (Q - P) = {4, 5} U {10} = {4, 5, 10}
If P and Q are two sets, then their difference has the following properties:
Problem 1. Find the difference W ā N, where W is the set of whole numbers and N is the set of natural numbers.
Solution:
Step 1. Write the given sets in set- builder form.
W = {0, 1, 2, 3, 4, 5,....,ā}
N = {1, 2, 3, 4, 5,....,ā}
W ā N implies all elements of set W and none of set N.Step 2. Write the difference in mathematical form: W ā N = {0, 1, 2, 3, 4, 5,....,ā} ā {1, 2, 3, 4, 5,....,ā}
Step 3. Strike out all the common elements in both W and N. {0,
1, 2, 3, 4, 5,....,ā} ā {1, 2, 3, 4, 5,....,ā}.All elements left in W represent the difference W ā N.
Hence, W ā N = {0}.
Problem 2. Prove P ā (Q āŖ R) = (P ā Q) ā© (P ā R), if P = {1, 2, 4, 5}; Q = {2, 3, 5, 6} and R = {4, 5, 6, 7}.
Solution:
Let us consider the LHS first.
(Q āŖ R) = {x: x ā Q or x ā R}
ā Q āŖ R = {2, 3, 4, 5, 6, 7}.Since P ā (Q āŖ R) can be expressed as {x ā P: x ā (Q āŖ R)}.
ā P ā (Q āŖ R) = {1}Let us consider the RHS now.
P ā Q is defined as {x ā P: x ā Q}
P = {1, 2, 4, 5}
Q = {2, 3, 5, 6}
ā P ā Q = {1, 4}Now, P ā R is defined as {x ā P: x ā R}
ā P ā R = {1, 2}(P ā Q) ā© (P ā R) = {x: x ā (P ā Q) and x ā (P ā R)}.
= {1}
ā“ LHS = RHSHence verified.
Problem 3. If S and T are two sets, prove that: (S āŖ T) ā T = S ā T.
Solution:
Let us consider LHS first.
(S āŖ T) ā T
= (S ā T) āŖ (T ā T)
= (S ā T) āŖ Ļ (since, T ā T = Ļ)
= S ā T (since, x āŖ Ļ = x for any set)
= RHSHence proved.
Problem 4. If n(S) = 69, n(T) = 55, and n(S ā© T) = 10, then what is n(S Ī T)?
Solution:
Since, n(S U T) = n(S) + n(T) - n(Sā© T)
= 69 + 55 - 10
= 114According to the symmetric difference of sets,
n(S Ī T) = n(S U T) - n(S ā© T)
= 114 - 10
n(S Ī T)= 104
Problem 5. If P, Q, R are three sets, such that P ā Q, then prove that R ā Q ā R ā P.
Solution:
Given, P ā Q
To prove: R ā Q ā R ā P
Let us consider, x ā R ā Q
ā x ā R and x ā Q
ā x ā R and x ā P
ā x ā R ā PThus, x ā R ā Q ā x ā R ā P
This is true for all x ā R ā Q
ā“ R ā Q ā R ā PHence proved.
Problem 1: Find the difference X ā Y, where X is the set of all integers from 1 to 10, and Y is the set of all odd numbers from 1 to 10.
Problem 2: Prove that A ā (B āŖ C) = (A ā B) ā© (A ā C), if A = {1, 2, 3, 4, 5}, B = {2, 4, 5}, and C = {3, 4, 6}.
Problem 3: If U = {1, 2, 3, 4, 5, 6}, A = {1, 2, 3}, and B = {3, 4, 5}, find the set (A āŖ B) ā A.
Problem 4: If P = {2, 4, 6, 8}, Q = {1, 2, 3, 4, 5}, and R = {2, 3, 4, 5}, find P ā (Q ā© R).
Problem 5: If M = {a, b, c, d}, N = {b, c, e, f}, and O = {c, d, g, h}, find (M ā N) āŖ (M ā O).