# Constructible number

In geometry and algebra, a real number $r$ is constructible if and only if, given a line segment of unit length, a line segment of length $|r|$ can be constructed with compass and straightedge in a finite number of steps. Equivalently, $r$ is constructible if and only if there is a closed-form expression for $r$ using only integers and the operations for addition, subtraction, multiplication, division, and square roots.
The geometric definition of constructible numbers motivates a corresponding definition of constructible points, which can again be described either geometrically or algebraically. A point is constructible if it can be produced as one of the points of a compass and straightedge construction (an endpoint of a line segment or crossing point of two lines or circles), starting from a given unit length segment. Alternatively and equivalently, taking the two endpoints of the given segment to be the points (0, 0) and (1, 0) of a Cartesian coordinate system, a point is constructible if and only if its Cartesian coordinates are both constructible numbers. Constructible numbers and points have also been called ruler and compass numbers and ruler and compass points, to distinguish them from numbers and points that may be constructed using other processes.
The set of constructible numbers forms a field: applying any of the four basic arithmetic operations to members of this set produces another constructible number. This field is a field extension of the rational numbers and in turn is contained in the field of algebraic numbers. It is the Euclidean closure of the rational numbers, the smallest field extension of the rationals that includes the square roots of all of its positive numbers.
The proof of the equivalence between the algebraic and geometric definitions of constructible numbers has the effect of transforming geometric questions about compass and straightedge constructions into algebra, including several famous problems from ancient Greek mathematics. The algebraic formulation of these questions led to proofs that their solutions are not constructible, after the geometric formulation of the same problems previously defied centuries of attack.

## Geometric definitions
### Geometrically constructible points

Let $O$ and $A$ be two given distinct points in the Euclidean plane, and define $S$ to be the set of points that can be constructed with compass and straightedge starting with $O$ and $A$. Then the points of $S$ are called constructible points. $O$ and $A$ are, by definition, elements of $S$. To more precisely describe the remaining elements of $S$, make the following two definitions:
* a line segment whose endpoints are in $S$ is called a constructed segment, and
* a circle whose center is in $S$ and which passes through a point of $S$ (alternatively, whose radius is the distance between some pair of distinct points of $S$) is called a constructed circle.
Then, the points of $S$, besides $O$ and $A$ are:
* the intersection of two non-parallel constructed segments, or lines through constructed segments,
* the intersection points of a constructed circle and a constructed segment, or line through a constructed segment, or
* the intersection points of two distinct constructed circles.
As an example, the midpoint of constructed segment $OA$ is a constructible point. One construction for it is to construct two circles with $OA$ as radius, and the line through the two crossing points of these two circles. Then the midpoint of segment $OA$ is the point where this segment is crossed by the constructed line.

### Geometrically constructible numbers

The starting information for the geometric formulation can be used to define a Cartesian coordinate system in which the point $O$ is associated to the origin having coordinates $(0,0)$ and in which the point $A$ is associated with the coordinates $(1,0)$. The points of $S$ may now be used to link the geometry and algebra by defining a constructible number to be a coordinate of a constructible point.
Equivalent definitions are that a constructible number is the $x$-coordinate of a constructible point $(x,0)$ or the length of a constructible line segment. In one direction of this equivalence, if a constructible point has coordinates $(x,y)$, then the point $(x,0)$ can be constructed as its perpendicular projection onto the $x$-axis, and the segment from the origin to this point has length $x$. In the reverse direction, if $x$ is the length of a constructible line segment, then intersecting the $x$-axis with a circle centered at $O$ with radius $x$ gives the point $(x,0)$. It follows from this equivalence that every point whose Cartesian coordinates are geometrically constructible numbers is itself a geometrically constructible point. For, when $x$ and $y$ are geometrically constructible numbers, point $(x,y)$ can be constructed as the intersection of lines through $(x,0)$ and $(0,y)$, perpendicular to the coordinate axes.

## Algebraic definitions
### Algebraically constructible numbers

