π, e and the transcendental numbers
P83.algebraic-transcendental.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: √2 is not a fraction
Where next?
This module unlocks
P83.algebraic-transcendental.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: √2 is not a fraction
This module unlocks
The previous lesson found a hole in the rational numbers at √2. The goal of this lesson is to sort the holes. Some irrational numbers, like √2, are still the answer to a simple equation built from whole numbers; they are called algebraic. Others answer no such equation at all; they are called transcendental. You will build one transcendental number with your own hands, meet the two famous ones, π and e, and see what their transcendence forbids.
A polynomial with integer coefficients is an expression like x² − 2, or 3x − 1, or x³ − x − 1: powers of x, each multiplied by a whole number, added together. Those whole numbers are the coefficients, including the number standing alone at the end and an unwritten 1 (in 3x − 1 they are 3 and −1; in x² − 2 they are 1, 0 and −2), and the highest power of x that appears is the polynomial's degree: 3x − 1 has degree 1, x² − 2 has degree 2, x³ − x − 1 has degree 3. A number is an algebraic number when it is a root of such a polynomial (not the zero polynomial): putting it in place of x gives 0.
So "irrational" does not mean "beyond the reach of equations". √2 is irrational and algebraic at once.
A transcendental number is a real number that is not algebraic: no polynomial with integer coefficients, of any degree, has it as a root. Every transcendental number is irrational (since every rational number is algebraic), but not the other way round.
| Kind | Answers an integer polynomial? | Examples |
|---|---|---|
| Rational | yes, one of degree 1 | 1/3, −2, 0.75 |
| Algebraic irrational | yes, but none of degree 1 | √2, φ, the cube root of 2 |
| Transcendental | no, of any degree | Liouville's constant, π, e |
Proving that a particular number is transcendental is hard: you must rule out every polynomial at once. For a long time nobody knew whether any transcendental number existed.
In 1844 Joseph Liouville proved that transcendental numbers exist, giving examples written in a form beyond this lesson, and in 1851 he wrote down a simple decimal one, now called Liouville's constant. Write a 1 in the decimal places numbered 1, 2, 6, 24, 120, …, the factorials (1! = 1, 2! = 2, 3! = 6, 4! = 24: each is the product of all whole numbers up to it, and 0! = 1 by convention), and 0 everywhere else:
L = 0.110001000000000000000001000…
The ones get further and further apart, very fast. Python can build it to any length:
from fractions import Fraction
import math
partial = sum(Fraction(1, 10 ** math.factorial(k)) for k in range(1, 4))
print(partial) # 110001/1000000: the ones at places 1, 2 and 6
The idea of why L is transcendental (the proof is beyond this lesson). Cut L off after one of its ones and you get a fraction, like 110001/10⁶ above. That fraction is astonishingly close to L: the next 1 is so far away that the error is far smaller than the size of the fraction's bottom would lead you to expect. Liouville proved that algebraic numbers cannot be approximated that well by fractions: an irrational root of a polynomial of degree n stays at least c/qⁿ away from every fraction p/q, for some fixed number c > 0 that depends on the root. L is approximated better than any degree allows, so it is the root of no polynomial. It is transcendental because fractions approximate it too well.
The two most famous numbers in mathematics are both transcendental. Both results are stated here, not proved: their proofs need far more than this course has built so far, and pretending otherwise would be dishonest.
The Greeks asked whether, with a straight edge and a compass alone, you could draw a square with exactly the area of a given circle: squaring the circle. For a circle of radius 1 the square's side would have to be √π. Every length a straight edge and compass can construct turns out to be an algebraic number, and if √π were algebraic then so would π be. Lindemann's theorem says π is not. So after two thousand years of attempts the answer is a proof that no one ever will: the circle cannot be squared.
Both π and e can be approximated as closely as you like by fractions, and the exercise below does both:
For eight correct digits the two take a similar number of steps, about a dozen each, and the exercise has you count them exactly. Past that, e pulls ahead: each doubling of the polygon cuts π's error by a fixed factor of about 4, while each new term of e's series cuts the error by a factor that keeps growing (from the twelfth term on, each new term shrinks the error about 13 times, then 14, then 15…). And, as in the last lesson, none of these computations proves anything about transcendence: a fraction close to a number says nothing about which equations that number solves.
Loading the exercise...
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
One classification rung and one computation rung, both in your browser, both in a little Python (Beginner Python teaches it).
Loading exercise…
Loading exercise…
Loading your notes...