Topics in this sectionSets and Venn Diagrams3 topics
- Introduction to Sets
- Set Operations and Venn Diagrams
- Applications of Venn Diagrams
Understanding Sets and How to Combine Them
When we talk about a set, we mean a collection of things that share something in common. In mathematics, we put objects inside curly brackets { } and give the set a capital letter name. For example, if we list the subjects a student studies in Secondary 2, we could write: S = {Mathematics, English, Biology, Chemistry, Geography, History}. Each subject is called an element or member of the set S.
Sets help us organise information and solve problems where we need to see how different groups relate to each other. In this lesson, you will learn three important ways to work with sets: finding the union, finding the intersection, and finding the complement. You will also learn to draw Venn diagrams, which are pictures that show how sets overlap.
The union of two sets A and B is written as A ∪ B. It contains every element that is in A, or in B, or in both A and B. Think of it as "A or B or both."
Here is the rule:
A∪B={x:x∈A or x∈B}
Worked Example
Let A = {1, 2, 3, 4} and B = {3, 4, 5, 6}.
To find A ∪ B, we list every number that appears in either set:
A ∪ B = {1, 2, 3, 4, 5, 6}
Notice that 3 and 4 appear in both sets, but we write them only once in the union.
The intersection of two sets A and B is written as A ∩ B. It contains only the elements that are in BOTH A and B at the same time. Think of it as "A and B together."
Here is the rule:
A∩B={x:x∈A and x∈B}
Worked Example
Using the same sets A = {1, 2, 3, 4} and B = {3, 4, 5, 6}:
A ∩ B = {3, 4}
These are the only numbers that appear in both sets.
The complement of a set A is written as A′ (A prime). It contains everything that is NOT in A, but within a specific universal set that we agree on first. The universal set is the larger set we are working inside, often written as U.
Here is the rule:
A′={x:x∈U and x∈/A}
Worked Example
Let the universal set U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} and let A = {2, 4, 6, 8} (the even numbers from 1 to 10).
The complement A′ contains all the numbers from U that are NOT in A:
A′ = {1, 3, 5, 7, 9}
A Venn diagram uses two or more overlapping circles inside a rectangle to show how sets relate to each other. The rectangle represents the universal set U, and each circle represents a set.
To draw a Venn diagram with two sets A and B:
- Draw a rectangle and label it U (the universal set).
- Draw two circles that overlap in the middle. Label one circle A and the other circle B.
- Place each element in the correct region:
- Elements that belong only to A go in the left part of the circle (outside B).
- Elements that belong only to B go in the right part of the circle (outside A).
- Elements that belong to both A and B go in the overlapping middle region.
- Elements that belong to neither go outside both circles but inside the rectangle.
Worked Example
Let U = {students in a Secondary 2 class} Let A = {students who play football} Let B = {students who play netball}
Suppose we survey the class and find:
- 12 students play football
- 8 students play netball
- 3 students play both sports
- The class has 25 students in total
We can draw a Venn diagram to show this:
- In the overlapping region (both football and netball), we write 3.
- In the football-only part, we write 12 − 3 = 9.
- In the netball-only part, we write 8 − 3 = 5.
- Outside both circles, we calculate: 25 − (9 + 3 + 5) = 25 − 17 = 8 students play neither sport.
Venn diagrams are especially useful for solving problems that involve surveying groups. Here is a step-by-step method:
- Identify what each set represents and what the universal set is.
- Draw the Venn diagram with the correct number of circles.
- Start with the overlap — the information that tells you what belongs to both sets. Write this number in the middle.
- Work outwards — subtract the overlap from each set to find what belongs to only one set.
- Find the rest — subtract all the numbers you have placed from the universal set to find what belongs to neither set.
Worked Example — A School Survey
In a Secondary 2 class of 30 students, 18 study Mathematics (M), 15 study Chemistry (C), and 10 study both subjects.
Find: a) The number of students who study Mathematics only. b) The number of students who study Chemistry only. c) The number of students who study neither subject.
Solution:
- Write 10 in the overlap (both M and C).
- Mathematics only = 18 − 10 = 8.
- Chemistry only = 15 − 10 = 5.
- Total in M or C or both = 8 + 10 + 5 = 23.
- Neither = 30 − 23 = 7.
So: a) 8 students study Mathematics only. b) 5 students study Chemistry only. c) 7 students study neither subject.
The cardinality of a set means the number of elements in it. We write it with vertical bars. For example, |A| means "the number of elements in set A."
This is useful when we need to count how many items are in a set or in a combination of sets. For two sets, this formula helps:
∣A∪B∣=∣A∣+∣B∣−∣A∩B∣
This formula adds the size of A and the size of B, then subtracts the overlap so we do not count those students twice.
Try drawing a Venn diagram for this problem:
In a boma market, 40 vendors were asked whether they sell sorghum (S) or dura (D). The survey found that 25 sell sorghum, 20 sell dura, and 10 sell both grains.
How many vendors sell: a) Only sorghum? b) Only dura? c) Neither grain?
Check your answers: S only = 15, D only = 10, Neither = 5.
In Juba, Wau, and other towns across South Sudan, community leaders often need to organise groups for activities such as farming, fishing, or youth sports. For example, a county school might want to know how many students play football only, how many play basketball only, and how many play both sports, so they can plan teams and order the right number of jerseys and balls. By using set operations and Venn diagrams, the sports coordinator can quickly work out these numbers from a simple survey, making sure no student is left out and no resources are wasted.
Question
Let A = {banana, mango, orange} and B = {orange, papaya, banana}. What is A ∪ B?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet