Proof that π is irrational explained

In the 1760s, Johann Heinrich Lambert was the first to prove that the number is irrational, meaning it cannot be expressed as a fraction

a/b

, where

a

and

b

are both integers. In the 19th century, Charles Hermite found a proof that requires no prerequisite knowledge beyond basic calculus. Three simplifications of Hermite's proof are due to Mary Cartwright, Ivan Niven, and Nicolas Bourbaki. Another proof, which is a simplification of Lambert's proof, is due to Miklós Laczkovich. Many of these are proofs by contradiction.

In 1882, Ferdinand von Lindemann proved that

\pi

is not just irrational, but transcendental as well.[1]

Lambert's proof

In 1761, Johann Heinrich Lambert proved that

\pi

is irrational by first showing that this continued fraction expansion holds:

\tan(x)=\cfrac{x}{1-\cfrac{x2}{3-\cfrac{x2}{5-\cfrac{x2}{7-{}\ddots}}}}.

Then Lambert proved that if

x

is non-zero and rational, then this expression must be irrational. Since

\tan\tfrac\pi4=1

, it follows that

\tfrac\pi4

is irrational, and thus

\pi

is also irrational.[2] A simplification of Lambert's proof is given below.

Hermite's proof

Written in 1873, this proof uses the characterization of

\pi

as the smallest positive number whose half is a zero of the cosine function and it actually proves that

\pi2

is irrational.[3] [4] As in many proofs of irrationality, it is a proof by contradiction.

Consider the sequences of real functions

An

and

Un

for

n\in\N0

defined by:

\begin{align} A0(x)&=\sin(x),&&An+1(x)

xyA
=\int
n(y)dy

\\[4pt] U0(x)&=

\sin(x)
x,

&&Un+1(x)=-

Un'(x)
x \end{align}

Using induction we can prove that

\begin{align} An(x)&=

x2n+1-
(2n+1)!!
x2n+3+
2 x (2n+3)!!
x2n+5
2 x 4 x (2n+5)!!

\mp\\[4pt] Un(x)&=

1{(2n+1)!!}-x2
2 x (2n+3)!!
+x4
2 x 4 x (2n+5)!!

\mp \end{align}

and therefore we have:

U
n(x)=An(x)
x2n+1

.

So

\begin{align} An+1(x)
x2n+3

&=Un+1(x)=-

Un'(x)
x=-
1xd
dx
\left(An(x)
x2n+1

\right)\\[6pt] &=-

1
x

\left(

An'(x)x2n+1-(2n+1)x2nAn(x)
x2(2n+1)

\right)\\[6pt] &=

(2n+1)An(x)-xAn'(x)
x2n+3

\end{align}

which is equivalent to

An+1

2A
(x)=(2n+1)A
n-1

(x).

Using the definition of the sequence and employing induction we can show that

An(x)=

