Irrational Numbers and The Proofs of their Irrationality

How do you prove a number is irrational?

You can’t just look at a number and declare it irrational. You can’t check infinitely many decimal places. You need a proof. And proofs of irrationality are some of the most elegant arguments in all of mathematics.

The basic strategy is always the same: proof by contradiction. Assume the number is rational. Show that assumption leads to something impossible. Conclude the number must be irrational.

I’ll walk you through four different methods. Each one reveals a different way mathematicians think about this problem. Some date back to ancient Greece. Some are more modern. All of them are beautiful.

What Makes a Number Rational?

Before proving irrationality, we need to be precise about rationality.

A rational number is any real number that can be written as a fraction \( \frac{a}{b} \) where:

  • \( a \) and \( b \) are integers
  • \( b \neq 0 \)
  • \( a \) and \( b \) are relatively prime (their greatest common divisor is 1)

That last condition matters. We want the fraction in lowest terms. Without it, you could write \( \frac{2}{4} \) and \( \frac{1}{2} \) as different representations of the same number. By requiring \( \gcd(a,b) = 1 \), we get a unique representation.

In formal notation:

$$\frac{a}{b} \in \mathbb{Q} \iff \gcd(a,b) = 1, \ a \in \mathbb{Z}, \ b \in \mathbb{Z} \setminus \{0\}$$

What Does “Relatively Prime” Mean?

Two integers are relatively prime (or coprime) if their greatest common divisor is 1. They share no common factors other than 1.

Examples: 2 and 9 are relatively prime. So are 4 and 7. And 15 and 49. None of these pairs share any prime factors.

But 4 and 6 are not relatively prime. They share a factor of 2. Their gcd is 2, not 1.

What Makes a Number Irrational?

An irrational number is simply a real number that isn’t rational. It cannot be expressed as a fraction of two integers, no matter how hard you try.

Famous examples: \( \sqrt{2} \), \( \sqrt{3} \), \( \pi \), \( e \), the golden ratio \( \phi \).

The decimal expansion of an irrational number goes on forever without repeating. Rational numbers either terminate (like 0.25) or eventually repeat (like 0.333…). Irrational numbers do neither.

But you can’t prove irrationality by computing decimals. You’d need infinitely many. Instead, you need logical arguments.

The Core Strategy: Proof by Contradiction

Almost every irrationality proof uses the same structure:

  1. Assume the number is rational: \( x = \frac{a}{b} \) with \( \gcd(a,b) = 1 \)
  2. Manipulate this equation algebraically
  3. Derive a contradiction (usually that \( a \) and \( b \) share a common factor)
  4. Conclude the assumption was false: \( x \) is irrational

The art is in step 2. Different methods give you different tools for that manipulation.

Method 1: The Pythagorean Approach

This is the oldest and most famous method. The Pythagoreans discovered it around 500 BC, and legend says they were so disturbed by irrational numbers that they tried to suppress the discovery.

Let’s prove that \( \sqrt{2} \) is irrational.

Proof That √2 Is Irrational

Step 1: Assume \( \sqrt{2} \) is rational. Then we can write:

$$\sqrt{2} = \frac{a}{b}$$

where \( a \) and \( b \) are positive integers with \( \gcd(a,b) = 1 \).

Step 2: Square both sides:

$$2 = \frac{a^2}{b^2}$$

$$a^2 = 2b^2$$

Step 3: This tells us \( a^2 \) is even (it equals \( 2b^2 \), which is clearly even).

If \( a^2 \) is even, then \( a \) must be even. (The square of an odd number is always odd.)

So we can write \( a = 2k \) for some integer \( k \).

Step 4: Substitute \( a = 2k \) into \( a^2 = 2b^2 \):

$$(2k)^2 = 2b^2$$

$$4k^2 = 2b^2$$

$$b^2 = 2k^2$$

Step 5: Now \( b^2 \) is also even, which means \( b \) is even.

Step 6: We’ve shown both \( a \) and \( b \) are even. They share a factor of 2. So \( \gcd(a,b) \geq 2 \).

But we assumed \( \gcd(a,b) = 1 \). Contradiction!

Conclusion: Our assumption was wrong. \( \sqrt{2} \) cannot be rational. It is irrational. ∎

