Mathematics of Information Teaching Group Publications Home

Natural numbers, integers, and rationals

A set, on its own, is not particularly useful. If we equip sets with operations, such as + and ×, we will have more useful objects. In this section, we will start from natural numbers and progressively create more powerful objects. Our goal is to construct fields, where you can add, multiply, subtract, divide, take limits and solve polynomial equations.

We are already familiar with many of the sets that we will discuss below, such as natural numbers. But we may not really know how they are constructed as mathematical objects. We may also not know why some very natural properties are true. For example, why \((x+y)+z = x + (y+z)\) is true? Perhaps we can show it is true for specific numbers, but what convinces us that this holds for all \(x,y,z\)?

For parts of this section, we will take an axiomatic approach. If you are not familiar with axiomatic mathematical systems, please review this note. Learning about sets we are already familiar with in this way gives us a mathematical understanding that helps us learn about unfamiliar ones. For example, we will see that in a certain sense \(-1\) is just as “imaginary” as \(\sqrt{-1}\). It will also provide a good opportunity to become more comfortable with axiomatic systems, abstract mathematical objects, and practice proof techniques

So let us forget what we know about numbers and build everything from the ground up.

Natural Numbers

The set of natural numbers \(\mathbb N\) is a set with the following properties:

The above statements can be proven in axiomatic set theory. But here, we will assume the existence of \(\mathbb N\) with the above properties. So these will be our axioms. This is OK since these axioms match our intuition well, and they are more relevant to our discussions on computation and communications than set-theoretic proofs.

We can represent the set of natural numbers as

\[\mathbb N = \{0,0^{\to},0^{\to\to},\dotsc\}.\]

But this becomes cumbersome. So we denote the successor of 0 as 1. The successor of 1 as 2. And so on. Then, we can represent the set of natural numbers in its familiar form

\[\mathbb N = \{0,1,2,3,4,5,6,\dotsc\}.\]

It can be shown (using induction :trophy:) that for any number \(a\neq 0\), there is a unique number $b$ whose successor is \(a\), i.e., \(b^\to = a\). Then \(b\) is called the predecessor of $a$ and denoted \(a^{\leftarrow}\). Clearly, \(\left(a^\to\right)^\leftarrow=a\).

Addition

Now we are ready to define addition for two natural numbers as repeated succession:

  1. \(a+0 = a\) : Adding 0 does not change the number.
  2. \(a+b^\to = \left(a + b\right)^{\to}\): Having found the sum of \(a\) and \(b\), we can find the sum of \(a\) and \(b^\to\).
Using the definition of addition, find \(3+2\).

Of course, we already knew the answer, but we now have a concrete proof for it, only using the properties of natural numbers and the definition of addition.

Prove that for \(a,b\in\mathbb N,b\neq 0\), we have \(a+b=\left(a+b^{\leftarrow}\right)^\to\) and \(\left(a+b\right)^{\leftarrow}=a+b^{\leftarrow}\).

Addition has the following properties, which follow from its definition:

  1. Closure Property: The result of the addition of any two natural numbers is a natural number. We say that the set of natural numbers is closed under addition.
  2. Additive Identity: There is a unique number, namely \(0\), such that \(x+0=x\) for any \(x\in\mathbb N\).
  3. Commutative Property: For any \(x,y\in\mathbb N\), we have \(x+y = y+x\).
  4. Associative Property: For any \(x,y,z\in\mathbb N\), we have \((x+y)+z = x+(y+z)\).

We can prove these properties using the definition of addition and the axioms of natural numbers, especially induction, as shown in the following example.

:trophy: Prove the associative property.

For natural numbers \(a,b\), we say that \(b < a\) if and only if there is a nonzero natural number \(c\) such that \(b+c = a\).

Multiplication

We define multiplication as follows:

Multiplication has the following properties, which follow from its definition:

  1. Closure Property: The result of the multiplying any two natural numbers is a natural number. We say that the set of natural numbers is closed under multiplication.
  2. Multiplicative Identity: There is a unique number, namely \(1\), such that \(x\times 1=x\) for any \(x\in\mathbb N\).
  3. Commutative Property: For any \(x,y\in\mathbb N\), we have \(x\times y = y\times x\).
  4. Associative Property: For any \(x,y,z\in\mathbb N\), we have \((x\times y)\times z = x\times (y\times z)\).

