Ripetizioni di Analisi
EN

Theory

Sets and elementary logic

Set operations and counting, relations and functions, necessary and sufficient conditions, negation, and counterexamples.

On this page
  1. Elements and subsets
  2. Union, intersection, and difference

Elements and subsets

1. Membership and inclusion

A set is a group of objects for which, given any object, it is known whether the object is part of the group or not. The objects that are part of it are called elements. A set is denoted by a capital letter, and its elements are written between braces, separated by semicolons. The order in which the elements are written does not matter, so and are the same set.

The symbol reads “belongs to.” The expression means that is an element of . The symbol reads “does not belong to.” For we have and .

A set is specified in two ways.

  • By listing, that is, by writing all its elements, as in .
  • By a property, that is, by writing the condition that its elements satisfy, as in .

In the second notation the vertical bar reads “such that.” The symbol denotes the set of integers , from which the elements are selected. The inequality identifies the integers to keep. The sign reads “less than or equal to” and includes , while the sign excludes . The integers that satisfy the condition are , , and , so the two notations describe the same set.

A set is a subset of when every element of also belongs to . We write and read “ is included in .” This relation is called inclusion. For example, . If there is also an element of that does not belong to , the inclusion is proper and we write . In the example the inclusion is proper, because belongs to the second set and not to the first.

The universal set is the set of all the objects under consideration in a problem. The empty set is the set that has zero elements, and it is a subset of every set . Disproving the inclusion would require an element of that does not belong to , and has no elements.

Identifying a property and an inclusion

Let . A multiple of is a number obtained by multiplying by an integer, and the same holds for multiples of . Let be the set of multiples of in and the set of multiples of in .

Since , zero is a multiple of and belongs to . This gives and .

Every multiple of is written , where is an integer. Since , the same number is also multiplied by the integer , so it is a multiple of and belongs to . It follows that . The number belongs to and does not belong to , so the inclusion is proper and .

In the figure the numbers , , , are the elements of outside .

UBA2, 60, 41, 3, 5, 7
The region for lies inside the region for

2. Equality by mutual inclusion

Two sets are equal when they have the same elements. Two sets and are equal if and only if and . The expression “if and only if” means that each of the two statements is true exactly when the other is true. This criterion is useful when the same set is described by properties written in different ways.

Proof

If , the two sets have the same elements, so an element of either set belongs to the other and both inclusions hold. Conversely, if both inclusions hold, an element of belongs to by the first inclusion and an element of belongs to by the second. Thus the sets have the same elements.

Warning

The symbol connects an element to a set, while connects two sets.

Let . Zero is an element of , so . The notation instead denotes the set whose only element is zero. The set is a subset of because its only element belongs to , and we write .

The set has zero elements, while has one element, so they are distinct.

A set can appear as an element of another set. In there are two elements, the empty set and the number , so .

Union, intersection, and difference

Operations and membership

Let and be two subsets of the universal set . Four new sets are built from and .

  • The union contains the elements belonging to at least one of the two sets, including those belonging to both.
  • The intersection contains the common elements, that is, those belonging to both and .
  • The difference contains the elements of that do not belong to .
  • The complement contains all elements of that do not belong to .

For , , and we get

The complement depends on , while the difference is determined by the two sets and alone.

An element of lies in exactly one of the four regions determined by and . The table distinguishes the regions even when one is empty.

Membership in Membership in Region of

The union combines the first three regions. A requirement of “exactly one of the two sets” includes only the second and third regions. Two sets are disjoint when the first region is empty, that is, when .

Four regions with specified elements

Let , , and . The number is the only common element, so . The union is obtained by keeping every element of and adding only and from , because is already present. This gives .

UAB-2, 302, 41, 5
The union includes the three regions inside the circles

For the difference we start from and remove the element , which also belongs to . This gives . Reversing the order, we start from and again remove , so .

UAB-2, 302, 41, 5
The difference starts from the circle for

For the complement of we start from and remove , , and . This gives . The complement contains and , which belong to , along with the elements outside both sets. The two numbers outside both sets are and .

UAB-2, 302, 41, 5
The complement of covers every region outside its circle

When the intersection is empty

In , let be the set of even numbers and the set of odd numbers, that is, and . An integer has a unique remainder when divided by . The remainder is for even numbers and for odd numbers. Therefore no number is both even and odd, and the two sets are disjoint. Since every number in is even or odd, their union is all of .

UPD2, 4, 61, 3, 5
Parity divides into two disjoint sets

End of the free preview

The theory of this topic continues with 9 more sections

  1. Counting the regions
  2. Combined operations and De Morgan’s laws
  3. Pairs, Cartesian products, and relations
  4. Relations that are functions
  5. Propositions and truth tables
  6. Implications, converses, and contrapositives
  7. Quantifiers and negation
  8. Identifying the type of answer
  9. Keep studying

Full access also includes the other 5 worked examples of this topic and the solutions of the 14 practice exercises.

Unlock Maths 1st year · €29

Read the first 3 worked examples in this chapter for free.

Report a mistake

Where:

Ripetizioni di Analisi

Keep studying

With a free account, you can pick up where you left off and see your progress next time you visit.

Sign up for free

Already have an account? Sign in

Contents