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 is a rational number if there exist integers such that and
-
We say that is irrational if is 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 and , which is impossible.
To justify that normalization, start with any integer representation of a positive rational number. Its numerator and denominator have the same sign; change both signs if necessary, then divide both by their positive greatest common divisor. The value is unchanged and the resulting positive integers are relatively prime. Thus requiring lowest terms does not discard any possible positive rational value. It chooses a representation on which a common-factor contradiction has force.
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 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.
Closure has a direction: rational inputs give a rational output. It does not say that a rational output forces both inputs to be rational. Nor does it say that every equation with rational coefficients has a rational solution; root extraction is not one of the four operations proved above. In each use, identify the inputs and, for division, the particular quantity required to be nonzero. A displayed fraction alone is insufficient: its numerator and denominator must have the required number types. Dividing an irrational number by one does not produce an integer-fraction representation.
Worked example
Check rationality through explicit arithmetic
Take and . A common denominator and the product formula give
For example, because subtracting the negative numerator changes its sign. For the quotient, , so multiplying by its reciprocal is legal. Each result has an integer numerator and nonzero integer denominator. Reduction is convenient but unnecessary for this existence argument: even proves that the product is rational. Lowest terms become essential later when a contradiction concerns common factors.
Theorem
Rational shifts and nonzero rational multiples
If and , then is irrational. If also , then is irrational.
If , subtraction gives , a contradiction. If and , division gives , again a contradiction. These arguments use closure only on two quantities already known to be rational. In particular, is irrational by choosing in the multiplication statement. There is no nonzero restriction on the rational summand in the addition statement.
Counterexample mode
Irrational inputs do not determine the output type
The tempting claim that two irrational inputs always have an irrational sum or product is false. Using the irrationality of proved below,
Both inputs in each operation are irrational, but the outputs are rational. The opposite universal claim also fails: is irrational, and is irrational. The mixed-operation theorem verifies these outputs and verifies that is an irrational input. Thus the examples satisfy their stated hypotheses.
The repaired rule fixes one input as rational: a rational shift preserves irrationality, and a rational multiple does so only when its multiplier is nonzero. The missing condition is witnessed by . This does not contradict the addition rule: remains irrational.
Nonnegative nth roots
Definition
Nonnegative nth real root
Let , and let be nonnegative real numbers. We say that is a nonnegative -th real root of if
Theorem
Existence and uniqueness of nonnegative nth roots
Let , and let 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 and satisfy , but only is the nonnegative square root. Thus
not . The notation always refers to the unique nonnegative root when .
For odd , 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?
Uniqueness can be checked without constructing the real numbers. If , then : for this is immediate, and for it follows from
The first factor is positive, and the sum is positive because its first term is positive and the others are nonnegative. Consequently two different nonnegative numbers cannot have the same th power. Existence remains the stated real-number theorem, not a consequence of this uniqueness argument. At the boundaries, and . The condition excludes a zeroth-root interpretation.
Irrationality of
The first major example is the classical proof that is not rational. The proof uses Euclid's lemma from integer divisibility:
when is prime. In particular, if a prime divides , then divides .
Theorem
The real number is irrational.
Proof: Lowest terms, parity, and the contradiction
Assumption and goal. Suppose, for contradiction, that is rational. Since it is positive, we may write
where and . Squaring both sides gives
First dependency: the numerator is even. Hence . Since is prime, Euclid's lemma implies . Write for some . Substituting this into gives
Dividing by ,
Second dependency: the denominator is even. Thus , and again Euclid's lemma gives . We have shown that divides both and , contradicting .
Contradiction and conclusion. Therefore the assumption that is rational is false, and is irrational.
Evenness of the numerator alone is not a contradiction: a reduced fraction can have an even numerator and an odd denominator, such as . The second use of prime divisibility is indispensable because it forces the denominator to be even as well. Conversely, obtaining two even numbers would say nothing about an unreduced representation such as . The lowest-terms assumption is what turns the common factor into an impossibility.
The structure of the proof is more important than the particular number . 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 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 be an integer greater than , and let 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 -th power gives
Hence . By applying Euclid's lemma repeatedly, a prime dividing must divide . Therefore , so write
for some . Substitute this into :
Cancel one factor of :
Because , the right-hand side is divisible by . Hence . Again, Euclid's lemma applied repeatedly gives .
Thus divides both and , contradicting . Therefore is irrational.
Common mistake
The exponent must exceed one
If , then , which is an integer and therefore rational. The contradiction above needs to contain at least one factor of .
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 is a perfect square.
First suppose 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 has a prime divisor . Since , we have , and the equation implies . By Euclid's lemma, . Thus divides both and , contradicting . Therefore .
So , and hence
Thus 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.
Notice the change of strategy from the prime-root proof. Here the integer need not be prime, so one cannot assume that forces . Instead, choose a prime from the denominator if that denominator exceeds one. The argument shows that a rational square root of an integer must itself be an integer. Without the integer hypothesis on the radicand, this conclusion fails: is rational but not an integer.
Worked example
Choose the theorem that applies to the radicand
For , the equality gives the nonnegative root . For , primality is unavailable because is composite. However, , so is not an integer square: any nonnegative integer is either at most or at least . The square-root criterion therefore makes irrational.
For , use the prime-root theorem with prime and integer . Finally, is irrational: the prime-root theorem handles , and the rational-shift theorem handles the addition. These conclusions are exact. A finite decimal approximation would not prove that no rational representation exists.
Follow the contradiction proof behind sqrt(2): the same prime is forced into numerator and denominator, then the idea extends to prime roots and perfect squares.
The gap in Q
The rational numbers are closed under arithmetic, but the real equation x^2=2 has no rational solution.
Lowest terms
Assume sqrt(2)=a/b with positive integers a,b and gcd(a,b)=1; the contradiction must break that lowest-terms condition.
Prime enters a
Squaring gives 2b^2=a^2, so 2 divides a^2; Euclid's lemma then forces 2 to divide a.
Prime enters b
Writing a=2c and substituting back gives b^2=2c^2, so the same prime also divides b.
Contradiction
A lowest-terms fraction cannot have the same prime dividing both numerator and denominator, so sqrt(2) is irrational.
Root tests
The same proof pattern gives prime nth-root irrationality and the criterion sqrt(n) is rational iff n is a perfect square.
The proof of sqrt(2) is a lowest-terms contradiction: a prime is forced into both the numerator and denominator. The same pattern explains why prime nth roots are irrational and why sqrt(n) is rational exactly when n is a perfect square.
Quick checks
Checkpoint
What does it mean to prove that a real number is irrational?
Pay attention to the word "not" in the definition.
Solution · Answer
It means proving that there do not exist integers with such that .
Checkpoint
If and are rational numbers with nonzero denominators, why is rational?
Use the integer formula for the product.
Solution · Answer
We have . Since and , the product is rational.
Checkpoint
Give one example where the sum of two irrational numbers is rational.
Use opposite irrational numbers.
Solution · Answer
For example, and are irrational, but , which is rational.
Checkpoint
In the proof that is irrational, why do we first write with ?
The contradiction concerns common divisors.
Solution · Answer
Every positive rational number can be written in lowest terms. If the proof then forces the same prime to divide both and , it contradicts .
Checkpoint
Why does imply when is prime?
Think of as a product of copies of .
Solution · Answer
Since , Euclid's lemma says that if the prime divides this product, then it divides at least one factor. Every factor is , so .
Checkpoint
For a positive integer , what exact condition makes rational?
State the criterion as an if and only if.
Solution · Answer
is rational if and only if is a perfect square, meaning for some integer .
Summary
Rationality requires one integer-fraction representation; irrationality rules out every such representation. Closure proves the four arithmetic rules with the nonzero-divisor condition, and also supports contradiction arguments for rational shifts and nonzero rational multiples of irrational numbers.
Root proofs first fix the nonnegative real root, then test rationality using a reduced fraction. For prime radicands, prime divisibility forces a common factor into both terms. For a square root of a positive integer, any prime factor of the denominator would force a common factor, so the denominator must equal one. Keep existence, uniqueness, and rationality as separate questions, and check the hypotheses before choosing a theorem.
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 is a perfect square.
- Determine whether each number is rational or irrational: , , , and .
Solution · Model solution 1
Write and , where and . Then
The numerator and denominator are integers, and , so .
Solution · Model solution 2
For the sum, , which is rational. For the product, , which is rational. Both examples use irrational inputs but produce rational outputs.
Solution · Model solution 3
Suppose, for contradiction, that . Since and , closure of under division gives
contradicting . Therefore is irrational.
Solution · Model solution 4
Starting from
rearrange to get
If , then
The right-hand side is rational, contradicting the irrationality of . Hence , so . Substituting into the original equation gives .
Solution · Model solution 5
This is the prime nth-root theorem with and . For a direct proof, suppose
in lowest terms, with . Cubing gives
Hence , so . Write . Then
Thus , so , contradicting that and are relatively prime. Therefore is irrational.
Solution · Model solution 6
If for some , then , so is rational. Conversely, suppose in lowest terms with . Then . If , choose a prime . Then , so , contradicting . Hence , and . Therefore is a perfect square.
Solution · Model solution 7
, so it is rational. The integer is not a perfect square, so is irrational. The number is irrational by the prime nth-root theorem. Finally, is irrational by the same theorem, so is irrational; otherwise subtracting the rational number would make rational.