Skip to main content
Skip to main content

What is Set Difference?

Venn diagram showing set A with elements 1,2,3 and set B with elements 3,4,5. The difference A-B is highlighted as elements 1 and 2.
Visual representation of set difference using a Venn diagram

A set is a collection of distinct objects. The difference of sets (also called the relative complement) refers to the elements that are in one set but not in another.

For two sets A and B, the difference A - B contains all elements that are in A but not in B. Similarly, B - A contains elements that are in B but not in A.

Think of it like this: If you have a bag of red marbles (set A) and a bag of blue marbles (set B), the difference A - B would be all the marbles that are only red and not blue.

Set Difference Definition

A - B = {x | x ∈ A and x ∉ B}

This means: A minus B contains all elements x such that x is in A and x is not in B.

How to Find the Difference of Sets

Step-by-step visual: 1. List elements in set A, 2. List elements in set B, 3. Remove elements from A that are in B, 4. What remains is A-B.
Visual guide to finding set difference

Finding the difference between two sets is straightforward when you follow these steps:

Step 1: Identify all elements in the first set (set A).
Step 2: Identify all elements in the second set (set B).
Step 3: For each element in set A, check if it is also in set B.
Step 4: If an element is in A but not in B, include it in A - B.

Let's practice with an example:

Set A = {apple, banana, cherry, date}
Set B = {banana, date, fig}
A - B = {apple, cherry} (because these are in A but not in B)
B - A = {fig} (because fig is in B but not in A)

Real-World Examples

Visual examples: 1. Animals in forest vs zoo, 2. Books in library vs classroom, 3. Fruits in basket vs refrigerator.
Everyday examples of set differences

Set differences are all around us. Here are some real-world examples:

Example 1: Classroom Supplies
Set A = {pencils, erasers, rulers, crayons} - Supplies in the classroom
Set B = {pencils, erasers, notebooks} - Supplies in the backpack
A - B = {rulers, crayons} (items in classroom but not in backpack)
B - A = {notebooks} (items in backpack but not in classroom)

Example 2: Favorite Fruits
Set A = {apple, banana, orange} - Fruits Sarah likes
Set B = {banana, grapes, kiwi} - Fruits Tom likes
A - B = {apple, orange} (fruits only Sarah likes)
B - A = {grapes, kiwi} (fruits only Tom likes)

Example 3: Sports Teams
Set A = {soccer, basketball} - Sports played at school
Set B = {basketball, tennis} - Sports played at the park
A - B = {soccer} (sports only at school)
B - A = {tennis} (sports only at the park)

Set Difference Summary

Set A Set B A - B B - A
{1, 2, 3} {3, 4, 5} {1, 2} {4, 5}
{dog, cat, fish} {cat, bird, hamster} {dog, fish} {bird, hamster}
{red, blue, green} {blue, yellow, purple} {red, green} {yellow, purple}

Set Difference Practice Quiz

Test your understanding of set differences with this 5-question quiz. Choose the correct answer for each question.

1. If set A = {1, 2, 3} and set B = {2, 3, 4}, what is A - B?
2. If set X = {apple, banana} and set Y = {banana, orange}, what is Y - X?
3. If A - B = {5, 6}, which elements must be in set A but not in set B?
4. If set M = {red, blue, green} and set N = {blue, yellow}, what is M - N?
5. Which of these is true about set differences?

Frequently Asked Questions

Here are answers to common questions about set differences:

Math Trivia

Discover interesting facts about sets and mathematics:

Copyright © 2025 Workybooks. Made with ♥ in California.