Venn diagrams with two sets
Seán asks his 1st Year class who plays camogie or hurling and who plays football. Some put their hand up for one, some for both, and some for neither. How can you show all of that in one picture without counting anyone twice? A Venn diagram does exactly this.
The Venn diagram
A Venn diagram is a picture of sets. The universal set $U$ is drawn as a rectangle: it holds every element we are talking about. Each set inside it is drawn as a circle (or oval).
Sets can be written by listing their elements, like $\{2, 4, 6\}$, or by a rule. The set-builder form $\{x \mid x \in \mathbb{N}, \ x \le 12\}$ is read "the set of all $x$ such that $x$ is in $\mathbb{N}$ and $x$ is less than or equal to $12$". The symbol $\in$ means "is an element of", and $\mathbb{N} = \{1, 2, 3, \dots\}$ is the set of natural numbers. So this set is $\{1, 2, 3, \dots, 12\}$.
When there are two sets $A$ and $B$, the circles overlap, so the diagram has four regions:
-
A only: in $A$ but not in $B$. We also write this as $A \setminus B$.
-
Both: in $A$ and in $B$. This is the intersection $A \cap B$.
-
B only: in $B$ but not in $A$, written $B \setminus A$.
-
Neither: inside the rectangle but outside both circles. This is $(A \cup B)'$.
The union $A \cup B$ is everything in at least one circle: A only, both and B only. The complement $A'$ is everything in $U$ that is not in $A$: that is B only and neither.
In a class of $20$ students in Galway, $12$ play camogie or hurling (set $A$), and $8$ of those $12$ also play football. Describe how a two-set Venn diagram would show…
In a class of $20$ students in Galway, $12$ play camogie or hurling (set $A$), and $8$ of those $12$ also play football. Describe how a two-set Venn diagram would show $A \cap B$ if $B$ is the set of students who play football, and state $\#(A \cap B)$.
$U = \{1, 2, 3, 4, 5, 6, 7, 8\}$, $A = \{1, 2, 3, 4\}$, $B = \{3, 4, 5, 6\}$. a) Place each element of $U$ in the correct region of a Venn diagram: only $A$, both, only…
$U = \{1, 2, 3, 4, 5, 6, 7, 8\}$, $A = \{1, 2, 3, 4\}$, $B = \{3, 4, 5, 6\}$.
- a) Place each element of $U$ in the correct region of a Venn diagram: only $A$, both, only $B$, neither.
- b) State $\#A'$.
Placing elements
When the sets are given as lists, place each element of $U$ by asking two questions: "Is it in $A$?" and "Is it in $B$?"
Answer to the "tu turno": $A \cup B = \{2, 3, 4, 6, 8, 9, 10\}$, so $\#(A \cup B) = 7$. $A' = \{1, 3, 5, 7, 9\}$.
For example, if $U = \{x \mid x \in \mathbb{N}, \ x \le 8\}$, then $U = \{1, 2, 3, 4, 5, 6, 7, 8\}$. If $A$ is the set of multiples of $4$ in $U$, then $A = \{4, 8\}$.
$U = \{x \mid x \in \mathbb{N}, \ x \leq 12\}$, $A$ is the set of even numbers and $B$ is the set of multiples of $3$. a) Draw or describe the Venn diagram, with all…
$U = \{x \mid x \in \mathbb{N}, \ x \leq 12\}$, $A$ is the set of even numbers and $B$ is the set of multiples of $3$.
- a) Draw or describe the Venn diagram, with all elements placed.
- b) List $(A \cup B)'$.
- c) List $A \setminus B$.
Counting with numbers
Often a problem gives numbers, not lists. Write the number of elements in each region.
Answers: $7$ play football only; $25$ play at least one.
Notice what happens when you are told the total of a circle: you must subtract the middle to get the "only" part.
In a Venn diagram, $\#(A \cap B) = 5$, $\#(A \text{ only}) = 7$, $\#(B \text{ only}) = 4$ and $\#(\text{neither}) = 6$. a) Find $\#A$. b) Find $\#B$. c) Find $\#U$.
In a Venn diagram, $\#(A \cap B) = 5$, $\#(A \text{ only}) = 7$, $\#(B \text{ only}) = 4$ and $\#(\text{neither}) = 6$.
- a) Find $\#A$.
- b) Find $\#B$.
- c) Find $\#U$.
In a 1st Year class of $28$ students in Cork, $15$ have a dog, $11$ have a cat and $6$ have both. a) Draw or describe the Venn diagram, giving the number in each region.…
In a 1st Year class of $28$ students in Cork, $15$ have a dog, $11$ have a cat and $6$ have both.
- a) Draw or describe the Venn diagram, giving the number in each region.
- b) How many have neither a dog nor a cat?
- c) How many have a dog but no cat?
Of $40$ students in a school in Limerick, $24$ study French (F) and $18$ study German (G). $5$ study neither. a) Find $\#(F \cup G)$. b) Find $\#(F \cap G)$. c) How many…
Of $40$ students in a school in Limerick, $24$ study French (F) and $18$ study German (G). $5$ study neither.
- a) Find $\#(F \cup G)$.
- b) Find $\#(F \cap G)$.
- c) How many study French only?
Problems with unknowns
Sometimes a region is given using a letter. Then you write each region in terms of $x$, add them to make $\#U$, and solve the equation.
Another useful idea is the range of possible values. If $\#A = 30$ and $\#B = 25$ in a group of $50$, the middle region cannot be bigger than the smaller set, so $\#(A \cap B) \le 25$. Also $A \cup B$ cannot be bigger than $50$, so $30 + 25 - \#(A \cap B) \le 50$, giving $\#(A \cap B) \ge 5$.
In a survey of $60$ people at a Dublin train station, $x$ travelled by Luas, $2x$ by DART, $10$ by both and $7$ by neither. Every person in the survey is in $U$. a)…
In a survey of $60$ people at a Dublin train station, $x$ travelled by Luas, $2x$ by DART, $10$ by both and $7$ by neither. Every person in the survey is in $U$.
- a) Write an equation in $x$ using the number of people in each region.
- b) Solve it.
- c) How many used the DART only?
In a club of $50$ members, $30$ like swimming (S) and $25$ like cycling (C). Let $n$ be the number who like both. a) Find the smallest and the largest possible values of…
In a club of $50$ members, $30$ like swimming (S) and $25$ like cycling (C). Let $n$ be the number who like both.
- a) Find the smallest and the largest possible values of $n$, justifying each.
- b) If $4$ members like neither, find $n$.
$A$ and $B$ are subsets of $U$ with $\#U = 36$, $\#A = 20$, $\#B' = 18$ and $\#(A' \cap B') = 6$. a) Find $\#B$. b) Find $\#(A \cup B)$. c) Find $\#(A \cap B)$. d) Find…
$A$ and $B$ are subsets of $U$ with $\#U = 36$, $\#A = 20$, $\#B' = 18$ and $\#(A' \cap B') = 6$.
- a) Find $\#B$.
- b) Find $\#(A \cup B)$.
- c) Find $\#(A \cap B)$.
- d) Find $\#(A \setminus B)$.
Summary
Back to the start: Seán's class is shown with the middle region for those who play both, and the number who put up no hand goes outside the circles.