Physicist: In physical sciences we catalog information gained through observation (“what’s that?”), then a model is created (“I bet it works like this!”), and then we try to disprove that model by using experiments (“if we’re right, then we should see this weird thing happening”). In the physical sciences the aim is to disprove, because proofs are always out of reach. There’s always the possibility that you’re missing something (it’s a big, complicated universe after all).
Mathematics is completely different. In math (and really, only in math) we have the power to prove things. The fact that π never repeats isn’t something that we’ve observed, and it’s not something that’s merely “likely” given that we’ve never observed a repeating pattern in the first several trillion digits we’ve seen so far.
The digits of pi never repeat because it can be proven that π is an irrational number and irrational numbers don’t repeat forever.
If you write out the decimal expansion of any irrational number (not just π) you’ll find that it never repeats. There’s nothing particularly special about π in that respect. So, proving that π never repeats is just a matter of proving that it can’t be a rational number. Rather than talking vaguely about math, the rest of this post will be a little more direct than the casual reader might normally appreciate. For those of you who just scrolled down the page and threw up a little, here’s a very short argument (not a proof):
It turns out that . But this string of numbers includes all of the prime numbers (other than 2) in the denominator, and since there are an infinite number of primes, there should be no common denominator. That means that π is irrational, and that means that π never repeats. The difference between an “argument” and a “proof” is that a proof ends debates, whereas an argument just puts folk more at ease (mathematically speaking). The math-blizzard below is a genuine proof. First,
Numbers with repeating decimal expansions are always rational.
If a number can be written as the D digit number “N” repeating forever, then it can be expressed as . For example, when N=123 and D=3:
Luckily, this can always be figured out exactly using some very old math tricks. This is just a geometric series, and . So for example, .
Even if the decimal starts out a little funny, and then settles down into a pattern, it doesn’t make any difference. The “funny part” can be treated as a separate rational number. For example, . And the sum of any rational numbers is always a rational number, so for example, .
So, if something has a forever-repeating decimal expansion, then it is a rational number. Equivalently, if something is an irrational number, then it does not have a repeating decimal. For example,
√2 is an irrational number
So, in order to prove that a number doesn’t repeat forever, you need to prove that it is irrational. A number is irrational if it cannot be expressed in the form , where A and B are integers. √2 was the first number shown conclusively to be irrational (about 2500 years ago). The proof of the irrationality of π is a little tricky, so this part is just to convey the flavor of one of these proofs-of-irrationality.
Assume that , and that A and B have no common factors. Then it follows that . Therefore, A is an even number since has a factor of 2. But if is an integer, then we can write: and therefore . But that means that B is an even number.
This is a contradiction, since we assumed that A and B have no common factors. By the way, if they did have common factors, then we could cancel them out. No biggie.
So, √2 is irrational, and therefore its decimal expansion (√2=1.4142135623730950488016887242096980785696…) never repeats. This isn’t just some experimental observation, it’s an absolute fact. That’s why it’s useful to prove, rather than just observe, that
π is an irrational number
The earliest known proof of this was written in 1761. However, what follows is a much simpler proof written in 1946. Unfortunately, there don’t seem to be any simple, no-calculus proofs floating around, so if you don’t dig calculus and some of the notation from calculus, then you won’t dig this. Here goes:
Assume that . Now define a function , where n is some positive integer, and that excited n, n!, is “n factorial“. No problems so far.
All of the derivatives of taken at x=0 are integers. This is because (by the binomial expansion theorem), which means that the kth derivative is
If k<n, then there is no constant term (an x0 term), so . If n≤k≤2n, then there is a constant term, but is still an integer. The j=k-n term is the constant term, so:
a and b are integers already, so their powers are still integers. is also an integer since . “k choose n” is always an integer, and , which is just a string of integers multiplied together.
So, the derivatives at zero, , are all integers. More than that, by symmetry, , are all integers. This is because
This is the same function, so the arguments about the derivatives at x=0 being integers also apply to x=π. Keep in mind that it is still being assumed that .
Finally, for k>2n, , because f(x) is a 2n-degree polynomial (so 2n or more derivatives leaves 0).
After all that, now construct a new function, . Notice that g(0) and g(π) are sums of integers, so they are also integers. Using the usual product rule, and the derivative of sines and cosines, it follows that
f(x) is positive between 0 and π, since when . Since sin(x)>0 when 0<x<π as well, it follows that . Finally, using the fundamental theorem of calculus,
But this is an integer, and since f(x)sin(x)>0, this integer is at least 1. Therefore, .
But check this out: if , then .
Therefore, . But here’s the thing; we can choose n to be any positive integer we’d like. Each one creates a slightly different version of f(x), but everything up to this point works the same for each of them. While the numerator, π(πa)n, grows exponentially fast, the denominator, n!, grows much much faster for large values of n. This is because each time n increases by one, the numerator is multiplied by πa (which is always the same), but the denominator is multiplied by n (which keeps getting bigger). Therefore, for a large enough value of n we can always force this integral to be smaller and smaller. In particular, for n large enough, . Keep in mind that is assumed to be some definite number, so it can’t “race against n”, which means that this fraction always becomes smaller and smaller.
Last step! We can now say that if π can be written as , then a function, f(x), can be constructed such that and . But that’s a contradiction. Therefore, π cannot be written as the ratio of two integers, so it must be irrational, and irrational numbers have non-repeating decimal expansions.
Boom. That’s a proof.
For those of you still reading, it may occur to you to ask “wait… where did the properties of π get into that at all?”. The proof required that sine and cosine be derivatives of each other, and that’s only true when using radians. For example, when x is in degrees. So, the proof requires that , and that requires that the angle is given in radians. Radians are defined geometrically so that the angle is described by the length of the arc it traces out, divided by the radius. Incidentally, this definition is equivalent to declaring the small angle approximation: .
This defines the angle of a full circle as 2π radians and as a result of geometry and the definitions of sine and cosine, sin(π radians) = 0, cos(π radians) = -1, , and that’s enough for the proof!
Subtle, but behind all of that algebra, is a bedrock of geometry.
My math is rusty, but at least I know where to go if someone asks me why pi is irrational. I never thought that the decimals really never generate a repeating sequence whatsoever.
Thanks for the explanation. I may need to start learning calculus again. 😀
On the “Last Step” when pointing out the contradiction you accidentally used the same inequality twice, rather than two different ones.
Fixed!
Formula in some paraghaphs are distorted
Pingback: How do we know that π never repeats? | eDue
Hi, two tiny errors (I think):
When you introduce the binomial expansion, you forgot the bionomial coefficient in the very first equation.
Also in the end of this paragraph: “But this is an integer, and since f(x)sin(x)>0, this integer is at least 1. Therefore, […]”, you write >1 instead of ≥1.
Thanks for the wonderful proof! 🙂
What are the odds you can show us the proof that π isn’t algebraic?
Excellent post, I love how you explain and make things clear, both from a simple and a more complex mathematical framework! Happy Christmas and Holidays!
I had no idea 9 was a prime number (fifth paragraph).
It isn’t. But the sum includes all odd numbers, which includes (as a subset) all primes other than 2.
Oh, you are right. I ignored the word”includes” the first time I read it. Thanks!
Would that be tau radians?
Pfft, I’m not reading all of that. To answer the title though, you can just say “we know that pi never repeats, because if it repeats, then it isn’t pi.”
So, is it impossible to generate the decimal points of π without using calculus? Or are there two numbers one can divide to generate it?
@Rich – Sure! Divide pi^2 by pi, and there you have it! 😀
There are only a limited number of permutations of 9 digits, so pi has to repeat at some point.
@Rich “Irrational” means that no, you cannot divide two “ordinary” (i.e. rational) numbers together to get π, by definition. However, it is most certainly possible to generate digits of π without calculus. There are methods such as Buffon’s Needle (http://mste.illinois.edu/activity/buffon/) or what the Greeks did to try and find it out with geometry.
@Jack: A limited number of permutations assumes a finite number of positions for those digits to be placed in, which is not true of an irrational number. Consider 1415 and 1415926; if they occurred in different places in pi, you would say that it repeated (1415), but those are two separate permutations of different length and thus can’t be compared for repetition. Since pi is an irrational number of infinite length, it can have permutations of infinite length, and therefore can never repeat.
I know others (i.e. Japanese) computed pi to more than 100 million decimal places with supercomputers and found no pattern let alone a repeating pattern. Others have computed it beyond these digits since; aren’t we a curious bunch and with time on our hands? It is truly a remarkable number. The question I have is whether pi can be expressed with a repeatable pattern in a base other than 10.
@WillL: Oh that makes sense, thanks
@Mark Johnson – if you express it in base pi, then it’s represented by 10, which is nice pattern of sorts.
how do we know that it doesn’t repeat, when we can’t see the whole entire number written out?
Are there an infinite number of irrational numbers?
Nice question Aaron. Please visit> https://www.khanacademy.org/math/algebra/rational-and-irrational-numbers/proofs-concerning-irrational-numbers/v/proof-that-there-is-an-irrational-number-between-any-two-rational-numbers
From a Real Nice perspective (Simple, and OH SO Elegant)
Pingback: Q: How accurately do we need to know π? Is there a reason to know it out to billions of digits? | Ask a Mathematician / Ask a Physicist
Really big reply , but this reply doesn’t deal with the method of calculation of Pi and its problematic … The undeniable fact is that the value which we use for Pi is actually not calculated by definition for Pi … We just associate the value we calculated to this definition … Another undeniable fact is that the most fundamental formulas like C=2Pi*r and A= Pi*r^2 have never been proven … We don’t know what curve really is , we don’t have any prior definition for lengths of curves etc … Number Pi as we use it today is nothing more than mathematical concept ,which has nothing to do with reality … By Archimedes method you never ever can reach the end ,,, and all the rest of those formulas for calculating Pi , they are nothing more than number generators , which make Archimedes-Pythagoras method more efficient and faster , that’s it… Non of those formulas explaining what curve is. Equating number Pi with square root of two is nobrainer ..there are major differences .. square root of two is solving straight line + we can grab square root of 2 into compass …
So, since Pi is irrational, and used in calculating the area of a circle, does that mean we can never calculate the exact area of a circle? Does a circle never truly have an exact area, only an approximate area?
@Dick: As long as we can count (exist, think, grow, etc), numbers will not have an end. There lies the “living proof” of irrational and infinite numbers.
Pi also has much reality…it may even prove it; that even within the confines of a circle there is infinite change, so long as curve exists. And a curve is our ability to change direction. You may do the same thing over and over but will never fail to think new thoughts or combinations of…I would be as bold as to say that irrational numbers prove our existence is not temporal and certainly not finite.
Thanks Physicist, for a rich and rewarding article.
Pingback: Q: How was the number π first discovered? How did we first figure out it was 3.14…? | Ask a Mathematician / Ask a Physicist
Thanks Physicist,
Don’t apologize for complication if it is the simplest approach.
If someone can’t follow why pi is irrational, let them eat cake.
Cheers
I have a better Way ???
1) Irrational numbers never repeat, 2) Pi is irrational, 3) Therefore, pi never repeats.
1) Any number that doesn’t repeat is irrational, 2) Pi never repeats, 3) Therefore, pi is irrational.
Something seems circular to me in this article but I ain’t no mathematician! I think unless we count all the way until infinity we may never know?
@Robbie
What I was trying to get across is that “a number is rational if and only if it (eventually) repeats forever”. Basically there are two categories for numbers: they’re either rational and repeat, or they’re irrational and don’t repeat. Then it’s a matter of showing (not easily) that pi falls into the irrational category.
I have an easier way to put it.
Because circles are infinite, pi is infinite.
This was really helpful! Thanks a lot!
I’m sure it is proved that pi is an irrational number, and you may well be able to prove that irrational numbers never repeat. But I’m interested in the second of those, and if it’s above I haven’t seen it. I’ve seen:
“If you write out the decimal expansion of any irrational number (not just π) you’ll find that it never repeats.”
That isn’t a proof. I’m not saying there isn’t one, but if there is, that ain’t it.
The definition of an “irrational” number is one that is not equal to one integer divided by another integer. Only rational numbers, those that can be written as the ratio of two integers, repeat their decimal expansions (or their expansion in any integer base).
So by proving that pi is not rational (not equal to an integer ratio) the article proves that it does not repeat.
Pingback: CANTOR #3: Math is Freedom – Math Renaissance
Seems probable that ‘substrings’ of it could repeat in various ways. For example, ‘1415’ could appear somewhere further on, just as a coincidence. In fact, with an infinite string of digits, you could probably find ‘1415’ an infinite number of times, couldn’t you? And then say the same about ‘1415926’, and in fact about any such string? A lot of weird stuff can happen in the Infinite Hotel.