Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

1.2: Basics of sets and real numbers

To begin studying mathematics at the university level, we really need to know about sets.

Definition of sets

Sets are collections of distinct objects. Quite often these objects will be numbers. For example,

A={2,4,6,8}A = \left\{ 2,4,6,8\right\}

is the set of all even numbers between 2 and 8. The numbers 2, 4, 6, 8 are called elements of the set AA. Here we’re describing the set by writing down every element inside curly bracelets.

Objects don’t always need to be numbers. We can have a set of colors that the cone cells in our eyes can detect:

B={red, green, blue}.B = \left\{ \text{red, green, blue}\right\}.

The colors red, green, and blue are the elements of set BB.

Membership of sets

To denote that objects belong to sets, we use the symbol \in. For example, recall that the number 4 is an element of the set AA, and that red is an element of BB. We denote this as

4A, redB.4 \in A,\ \text{red} \in B.

If an object does not belong to a set, we write down the crossed-out version of the symbol above. The number 5 and the color yellow are not elements of AA and BB, so we write

5∉A, yellow∉B.5 \not \in A,\ \text{yellow}\not\in B.

Set-builder notation

So far we’ve only looked at denoting sets by writing down all of their elements, which is called the enumerative notation. This is often not very practical for our purposes, which is why we’ll now see a different notation called set-builder notation.

Suppose we want to define the set CC as the collection of all numbers in AA multiplied by 3. We could use the enumerative notation to write down all the elements

C={6,12,18,24}.C = \left\{6,12,18,24\right\}.

The set-builder notation for CC is given by

C={3x:xA}.C = \left\{ 3x: x\in A\right\}.

There are two pieces of information here. The “3x3x”, written on the left of the colon, denotes the elements of CC. The “xAx\in A”, on the right of the colon, denotes the condition on the variable xx. Hence we can interpret the notation above as saying:

“the set C consists of numbers 3x, where x is an element of A”.\text{``the set $C$ consists of numbers $3x$, where $x$ is an element of $A$''.}

More examples need to be added.

The real numbers R\mathbb{R}

There is one set we will see most frequently in this course: the set of real numbers. This set is denoted by R\mathbb{R}.

The real numbers are the collection of every number we’ve ever learned in school, which includes:

  • integers 2,1,0,1,2,-2,-1,0,1,2,\ldots

  • fractions 32,14,-\frac{3}{2}, \frac{1}{4},\ldots

  • irrational numbers 2,3,\sqrt{2}, -\sqrt{3}, \ldots.

Let’s practice with the set-builder notation we’ve just learned. Suppose the set II is defined to be the collection of all real numbers that are bigger than zero, i.e. the set of positive numbers. How would it be denoted using set-builder notation? We would write down something like:

I={x:xR, x>0}.I = \left\{ x: x\in \mathbb{R},\ x > 0\right\}.

How about the set JJ of real numbers between zero and one? We would write down

J={x:xR, 0x1}.J = \left\{ x: x\in \mathbb{R},\ 0\leq x\leq 1\right\}.