Real numbers

Algebra works with numbers and with letters that stand for numbers. This page reviews the real numbers: the kinds of numbers, the number line, the rules of arithmetic, absolute value, and intervals. The rest of the course is built on these ideas.

Kinds of numbers

A set is a collection of objects. We list the members of a set inside braces, ${\{\ \}}$. Here are the main sets of numbers:

Real numbersRational numbers3/4, −0.5, 0.333…Integers…, −3, −2, −1Whole numbers0Natural numbers1, 2, 3, …Irrationalnumbers√2π√51.0100100…
Every natural number is a whole number, every whole number is an integer, and every integer is a rational number. A real number is either rational or irrational.

Decimals

Every real number has a decimal form. The decimal form tells us whether the number is rational:

A bar over digits means they repeat forever. For example, ${0.\overline{3}}$ means ${0.333\ldots}$, and ${0.\overline{27}}$ means ${0.272727\ldots}$ with "27" repeating.

Example 1: List the sets that each number belongs to.

${-7}$,   ${0}$,   ${\dfrac{2}{3}}$,   ${\sqrt{9}}$,   ${\sqrt{5}}$,   ${0.\overline{12}}$

Solution:

  • ${-7}$ is an integer. So it is also rational and real.
  • ${0}$ is a whole number. So it is also an integer, rational, and real.
  • ${\dfrac{2}{3}}$ is rational and real. It is not an integer.
  • ${\sqrt{9}=3}$. So it is a natural number, a whole number, an integer, rational, and real.
  • ${\sqrt{5}=2.2360679\ldots}$ never ends or repeats. So it is irrational and real.
  • ${0.\overline{12}}$ is a repeating decimal. So it is rational and real.

Watch out: a square root is not always irrational. ${\sqrt{9}}$ is a natural number, because ${9}$ is a perfect square.

Example 2: Write ${0.\overline{27}}$ as a fraction.

Solution:

Let ${x=0.\overline{27}}$. Two digits repeat, so multiply both sides by ${100}$:

$\begin{align*}x&=0.272727\ldots\\100x&=27.272727\ldots\end{align*}$

Subtract the first equation from the second. The repeating parts cancel:

$\begin{align*}100x-x&=27\\99x&=27\\x&=\dfrac{27}{99}=\dfrac{3}{11}\end{align*}$

So ${0.\overline{27}=\dfrac{3}{11}}$. This shows that a repeating decimal is a rational number.

The real number line

We can picture the real numbers as points on a line, called the real number line. The point for ${0}$ is called the origin. Positive numbers are to the right of ${0}$, and negative numbers are to the left.

−3−2−101234−5/21/2√2π
Some real numbers on the number line. Each real number is exactly one point on the line.

Numbers increase from left to right. If ${a}$ is to the left of ${b}$ on the number line, we say ${a}$ is less than ${b}$. We use these symbols to compare numbers:

SymbolMeaningExample
${a<b}$${a}$ is less than ${b}$${-3<1}$
${a>b}$${a}$ is greater than ${b}$${\pi>3}$
${a\le b}$${a}$ is less than or equal to ${b}$${2\le 2}$
${a\ge b}$${a}$ is greater than or equal to ${b}$${5\ge -1}$

Statements like these are called inequalities. A negative number is always less than a positive number. For example, ${-100<1}$, even though ${100}$ is bigger than ${1}$.

Properties of real numbers

The rules of arithmetic have names. Here ${a}$, ${b}$, and ${c}$ are any real numbers:

PropertyRule
Commutative${a+b=b+a}$
${ab=ba}$
Associative${(a+b)+c=a+(b+c)}$
${(ab)c=a(bc)}$
Identity${a+0=a}$
${a\cdot 1=a}$
Inverse${a+(-a)=0}$
${a\cdot\dfrac{1}{a}=1}$  (${a\ne 0}$)

One more property connects addition and multiplication. It is called the distributive property:

${a(b+c)=ab+ac}$

Subtraction and division are not commutative. For example, ${5-3=2}$, but ${3-5=-2}$.

These rules for negatives are also useful:

Example 3: Use the distributive property to remove the parentheses.

(a) ${3(x+4)}$

(b) ${-2(5-y)}$

Solution:

(a) Multiply each term inside the parentheses by ${3}$:

${3(x+4)=3x+12}$

(b) Multiply each term by ${-2}$. Be careful with the signs:

$\begin{align*}&-2(5-y)\\&=(-2)(5)+(-2)(-y)\\&=-10+2y\end{align*}$

Absolute value

The absolute value of a number ${a}$, written ${|a|}$, is its distance from ${0}$ on the number line. A distance is never negative. For example, ${|5|=5}$ and ${|-5|=5}$, because both ${5}$ and ${-5}$ are ${5}$ units from ${0}$.

As a formula:

$|a|=\begin{cases}a, & \text{if } a\ge 0\\-a, & \text{if } a<0\end{cases}$

This formula has two cases. If ${a}$ is not negative, ${|a|}$ is just ${a}$. If ${a}$ is negative, ${|a|=-a}$, which is positive. For example, ${|-5|=-(-5)=5}$.

The distance between two numbers ${a}$ and ${b}$ on the number line is

${d(a,b)=|b-a|}$.

Example 4: Find each value.

(a) ${|3-\pi|}$

(b) ${|-2|-|-6|}$

(c) the distance between ${-4}$ and ${7}$

Solution:

(a) Since ${\pi\approx 3.14}$, the number ${3-\pi}$ is negative. So use the second case, ${|a|=-a}$:

${|3-\pi|=-(3-\pi)=\pi-3}$

(b) Find each absolute value first:

${|-2|-|-6|=2-6=-4}$

The answer is negative. That is fine: the absolute values are positive, but their difference is not.

(c) Use the distance formula:

${d(-4,7)=|7-(-4)|=|11|=11}$

Check on the number line: from ${-4}$ to ${0}$ is ${4}$ units, and from ${0}$ to ${7}$ is ${7}$ units. In total, ${4+7=11}$.

Intervals

An interval is the set of all real numbers between two numbers, called its endpoints. We write intervals in interval notation:

IntervalInequalityGraph
${(a,b)}$${a<x<b}$ab
${[a,b]}$${a\le x\le b}$ab
${[a,b)}$${a\le x<b}$ab
${(a,b]}$${a<x\le b}$ab
${(a,\infty)}$${x>a}$a
${[a,\infty)}$${x\ge a}$a
${(-\infty,b)}$${x<b}$b
${(-\infty,b]}$${x\le b}$b
${(-\infty,\infty)}$all real numbers

Example 5: Write each inequality in interval notation, and graph it.

(a) ${-2\le x<3}$

(b) ${x>1}$

Solution:

(a) The endpoint ${-2}$ is included (${\le}$), so it gets a bracket. The endpoint ${3}$ is not included (${<}$), so it gets a parenthesis:

${[-2,3)}$

−4−3−2−1012345
(a) The interval ${[-2,3)}$. The solid dot means ${-2}$ is included. The open circle means ${3}$ is not.

(b) The numbers greater than ${1}$ go on without end to the right. The endpoint ${1}$ is not included:

${(1,\infty)}$

−4−3−2−1012345
(b) The interval ${(1,\infty)}$. The arrow means the interval goes on without end to the right.

Summary