In addition, multiplication and addition have the following property:

  1. Distributive property of multiplication over addition: \(a\times(b+c) = a\times b + a\times c\).
Prove that 1 is the multiplicative identity, i.e., \(x\times 1 = x\).


What’s missing from natural numbers?

The set of natural numbers has some significant deficiencies. The most immediate is that we cannot always solve even a simple equation of the form \(x+a=b\) for \(x\). For example, the solution to \(x+3=0\) does not exist in the world of natural numbers.

Integers

If the solution to \(x+3=0\) does not exist, we define it into existence while no one’s looking! :eyes:

Negative numbers: For a \(𝑎∈ℕ\) let’s call the solution to \(𝑥+𝑎=0\) as \(-a\). Further, if \(a\neq 0\), \(a\) is called a positive number while \(-a\) is called a negative number. 0 is neither positive nor negative.

This leads to the set of integers:

\[ℤ=\{\dotsc,−3,−2,−1, 0, 1, 2, 3, \dotsc\}\]

Since \(a+(-a)=0\), we call −𝑎 the additive inverse of 𝑎.

Of course, to fully take advantage of integers, we need to extend \(+,\times\) to negative numbers. We skip the details, but it can be done in a rigorous and consistent manner similar to our definition of addition and multiplication for natural numbers. We can also define subtraction, but this is simply defined in terms of addition.

Hence, in the set of integers, we can perform the following operations:

The properties of addition and multiplication stated above for natural numbers also hold for integers. In addition, each element has an additive inverse.

Note that the sign “\(-\)” has two meanings: it can be used to indicate the additive inverse and used to indicate subtraction. Subtraction is essentially a shorthand defined in terms of the additive inverse, rather than a separate operation. So this dual use does not cause confusion. But technically the meaning of “\(-\)” is different in \(-b\) and in \(a-b\).

Things are getting better, since we can solve \(x+a=b\) for any integer \(a,b\) by using additive inverses:

\[x+a = b \iff x+a+(-a) = b+(-a) \iff x = b-a\]

Here, we have used the additive inverse of \(a\) to eliminate \(+a\). It is critical to note that all steps need to be valid in both directions.

But we still cannot solve an equation like \(3 x =1\) or \(5x+2=11\). There are no integers satisfying these. This is because integers (other than \(1,-1\)) do not have multiplicative inverses.

Rational Numbers

For \(𝑎∈ℤ,a≠0\), let’s call the solution to \(𝑎𝑥=1\) as \(1/𝑎\) and add it to the set of integers. Since \(a\times(1/a)=1\), we call \(1/a\) the multiplicative inverse of \(a\). After adding \(1/a\) for all nonzero \(a\in\mathbb Z\), we’ll need to add some more elements to make sure \(+,\times\) have the closure property. The end result is the set of rational numbers:

\[ℚ=\left\{\frac ab:𝑎,𝑏∈ℤ,𝑏≠0\right\}.\]

Two rational numbers \(\frac ab\) and \(\frac cd\) are equal if and only if \(a\times d = c\times b\).

Operations over rational numbers:

We can verify that \(\frac a1\) and \(\frac b1\) behave the same way as the integers \(a,b\). So we consider \(a=\frac a1\) and \(b=\frac b1\).

Using the appropriate definitions and the properties of addition and multiplication over integers, prove the distributive property for rationals, which states that \begin{equation*} \frac ab \left(\frac cd + \frac ef\right) = \frac {ac}{bd} + \frac{ae}{bf}. \end{equation*} In each step, indicate which property is used.


Now we have all we need to solve the equation \(5x+2=11\):

\begin{align*} 5x+2=11&\iff 5x+2-2 = 11 -2 \iff 5x=9\\&\iff \frac15\times5 x = \frac15\times 9\iff x = \frac 95. \end{align*}

Solve the equation \(ax+b=c\) over rational numbers, assuming \(a\neq0\).


Write down a question that you still have about natural numbers, integers, or rationals.