Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

1.1: Sets

( \newcommand{\kernel}{\mathrm{null}\,}\)

We start off by providing a “definition” of a basic mathematical structure to which we will soon add bells and whistles. We use quotes here because what follows doesn't have the precision we usually require when defining a mathematical object.

Definition: Set

A set is an (unordered) collection of objects.

This is only sort of a “definition” because it is not a rigorous definition of a set. For instance, what do we mean by a “collection” of objects? This “definition” will be sufficient for our course, but be warned that defining a set in this vague way can lead to some serious mathematical issues, such as Russell's paradox. A mathematician whose expertise is in set theory may scowl disagreeably if you try to define a set as we have above.

Note

Let S be the set of all sets that aren't members of themselves. Is S a member of itself? If you think carefully about this, you'll see that S can be neither a member of itself, nor not a member of itself. Uh oh! This contradiction is known as “Russell's paradox” (named for the British philosopher, mathematician, and all-round academic Bertrand Russell). Mathematicians deal with this by declaring that some object collections, called classes, are not in fact sets.

Definition: Elements and Empty Set

The members of a set are called its elements. If S is a set, we write xS to indicate “x is an element of S,” and xS to indicate “x is not an element of S.” There is a unique set containing no elements; it is called the empty set, and denoted by .

Sets must be well-defined: that is, it must be clear exactly which objects are in a set, and which objects aren't. For instance, the set of all integers is well-defined, but the set of all big integers is not well-defined, since it is unclear what “big” means in this context.

We refer to some sets so frequently in mathematics that we have special notation for them.

Example 1.1.1

Some common sets are:

Illegal pream-token (&)

We can further write denote by Z+ the set of all positive integers, and by Z the set of all nonzero integers. Can you guess what the penultimate notation represents if we replace Z with Q or R, and/or + with ? What about what the last notation, if we replace Z with Q, R, or C?

We also provide notation for commonly considered sets of matrices:

Definition

Given m,nZ+  and a set S, we define Mm×n(S) to be the set of all m×n matrices over S (that is, of all m×n matrices with entries in S). We use the shorthand notation Mn(S) for the set Mn×n(S).

One common way of describing a set is to list its elements in curly braces, separated by commas; you can use ellipses to indicate a repeated pattern of elements. A few examples are {1,4,π}, {3,4,5,}, and {,4,2,0,2,4,}; the last of these can be written more concisely as {0,±2,±4,}. Note that since elements of a set are unordered, the sets {1,4,π} and {4,π,1}, for instance, are identical.

Another method is using set-builder notation. This consists of an element name (or names), followed by a colon (meaning “such that”), followed by a Boolean expression involving the element name(s), all surrounded by curly braces.

Note

The use of a colon to denote “such that” is only valid in the above set-builder notation context. Outside of this context, you should never use a colon to denote “such that”; instead, use the abbreviation “s.t.” or write out the actual words. Conversely, never use one of those ways of indicating “such that” within set-builder notation; always use a colon there. Why? Convention.

For example,

{xZ:x>4}

is the set {5,6,7,}, while

{zC:|z|=1}

is the set of all complex numbers at distance 1 from the origin in the complex plane.

Note

If one simply writes {x:x>4}, it is unclear what this set is; it could be the set of all integers greater than 4, or the set of all real numbers greater than 4, or something else. When one can, it is better to identify the named element(s) as a member (members) of a known set, such as R or Z, whenever possible.

Definition: Subset and Superset

Set A is a subset of B (and set B is a superset of A) if every element in A is also in B. We denote “A is a subset of B” by AB. Sets A and B are said to be equal, and we write A=B, if they contain exactly the same elements; equivalently, A=B if and only if AB and BA. Set A is a proper subset of set B if AB but AB; we write this AB.

Remark

Sometimes the notation AB is used to indicate that A is a proper subset of B, and sometimes it is simply used to mean that A is a subset—proper or improper—of B. We will not use the notation AB in this text.

Note

One often proves that two sets A and B are equal by proving that AB and BA.

Example 1.1.2

We have the following: Z+ZQRC.

Definition: Power Set

The power set of A, denoted P(A), is the set of all subsets of A. (Note that the power set of any set contains the empty set as an element.)

Note

Be careful to use your curly braces correctly when writing power sets! Remember, the power set of a set is a set of sets.

The following provides a good example of using braces correctly.

Example 1.1.3

If A={a,b}, then P(A)={,{a},{b},{a,b}}. Note that the element {a,b} of P(A) could also be written simply as A.

Definition: Union, Intersection, Difference, and Disjoint

  1. If A and B are subsets of a set U, then the union of A and B, denoted AB, is the set AB={xU:xA or xB}; the intersection of A and B, denoted AB, is the set AB={xU:xA and xB}; and the difference of A and B, denoted AB (or AB), is the set AB={x:xA and xB}.

  2. More generally, given any collection of subsets Ai (i in some index set I) of a set U, the union of the Ai is

iIAi={xU:xAi for some iI},

    and the intersection of the Ai is

iIAi={xU:xAi for every iI}.

  1. Sets A and B are disjoint if AB=. More generally, sets Ai (i in some index set I) are disjoint if

iIAi=

    and are mutually disjoint if

AiAj= for all ijI.

Notice that for any subsets A and B of a set U, ABAAB and ABBAB. Also note that if sets Ai ( iI) are mutually disjoint then they are also disjoint, but they may be disjoint without being mutually disjoint. For example, the sets {i,i+1} for iZ are disjoint but not mutually disjoint. (Do you see why?)

We define one more way of “combining” sets.

Definition: Direct Product and Ordered Pair

Let A and B be sets. Then the direct product (or Cartesian product) A×B of A and B is the set

A×B={(a,b):aAbB}.

An element (a,b) of A×B is called an ordered pair. More generally, if A1,A2,,An are sets for some nZ+, then the product of the Ai is

A1×A2××An={(a1,a2,an):aiAi for i=1,2,,n};

the elements a1,a2,,an of this product are called n-tuples (or triples, if n=3). (You can also have products of infinitely many sets, but we will not discuss that in this course.) Finally, if each set Ai is the same set A, we can use the notation An to denote the product

A×B={(a,b):aAbB}.

of n copies of A.

Example 1.1.4

For example, the Cartesian plane is the set R2, and the set Z×R consists of exactly the points in the plane with integer x-coordinates (that is, the points that lie on vertical lines intersecting the x-axis at integer values).


This page titled 1.1: Sets is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Jessica K. Sklar via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?