The algebraically constructible real numbers are the subset of the real numbers that can be described by formulas that combine integers using the operations of addition, subtraction, multiplication, multiplicative inverse, and square roots of positive numbers. Even more simply, at the expense of making these formulas longer, the integers in these formulas can be restricted to be only 0 and 1. For instance, the square root of 2 is constructible, because it can be described by the formulas ${\sqrt {2}}$ or ${\sqrt {1+1}}$.
Analogously, the algebraically constructible complex numbers are the subset of complex numbers that have formulas of the same type, using a more general version of the square root that is not restricted to positive numbers but can instead take arbitrary complex numbers as its argument, and produces the principal square root of its argument. Alternatively, the same system of complex numbers may be defined as the complex numbers whose real and imaginary parts are both constructible real numbers. For instance, the complex number $i$ has the formulas ${\sqrt {-1}}$ or ${\sqrt {0-1}}$, and its real and imaginary parts are the constructible numbers 0 and 1 respectively.
These two definitions of the constructible complex numbers are equivalent. In one direction, if $q=x+iy$ is a complex number whose real part $x$ and imaginary part $y$ are both constructible real numbers, then replacing $x$ and $y$ by their formulas within the larger formula $x+y{\sqrt {-1}}$ produces a formula for $q$ as a complex number. In the other direction, any formula for an algebraically constructible complex number can be transformed into formulas for its real and imaginary parts, by recursively expanding each operation in the formula into operations on the real and imaginary parts of its arguments, using the expansions
* $(a+ib)\pm (c+id)=(a\pm c)+i(b\pm d)$
* $(a+ib)(c+id)=(ac-bd)+i(ad+bc)$
* ${\frac {1}{a+ib}}={\frac {a}{a^{2}+b^{2}}}+i{\frac {-b}{a^{2}+b^{2}}}$
* ${\sqrt {a+ib}}={\frac {(a+r){\sqrt {r}}}{s}}+i{\frac {b{\sqrt {r}}}{s}}$, where $r={\sqrt {a^{2}+b^{2}_{\!}}}$ and $s={\sqrt {(a+r)^{2}+b^{2}}}$.

### Algebraically constructible points

The algebraically constructible points may be defined as the points whose two real Cartesian coordinates are both algebraically constructible real numbers. Alternatively, they may be defined as the points in the complex plane given by algebraically constructible complex numbers. By the equivalence between the two definitions for algebraically constructible complex numbers, these two definitions of algebraically constructible points are also equivalent.

## Equivalence of algebraic and geometric definitions

If $a$ and $b$ are the non-zero lengths of geometrically constructed segments then elementary compass and straightedge constructions can be used to obtain constructed segments of lengths $a+b$, $|a-b|$, $ab$, and $a/b$. The latter two can be done with a construction based on the intercept theorem. A slightly less elementary construction using these tools is based on the geometric mean theorem and will construct a segment of length ${\sqrt {a}}$ from a constructed segment of length $a$. It follows that every algebraically constructible number is geometrically constructible, by using these techniques to translate a formula for the number into a construction for the number.
$ab$
${\frac {a}{b}}$
${\sqrt {p}}$
In the other direction, a set of geometric objects may be specified by algebraically constructible real numbers: coordinates for points, slope and $y$-intercept for lines, and center and radius for circles. It is possible (but tedious) to develop formulas in terms of these values, using only arithmetic and square roots, for each additional object that might be added in a single step of a compass-and-straightedge construction. It follows from these formulas that every geometrically constructible number is algebraically constructible.

## Algebraic properties

