Why rational numbers are not enough
The integers are closed under addition, subtraction, and multiplication, but not under division. To solve equations such as
we enlarge the number system from to the rational numbers . This enlargement is extremely useful: it allows fractions, it is stable under the four ordinary arithmetic operations, and it is still governed by integer divisibility through numerators and denominators.
However, even is not large enough for all familiar equations. The equation
has a real solution, namely the nonnegative square root , but that solution is not rational. The purpose of this section is to make this contrast precise. We first record the arithmetic stability of rational numbers, then use prime divisibility to prove that certain roots cannot be rational.
Rational and irrational numbers
Definition
Rational and irrational numbers
Let .
-
We say that
xis a rational number if there exist integers such that and -
We say that
xis irrational ifxis not rational.
The set of all rational numbers is denoted by .
The denominator condition is essential. Division by zero is not defined, so a rational representation must always have a nonzero denominator. Also, rational representations are not unique:
When proving that a number is rational, it is enough to produce one valid fraction. When proving that a number is irrational, one must prove that no such fraction exists.
It is often convenient to reduce a rational number to lowest terms. If and , then we may write
with and . The condition
means that all common factors have already been cancelled. Many
irrationality proofs begin by assuming such a lowest-terms representation and
then showing that a prime divides both a and b, which is impossible.
Closure of the rational numbers
Theorem
Closure of Q under arithmetic
Let .
- , , and .
- If , then .
This theorem says that rational numbers are closed under the four arithmetic operations, except that division by zero is still excluded.
To prove it, write
where and , . Then
The numerators and denominators displayed here are integers, and the denominator
nq is nonzero. Hence all three numbers are rational.
For division, suppose . Since
the condition forces . Therefore
Again the numerator and denominator are integers, and , so is rational.
Common mistake
Closure of Q is not closure of the irrational numbers
The theorem is about operations starting with rational numbers. It does not say that irrational numbers are closed under addition or multiplication. In fact, they are not.
For example, is irrational, but
is rational. Also,
is rational. The word "irrational" means "not in "; it does not create a separate number system closed under the usual arithmetic operations.
Nonnegative nth roots
Definition
Nonnegative nth real root
Let , and let be nonnegative real numbers. We say
that is a nonnegative n-th real root of a if
Theorem
Existence and uniqueness of nonnegative nth roots
Let , and let a be a nonnegative real number. There is a
unique nonnegative real number such that
This number is denoted by
The word "nonnegative" is doing important work. For square roots, both 3 and
satisfy , but only 3 is the nonnegative square root. Thus
not . The notation always refers to the unique nonnegative root when .
For odd n, negative real roots can also be discussed, but this section only
needs the nonnegative root of a nonnegative real number.
The existence of is recorded here as a fact about the real numbers. Its full proof belongs to a later analysis course. In this section, we use the notation to ask a different question: when can such a root be rational?
Irrationality of
The first major example is the classical proof that is not rational. The proof uses Euclid's lemma from integer divisibility:
when p is prime. In particular, if a prime p divides , then p
divides a.
Theorem
The real number is irrational.
Suppose, for contradiction, that is rational. Since it is positive, we may write
where and . Squaring both sides gives
Hence . Since 2 is prime, Euclid's lemma implies .
Write for some . Substituting this into
gives
Dividing by 2,
Thus , and again Euclid's lemma gives . We have shown
that 2 divides both a and b, contradicting .
Therefore the assumption that is rational is false, and is irrational.
The structure of the proof is more important than the particular number 2.
A rational representation in lowest terms cannot have a prime factor forced
into both numerator and denominator. Irrationality proofs often look for exactly
that contradiction.
Worked example
Uniqueness of rational coefficients with sqrt(3)
Let , and suppose
Assume that is irrational. We prove that and .
Move the rational terms to one side and the terms to the other:
If , then
The numerator and denominator are rational numbers, and the denominator is nonzero, so the quotient is rational by closure of under division. That contradicts the irrationality of . Therefore , so . Substituting back gives .
This example shows a useful principle: over the rational numbers, the two
pieces 1 and cannot secretly imitate each other. A rational part and
an irrational part must match separately.
Irrationality of prime nth roots
The same idea proves a stronger result for roots of prime numbers.
Theorem
Prime nth roots are irrational
Let n be an integer greater than 1, and let p be a positive prime number.
Then
is irrational.
Suppose, for contradiction, that is rational. Since it is positive, write
where and . Raising both sides to the n-th
power gives
Hence . By applying Euclid's lemma repeatedly, a prime dividing
must divide a. Therefore , so write
for some . Substitute this into :
Cancel one factor of p:
Because , the right-hand side is divisible by p. Hence .
Again, Euclid's lemma applied repeatedly gives .
Thus p divides both a and b, contradicting . Therefore
is irrational.
Common mistake
Do not skip the condition n > 1
If , then , which is an integer and therefore rational.
The contradiction above needs to contain at least one factor of p.
When is rational?
For square roots of positive integers, rationality has an exact answer: a positive integer has a rational square root precisely when it is already a perfect square.
Definition
Perfect square
An integer is a perfect square if there exists an integer such that
Theorem
Rational square-root criterion
Let . Then is rational if and only if n is a
perfect square.
First suppose n is a perfect square, say for some .
Since , we have , and the nonnegative square root is
This is an integer, hence rational.
Conversely, suppose is rational. Write it in lowest terms as
where and . Squaring gives
We claim that . If , then b has a prime divisor p. Since
, we have , and the equation implies
. By Euclid's lemma, . Thus p divides both a and
b, contradicting . Therefore .
So , and hence
Thus n is a perfect square.
The theorem explains why , , and are rational, while , , , , and are not. The question is not whether the decimal expansion looks simple; it is whether the integer under the square root is a square of an integer.
Quick checks
Quick check
What does it mean to prove that a real number x is irrational?
Pay attention to the word "not" in the definition.
Solution
Answer
Quick check
If and are rational numbers with nonzero denominators, why is xy rational?
Use the integer formula for the product.
Solution
Answer
Quick check
Give one example where the sum of two irrational numbers is rational.
Use opposite irrational numbers.
Solution
Answer
Quick check
In the proof that is irrational, why do we first write with ?
The contradiction concerns common divisors.
Solution
Answer
Quick check
Why does imply when p is prime?
Think of as a product of n copies of a.
Solution
Answer
Quick check
For a positive integer n, what exact condition makes rational?
State the criterion as an if and only if.
Solution
Answer
Exercises
- Prove directly from the definition that if , then .
- Give examples showing that the sum and product of irrational numbers may be rational.
- Prove that if , , and , then .
- Let . Suppose , and assume is irrational. Prove that and .
- Prove that is irrational.
- Let . Prove that is rational if and only if
nis a perfect square. - Determine whether each number is rational or irrational: , , , and .
Solution