When you work with abstract concepts, visualizing them can help a lot. In this topic, we'll present a well-known way to visualize sets.
Euler diagrams
To show relations between sets, one can use Euler diagrams (sometimes also called Euler-Venn diagrams). You can start drawing an Euler diagram by drawing a rectangle that represents the universal set , which contains all the objects under consideration. Note that the universal set, or universe, varies depending on which objects are of interest. Inside this rectangle, you can use circles (or, more rarely, other geometrical figures) to represent sets. You can also mark points on the diagram, representing the particular elements of the set.
For example, the universe may be the set of all integers or the set of all fruits and berries. Let's proceed with the second example. Suppose that and To represent these sets graphically, you can use the following Euler diagram:
You can show more than two sets on an Euler diagram.
If your universe is the set of school subjects and the sets are , , , you can draw them on a diagram:
Set intersection
Suppose you have two sets: and . You can denote the intersection operation by . The set , the intersection of and , is the set that contains all elements that belong to both and . Thus, you can write . Again, you can use an Euler diagram to show this graphically:
These circles overlap. One circle would be the set , and the other circle would be the set .
Since the intersection is a set that contains only the elements that are in both sets, it is just the area where two circles overlap. It means that the set is the overlapping area.
Thus,
If you have two circles that don't overlap at all, then their intersection is an empty set.
For example, if , , then . Again, let's look at it on an Euler diagram:
As you can see, there is no overlap between and .
Set union
Suppose you have a set and a set . The symbol denotes the union of two sets. The set , the union of and , is the set that contains all elements belonging to either the set , or the set , or both. Thus, . To imagine it visually, look at the Euler diagram:
Everything in the set , everything in the set , and the overlapping area belong to the set .
Thus,
If two sets don't overlap, for instance, and , then . In this case, you would have the following Euler diagram:
Set complement
Suppose you have a universal set and a set . The complement of (which is denoted by or ) is a set of all elements in the that are not in . In your case, . The following Euler diagram shows this situation graphically:
is everything that is in the , but outside the circle.
Hence,
Sets difference, or relative complement
You have a set and a set . If you choose all elements that are in the set but are not in the set , you will get a set : it is the difference, or the relative complements, of in . Look at the following Euler diagram that show it graphically:
Thus,
We can see that .
Symmetric difference
The symmetric difference of sets and is the set of all elements belonging to one and only one of these sets. For example, for and the symmetric difference is
The elements belong only to and the elements only to . You can see that
Another equivalent formula for set difference is
showing that you can take the union of the sets and throw away the elements belonging to both sets (that is, the elements from their intersection).
Conclusion
Euler diagrams allow you to organize information visually, and with them, you can clearly see the relations between two (or more) sets of items. People use them across many other disciplines. In this topic, you have learned about operations with sets (intersection, union, set complement, and set difference) and looked at how Euler diagrams can represent them. The set theory underlies many concepts, such as logics, hence it's crucial to understand operations with sets and to be able to visualize them.