Last time I talked about what a set is and some stuff that can be done with sets. First we can look at the union of sets which is the set containing as elements, all of the elements from the sets being unioned. Then we can also look at the intersection of sets, which is the set of all overlapping elements of whatever sets we are looking at.
These are operations between sets, like multiplication and addition being operations between numbers. Now I look at one more type of operation called complement.
The complement of a set A, is all of the elements that are not in A. Of course this only makes sense if A is inside of something larger so that you can talk about things that aren’t in A.
It is denoted either or but I will be using .
For example, consider the sets
within the set
We usually U to denote the universal set in the context of whatever problem is being discussed. Given two sets A and B within the universal set U, we can show
And we can show with
What about if we want to write stuff in A, but not in B? We would say this is the set A not B, or write
. To get this set we are actually taking everything in A, and intersecting it with the stuff that is not in B, otherwise known as .
This is important because it allows us to break up sets into pieces.
Now that we have the three main operations used for sets we can see how they fit together and make some useful rules.
First we have the easiest one, associativity. This just means that when using the same operation a bunch of times, the order doesn’t matter. Just like when you multiply a bunch of numbers, you can do it in any order. More formally we would say for sets A, B, and C, that:
This makes great sense if you draw a picture with three sets and look at both sides of each equation. A more formal way to prove that two sets are equal is to show that they contain each other, but I am not going to do that here.
Next we have commutativity. For real numbers with multiplication this means that which is a seemingly obvious thing. For sets we have the same thing
Next is the distributive property, just like with numbers. This is a way of combining two operations together. Remember the distributive property with numbers looks something like this:
Multiplication distributes over the addition, we combined the two operations in a way that makes sense.
There is a similar idea for sets. The general rule for sets A, B, and C is
It looks just like the multiplication and addition distribution with different symbols.
Lastly, we want to throw in the complement operation and see what happens. First as usual, the obvious one:
If you complement a set twice, you just get back to the original set. This is sort of like taking a double negative. Next we want to combine operations again.
This is usually the most difficult to grasp property, but pictures make it easy to see. I can’t seem to draw them very well still so I leave it to you to draw for yourself. Again the formal way would be to show that both sets contain each other, which I may write about next time.