Sets Part2
From StpmWiki
Contents |
De Morgan's Law
a)
b)
Using De Morgan's Law
Try these. Remember there is basically 3 things you need to do
- complement the first set
- complement the second set
- change the operation between them
Order of brackets are very IMPORTANT. We can again use the "apple" and "orange" to help us. Lets see how we apply it to something like
First, take note of the "two" sets which will become our "apple" and "orange"
. Apply De Morgan's Law to these "two" sets.
. We can then apply De Morgan's Law again for the inside bracket.
Thus
Try
DO NOT
Do not try to mix this law with other laws. De Morgan's must be used to "get the complement into the bracket" FIRST, BEFORE applying any other laws.
Thus,
How about
?
Let's look at these examples :
Question : Should we do rearranging or expanding?
Answer :
Thus
How about this?
It should be
Which we can then do by
Right? You Sure? Look carefully....
So if the question is instead
,
We can actually do it like this
Exercise 6
Simplify the following using set algebra
1)
2)
3)
4)
5)
6)
7)
8)
Absorption Laws
a)
b)
Identifying and using Absorption law
Absorption laws can't be proved from the other laws, thus it is VERY important to identify it.
Let's try to see what happen if we can't identify it
... lets try expand
In fact, next time if you find yourself going in circles in other questions, it could be because you didn't notice the place where adsorption law must be used
So lets see how to identify it :
&
Notice the common set. How about the operation?
&
The operation is different.
And both will give us back
Notice that the second set does not appear on the right hand side.
In other words,
Thus
Now, lets try something more complicated
Looking at the operations, we have to do associative first. Normally we will try to pair a set with its inverse, but there isn't any here, so we have no choice but to pair the one with the common set. In this, it can be either
or
to pair with
Comparison
Note: Do note use adsorption law unless absolutely necessary as it might not be accepted in STPM marking scheme.
Exercise 7
Simplify the following using set algebra
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
12)
Difference of Sets
This is NOT a law. It is an OPERATION. And the above formula is its DEFINITION. Always apply this BEFORE any law.
Remember the definition as
Thus, we just write back the "apple" and then intercept with complement of the "orange"
So if we have something as complicated as
Simply draw an apple around everything before the − and orange everything after
The complements at the end, of course, will cancel each other out.
Try these
Lets try simplifying
Thus, normally, we should apply difference first, followed by De Morgan's if necessary, and then the other laws as suitable.
Exercise 8
Simplify the following using set algebra
1)
2)
3)
4)
5)
6)
7)
8)
9)















![\left[A' \cup \left(B' \cap C \right) \right]' = A \cap \left(B' \cap C \right)' = A \cap \left(B \cup C' \right)](/images/math/f/4/a/f4a5e6e52ece881c13a07e65757717aa.png)
... NOW only we analyze it and see that we just need to rearrange



, so those steps are actually NOT needed.








