Complement and set difference
补集与差集
How do you find complements and set differences?
The complement holds what is in the universal set but not in A; the difference A \ B holds what is in A but not in B.
Sign in to read the whole lesson, with 1 more worked example, 7 exercises
Sign in / Sign upMastery goals
- Can compute the complement of a set relative to a universal set
- Can compute the difference A \ B
Complement
When studying a problem, we often need to fix the range of the objects. For example, from primary to junior-high school the range of numbers grows from the natural numbers to the positive fractions, then to the rational numbers, and once irrational numbers are introduced, to the real numbers. In high school it will be extended further.
The same problem studied over different ranges may have different results. For example the solution set of has only one solution, , among the rational numbers:
among the real numbers it has three solutions, :
In general, if a set contains all the elements involved in the problem under study, this set is called the universal set, usually written . (A given set is often taken as the universal set.)
For a set , the set of all elements of the universal set that do not belong to is called the complement of relative to , or simply the complement of , written , that is,
and can be shown by a Venn diagram (below).
Example 5
Let is a positive integer less than , , . Find and .
Solution: From the problem, , so
By analogy with operations on numbers, the complement of relative to can be seen as what is left when is “taken away” from .
Related points
All points in this topicCite this page: Complement and set difference · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000115