The definition of algebraically constructible numbers includes the sum, difference, product, and multiplicative inverse of any of these numbers, the same operations that define a field in abstract algebra. Thus, the constructible numbers (defined in any of the above ways) form a field. More specifically, the constructible real numbers form a Euclidean field, an ordered field containing a square root of each of its positive elements. Examining the properties of this field and its subfields leads to necessary conditions on a number to be constructible, that can be used to show that specific numbers arising in classical geometric construction problems are not constructible.
It is convenient to consider, in place of the whole field of constructible numbers, the subfield $\mathbb {Q} (\gamma )$ generated by any given constructible number $\gamma$, and to use the algebraic construction of $\gamma$ to decompose this field. If $\gamma$ is a constructible real number, then the values occurring within a formula constructing it can be used to produce a finite sequence of real numbers $\alpha _{1},\dots ,\alpha _{n}=\gamma$ such that, for each $i$, $\mathbb {Q} (\alpha _{1},\dots ,\alpha _{i})$ is an extension of $\mathbb {Q} (\alpha _{1},\dots ,\alpha _{i-1})$ of degree 2. Using slightly different terminology, a real number is constructible if and only if it lies in a field at the top of a finite tower of real quadratic extensions, $\mathbb {Q} =K_{0}\subseteq K_{1}\subseteq \dots \subseteq K_{n},$ starting with the rational field $\mathbb {Q}$ where $\gamma$ is in $K_{n}$ and for all $0<j\leq n$, $[K_{j}:K_{j-1}]=2$. It follows from this decomposition that the degree of the field extension $[\mathbb {Q} (\gamma ):\mathbb {Q} ]$ is $2^{r}$, where $r$ counts the number of quadratic extension steps.
Analogously to the real case, a complex number is constructible if and only if it lies in a field at the top of a finite tower of complex quadratic extensions. More precisely, $\gamma$ is constructible if and only if there exists a tower of fields $\mathbb {Q} =F_{0}\subseteq F_{1}\subseteq \dots \subseteq F_{n},$ where $\gamma$ is in $F_{n}$, and for all $0<j\leq n$, $[F_{j}:F_{j-1}]=2$. The difference between this characterization and that of the real constructible numbers is only that the fields in this tower are not restricted to being real. Consequently, if a complex number a complex number $\gamma$ is constructible, then the above characterization implies that $[\mathbb {Q} (\gamma ):\mathbb {Q} ]$ is a power of two. However, this condition is not sufficient - there exist field extensions whose degree is a power of two, but which cannot be factored into a sequence of quadratic extensions.
To obtain a sufficient condition for constructibility, one must instead consider the splitting field $K=\mathbb {Q} (\gamma ,\gamma ',\gamma '',\dots )$ obtained by adjoining all roots of the minimal polynomial of $\gamma$. If the degree of this extension is a power of two, then its Galois group $G=\mathrm {Gal} (K/\mathbb {Q} )$ is a 2-group, and thus admits a descending sequence of subgroups $G=G_{n}\supseteq G_{n-1}\supseteq \cdots \supseteq G_{0}=1,$ with $|G_{k}|=2^{k}$ for $0\leq k\leq n.$ By the fundamental theorem of Galois theory, there is a corresponding tower of quadratic extensions $\mathbb {Q} =F_{0}\subseteq F_{1}\subseteq \dots \subseteq F_{n}=K,$ whose topmost field contains $\gamma ,$ and from this it follows that $\gamma$ is constructible.
The fields that can be generated from towers of quadratic extensions of $\mathbb {Q}$ are called iterated quadratic extensions of $\mathbb {Q}$. The fields of real and complex constructible numbers are the unions of all real or complex iterated quadratic extensions of $\mathbb {Q}$.

## Trigonometric numbers

Trigonometric numbers are the cosines or sines of angles that are rational multiples of $\pi$. These numbers are always algebraic, but they may not be constructible. The cosine or sine of the angle $2\pi /n$ is constructible only for certain special numbers $n$:
* The powers of two
* The Fermat primes, prime numbers that are one plus a power of two
* The products of powers of two and any number of distinct Fermat primes.
Thus, for example, $\cos(\pi /15)$ is constructible because 15 is the product of the Fermat primes 3 and 5; but $\cos(\pi /9)$ is not constructible (not being the product of distinct Fermat primes) and neither is $\cos(\pi /7)$ (being a non-Fermat prime).

## Impossible constructions

The ancient Greeks thought that certain problems of straightedge and compass construction they could not solve were simply obstinate, not unsolvable. However, the non-constructibility of certain numbers proves that these constructions are logically impossible to perform. (The problems themselves, however, are solvable using methods that go beyond the constraint of working only with straightedge and compass, and the Greeks knew how to solve them in this way. One such example is Archimedes' Neusis construction solution of the problem of Angle trisection.)
In particular, the algebraic formulation of constructible numbers leads to a proof of the impossibility of the following construction problems:

### Doubling the cube

    The problem of doubling the unit square is solved by the construction of another square on the diagonal of the first one, with side length ${\sqrt {2}}$ and area $2$. Analogously, the problem of doubling the cube asks for the construction of the length ${\sqrt[{3}]{2}}$ of the side of a cube with volume $2$. It is not constructible, because the minimal polynomial of this length, $x^{3}-2$, has degree 3 over $\mathbb {Q}$. As a cubic polynomial whose only real root is irrational, this polynomial must be irreducible, because if it had a quadratic real root then the quadratic conjugate would provide a second real root.

### Angle trisection

    In this problem, from a given angle $\theta$, one should construct an angle $\theta /3$. Algebraically, angles can be represented by their trigonometric functions, such as their sines or cosines, which give the Cartesian coordinates of the endpoint of a line segment forming the given angle with the initial segment. Thus, an angle $\theta$ is constructible when $x=\cos \theta$ is a constructible number, and the problem of trisecting the angle can be formulated as one of constructing $\cos({\tfrac {1}{3}}\arccos x)$. For example, the angle $\theta =\pi /3=60^{\circ }$ of an equilateral triangle can be constructed by compass and straightedge, with $x=\cos \theta ={\tfrac {1}{2}}$. However, its trisection $\theta /3=\pi /9=20^{\circ }$ cannot be constructed, because $\cos \pi /9$ has minimal polynomial $8x^{3}-6x-1$ of degree 3 over $\mathbb {Q}$. Because this specific instance of the trisection problem cannot be solved by compass and straightedge, the general problem also cannot be solved.

### Squaring the circle

    A square with area $\pi$, the same area as a unit circle, would have side length ${\sqrt {\pi }}$, a transcendental number. Therefore, this square and its side length are not constructible, because it is not algebraic over $\mathbb {Q}$.

### Regular polygons

    If a regular $n$-gon is constructed with its center at the origin, the angles between the segments from the center to consecutive vertices are $2\pi /n$. The polygon can be constructed only when the cosine of this angle is a trigonometric number. Thus, for instance, a 15-gon is constructible, but the regular heptagon is not constructible, because 7 is prime but not a Fermat prime. For a more direct proof of its non-constructibility, represent the vertices of a regular heptagon as the complex roots of the polynomial $x^{7}-1$. Removing the factor $x-1$, dividing by $x^{3}$, and substituting $y=x+1/x$ gives the simpler polynomial $y^{3}+y^{2}-2y-1$, an irreducible cubic with three real roots, each two times the real part of a complex-number vertex. Its roots are not constructible, so the heptagon is also not constructible.

### Alhazen's problem

    If two points and a circular mirror are given, where on the circle does one of the given points see the reflected image of the other? Geometrically, the lines from each given point to the point of reflection meet the circle at equal angles and in equal-length chords. However, it is impossible to construct a point of reflection using a compass and straightedge. In particular, for a unit circle with the two points $({\tfrac {1}{6}},{\tfrac {1}{6}})$ and $(-{\tfrac {1}{2}},{\tfrac {1}{2}})$ inside it, the solution has coordinates forming roots of an irreducible degree-four polynomial $x^{4}-2x^{3}+4x^{2}+2x-1$. Although its degree is a power of two, the splitting field of this polynomial has degree divisible by three, so it does not come from an iterated quadratic extension and Alhazen's problem has no compass and straightedge solution.

## History

The birth of the concept of constructible numbers is inextricably linked with the history of the three impossible compass and straightedge constructions: doubling the cube, trisecting an angle, and squaring the circle. The restriction of using only compass and straightedge in geometric constructions is often credited to Plato due to a passage in Plutarch. According to Plutarch, Plato gave the duplication of the cube (Delian) problem to Eudoxus and Archytas and Menaechmus, who solved the problem using mechanical means, earning a rebuke from Plato for not solving the problem using pure geometry. However, this attribution is challenged, due, in part, to the existence of another version of the story (attributed to Eratosthenes by Eutocius of Ascalon) that says that all three found solutions but they were too abstract to be of practical value. Proclus, citing Eudemus of Rhodes, credited Oenopides (c. 450 BCE) with two ruler and compass constructions, leading some authors to hypothesize that Oenopides originated the restriction. The restriction to compass and straightedge is essential to the impossibility of the classic construction problems. Angle trisection, for instance, can be done in many ways, several known to the ancient Greeks. The Quadratrix of Hippias of Elis, the conics of Menaechmus, or the marked straightedge (neusis) construction of Archimedes have all been used, as has a more modern approach via paper folding.
Although not one of the classic three construction problems, the problem of constructing regular polygons with straightedge and compass is often treated alongside them. The Greeks knew how to construct regular $n$-gons with $n=2^{h}$ (for any integer $h\geq 2$), 3, 5, or the product of any two or three of these numbers, but other regular $n$-gons eluded them. In 1796 Carl Friedrich Gauss, then an eighteen-year-old student, announced in a newspaper that he had constructed a regular 17-gon with straightedge and compass. Gauss's treatment was algebraic rather than geometric; in fact, he did not actually construct the polygon, but rather showed that the cosine of a central angle was a constructible number. The argument was generalized in his 1801 book Disquisitiones Arithmeticae giving the sufficient condition for the construction of a regular $n$-gon. Gauss claimed, but did not prove, that the condition was also necessary and several authors, notably Felix Klein, attributed this part of the proof to him as well. Alhazen's problem is also not one of the classic three problems, but despite being named after Ibn al-Haytham (Alhazen), a medieval Islamic mathematician, it already appears in Ptolemy's work on optics from the second century.
Pierre Wantzel proved algebraically that the problems of doubling the cube and trisecting the angle are impossible to solve using only compass and straightedge. In the same paper he also solved the problem of determining which regular polygons are constructible: a regular polygon is constructible if and only if the number of its sides is the product of a power of two and any number of distinct Fermat primes (i.e., the sufficient conditions given by Gauss are also necessary). An attempted proof of the impossibility of squaring the circle was given by James Gregory in Vera Circuli et Hyperbolae Quadratura (The True Squaring of the Circle and of the Hyperbola) in 1667. Although his proof was faulty, it was the first paper to attempt to solve the problem using algebraic properties of π. It was not until 1882 that Ferdinand von Lindemann rigorously proved its impossibility, by extending the work of Charles Hermite and proving that π is a transcendental number. Alhazen's problem was not proved impossible to solve by compass and straightedge until the work of Jack Elkin.
The study of constructible numbers, per se, was initiated by René Descartes in La Géométrie, an appendix to his book Discourse on the Method published in 1637. Descartes associated numbers to geometrical line segments in order to display the power of his philosophical method by solving an ancient straightedge and compass construction problem put forth by Pappus.