An Alternative Argument

Here’s another way to reach the contradiction from \( a^2 = 2b^2 \).

Since \( \sqrt{2} \) is positive, assume \( a, b > 0 \). From the equation \( a^2 = 2b^2 \), we see that \( b \) divides \( a^2 \).

Now, \( b \neq 1 \) because that would require \( a = \sqrt{2} \), which isn’t an integer. So \( b > 1 \).

By the Fundamental Theorem of Arithmetic, \( b \) has at least one prime factor \( p \). Since \( p \mid b \) and \( b \mid a^2 \), we have \( p \mid a^2 \). This means \( p \mid a \).

So \( p \) divides both \( a \) and \( b \), meaning \( \gcd(a,b) \geq p > 1 \).

This contradicts \( \gcd(a,b) = 1 \). Done. ∎

Generalizing to Other Square Roots

The same technique proves \( \sqrt{3} \), \( \sqrt{5} \), \( \sqrt{7} \), and in general \( \sqrt{n} \) for any non-perfect-square positive integer \( n \).

The key step varies slightly. For \( \sqrt{3} \), you show \( a^2 = 3b^2 \) implies 3 divides \( a \), then 3 divides \( b \). For \( \sqrt{5} \), same idea with 5.

The pattern works because if \( p \) is prime and \( p \mid a^2 \), then \( p \mid a \). This is a special property of primes that doesn’t hold for composite numbers.

Method 2: Using the Euclidean Algorithm

This is an elegant variation of the Pythagorean proof that uses a powerful theorem about relatively prime numbers.

Bézout’s Identity: If \( \gcd(a,b) = 1 \), then there exist integers \( r \) and \( s \) such that \( ar + bs = 1 \).

This is the key insight. Let’s use it.

Proof that √2 is irrational:

Assume \( \sqrt{2} = \frac{a}{b} \) with \( \gcd(a,b) = 1 \).

By Bézout’s Identity, there exist integers \( r \) and \( s \) with \( ar + bs = 1 \).

Multiply both sides by \( \sqrt{2} \):

$$\sqrt{2} \cdot 1 = \sqrt{2}(ar + bs)$$

$$\sqrt{2} = \sqrt{2} \cdot ar + \sqrt{2} \cdot bs$$

Now, from \( \sqrt{2} = \frac{a}{b} \), we have \( \sqrt{2} \cdot b = a \). Substitute:

$$\sqrt{2} = ar \cdot \sqrt{2} + s \cdot \sqrt{2} \cdot b = ar \cdot \sqrt{2} + sa$$

Wait, let me redo this more carefully. From \( \sqrt{2} = \frac{a}{b} \), we get \( a = \sqrt{2}b \). So:

$$\sqrt{2} = (\sqrt{2}b)r + bs \cdot \sqrt{2}/b$$

Actually, the cleaner approach: substitute \( \sqrt{2}a = 2b \) (from squaring) into the expression.

$$\sqrt{2} = \sqrt{2}ar + \sqrt{2}bs$$

Using \( \sqrt{2}a = \frac{a^2}{b} = \frac{2b^2}{b} = 2b \):

$$\sqrt{2} = 2br + as$$

The right side is an integer (it’s \( 2br + as \), a sum of integer products).

So \( \sqrt{2} \) is an integer? That’s clearly false. The only integers near \( \sqrt{2} \approx 1.414 \) are 1 and 2, and \( 1^2 = 1 \neq 2 \) while \( 2^2 = 4 \neq 2 \).

Contradiction. So \( \sqrt{2} \) is irrational. ∎

This proof is slick because it doesn’t require analyzing even/odd cases. It jumps straight to the contradiction using Bézout’s Identity.

Method 3: Power Series Expansion

Some irrational numbers, like \( e \), require more sophisticated techniques. The Pythagorean approach doesn’t work directly because \( e \) isn’t defined as a square root.

Instead, we use the fact that \( e \) has a known infinite series expansion:

$$e = 1 + \frac{1}{1!} + \frac{1}{2!} + \frac{1}{3!} + \frac{1}{4!} + \cdots = \sum_{n=0}^{\infty} \frac{1}{n!}$$

Proof That e Is Irrational