![\begin{align}
\left(A \cap B \right) \cup \left(A' \cap B \right)'
& = \left(A \cap B \right) \cup \left(A \cup B' \right) \\
& = A \cup \left[ B' \cup \left( A \cap B \right) \right] \\
& = A \cup \left[ \left( B' \cup A \right) \cap \left( B' \cup B \right) \right] \\
& = A \cup \left[ \left( B' \cup A \right) \cap \xi \right] \\
& = A \cup \left( B' \cup A \right) \\
& = \left( A \cup A \right) \cup B' \\
& = A \cup B'
\end{align}](/images/math/1/e/3/1e3e7ef383bf9346469121b7ffa5d1db.png)

![\begin{align}
\left[\left(A \cup B \right) \cap C \right]' \cup A
& = \left[\left(A \cup B \right)' \cup C' \right] \cup A \\
& = \left[\left(A' \cap B' \right) \cup C' \right] \cup A \\
& = C' \cup \left[ A \cup \left(A' \cap B' \right)\right] \\
& = C' \cup \left[ \left(A \cup A' \right) \cap \left(A \cup B' \right) \right] \\
& = C' \cup \left[ \xi \cap \left(A \cup B' \right) \right] \\
& = C' \cup \left(A \cup B' \right) \\
& = A \cup B' \cup C'
\end{align}](/images/math/0/5/7/057a47daa675714161e79ec1f539c282.png)
... simplify
... hmmm... can't do anything but expand again
... simplify
... expand again?
, which is 


![A \cup \left[ A \cap \left( B \cap C' \right) \right]](/images/math/4/0/e/40e8a419c92944ed1160116d2a3f8989.png)
![{\color{Blue} A} {\color{Red} \cup} \left[ {\color{Blue} A} {\color{Red} \cap} \left( B \cap C' \right) \right]](/images/math/9/5/4/954ca7d8687dd1ac245f484d07b09a5d.png)





![\left( A \cup B\right) \cup \left[ \left( A \cup B\right) \cap C \right]](/images/math/3/8/1/381a5e7364cd96e2082936c9316a9643.png)


Look carefully to see we need to apply absorption law here. Expanding will be futile.





![\begin{align}
\left(A \cup B \right) \cap \left(A \cap B \right)
& = B \cap \left[ A \cap \left(A \cup B \right)\right] \\
& = B \cap A
\end{align}](/images/math/a/2/3/a233afcd400075aabc85f8b12aa800a8.png)
![\begin{align}
\left(A \cap B' \right) \cap \left(A \cup B' \right)
& = A \cap \left[ B' \cap \left(A \cup B' \right)\right] \\
& = A \cap B'
\end{align}](/images/math/b/8/4/b846e053cde1ff24f373d46a6cf6ffcf.png)
![\begin{align}
\left(A \cup B \right) \cup \left(B \cap C \right)
& = A \cup \left[ B \cup \left(B \cap C \right)\right] \\
& = A \cup B
\end{align}](/images/math/2/d/d/2ddf825764c516d32aa89270059aa47b.png)

![\begin{align}
\left(A' \cap B \right) \cup \left(A' \cup C \right)
& = C \cup \left[ A' \cup \left(A' \cap B \right)\right] \\
& = C \cup A'
\end{align}](/images/math/5/9/1/5913bd73fa44530fdba7081d96c6b5b2.png)
![= {\color {Blue} \left(A \cup B' \right)'} \cap \left[ {\color {Red} \left(A' \cup B \right)'} \right]'](/images/math/c/6/3/c632f851bea3ce6dae417994059f846a.png)














... be especially careful when there are already existing complements
... apply De Morgan's
... the rest of the working is the same as before![=A' \cap \left[ B \cap \left(A' \cup B' \right)\right]](/images/math/f/0/c/f0ce2e84d730c797989085d99b6d0658.png)
![=A' \cap \left[ \left( B \cap A'\right) \cup \left( B \cap B'\right)\right]](/images/math/8/7/1/871f6e50efa8390efafe3526a6bf401c.png)
![=A' \cap \left[ \left( B \cap A'\right) \cup \phi \right]](/images/math/2/a/a/2aae42b27edf0f6526ce65588f9bd334.png)









![\begin{align}
\left( A-B'\right)- \left( A'-B'\right)
& =\left( A-B'\right) \cap \left( A'-B'\right)' \\
& =\left( A \cap B\right) \cap \left( A' \cap B \right)' \\
& =\left( A \cap B\right) \cap \left( A \cup B' \right) \\
& =A \cap \left[ B \cap \left( A \cup B' \right)\right] \\
& =A \cap \left[ \left(B \cap A \right) \cup \left( B \cap B' \right)\right] \\
& =A \cap \left[ \left(B \cap A \right) \cup \phi \right] \\
& =A \cap \left(B \cap A \right) \\
& =\left(A \cap A \right) \cap B \\
& =A \cap B
\end{align}](/images/math/5/9/6/596ff4cf4000446da91fc01d7b2e73a3.png)

![\begin{align}
\left( A-B\right)-\left( C-B\right)
& = \left( A-B \right)\cap \left( C-B\right)' \\
& = \left( A \cap B' \right)\cap \left( C \cap B'\right)' \\
& = \left( A \cap B' \right)\cap \left( C' \cup B\right) \\
& = A \cap \left[ B'\cap \left( C' \cup B\right)\right] \\
& = A \cap \left[ \left(B' \cap C'\right) \cup \left(B' \cap B\right) \right] \\
& = A \cap \left[ \left( B' \cap C'\right) \cup \phi \right] \\
& = A \cap B'\cap C'
\end{align}](/images/math/1/1/e/11ee68bdfe5ed0050172b6ef443d5f36.png)

![\begin{align}
\left( A-B\right)-\left( A-C\right)
& = \left( A-B\right)\cap \left( A-C\right)' \\
& = \left( A \cap B' \right)\cap \left( A \cap C'\right)' \\
& = \left( A \cap B' \right)\cap \left( A' \cup C\right) \\
& = B' \cap \left[ A \cap \left( A' \cup C \right)\right] \\
& = B' \cap \left[\left (A \cap A'\right) \cup \left(A \cap C\right) \right] \\
& = B' \cap \left[ \phi \cup \left(A \cap C\right) \right] \\
& = A \cap B' \cap C
\end{align}](/images/math/8/f/8/8f847afcd5a503babc0bfeefb1b7a674.png)

