We can illustrate these set operations using Venn diagrams, which are 2D diagrams featuring a circle for each discussed set.
Not only do the following slides include Venn diagrams for the operations we presented, but also the $\LaTeX$ code that you can use to generate them on your own!
The $\LaTeX$ library that we use to create these diagrams is called venndiagram and is used for a quick sketching of Venn diagrams for 2 sets or 3 sets. More information about using this library, as well as examples, is in the guide on venndiagram at https://
One more note before we proceed to show the diagrams: the document type that we used in the following code,
standalone
, is used for the creation of PDF files as large as the diagram's size. In other words, we aren't creating Letter-sized or A4-sized pages; we are creating a small PDF page just to feature that standalone diagram.