Rational vs. Irrational vs. Algebraic vs. Transcendental Numbers
Real numbers are classified in two independent ways. Every real number is either rational or irrational. Separately, every number is either algebraic or transcendental. Irrational does not mean transcendental: $\sqrt{2}$ is irrational but algebraic.
rational numbers ⊂ algebraic numbers and transcendental numbers ⊂ irrational numbers (for real numbers).
Definitions
A rational number is a number that can be written as a fraction of whole numbers, or the negative of one.
A rational number is a number that can be written as $p/q$, where $p$ and $q$ are integers and $q \neq 0$.
A rational number is an element of $\rationals$, constructed as equivalence classes of pairs $(p, q)$ of integers such that $q \neq 0$, where $(p, q) \sim (r, s)$ if $p s = q r$.
Examples
Non-examplesThings that may be mistaken for examples of this term.
-
✗ $\pi$$\pi$ is not a rational number, because it is not a ratio of two integers.
-
$i$ is not rational, because it is not a real number.
-
$\sqrt{2}$ is not a rational number, because $\sqrt{2}$ is irrational: $\sqrt{2}$ is not a ratio of integers.
Properties
- A real number is rational if and only if its decimal expansion either ends or repeats.
- Between every two real numbers there is a rational number: $\rationals$ is dense in $\reals$.
An irrational number is a number that cannot be written as a fraction of whole numbers (or negative whole numbers).
An irrational number is a real number that cannot be written as a fraction of integers.
Examples
-
✓ $\pi$
-
✓ $e$The number $e$ is irrational, because, if $e = p / q$ for whole numbers $p$ and $q$, then $q! \, (e - \sum_{k=0}^{q} 1/k!)$ would be a whole number, but this number is between $0$ and $1$ (Fourier’s proof).
-
$\sqrt{2}$ is irrational, because $\sqrt{2}$ is not a ratio of integers. If $\sqrt{2} = p / q$ for integers $p$ and $q$ with no common factor, then $p^2 = 2 q^2$, so $p^2$ is even, and so $p$ is even. Writing $p = 2k$ gives $4 k^2 = 2 q^2$, so $q^2 = 2 k^2$, and $q$ is even, too, which contradicts that $p$ and $q$ have no common factor.
Non-examplesThings that may be mistaken for examples of this term.
Properties
- The decimal expansion of an irrational number neither ends nor repeats.
- The irrational numbers are uncountable, while the rational numbers are countable.
A real number is any number on the number line. Every real number can be written as a (possibly infinite) decimal.
A real number is an element of $\reals$, the unique complete ordered field.
Examples
Non-examplesThings that may be mistaken for examples of this term.
-
The imaginary unit $i$ is not a real number, because $i^2 = -1$ is negative and the square of every real number is nonnegative.
Properties
- Every nonnegative real number $x$ can be written as a decimal $x = n.d_1 d_2 d_3 \ldots$, where $n$ is a natural number and each digit $d_k$ is one of $0, 1, \dots, 9$, which means that \[x = n + \sum_{k = 1}^{\infty} \frac{d_k}{10^k}.\] The digits are found one at a time: $n$ is the largest whole number at most $x$, and each digit $d_k$ is the largest digit such that the decimal $n.d_1 \ldots d_k$ is at most $x$. The decimals $n.d_1 \ldots d_k$ then lie within $10^{-k}$ of $x$, so the decimals converge to $x$. A negative real number is written as the negative of a decimal.
- A real number is rational exactly when its decimal expansion either ends or repeats, such as $\frac{1}{4} = 0.25$ and $\frac{1}{3} = 0.333\ldots$, so the decimal expansion of an irrational number, such as $\sqrt{2} = 1.41421\ldots$, neither ends nor repeats.
- Some real numbers have two decimal expansions: a decimal that ends, such as $1.0$, equals the decimal that instead ends with repeating $9$s, such as $0.999\ldots$, because $\sum_{k = 1}^{\infty} \frac{9}{10^k} = 1$.
- $\reals$ can be constructed from $\rationals$ using Dedekind cuts or Cauchy sequences.
- Every nonempty set of real numbers that is bounded above has a least upper bound (the completeness of $\reals$).
A number $a$ is an algebraic number if $a$ is a solution to a polynomial equation whose coefficients are all integers.
Consider a real or complex number $a$. The number $a$ is an algebraic number if $a$ is a root of a nonzero polynomial with integer coefficients.
Examples
-
$i$ is algebraic, because it is a root of the polynomial $x^2 + 1$, whose coefficients are integers.
-
✓ $1/2$$1/2$ is algebraic because it is a root of $2x - 1$.
-
$\sqrt{2}$ is an algebraic number, because it solves $x^2 = 2$, or equivalently, it is a root of $x^2 - 2$.
-
✓ $2$$2$ is algebraic because it is a root of $x - 2$.
Non-examplesThings that may be mistaken for examples of this term.
-
✗ $\pi$
A transcendental number is a number that does not solve any polynomial equation with integer coefficients.
A transcendental number is a (real or complex) number that is not algebraic.
Examples
Non-examplesThings that may be mistaken for examples of this term.
Examples
| Example | rational number | irrational number | real number | algebraic number | transcendental number | Why |
|---|---|---|---|---|---|---|
| $2$ | ✓ | ✗ | ✓ | ✓ | ✗ | rational number: $2$ is rational number because it can be written as a ratio of two integers: $2/1$.
irrational number: $2$ is not irrational because it is rational.
algebraic number: $2$ is algebraic because it is a root of $x - 2$.
transcendental number: $2$ is not transcendental because it is algebraic.
|
| $1/2$ | ✓ | ✗ | ✓ | ✓ | ✗ | rational number: $1/2$ is a rational number because it can be written as a ratio of $1$ and $2$.
algebraic number: $1/2$ is algebraic because it is a root of $2x - 1$.
|
| $\sqrt{2}$ | ✗ | ✓ | ✓ | ✓ | ✗ | rational number: $\sqrt{2}$ is not a rational number, because $\sqrt{2}$ is irrational: $\sqrt{2}$ is not a ratio of integers.
irrational number: $\sqrt{2}$ is irrational, because $\sqrt{2}$ is not a ratio of integers. If $\sqrt{2} = p / q$ for integers $p$ and $q$ with no common factor, then $p^2 = 2 q^2$, so $p^2$ is even, and so $p$ is even. Writing $p = 2k$ gives $4 k^2 = 2 q^2$, so $q^2 = 2 k^2$, and $q$ is even, too, which contradicts that $p$ and $q$ have no common factor.
algebraic number: $\sqrt{2}$ is an algebraic number, because it solves $x^2 = 2$, or equivalently, it is a root of $x^2 - 2$.
transcendental number: $\sqrt{2}$ is not transcendental, because $\sqrt{2}$ is a root of the polynomial $x^2 - 2$, which has integer coefficients.
|
| $\pi$ | ✗ | ✓ | ✓ | ✗ | ✓ | rational number: $\pi$ is not a rational number, because it is not a ratio of two integers.
real number: $\pi$ is a real number, because it is the ratio of a circle’s circumference to its diameter, a point on the number line.
transcendental number: $\pi$ is transcendental: Lindemann proved in 1882 that $\pi$ is not a root of any nonzero polynomial with integer coefficients.
|
| $i = \sqrt{-1}$ | ✗ | ✗ | ✗ | ✓ | ✗ | rational number: $i$ is not rational, because it is not a real number.
irrational number: $i$ is not irrational, because it is not a real number.
algebraic number: $i$ is algebraic, because it is a root of the polynomial $x^2 + 1$, whose coefficients are integers.
transcendental number: $i$ is not transcendental, because it is algebraic: it is a root of $x^2 + 1$.
|
Notes
- “Irrational” only applies to real numbers. A complex number such as $1 + i$ is neither rational nor irrational.
- The algebraic numbers are countable, so almost every real number is transcendental, even though it is hard to prove that any particular number (such as $\pi$) is transcendental.