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.

SkillKP000115

Sign in to read the whole lesson, with 1 more worked example, 7 exercises

Sign in / Sign up

Mastery 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).

UA123456789
The shaded part (inside the rectangle, outside the circle) represents the complement . Take and : the elements in the shading are the elements of .

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 topic

Cite this page: Complement and set difference · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000115