2)
P
n(x

\sin(x)+x

2)
Q
n(x

\cos(x),

where

Pn

and

Qn

are polynomial functions with integer coefficients and the degree of

Pn

is smaller than or equal to

l\lfloor\tfrac12nr\rfloor.

In particular,

Anl(\tfrac12\pir)=

2r).
P
nl(\tfrac14\pi

Hermite also gave a closed expression for the function

An,

namely
A
n(x)=x2n+1
2nn!
1(1-z
\int
0

2)n\cos(xz)dz.

He did not justify this assertion, but it can be proved easily. First of all, this assertion is equivalent to

1
2nn!
1(1-z
\int
0

2)n\cos(xz)dz=

An(x)
x2n+1

=Un(x).

Proceeding by induction, take

n=0.

1\cos(xz)dz=\sin(x)
x=U
\int
0(x)

n.

If
1
2nn!
1(1-z
\int
0

2)

n\cos(xz)dz=U
n(x),

then, using integration by parts and Leibniz's rule, one gets

\begin{align} &1
2n+1(n+1)!
1\left(1-z
\int
0

2\right)n+1\cos(xz)dz\\ &    =

1
2n+1(n+1)!

l(\overbrace{\left.(1-z2)n+1

\sin(xz)
x\right|
z=1
z=0
}^ \ +\, \int_0^12(n+1)\left(1-z^2\right)^nz \fracx\,\mathrmz\Biggr)\\[8pt]&\qquad= \frac1x\cdot\frac1\int_0^1\left(1-z^2\right)^nz\sin(xz)\,\mathrmz\\[8pt]&\qquad= -\frac1x\cdot\frac\left(\frac1\int_0^1(1-z^2)^n\cos(xz)\,\mathrmz\right) \\[8pt]&\qquad= -\fracx \\[4pt]&\qquad= U_(x).\end

If

\tfrac14\pi2=p/q,

with

p

and

q

in

\N

, then, since the coefficients of

Pn

are integers and its degree is smaller than or equal to

l\lfloor\tfrac12nr\rfloor,

q\lfloor

2r)
P
nl(\tfrac14\pi
is some integer

N.

In other words,

N=q\lfloor{An}l(\tfrac12\pir)=q\lfloor

1
2nn!

\left(\dfracpq

n+12
\right)
1(1-z
\int
0

2)n\cos\left(\tfrac12\piz\right)dz.

But this number is clearly greater than

0.

On the other hand, the limit of this quantity as

n

goes to infinity is zero, and so, if

n

is large enough,

N<1.

Thereby, a contradiction is reached.

Hermite did not present his proof as an end in itself but as an afterthought within his search for a proof of the transcendence of

\pi.

He discussed the recurrence relations to motivate and to obtain a convenient integral representation. Once this integral representation is obtained, there are various ways to present a succinct and self-contained proof starting from the integral (as in Cartwright's, Bourbaki's or Niven's presentations), which Hermite could easily see (as he did in his proof of the transcendence of

e

[5]).

Moreover, Hermite's proof is closer to Lambert's proof than it seems. In fact,

An(x)

is the "residue" (or "remainder") of Lambert's continued fraction for

\tanx.

[6]

Cartwright's proof

Harold Jeffreys wrote that this proof was set as an example in an exam at Cambridge University in 1945 by Mary Cartwright, but that she had not traced its origin. It still remains on the 4th problem sheet today for the Analysis IA course at Cambridge University.[7]

Consider the integrals

In(x)=\int

1(1
-1

-z2)n\cos(xz)dz,

where

n

is a non-negative integer.

Two integrations by parts give the recurrence relation

2I
x
n(x)=2n(2n-1)I

n-1(x)-4n(n-1)In-2(x).    (n\geq2)

If

2n+1
J
n(x)=x

In(x),

then this becomes

Jn(x)=2n(2n-1)Jn-1

2J
(x)-4n(n-1)x
n-2

(x).

Furthermore,

J0(x)=2\sinx

and

J1(x)=-4x\cosx+4\sinx.

Hence for all

n\in\Z+,

2n+1
J
n(x)=x

In(x)=n!l(Pn(x)\sin(x)+Qn(x)\cos(x)r),

where

Pn(x)

and

Qn(x)

are polynomials of degree

\leqn,

and with integer coefficients (depending on

Take

x=\tfrac12\pi,

and suppose if possible that

\tfrac12\pi=a/b

where

a

and

b

are natural numbers (i.e., assume that

\pi

is rational). Then
a2n+1
n!

Inl(\tfrac12\pir)=

2n+1
P
nl(\tfrac12\pir)b

.

The right side is an integer. But

0<Inl(\tfrac12\pir)<2

since the interval

[-1,1]

has length

2

and the function being integrated takes only values between

0

and

1.

On the other hand,
a2n+1
n!

\to0asn\toinfty.

Hence, for sufficiently large

n

0<

2n+1
a
I
n\left(\pi2\right)
n!

<1,

that is, we could find an integer between

0

and

1.

That is the contradiction that follows from the assumption that

\pi

is rational.

This proof is similar to Hermite's proof. Indeed,

2n+1
\begin{align} J
n(x)&=x
1
\int
-1

(1-z2)n\cos(xz)dz\\[5pt] &=2x2n+1

1
\int
0

(1-z2)n\cos(xz)dz\\[5pt] &=2n+1n!An(x). \end{align}

However, it is clearly simpler. This is achieved by omitting the inductive definition of the functions

An

and taking as a starting point their expression as an integral.

Niven's proof

This proof uses the characterization of

\pi

as the smallest positive zero of the sine function.

Suppose that

\pi

is rational, i.e.

\pi=a/b

for some integers

a

and

b

which may be taken without loss of generality to both be positive. Given any positive integer

n,

we define the polynomial function:

f(x)=

xn(a-bx)n
n!

and, for each

x\in\R

let

F(x)=f(x)-f''(x)+f(4)(x)+ … +(-1)nf(2n)(x).

Claim 1:

F(0)+F(\pi)

is an integer.

Proof:Expanding

f

as a sum of monomials, the coefficient of

xk

is a number of the form

ck/n!

where

ck

is an integer, which is

0

if

k<n.

Therefore,

f(k)(0)

is

0

when

k<n

and it is equal to

(k!/n!)ck

if in each case,

f(k)(0)

is an integer and therefore

F(0)

is an integer.

On the other hand,

f(\pi-x)=f(x)

and so

(-1)kf(k)(\pi-x)=f(k)(x)

for each non-negative integer

k.

In particular,

(-1)kf(k)(\pi)=f(k)(0).

Therefore,

f(k)(\pi)

is also an integer and so

F(\pi)

is an integer (in fact, it is easy to see that Since

F(0)

and

F(\pi)

are integers, so is their sum.

Claim 2:

\pi
\int
0

f(x)\sin(x)dx=F(0)+F(\pi)

Proof: Since

f(2n

is the zero polynomial, we have

F''+F=f.

The derivatives of the sine and cosine function are given by sin' = cos and cos' = -sin. Hence the product rule implies

(F'\sin{}-F\cos{})'=f\sin

By the fundamental theorem of calculus

\left.

\pi
\int
0

f(x)\sin(x)dx=l(F'(x)\sinx-F(x)\cosxr)

\pi.
\right|
0

Since

\sin0=\sin\pi=0

and

\cos0=-\cos\pi=1

(here we use the above-mentioned characterization of

\pi

as a zero of the sine function), Claim 2 follows.

Conclusion: Since

f(x)>0

and

\sinx>0

for

0<x<\pi

(because

\pi

is the smallest positive zero of the sine function), Claims 1 and 2 show that

F(0)+F(\pi)

is a positive integer. Since

0\leqx(a-bx)\leq\pia

and

0\leq\sinx\leq1

for

0\leqx\leq\pi,

we have, by the original definition of

f,

\pi
\intf(x)\sin(x)dx\le\pi
0
(\pia)n
n!

which is smaller than

1

for large

n,

hence

F(0)+F(\pi)<1

for these

n,

by Claim 2. This is impossible for the positive integer

F(0)+F(\pi).

This shows that the original assumption that

\pi

is rational leads to a contradiction, which concludes the proof.

The above proof is a polished version, which is kept as simple as possible concerning the prerequisites, of an analysis of the formula

\pi
\int
0

f(x)\sin(x)dx=

n
\sum
j=0

(-1)j\left(f(2j)(\pi)+f(2j)(0)\right)+(-1)n+1

\pi
\int
0

f(2n+2)(x)\sin(x)dx,

which is obtained by

2n+2

integrations by parts. Claim 2 essentially establishes this formula, where the use of

F

hides the iterated integration by parts. The last integral vanishes because

f(2n+2)

is the zero polynomial. Claim 1 shows that the remaining sum is an integer.

Niven's proof is closer to Cartwright's (and therefore Hermite's) proof than it appears at first sight.[6] In fact,

2n+1
\begin{align} J
n(x)&=x
1(1-z
\int
-1

2)

1\left
-1

(x2-(xz)2\right)nx\cos(xz)dz. \end{align}

xz=y

turns this integral into
x(x
\int
-x

2-y2)n\cos(y)dy.

In particular,

\pi/2
\begin{align} J\left(
n\left(\pi2\right)&=\int
-\pi/2
\pi2
4-y

2\right)

\pi\left(\pi2
4-\left(y-\pi2\right)
2\right)
0
n\cos\left(y-\pi2\right)dy\\[5pt] &=\int
0

\piyn(\pi-y)

n\sin(y)dy\\[5pt] &=n!
bn
\pi
\int
0

f(x)\sin(x)dx. \end{align}

Another connection between the proofs lies in the fact that Hermite already mentions[3] that if

f

is a polynomial function and

F=f-f(2)+f(4)\mp,

then

\intf(x)\sin(x)dx=F'(x)\sin(x)-F(x)\cos(x)+C,

from which it follows that

\pi
\int
0

f(x)\sin(x)dx=F(\pi)+F(0).

Bourbaki's proof

Bourbaki's proof is outlined as an exercise in his calculus treatise. For each natural number b and each non-negative integer

n,

define
\pixn(\pi-x)n
n!
A
0

\sin(x)dx.

Since

An(b)

is the integral of a function defined on

[0,\pi]

that takes the value

0

at

0

and

\pi

and which is greater than

0

otherwise,

An(b)>0.

Besides, for each natural number

b,

An(b)<1

if

n

is large enough, because

x(\pi-x)\le\left(

\pi2\right)
2

and therefore

An(b)\le\pibn

1\left(
n!
\pi2\right)
2n

=\pi

(b\pi2/4)n
n!

.

On the other hand, repeated integration by parts allows us to deduce that, if

a

and

b

are natural numbers such that

\pi=a/b

and

f

is the polynomial function from

[0,\pi]

into

\R

defined by
f(x)=xn(a-bx)n
n!

,

then:

\begin{align} An(b)&=

\pi
\int
0

f(x)\sin(x)dx\\[5pt] &=

x=\pi
[{-f(x)\cos(x)}]
x=0

-[{-f'(x)\sin(x)}

x=\pi
]
x=0

+\\[5pt] &     \pm[f(2n)(x)\cos(x)

x=\pi
]
x=0

\pm

\pi
\int
0

f(2n+1)(x)\cos(x)dx. \end{align}

This last integral is

0,

since

f(2n+1)

is the null function (because

f

is a polynomial function of degree Since each function

f(k)

(with takes integer values at

0

and

\pi

and since the same thing happens with the sine and the cosine functions, this proves that

An(b)

is an integer. Since it is also greater than

0,

it must be a natural number. But it was also proved that

An(b)<1

if

n

is large enough, thereby reaching a contradiction.

This proof is quite close to Niven's proof, the main difference between them being the way of proving that the numbers

An(b)

are integers.

Laczkovich's proof

Miklós Laczkovich's proof is a simplification of Lambert's original proof. He considers the functions

fk(x)=1-

x2-
k+x4
2!k(k+1)
x6
3!k(k+1)(k+2)

+(k\notin\{0,-1,-2,\ldots\}).

These functions are clearly defined for any real number

x.

Besides

f1/2(x)=\cos(2x),

f3/2(x)=

\sin(2x)
2x

.

Claim 1: The following recurrence relation holds for any real number

x2
k(k+1)

fk+2(x)=fk+1(x)-fk(x).

Proof: This can be proved by comparing the coefficients of the powers of

x.

Claim 2: For each real number

x,

\limk\to+inftyfk(x)=1.

Proof: In fact, the sequence

x2n/n!

is bounded (since it converges to and if

C

is an upper bound and if

k>1,

then

\left|fk(x)-1\right|\leqslant\sum

inftyC{k
n}=C1/k
1-1/k
=
n=1
C{k-1}.

Claim 3: If

x0,

x2

is rational, and

k\in\Q\smallsetminus\{0,-1,-2,\ldots\}

then

fk(x) ≠ 0and

fk+1(x)
fk(x)

\notin\Q.

Proof: Otherwise, there would be a number

y0

and integers

a

and

b

such that

fk(x)=ay

and

fk+1(x)=by.

To see why, take

y=fk+1(x),

a=0,

and

b=1

if otherwise, choose integers

a

and

b

such that

fk+1(x)/fk(x)=b/a

and define

y=fk(x)/a=fk+1(x)/b.

In each case,

y

cannot be

0,

because otherwise it would follow from claim 1 that each

fk+n(x)

(

n\in\N

) would be

0,

which would contradict claim 2. Now, take a natural number

c

such that all three numbers

bc/k,

ck/x2,

and

c/x2

are integers and consider the sequence

gn=\begin{cases}fk(x)&

n}{k(k+1)(k+n-1)}f
n=0\\dfrac{c
k+n

(x)&n0\end{cases}

Then

g0=fk(x)=ay\in\Zyand

g(x)=
1=ckf
k+1
bc
ky\in\Z

y.

On the other hand, it follows from claim 1 that

\begin{align} gn+2&=

cn+2
x2k(k+1)(k+n-1)
x2
(k+n)(k+n+1)

fk+n+2(x)\\[5pt] &=

cn+2
x2k(k+1)(k+n-1)

fk+n+1(x)-

cn+2
x2k(k+1)(k+n-1)

fk+n(x)\\[5pt] &=

c(k+n)
x2

gn+1-

c2
x2
g+
n\\[5pt] &=\left(ck
x2
c{x
2}n\right)g

n+1-

c2
x2

gn, \end{align}

which is a linear combination of

gn+1

and

gn

with integer coefficients. Therefore, each

gn

is an integer multiple of

y.

Besides, it follows from claim 2 that each

gn

is greater than

0

(and therefore that if

n

is large enough and that the sequence of all

gn

converges to

0.

But a sequence of numbers greater than or equal to

|y|

cannot converge to

0.

Since

f1/2(\tfrac14\pi)=\cos\tfrac12\pi=0,

it follows from claim 3 that

\tfrac1{16}\pi2

is irrational and therefore that

\pi

is irrational.

On the other hand, since

\tanx=

\sinx=x
\cosx
f3/2(x/2)
f1/2(x/2)

,

another consequence of Claim 3 is that, if

x\in\Q\smallsetminus\{0\},

then

\tanx

is irrational.

Laczkovich's proof is really about the hypergeometric function. In fact,

fk(x)={}0F1(k-x2)

and Gauss found a continued fraction expansion of the hypergeometric function using its functional equation. This allowed Laczkovich to find a new and simpler proof of the fact that the tangent function has the continued fraction expansion that Lambert had discovered.

Laczkovich's result can also be expressed in Bessel functions of the first kind

J\nu(x)

. In fact,

\Gamma(k)Jk-1(2x)=xk-1fk(x)

(where

\Gamma

is the gamma function). So Laczkovich's result is equivalent to: If

x0,

x2

is rational, and

k\in\Q\smallsetminus\{0,-1,-2,\ldots\}

then
xJk(x)
Jk-1(x)

\notin\Q.

See also

Notes and References

  1. .
  2. .
  3. Hermite . Charles . Charles Hermite . 1873 . Extrait d'une lettre de Monsieur Ch. Hermite à Monsieur Paul Gordan . fr . . 76 . 303–311 .
  4. Hermite . Charles . Charles Hermite . 1873 . Extrait d'une lettre de Mr. Ch. Hermite à Mr. Carl Borchardt . fr . . 76 . 342–344 .
  5. Book: Hermite, Charles . Charles Hermite . Picard . Émile . Charles Émile Picard . Œuvres de Charles Hermite . III . Gauthier-Villars . 1912 . fr . 150–181 . Sur la fonction exponentielle . 1873.
  6. Zhou . Li . Irrationality proofs à la Hermite . The Mathematical Gazette . 2011 . 95 . 534. 407–413 . 0911.1929 . 10.1017/S0025557200003491. 115175505 .
  7. Web site: Department of Pure Mathematics and Mathematical Statistics . 2022-04-19 . www.dpmms.cam.ac.uk.