This proof is due to Fourier (yes, the same Fourier from Fourier series).

Assume \( e = \frac{a}{b} \) where \( a \) and \( b \) are positive integers.

Pick any integer \( n > b \) and \( n > 1 \). Define:

$$N = n! \left( e – \sum_{k=0}^{n} \frac{1}{k!} \right)$$

This is \( n! \) times the “tail” of the series for \( e \) (everything after the first \( n+1 \) terms).

Step 1: Show N is a positive integer.

First, \( N > 0 \) because the tail of the series is positive.

To show \( N \) is an integer, write:

$$N = n! \cdot e – n! \sum_{k=0}^{n} \frac{1}{k!}$$

Since \( e = \frac{a}{b} \) and \( n > b \), we have \( n! \cdot e = n! \cdot \frac{a}{b} = \frac{n!}{b} \cdot a \). Since \( n > b \), the factor \( b \) divides \( n! \), so this is an integer.

For the sum, each term \( n! \cdot \frac{1}{k!} = \frac{n!}{k!} \) is an integer when \( k \leq n \).

So \( N \) is the difference of two integers. It’s an integer.

Step 2: Show N < 1.

Expand the tail:

$$N = n! \left( \frac{1}{(n+1)!} + \frac{1}{(n+2)!} + \frac{1}{(n+3)!} + \cdots \right)$$

$$N = \frac{1}{n+1} + \frac{1}{(n+1)(n+2)} + \frac{1}{(n+1)(n+2)(n+3)} + \cdots$$

Each term is positive, but they decrease rapidly. We can bound this:

$$N < \frac{1}{n+1} + \frac{1}{(n+1)^2} + \frac{1}{(n+1)^3} + \cdots$$

This is a geometric series with first term \( \frac{1}{n+1} \) and ratio \( \frac{1}{n+1} \):

$$N < \frac{1/(n+1)}{1 – 1/(n+1)} = \frac{1}{n} < 1$$

(Actually, a tighter bound gives \( N < \frac{1}{n} \), but \( N < 1 \) is enough.)

Step 3: Contradiction.

\( N \) is a positive integer less than 1. But there are no positive integers less than 1!

Contradiction. So \( e \) is irrational. ∎

This proof is beautiful because it uses the specific structure of \( e \)’s series expansion. The factorial terms create the perfect setup for the \( n! \) multiplier to produce an integer that’s too small to exist.

Method 4: Continued Fractions

Here’s a completely different approach. It relies on a powerful theorem about continued fractions.

Theorem: A real number is rational if and only if its continued fraction representation is finite.

Equivalently: a number with an infinite continued fraction is irrational.

This gives us an instant irrationality test. Just write the number as a continued fraction. If it goes on forever, the number is irrational.

Examples

The number e:

$$e = 2 + \cfrac{1}{1 + \cfrac{1}{2 + \cfrac{1}{1 + \cfrac{1}{1 + \cfrac{1}{4 + \cfrac{1}{1 + \cdots}}}}}}$$

The pattern continues: [2; 1, 2, 1, 1, 4, 1, 1, 6, 1, 1, 8, …]. It’s infinite with a beautiful pattern. So \( e \) is irrational.

e=1+1Kk=1kk=1+11+22+33+44+e = 1 + \frac{1}{\underset{k=1}{\overset{\infty}{\mathrm{K}}} \frac{k}{k}} = 1 + \cfrac{1}{1 + \cfrac{2}{2 + \cfrac{3}{3 + \cfrac{4}{4 + \cdots}}}}
e=1+21+Kk=114k+2=1+21+16+110+114+118+e = 1 + \frac{2}{1 + \underset{k=1}{\overset{\infty}{\mathrm{K}}} \frac{1}{4k+2}} = 1 + \cfrac{2}{1 + \cfrac{1}{6 + \cfrac{1}{10 + \cfrac{1}{14 + \cfrac{1}{18 + \cdots}}}}}
e=1123+Kk=114k+2=1123+16+110+114+118+e = \frac{1}{1 – \frac{2}{3 + \underset{k=1}{\overset{\infty}{\mathrm{K}}} \frac{1}{4k+2}}} = \frac{1}{1 – \cfrac{2}{3 + \cfrac{1}{6 + \cfrac{1}{10 + \cfrac{1}{14 + \cfrac{1}{18 + \cdots}}}}}}

The number π:

$$\pi = 3 + \cfrac{1}{7 + \cfrac{1}{15 + \cfrac{1}{1 + \cfrac{1}{292 + \cdots}}}}$$

The continued fraction for \( \pi \) is [3; 7, 15, 1, 292, 1, 1, 1, 2, …]. No discernible pattern, but it’s definitely infinite. So \( \pi \) is irrational.

π=41+Kk=1(2k1)22=41+12+92+252+492+\pi = \frac{4}{1 + \underset{k=1}{\overset{\infty}{\mathrm{K}}} \frac{(2k-1)^2}{2}} = \cfrac{4}{1 + \cfrac{1}{2 + \cfrac{9}{2 + \cfrac{25}{2 + \cfrac{49}{2 + \cdots}}}}}
π=3+Kk=1(2k1)26=3+16+96+256+496+\pi = 3 + \underset{k=1}{\overset{\infty}{\mathrm{K}}} \frac{(2k-1)^2}{6} = 3 + \cfrac{1}{6 + \cfrac{9}{6 + \cfrac{25}{6 + \cfrac{49}{6 + \cdots}}}}

The number √2:

$$\sqrt{2} = 1 + \cfrac{1}{2 + \cfrac{1}{2 + \cfrac{1}{2 + \cfrac{1}{2 + \cdots}}}}$$

This is [1; 2, 2, 2, 2, …], repeating 2s forever. Infinite, so \( \sqrt{2} \) is irrational.

2=2+Kk=124=224242424+\sqrt{2} = 2 + \underset{k=1}{\overset{\infty}{\mathrm{K}}} \frac{-2}{4} = 2 – \cfrac{2}{4 – \cfrac{2}{4 – \cfrac{2}{4 – \cfrac{2}{4 + \cdots}}}}
2=1+Kk=112(1)k+k21+(1)k12(1+(1)k)k=1+12(1+12(2+32(3+32(2+))))\sqrt{2} = 1 + \underset{k=1}{\overset{\infty}{\mathrm{K}}} \frac{-\frac{1}{2}(-1)^k + \left\lfloor \frac{k}{2} \right\rfloor}{1 + (-1)^k – \frac{1}{2}\left(-1 + (-1)^k\right)k} = 1 + \cfrac{1}{2\left(1 + \cfrac{1}{2\left(2 + \cfrac{3}{2\left(3 + \cfrac{3}{2(2 + \cdots)}\right)}\right)}\right)}
2=1+4(Kk=111612)=1+416(12+116(12+116(12+116(12+))))\sqrt{2} = 1 + 4\left(\underset{k=1}{\overset{\infty}{\mathrm{K}}} \frac{\frac{1}{16}}{\frac{1}{2}}\right) = 1 + \cfrac{4}{16\left(\frac{1}{2} + \cfrac{1}{16\left(\frac{1}{2} + \cfrac{1}{16\left(\frac{1}{2} + \cfrac{1}{16\left(\frac{1}{2} + \cdots\right)}\right)}\right)}\right)}

There’s something remarkable here. Quadratic irrationals (like \( \sqrt{2} \), \( \sqrt{3} \), the golden ratio) have eventually periodic continued fractions. Transcendental numbers (like \( e \) and \( \pi \)) have non-periodic infinite continued fractions.

Which Method Should You Use?

It depends on the number.

For square roots of non-perfect squares, the Pythagorean approach is fastest and most elementary. You just need basic facts about even/odd numbers and divisibility.

For \( e \), the power series method is natural because \( e \) is defined by its series. Fourier’s proof exploits that definition perfectly.

For numbers with known continued fraction expansions, just showing the expansion is infinite proves irrationality immediately.

The Euclidean algorithm approach is elegant but requires knowing Bézout’s Identity. It’s a good choice if you’re already working in number theory.

What about \( \pi \)? That’s harder. The first proof that \( \pi \) is irrational came from Johann Lambert in 1761, using continued fractions. Later proofs used integrals and more advanced analysis. There’s no simple Pythagorean-style proof for \( \pi \).

A Note on Transcendental Numbers

Proving a number is irrational is one thing. Proving it’s transcendental is much harder.

A transcendental number isn’t just irrational. It’s not the root of any polynomial with integer coefficients. The numbers \( \pi \) and \( e \) are both transcendental. Proving this took centuries of mathematical development.

Liouville constructed the first transcendental numbers in 1844. Hermite proved \( e \) is transcendental in 1873. Lindemann proved \( \pi \) is transcendental in 1882 (which also proved that squaring the circle is impossible).

The techniques for proving transcendence are beyond this article. But if you can prove a number is transcendental, you’ve automatically proved it’s irrational. Transcendental implies irrational (but not vice versa).

Why This Matters

Irrationality proofs teach you something about the nature of mathematical truth. You can’t always compute your way to an answer. Sometimes you need pure logic.

The Pythagoreans discovered this 2,500 years ago and it shook their worldview. They believed everything could be expressed as ratios of whole numbers. The existence of \( \sqrt{2} \) proved them wrong.

Today, irrational numbers are everywhere. They’re essential in geometry (\( \pi \)), calculus (\( e \)), physics (all over the place), and even music (the equal-tempered scale uses irrational frequency ratios).

Understanding how to prove irrationality connects you to one of humanity’s oldest mathematical discoveries. And the techniques, proof by contradiction, carry over to countless other areas of mathematics.

Frequently Asked Questions

What is an irrational number?

An irrational number is a real number that cannot be expressed as a fraction of two integers. Its decimal expansion goes on forever without repeating. Famous examples include √2, √3, π, e, and the golden ratio φ. Most real numbers are actually irrational, even though rationals seem more familiar.

Why can’t you prove irrationality by computing decimals?

You’d need infinitely many decimal places. No matter how many digits you compute, you can’t rule out the possibility that the pattern eventually starts repeating. A proof must use logic to show that no repeating pattern is possible, not just check a finite number of digits.

What is proof by contradiction?

You assume the opposite of what you want to prove. Then you show this assumption leads to an impossible situation (a contradiction). Since the assumption causes a contradiction, it must be false. Therefore, the original statement must be true. Almost all irrationality proofs use this technique.

Who first proved √2 is irrational?

The Pythagoreans discovered this around 500 BC. Legend says Hippasus of Metapontum found the proof, and his fellow Pythagoreans were so disturbed they drowned him at sea. The discovery shattered their belief that all numbers could be expressed as ratios of whole numbers.

What does ‘relatively prime’ mean?

Two integers are relatively prime (or coprime) if their greatest common divisor is 1. They share no common factors besides 1. For example, 8 and 15 are relatively prime because gcd(8,15) = 1. But 8 and 12 are not because they both share the factor 4.

How do continued fractions prove irrationality?

There’s a theorem: a real number is rational if and only if its continued fraction is finite. So if you can show a number’s continued fraction goes on forever, it must be irrational. For example, √2 = [1; 2, 2, 2, …] with infinitely many 2s, proving it’s irrational.

Is π harder to prove irrational than √2?

Much harder. The √2 proof uses only basic arithmetic. But π isn’t defined as a simple algebraic expression, so you can’t use the same approach. Johann Lambert first proved π irrational in 1761 using continued fractions and advanced analysis. There’s no simple Pythagorean-style proof.

What’s the difference between irrational and transcendental?

An irrational number can’t be expressed as a fraction. A transcendental number is stronger: it’s not a root of any polynomial with integer coefficients. All transcendentals are irrational, but not vice versa. √2 is irrational but not transcendental (it’s a root of x² − 2 = 0). π and e are transcendental.

Can you prove all square roots of non-perfect-squares are irrational?

Yes. The same Pythagorean technique works. For √n where n is not a perfect square, assume √n = a/b in lowest terms. Then a² = nb². Any prime p dividing n must divide a, and then must divide b, contradicting gcd(a,b) = 1. So √n is irrational.

Who proved e is irrational?

Leonhard Euler proved e is irrational in 1737, though the proof presented in most textbooks is due to Joseph Fourier from the early 1800s. The proof uses e’s infinite series expansion and a clever argument showing that a certain quantity would have to be a positive integer less than 1, which is impossible.