In mathematics, an algebraic number is a number that is a root of a non-zero polynomial in one variable with integer (or, equivalently, rational) coefficients. For example, the golden ratio (1+5)/2 is an algebraic number, because it is a root of the polynomial x2−x−1, i.e., a solution to the equation x2−x−1=0, and the complex number 1+i is algebraic because it is a root of the polynomial x4+4. Algebraic numbers include all integers, rational numbers, and n-th roots of integers. Algebraic complex numbers are closed under addition, subtraction, multiplication and division, and hence form a field, denoted ℚ‾. The set of algebraic real numbers ℚ‾∩ℝ is also a field. Numbers which are not algebraic are called transcendental and include π and e. There are countably infinite algebraic numbers, hence almost all real (or complex) numbers (in the sense of Lebesgue measure) are transcendental.
Examples All rational numbers are algebraic. Any rational number, expressed as the quotient of an integer a and a (non-zero) natural number b, satisfies the above definition, because x = a/b is the root of a non-zero polynomial, namely bx − a. Quadratic irrational numbers, irrational solutions of a quadratic polynomial ax2 + bx + c with integer coefficients a, b, and c, are algebraic numbers. If the quadratic polynomial is monic (a = 1), the roots are further qualified as quadratic integers. Gaussian integers, complex numbers a + bi for which both a and b are integers, are also quadratic integers. This is because a + bi and a − bi are the two roots of the quadratic x2 − 2ax + a2 + b2. A constructible number can be constructed from a given unit length using a straightedge and compass. It includes all quadratic irrational roots, all rational numbers, and all numbers that can be formed from these using the basic arithmetic operations and the extraction of square roots. (By designating cardinal directions for +1, −1, +i, and −i, complex numbers such as 3+i2 are considered constructible.) Any expression formed from algebraic numbers using any finite combination of the basic arithmetic operations and extraction of nth roots gives another algebraic number. Polynomial roots that cannot be expressed in terms of the basic arithmetic operations and extraction of nth roots (such as the roots of x5 − x + 1). That happens with many but not all polynomials of degree 5 or higher. Values of trigonometric functions of rational multiples of π (except when undefined): for example, cos π/7, cos 3π/7, and cos 5π/7 satisfy 8x3 − 4x2 − 4x + 1 = 0. This polynomial is irreducible over the rationals and so the three cosines are conjugate algebraic numbers. Likewise, tan 3π/16, tan 7π/16, tan 11π/16, and tan 15π/16 satisfy the irreducible polynomial x4 − 4x3 − 6x2 + 4x + 1 = 0, and so are conjugate algebraic integers. This is the equivalent of angles which, when measured in degrees, have rational numbers. Some but not all irrational numbers are algebraic: The numbers 2 and 332 are algebraic since they are roots of polynomials x2 − 2 and 8x3 − 3, respectively. The golden ratio φ is algebraic since it is a root of the polynomial x2 − x − 1. The numbers π and e are not algebraic numbers (see the Lindemann–Weierstrass theorem).
Properties
If a polynomial with rational coefficients is multiplied through by the least common denominator, the resulting polynomial with integer coefficients has the same roots. This shows that an algebraic number can be equivalently defined as a root of a polynomial with either integer or rational coefficients. Given an algebraic number, there is a unique monic polynomial with rational coefficients of least degree that has the number as a root. This polynomial is called its minimal polynomial. If its minimal polynomial has degree n, then the algebraic number is said to be of degree n. For example, all rational numbers have degree 1, and an algebraic number of degree 2 is a quadratic irrational. The algebraic numbers are dense in the reals. This follows from the fact they contain the rational numbers, which are dense in the reals themselves. The set of algebraic numbers is countable, and therefore its Lebesgue measure as a subset of the complex numbers is 0 (essentially, the algebraic numbers take up no space in the complex numbers). That is to say, "almost all" real and complex numbers are transcendental. All algebraic numbers are computable and therefore definable and arithmetical. For real numbers a and b, the complex number a + bi is algebraic if and only if both a and b are algebraic.
Degree of simple extensions of the rationals as a criterion to algebraicity For any α, the simple extension of the rationals by α, denoted by ℚ(α) (whose elements are the f(α) for f a rational function with rational coefficients which is defined at α), is of finite degree if and only if α is an algebraic number. The condition of finite degree means that there is a fixed set of numbers {ai} of finite cardinality k with elements in ℚ(α) such that ℚ(α)=∑i=1kaiℚ; that is, each element of ℚ(α) can be written as a sum ∑i=1kaiqi for some rational coefficients {qi}. Since the ai are themselves members of ℚ(α), each can be expressed as sums of products of rational numbers and powers of α, and therefore this condition is equivalent to the requirement that for some finite n, ℚ(α)={∑i=−nnαiqi|qi∈ℚ}. The latter condition is equivalent to αn+1, itself a member of ℚ(α), being expressible as ∑i=−nnαiqi for some rationals {qi}, so α2n+1=∑i=02nαiqi−n or, equivalently, α is a root of x2n+1−∑i=02nxiqi−n; that is, an algebraic number with a minimal polynomial of degree not larger than 2n+1. It can similarly be proven that for any finite set of algebraic numbers α1, α2... αn, the field extension ℚ(α1,α2,...αn) has a finite degree.
Field
The sum, difference, product, and quotient (if the denominator is nonzero) of two algebraic numbers is again algebraic: For any two algebraic numbers α, β, this follows directly from the fact that the simple extension ℚ(γ), for γ being either α+β, α−β, αβ or (for β≠0) α/β, is a linear subspace of the finite-degree field extension ℚ(α,β), and therefore has a finite degree itself, from which it follows (as shown above) that γ is algebraic. An alternative way of showing this is constructively, by using the resultant. Algebraic numbers thus form a field ℚ‾ (sometimes denoted by 𝔸, but that usually denotes the adele ring).
… excerpt ends here. Continue reading the full article.



![Algebraic number: Algebraic numbers colored by degree (blue = 4, cyan = 3, red = 2, green = 1). The unit circle is black.[further explanation needed]](https://thumb.wikimedia.org/wikipedia/commons/thumb/5/51/Algebraic_number_in_the_complex_plane.png/500px-Algebraic_number_in_the_complex_plane.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)
