An irrational number is a real number that is not a rational number: it cannot be written as with integers and . Its decimal expansion is infinite and not eventually periodic. Both and are irrational, but their algebraic behavior differs: is an algebraic number, while is a transcendental number.
The irrationality of the square root of two supplies a basic example: a reduced fraction with square two would force both and to be even. Irrational numbers are needed to describe lengths such as the diagonal of a unit square, which rational coordinates alone cannot express.
If in lowest terms, then makes even. Substituting then makes even, contradicting that the integers are coprime. More quantitatively, for every nonzero integer , and factoring the difference of squares gives . To verify the constant, for the other factor is less than four; outside this interval the approximation error is at least .
Every nonempty open real interval contains an irrational number. Choose a rational number strictly inside the interval using density of the rational numbers; then remains inside for sufficiently large positive integers and is irrational. Thus the irrational numbers form a dense subset of the real line. Together with rational density, this gives approaching sequences of both types at every real point, useful for testing continuity of functions defined differently on the two sets.
Articles by others on the same topic
An irrational number is a type of real number that cannot be expressed as a simple fraction or ratio of two integers. This means that if a number is irrational, it cannot be written in the form \( \frac{p}{q} \), where \( p \) and \( q \) are integers and \( q \neq 0 \). Irrational numbers have non-repeating, non-terminating decimal expansions. This means their decimal representations go on forever without repeating a pattern.