Unions and Intersections of Sets

From Department of Mathematics at UTSA
Revision as of 13:43, 16 November 2021 by Lila (talk | contribs) (→‎Licensing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Union of two sets:
Union of three sets:
The union of A, B, C, D, and E is everything except the white area.

Union of two sets

The union of two sets A and B is the set of elements which are in A, in B, or in both A and B. In symbols,

.

For example, if A = {1, 3, 5, 7} and B = {1, 2, 4, 6, 7} then AB = {1, 2, 3, 4, 5, 6, 7}. A more elaborate example (involving two infinite sets) is:

A = {x is an even integer larger than 1}
B = {x is an odd integer larger than 1}

As another example, the number 9 is not contained in the union of the set of prime numbers {2, 3, 5, 7, 11, ...} and the set of even numbers {2, 4, 6, 8, 10, ...}, because 9 is neither prime nor even.

Sets cannot have duplicate elements, so the union of the sets {1, 2, 3} and {2, 3, 4} is {1, 2, 3, 4}. Multiple occurrences of identical elements have no effect on the cardinality of a set or its contents.

Algebraic properties

Binary union is an associative operation; that is, for any sets A, B, and C,

Thus the parentheses may be omitted without ambiguity: either of the above can be written as ABC. Also, union is commutative, so the sets can be written in any order. The empty set is an identity element for the operation of union. That is, A ∪ ∅ = A, for any set A. Also, the union operation is idempotent: AA = A. All these properties follow from analogous facts about logical disjunction.

Intersection distributes over union

and union distributes over intersection

The power set of a set U, together with the operations given by union, intersection, and complementation, is a Boolean algebra. In this Boolean algebra, union can be expressed in terms of intersection and complementation by the formula

where the superscript denotes the complement in the universal set U.

Finite unions

One can take the union of several sets simultaneously. For example, the union of three sets A, B, and C contains all elements of A, all elements of B, and all elements of C, and nothing else. Thus, x is an element of ABC if and only if x is in at least one of A, B, and C.

A finite union is the union of a finite number of sets; the phrase does not imply that the union set is a finite set.

Arbitrary unions

The most general notion is the union of an arbitrary collection of sets, sometimes called an infinitary union. If M is a set or class whose elements are sets, then x is an element of the union of M if and only if there is at least one element A of M such that x is an element of A. In symbols:

This idea subsumes the preceding sections—for example, ABC is the union of the collection {A, B, C}. Also, if M is the empty collection, then the union of M is the empty set.

Notations

The notation for the general concept can vary considerably. For a finite union of sets one often writes or . Various common notations for arbitrary unions include , , and . The last of these notations refers to the union of the collection , where I is an index set and is a set for every . In the case that the index set I is the set of natural numbers, one uses the notation , which is analogous to that of the infinite sums in series.

When the symbol "∪" is placed before other symbols (instead of between them), it is usually rendered as a larger size.


Intersection of two sets

The intersection of two sets and represented by circles. is in red.

The intersection of two sets and denoted by is the set containing all elements of that also belong to or equivalently, all elements of that also belong to

Notation and terminology

Intersection is written using the symbol "" between the terms; that is, in infix notation. For example:

The intersection of more than two sets (generalized intersection) can be written as:
which is similar to capital-sigma notation.

For an explanation of the symbols used in this article, refer to the table of mathematical symbols.

Definition

Intersection of three sets:
Intersections of the unaccented modern Greek, Latin, and Cyrillic scripts, considering only the shapes of the letters and ignoring their pronunciation
Example of an intersection with sets

The intersection of two sets and denoted by , is the set of all objects that are members of both the sets and In symbols:

That is, is an element of the intersection if and only if is both an element of and an element of

For example:

  • The intersection of the sets {1, 2, 3} and {2, 3, 4} is {2, 3}.
  • The number 9 is not in the intersection of the set of prime numbers {2, 3, 5, 7, 11, ...} and the set of odd numbers {1, 3, 5, 7, 9, 11, ...}, because 9 is not prime.

Intersecting and disjoint sets

We say that intersects (meets) if there exists some that is an element of both and in which case we also say that \\ intersects (meets) at . Equivalently, intersects if their intersection is an inhabited set, meaning that there exists some such that

We say that and are disjoint if does not intersect In plain language, they have no elements in common. and are disjoint if their intersection is empty, denoted

For example, the sets and are disjoint, while the set of even numbers intersects the set of multiples of 3 at the multiples of 6.

Algebraic properties

Binary intersection is an associative operation; that is, for any sets and one has

Thus the parentheses may be omitted without ambiguity: either of the above can be written as . Intersection is also commutative. That is, for any and one has
The intersection of any set with the empty set results in the empty set; that is, that for any set ,
Also, the intersection operation is idempotent; that is, any set satisfies that . All these properties follow from analogous facts about logical conjunction.

Intersection distributes over union and union distributes over intersection. That is, for any sets and one has

Inside a universe one may define the complement of to be the set of all elements of not in Furthermore, the intersection of and may be written as the complement of the union of their complements, derived easily from de Morgan's laws:

Arbitrary intersections

The most general notion is the intersection of an arbitrary nonempty collection of sets. If is a nonempty set whose elements are themselves sets, then is an element of the intersection of if and only if for every element of is an element of In symbols:

The notation for this last concept can vary considerably. Set theorists will sometimes write "", while others will instead write "". The latter notation can be generalized to "", which refers to the intersection of the collection Here is a nonempty set, and is a set for every

In the case that the index set is the set of natural numbers, notation analogous to that of an infinite product may be seen:

When formatting is difficult, this can also be written "". This last example, an intersection of countably many sets, is actually very common; for an example, see the article on σ-algebras.

Nullary intersection

Conjunctions of the arguments in parentheses

The conjunction of no argument is the tautology (compare: empty product); accordingly the intersection of no set is the universe.

Note that in the previous section, we excluded the case where was the empty set (). The reason is as follows: The intersection of the collection is defined as the set (see set-builder notation)

If is empty, there are no sets in so the question becomes "which 's satisfy the stated condition?" The answer seems to be every possible . When is empty, the condition given above is an example of a vacuous truth. So the intersection of the empty family should be the universal set (the identity element for the operation of intersection), but in standard (ZF) set theory, the universal set does not exist.

In type theory however, is of a prescribed type so the intersection is understood to be of type (the type of sets whose elements are in ), and we can define to be the universal set of (the set whose elements are exactly all terms of type ).

Licensing

Content obtained and/or adapted from: