Today we are going to discuss irrational numbers, (I know strange, since we are learning number theory and number theory focuses on integers). But our goal is to understand numbers, so we should know about all types that are out there.
What are rational and irrational numbers????
Let’s start with whole numbers. We could argue that positive whole numbers make sense when describing the real world, since when we say something like there are 2 apples there, I have 10 fingers, this book has 300 pages, I ate 3 slices of pizza, etc, we understand that all of those numbers describe a quantity. More than this, it makes sense to add, subtract, multiply, and divide (in some cases) these numbers.
We can expand our set of numbers to contain negative numbers too. However, when we learn about them, they seem less useful and more abstract than their positive cousin. In spite of this, I bet if I said that I owe you $15 it would make total sense to say that I have -15 dollars and I’m in debt (maybe not total sense, but enough sense because if I got $15 at work then once I paid you back I’d have 15 + (-15) = 0 dollars). So, integers make intuitive sense since they describe everyday situations. And again, it makes sense to add, subtract, multiply, and divide (in some cases) these numbers.
We can be even more advanced and expand our set of numbers to include fractions. We call these rational numbers: Rational numbers are simply numbers that can be written as a fraction of integers (the bottom number cannot be 0). For example, is rational since 1 and 2 are integers, likewise is rational since -1 and 2 are integers. We can also say, 10, , and are all rational. The number 10 is rational since and is rational since .
Rational numbers also describe everyday situations: I have eaten one slice of pizza out of the eight total slices, so I have of the pizza left. Or, I have 50 cents, so I have of a dollar.
And again, it makes sense to add, subtract, multiply, and divide (never by zero!) these rational numbers.
People thought that all numbers were rational because they seem to describe everything we need. (I mean, what would it mean for a number to not be rational and what would it describe?) This was such a strong bias that there was a guy named Pythagoras (yes, the guy from the Pythagorean Theorem), who had a religion that considered numbers to be sacred. They believed that every number could be written as a fraction of whole numbers, ie that all numbers are rational. Long story short, they were wrong! There are so called irrational numbers that cannot be written as a fraction of whole numbers. A disciple of Pythagoras named Hippasus is rumored to have been the first one to show that there exist these strange irrational numbers. He did this using tools that we have previously developed, so I figured that we should learn this beautiful and short proof. But first some vocabulary:
Definition: (Irrational Numbers) A number that cannot be written as a fraction of whole numbers is called irrational.
There are irrational numbers
Theorem: The number is irrational.
Proof: It’s very hard to prove statements such as, “there does not exist blah blah…” or in this case “there are no integers and such that .” It’s much easier to assume there does exists blah blah so that way we have a place to start and then try to find a contradiction.
To this end, let’s assume for the hope of a contradiction that was rational. This means that there are integers and such that . Moreover, we can assume that is in simplest form. (If this wasn’t simplest form we could then simplify it until it was.)
Note that is in simplest form if and only if . (Why?)
***Ok, recap. We are assuming that where and are relatively prime integers (they share no factors greater than one).***
Since square roots and fractions are messy, let’s square both sides of and solve for .
Recall Euclid’s Lemma, (see footnote for a reminder).1 Since 2 is prime and , it must be that (by Euclid’s lemma). Thus, where is some integer. Plugging this back into our previous result and canceling a factor of 2 gives,
Now we see that .
Wait!
This means that (by Euclid’s lemma)! So and , see the contradiction? We assumed that and yet both and are even. This is our contradiction.
We conclude that our assumption that is rational is incorrect, and hence is irrational!
How awesome is that! You can modify the proof above to show that for any prime p is irrational.
A Quick Comment
We started by talking about how natural numbers, integers and rational numbers are intuitive because they can describe the real world. Do irrational numbers describe the real world?
Well… yes and no. For example, shows up as the hypotenuse of a right triangle with side lengths 1.2 So it seems like does show up in the real world when working with triangles.
But there’s a catch.
Perfect 1-by-1 right triangles don’t really show up in nature… the sides will be off by a few moving atoms or an extra pixel, or some quantum uncertainty will come into play, or just that the lines themselves have nonzero thickness. So, the `issue’ is more subtle than we might have thought. More than this, if we want to use irrational numbers to do calculations like finding in decimal form, we can’t really use when doing this. This is because, as we’ll see, irrational numbers have an infinite non-repeating decimal expansion. We (and computers) cannot handle infinity! So, we round to 1.4 or maybe 1.414 or maybe we need more accuracy and use 1.4142135623730950488016887242096980785696. But there’s a problem. When we round, we’re turning an irrational number into a rational number (see below).
So you pick. Do irrational numbers describe the real world? Let me know what you think in the comments!
Daring Decimals
Grab a calculator or do it yourself: what’s 1 divided by 4 and 1 divided by 5? Or, what do you get when you divide 1 by 7? What about dividing 1 by 3?
Do you notice any pattern(s)?
All these rational numbers have a finite or repeating decimal.
.
Where the line above the digits means, this sequence repeats. This happens in general; a number is rational if and only if it has a finite or repeating decimal.
Theorem: (Rational Decimals) A number is rational if and only if it has a finite or repeating decimal.
Proof: We have two directions to prove. We’ll break them up. I’ll leave the situation when the decimal is finite for you to try!
Forward: If is rational, then has a repeating (or finite) decimal.
Leaving the case that the decimal is finite, let have an infinite decimal and because the notation gets confusing, we’ll do a `proof by example’. (Note this is, therefore, not a rigorous proof)
How do we show that has a repeating decimal? Well, consider what you do when you do long division. When you divide, say 1 by 7. Here are the steps one might do.

Notice on the last step that we got a 1 (highlighted in yellow), which we already saw this on the first step. Therefore, we’d be basically starting over on the first step! Thus, our repeating decimal is
Notice that this must always happen because our subtractions can only result in 0, 1, 2, 3, 4, 5, or 6. (if it’s 0, then what can you say?) If we got something larger than 6 you could have fit one more group of 7 before the subtraction. After at most 7 steps, we must repeat one of those digits, resulting in a repeating decimal.
Backward: If has a repeating (or finite) decimal, then is rational.
We will focus on when , since we can always add an integer to and get a rational number. (why?)
Let have a k-digit long decimal repetition length: . Our goal is to get rid of the decimal part of . We do this by multiplying by to get,
Now subtract off giving,
as well as,
We now have the expression, . All we need to do is solve for n! We get:
(An example is below) We have found a fraction of integers for n, thus n is rational.
Example finding a fraction for a repeated decimal
Consider, . It has a a repetition of length k = 3. Thus,
Where we used that Solving for we get,
Which I encourage you to check!
Corollary: Irrational numbers have an infinite non-repeating decimal expansion.
Corollary ( = 3.14159… uhh) : Memorizing digits of is a challenge.
Proof: By inspection it’s true.
Closing Remarks
There are so many beautiful proofs to show that different numbers like and are irrational. A lot of them are very technical, but there are a few out there that don’t need too much advanced mathematics. Also, check out the video here to see why the square root of 3 is irrational, it uses geometry and it’s so clever.
There are so many open questions out there. For example, we don’t yet know if or are irrational! Keep learning and discovering and maybe you, the reader will solve these problems!
Oh! If you want more information about irrational number, check out this Quanta article about new methods to show that a number is irrational.
Footnote:

Leave a reply to How to Write a Proof by Contradiction – A Kick in the Discovery Cancel reply