Real Algebraic Geometry
Fourteen ideas from the algorithmic side of real algebraic geometry: how to count, isolate and compare real roots exactly, how polynomials cut space into cells, and how that decides statements with quantifiers. Edit polynomials, drag roots and parameters, step through algorithms, then check yourself with concept questions and practice problems.
Follows the chapter order of S. Basu, R. Pollack and M.-F. Roy, Algorithms in Real Algebraic Geometry, 2nd ed. (Springer, Algorithms and Computation in Mathematics 10, 2006). The modules cover Chapters 1–14; the roadmap algorithms of Chapters 15–16 are not covered. Chapter numbers refer to that book; the questions and examples here are written for this page.
Remainders and elimination over ℂ
Do two polynomials have a common complex root? You can answer without finding a single root: divide, keep the remainder, and repeat. When the coefficients depend on parameters, the same computation describes the set of parameters for which a solution exists, and that is the whole idea behind elimination over .
The idea
Every common root of and is a root of , and conversely, so the common roots never change along the sequence. Only the degrees drop.
The proof runs the remainder sequence with coefficients that are polynomials in the parameters, branching on whether each leading coefficient vanishes. There are finitely many branches, and each is described by equations and inequations in the parameters.
Explore
Worked example
For which complex numbers do and have a common root? (This is the last example in the explorer.)
Do the first division. What is ?
Both are monic of degree 2, so the quotient is and .
The next step depends on . What happens when ?
Then , so the gcd is . In fact : two common roots, the primitive cube roots of unity.
Now take . Divide by .
is a nonzero multiple of , and the remainder of on division by a multiple of is the constant . So .
Finish: describe the set of with a common root, as a formula without .
If and , is a nonzero constant and the gcd is . If , the gcd is and the common root is (check: and ). So
The projection of the curve to the -line is the finite set : constructible, as the theorem promises. The branches of the computation (, , the rest) are exactly the cases in the answer.
Check your understanding
Two real polynomials have . What can you conclude?
- They have exactly two common roots in , namely , and no common real root.
- They have a common real root.The common roots are the roots of the gcd, and has no real roots.
- They have no common root at all, since the gcd has no real root.Over the gcd's roots are common roots of and : divisibility doesn't care which field you look for roots in.
Which of these subsets of is constructible?
- A constructible subset of is finite or has finite complement. is infinite and so is its complement.
- The unit circle is not a polynomial in . The circle is infinite with infinite complement, so it can't be constructible.
Over , the formula with parameter is equivalent to which quantifier-free formula?
- There is no order on to write this with. That is the answer over .
- has the solution .
- , that is, "true" for every
Practice
Counting distinct rootsgcd with the derivative
Let . Compute and deduce the number of distinct complex roots of . Then find them.
Hint
Run the remainder sequence of and , or type both into the explorer. A root of multiplicity of is a root of multiplicity of the gcd.
Solution
, so has distinct roots and is a root of multiplicity 3. Dividing, : the roots are (triple) and .
Eliminating a variableA parameter in one polynomial
For which do and have a common root? Answer with the remainder sequence, then check directly.
Hint
.
Solution
The sequence is (the last is the value of at ). So there is a common root iff . Directly: a common root is , and gives .
More practice: Basu–Pollack–Roy, Exercises 1.2 and 1.9.
Descartes' law of signs
The signs of the coefficients already bound the number of positive roots. Build a polynomial from its roots, watch the signs of its coefficients, and see why the overcount is always even.
The idea
The parity part is easy to see when : is odd exactly when and have opposite signs, which is exactly when and have opposite signs, which is exactly when has an odd number of positive roots.
Explore
Worked example
How many positive and negative roots does have?
What does Descartes' law say about positive roots?
The coefficients are , with signs after deleting the zero: . So has 2 or 0 positive roots.
Apply it to for the negative roots.
has signs : one variation, so exactly one negative root. (One variation can't overcount: the excess would have to be even and nonnegative, and is odd.)
Find the negative root and settle the positive ones.
, and . The quadratic has discriminant , so its roots are not real. has no positive roots: here Descartes overcounts by 2.
Where do the two "phantom" sign changes come from?
From the factor , whose coefficients already have two variations. Its roots have positive real part, close to the positive axis. Make "A complex pair" in the explorer and drag the pair well into the left half-plane: the phantom variations disappear (close to the imaginary axis they can persist).
Check your understanding
A polynomial of degree 4 has coefficient signs (leading first, none zero). How many positive roots can it have?
- Exactly 3Descartes gives an upper bound and a parity. It is exact only when all roots are real.
- 3 or 1
- 0, 1, 2 or 3The overcount is even, so the parity is fixed.
How many real roots does have?
- 0An odd-degree real polynomial always has a real root.
- 1
- 5Count the variations of and of .
- 3There are no positive roots and exactly one negative one.
has degree 6, all its roots are real, , and . How many negative roots does it have?
- Exactly 2
- 2 or 0With all roots real Descartes is exact: there are exactly 4 positive roots.
- Not enough informationYou know the degree, that 0 is not a root, and the exact number of positive roots.
Practice
One real rootDescartes plus a little calculus
Show that has exactly one real root, and that it is negative.
Hint
Descartes leaves two possibilities for the positive roots. Rule out 2 by finding the minimum of the polynomial on .
Solution
and : one negative root, and 0 or 2 positive ones. On , vanishes only at , where . So on , and the only real root is the negative one.
Budan–Fourier on intervalsCounting in (0, 1] and (1, 2]
For , use Budan–Fourier at to show that has exactly one root in and exactly one in .
Hint
. A count of 1 is exact, because the excess is even.
Solution
At 0: , signs , two variations. At 1: , signs , one variation. At 2: , no variation. So the bound for is and for it is . Each bound is exact: the true count is the bound minus an even number, and it can't be negative, so from 1 it must be 1. (The roots are about 0.347 and 1.532.)
More practice: Basu–Pollack–Roy, Exercise 2.12.
Sturm sequences
Descartes gives a bound. Sturm's theorem gives the exact number of real roots in any interval: evaluate a short sequence of polynomials at the two endpoints and count sign changes. Drag the endpoints and watch the count follow the roots.
The idea
Why: can only change where some vanishes. If with , then , so the triple has one sign change on both sides of . If , then and have opposite signs just left of a simple root and equal signs just right of it: one change is lost. A multiple root is handled by noticing that every is divisible by , the last term.
the number of roots of where minus those where . Tarski queries for determine how many roots have each sign of . That is the engine of the projection theorem for semi-algebraic sets later in Chapter 2.
Explore
Worked example
Locate the real roots of using its Sturm sequence.
Compute the Sturm sequence.
. Dividing, , so . Then the remainder of by is its value at , namely , so .
How many real roots are there?
At the signs are : three changes. At : , none. So has real roots.
How many lie in ?
At 0: , signs , two changes. At 1: , signs after dropping the zero, one change. Exactly root in .
Place the other two.
At 2: , no change, so one root in . At : , three changes, so one root in . The roots are about , , : pick the first example in the explorer to check.
Check your understanding
passes a root of for some , and . Why does not change?
- Because does not change sign at .It may well change sign. What matters is its two neighbours.
- Because , so whatever the sign of , the three of them have exactly one sign change near .
- Because the theorem only counts roots of .That is what has to be proved: sign changes elsewhere must not disturb the count.
The Sturm sequence of is . What is ?
- 0
- 2At the signs are , only one change.
- 1At the signs are , which also has one change.
and . What is the Tarski query ?
- 3That's , the number of real roots.
- 2The root contributes , and contributes .
- 0
Practice
A Sturm sequence by handDegree 4
Compute the Sturm sequence of and use it to count the real roots.
Hint
.
Solution
The sequence is . Signs at : , three changes. At : , one change. So there are 2 real roots, .
Signs of Q at the roots of PThree Tarski queries
Let be the numbers of real roots of at which is positive, negative, zero. Express , , in terms of them and solve, given that these queries are .
Hint
Each root contributes , or to the sums.
Solution
, , . So , , , matching the roots . The matrix of this linear system is invertible, which is why sign determination works for any number of polynomials (by taking tensor powers of it).
More practice: Basu–Pollack–Roy, Exercise 2.13.
Infinitesimals and Puiseux series
Many algorithms in this subject perturb a problem by an infinitely small to make it generic. The roots of the perturbed polynomial are Puiseux series in , and a picture called the Newton polygon reads off how big each root is.
The idea
An element is bounded over when it has no negative exponents. Then its constant term is its limit . This is how algorithms come back from a perturbed problem to the original one.
Reason: substitute . The terms on the edge all have the same, lowest, power of , so they must cancel among themselves.
Explore
Worked example
Find the orders and leading terms of the roots of , and decide which roots lie in the real closed field .
Plot the Newton points and find the lower hull.
The terms give the points , , . The lower hull runs , with slopes and . (The slopes increase, so the hull is convex there.)
What does each edge predict?
Edge –: width 2, so two roots of order . Edge –: width 1, one root of order .
Solve the edge equations.
First edge: the terms and give , so . Second edge: and give , nonzero root .
Which roots are real Puiseux series? Are they infinitesimal?
Only : the other two are complex conjugates. is positive and infinitesimal, with . Numerically at the roots are about and , and .
Check your understanding
In , which is larger: or ?
- Compare leading terms: a smaller exponent beats any constant factor.
- It depends on the value of . is not a number to plug in; the order is decided by the leading term of the difference.
Which of these elements is bounded over , and what is its limit?
- It is larger than every real number.
- , with limit 2
- A negative exponent makes it unbounded.
What are the orders of the two roots of ?
- and
- and The second edge goes up from to : positive slope, so the exponent is negative and the root is large.
- Both of order The polygon has two edges with different slopes.
Practice
Two terms of each rootBeyond the leading term
Find the first two nonzero terms of both roots of . Which is positive?
Hint
The quadratic formula works in a real closed field. Expand .
Solution
. The Newton polygon has one edge – (the point lies above it), predicting . The root is positive and the other negative; both are infinitesimal.
Signs and sizesWorking in the ordered field
Decide the sign of and of , and say whether each is infinitesimal, bounded but not infinitesimal, or unbounded.
Solution
: negative and infinitesimal, whatever the size of . The fraction equals : positive and unbounded.
More practice: Basu–Pollack–Roy, Exercises 2.4 and 2.19.
Discriminants and Hermite's form
Whether a cubic has one real root or three is decided by the sign of a single polynomial in its coefficients. Hermite's quadratic form goes further, in every degree: its rank counts the distinct complex roots and its signature the distinct real ones. Drag the cubic across its discriminant curve and watch two real roots collide and leave the real line.
The idea
For real with distinct roots, each pair of conjugate roots contributes , and all the other factors pair up into positive numbers. So .
The are rational functions of the coefficients (Newton's identities), so the matrix is computable without the roots.
Each distinct real root contributes the square of a real linear form. A conjugate pair contributes : one positive and one negative square. The forms for distinct roots are independent (a Vandermonde argument).
Explore
Worked example
Write down Hermite's form for and check the theorem in every case.
Compute .
(the degree), , and .
Write the matrix and its determinant.
Find the signature when and when .
The top-left entry is . If , both eigenvalues are positive: signature 2, two real roots. If , the eigenvalues have opposite signs: signature 0, rank 2, two complex roots.
And when ?
and the entry 2 is nonzero, so the rank is 1 and the signature 1: one distinct root, and it is real (the double root ).
Check your understanding
A real cubic has . What are its roots like?
- One real root and a pair of complex conjugate roots.
- Three real roots, one of them double.A multiple root makes the discriminant 0, not negative.
- No real roots.An odd-degree real polynomial always has a real root.
has degree 4 and roots . What are the rank and signature of ?
- Rank 4, signature 2Both numbers count distinct roots: multiplicity doesn't add anything.
- Rank 3, signature 1
- Rank 3, signature 2The double root is one distinct real root.
A real polynomial of degree 4 with distinct roots has . What can you conclude?
- All four roots are real.Two conjugate pairs also give .
- It has either 4 or 0 real roots.
- It has exactly 2 real roots.That is one conjugate pair, which makes the discriminant negative.
Practice
The discriminant as a resultantA 3 × 3 Sylvester determinant
For , compute as the determinant of the Sylvester matrix and compare with .
Hint
The rows are the coefficients of (once, since ) and of (twice, shifted).
Solution
With , , the familiar discriminant.
Hermite's form of x⁴ − 1A 4 × 4 Hankel matrix
Compute the Newton sums of , write , and find its rank and signature.
Solution
The roots are , so if and otherwise: , the rest 0. The matrix has at positions , , , . Its eigenvalues are : rank 4 (four distinct roots), signature 2 (two real roots).
More practice: Basu–Pollack–Roy, Exercise 4.1.
Cylindrical decomposition
Any finite family of polynomials cuts into finitely many cells on which each polynomial has constant sign, stacked in cylinders over a decomposition of . In the plane you can watch the whole construction: project to find the critical values, cut the line, lift.
The idea
In the plane, with : over an interval of avoiding the real roots of the following, the real roots in move continuously and keep their number and order:
- the leading coefficients in (a root escapes to infinity),
- the discriminants in (two roots of the same polynomial meet),
- the resultant of and in (a root of meets a root of ).
In higher degree the projection uses all the subresultant coefficients, which also detect, say, when two roots become a double root before turning complex. Then one recurses on the polynomials in .
Explore
Worked example
Build a cylindrical decomposition of adapted to , count its cells, and describe the closed disk as a union of cells.
Project: which values of are critical?
The leading coefficient in is 1, with no roots. The discriminant in of is , with roots . So the line is cut into , , , , .
Lift: how many cells lie over each of the five?
Over : no roots in , so one cell (the whole strip). Over : one root , so three cells (a point and two vertical half-lines). Over : two roots , so five cells (three sectors, two arcs). In all .
Which cells make up the closed disk?
The two points , the lower and upper open arcs over , and the sector between them: five cells, on each of which .
A check that comes back in the next module: add up over these cells.
points arcs open disk , the Euler characteristic of a closed disk. For the circle alone (points and arcs) you get .
Check your understanding
Why does the projection of include the resultant of and in ?
- To find the vertical asymptotes.Roots escaping to infinity are detected by the leading coefficients.
- To find where the curve has a vertical tangent or a singular point.Those come from the discriminant of .
- At its roots a root of can meet a root of in the fiber, which changes the order of roots and the sign pattern.
What are the dimension and the number of connected components of ?
- Dimension 2, two components
- Dimension 2, one componentThe point is not connected to the disk.
- It has no well-defined dimension, because it mixes a disk and a point.The dimension is the largest dimension of a cell, here 2.
Over an open interval of the -axis the curves have 3 points above every . How many cells of the decomposition lie above that interval?
- 3Those are the sections; the bands between them are cells too.
- 4Those are the sectors; the curves themselves are cells too.
- 7
Practice
A parabola and a lineCounting cells
Build a decomposition adapted to and . How many cells are there, and what happens to the order of the two roots in each fiber?
Solution
Both are of degree 1 in with constant leading coefficients; the resultant is , so the critical values are . Over the three open intervals there are two roots ( and ), giving 5 cells each; over the roots coincide, giving 3 cells each. Total . For the line is below the parabola, for above it.
Why leading coefficients matterA root running away
For , find the projection, the cells, and explain what goes wrong if you don't cut the -axis at .
Solution
The leading coefficient in is , with root 0 (there is no discriminant for degree 1). Over there is one root : 3 cells over each half-line; over there is none: 1 cell. Total 7. Over all of the number of roots is not constant, because the root escapes to infinity as , so no single stack of cells would work.
Homology and the Euler characteristic
Betti numbers count components, independent loops and cavities. For a space built from triangles they come from linear algebra, and their alternating sum is . Build complexes on the grid and watch the numbers.
The idea
is the number of connected components; the number of independent loops that do not bound; the number of enclosed cavities.
Explore
Worked example
Compute the homology of the boundary of a triangle (vertices , edges ), then of the filled triangle.
Write the matrix of and find its rank.
, , . The three images add to 0, and any two are independent, so the rank is 2.
Deduce and for the boundary.
. (there is no ), spanned by the cycle . It is a circle.
Add the 2-simplex . What changes?
, exactly the cycle. So kills it: . And , so . A disk.
Check Euler–Poincaré both times.
Boundary: . Filled: . Draw both in the explorer (the "Circle" and "Disk" starts give bigger versions of the same thing).
Check your understanding
A connected graph has 7 vertices and 9 edges. What is ?
- 2For a graph , with .
- 3
- 9Edges in a spanning tree don't create loops.
With the additive (Borel–Moore) Euler characteristic, what is of the open interval ?
- 1That's the closed interval. The additive is not a homotopy invariant for sets that aren't closed and bounded.
- 0Use additivity: is two points and the open interval.
The boundary of a tetrahedron is a triangulation of the sphere . What is ?
- 2
- 0Count: 4 vertices, 6 edges, 4 triangles.
- 1That's the disk. The sphere has : the cavity inside.
Practice
The annulus by Mayer–VietorisGluing two contractible pieces
Write the closed annulus as the union of its upper half () and lower half (). Find and .
Solution
and are contractible, so each. is two disjoint segments on the -axis, . So . The annulus is connected, so (and ).
χ from cellsOpen disk, closed disk, circle
Using the 13-cell decomposition of the worked example in the previous module, compute the additive of the open disk, the circle, and the closed disk, and check that the first two add up to the third.
Solution
Open disk: one 2-cell, . Circle: two points and two arcs, . Closed disk: all five, . Indeed . (For the open disk, agrees with .)
More practice: Basu–Pollack–Roy, Exercises 6.1 and 6.3.
Morse theory and Betti number bounds
How complicated can the zero set of a polynomial of degree be? Sweep a line across a curve: the topology of the part already swept changes only at critical points of the sweep. Counting those points bounds the Betti numbers, and Bézout's theorem counts them.
The idea
Consequence: the number of critical points of on . For a curve in the plane: each oval contributes , and has at least two critical points, its leftmost and rightmost.
The proof perturbs the set into a bounded non-singular hypersurface (with infinitesimals from module 4), then counts the critical points, which are the solutions of a system of polynomial equations, with Bézout's theorem. Similar arguments bound the Betti numbers of sets defined by polynomials by : a single exponential in .
Explore
Worked example
For the curve ("Double well"), find the critical points of and compare their number with , for and for .
Write the condition for a critical point of on the curve.
With , the condition is and . So and .
Solve it for .
, both positive, so four points on the -axis.
What is the topology, and is the bound sharp?
Two ovals, one around each well: , so , equal to the number of critical points. Each oval has exactly its leftmost and rightmost point.
Now . And how does this compare with Milnor's bound?
Only is positive: 2 critical points, one oval, . Milnor's bound for degree 4 in the plane is : true but generous. Sweep the line in the explorer and watch the left part change only at the critical points.
Check your understanding
A smooth bounded curve in the plane has 10 critical points for the projection to . At most how many ovals can it have?
- 5
- 10One critical point per oval is impossible: has both a maximum and a minimum on each.
- 20Each oval uses up at least two critical points, not half of one.
You sweep across a smooth curve. Between two consecutive critical values, what can happen to the part with ?
- A new arc can appear at any moment.A new arc starts at a leftmost point of an oval, which is a critical point.
- Nothing topological: it only stretches.
- Two arcs can join into one.Two arcs meet at a rightmost point of an oval, again a critical point.
Which bound on holds for every curve in defined by one polynomial of degree ?
- The "Four wells" curve has degree 4 and at small levels.
- None in terms of alone.The Milnor bound depends only on and the dimension.
Practice
Four wellsCritical points and ovals
For with , find all critical points of on the curve and the Betti numbers of the curve.
Solution
gives . With : , nothing. With : , so : four values of for each, 8 points. The curve is four ovals around : , equal to the count.
Which Betti number changesThe index of a critical point
Sweep across the circle . Describe the part with for , , , and say which Betti number changes at each critical point.
Solution
Empty, then an arc (contractible: ), then the whole circle (). At , a minimum (index 0), a point is born: goes from 0 to 1. At , a maximum (index 1 for a curve), the two ends of the arc are joined by a 1-cell: goes from 0 to 1.
More practice: Basu–Pollack–Roy, Exercises 7.1 and 7.2.
Subresultants and bit size
Counting arithmetic operations is not the whole story. Euclid's algorithm on integer polynomials can produce numbers with exponentially many digits. Subresultants compute the same sequence, up to constant factors, with numbers whose size grows only linearly. Generate random pairs and compare.
The idea
Explore
Worked example
Compute by Bareiss elimination, and compare with Hadamard's bound.
First step, pivot , previous pivot . Compute the new lower-right block.
, , , .
Second step, pivot , previous pivot .
. The division is exact, and is the determinant.
Why are the divisions always exact?
After step , the entry equals the minor of the original matrix on rows and columns (Sylvester's identity). For instance . Minors are integers.
Compare with Hadamard's bound.
Every row has length , so . Indeed , and no intermediate entry can exceed the corresponding bound for its minor.
Check your understanding
Why do pseudo-remainder sequences over blow up?
- Because they introduce denominators.Pseudo-division is designed to avoid denominators: it multiplies by a power of the leading coefficient first.
- Each step multiplies by a power of a leading coefficient, and these factors compound from step to step.
- Because the degrees go up.Degrees go down at every step, in every version of the algorithm.
An integer matrix has entries of bitsize at most . About how big can its determinant be?
- About bits
- About bitsSizes add when you multiply numbers; they don't multiply.
- About bitsExponential growth in bitsize is the pseudo-remainder disease, not a property of determinants.
How are the subresultants of and related to the signed remainder sequence?
- Each signed remainder is a known constant multiple of a subresultant, so the subresultants carry the same information with small coefficients.
- Only the last subresultant, the resultant, is related to the remainders.The structure theorem relates every remainder to a subresultant, not only the last one.
- They have different degrees, so they compute different things.The degrees match: a subresultant proportional to a remainder has the same degree.
Practice
Three sequences for one pairPseudo-remainders and subresultants
For and , compute the pseudo-remainder sequence and the subresultant sequence. (In the Collins–Brown form of the subresultant algorithm, with all degree gaps equal to 1, the first pseudo-remainder is kept and the second is divided by .) Compare the last term with .
Hint
is the remainder of by .
Solution
, then . The subresultant sequence keeps and divides by : it gives . And (). Primitive parts would give and , at the price of gcd computations.
Bounding a resultantHadamard on a Sylvester matrix
and are quadratics with integer coefficients of absolute value at most 10. Bound .
Solution
The Sylvester matrix is and each row contains the three coefficients of or of and a zero, so each row has length at most . Hadamard gives .
More practice: Basu–Pollack–Roy, Exercises 8.1 and 8.2.
Cauchy index and stability
A linear system is stable when every root of its characteristic polynomial has negative real part. You can decide that from the coefficients alone: restricted to the imaginary axis, the question becomes a Cauchy index, a real root counting problem, and the Routh array computes it.
The idea
Explore
Worked example
For which real is stable?
Write the first two rows of the Routh array.
and .
Compute the remaining rows.
Third row: . Fourth row: (when ). First column: .
Read off the condition.
No sign change iff and : stable exactly for . For the column is : two roots with positive real part. For : , one.
What happens at ?
A zero appears in the first column. Indeed , with roots on the imaginary axis: exactly the boundary between stable and unstable.
Check your understanding
A real cubic has coefficients (leading first). Can it be stable?
- No: the coefficients don't all have the same sign.
- Yes, if the Routh array has no sign change.With a negative coefficient that cannot happen; stability forces all coefficients positive.
- You can't tell without computing the roots.The quick necessary condition already settles it.
The first column of a Routh array is . How many roots have positive real part?
- 1Going into the negative entry is one change and coming out of it is another.
- 2
- 3Count the sign changes, not the entries.
For , what is ?
- 3Multiplicity changes the size of the pole of , not the direction of its jump.
- 2
- 1Both roots are poles of with a jump from to .
Practice
Degree twoStability by hand
Show that (real coefficients) is stable iff and , first from the roots and then from the Routh array.
Solution
Roots: their sum is and their product . Two real roots are both negative iff the sum is negative and the product positive. A complex pair has real part , negative iff , and then automatically. Routh: the rows are , , , and the column has no sign change iff .
A quarticPositive coefficients are not enough
How many roots of have positive real part?
Solution
Rows: , , , , . The first column changes sign twice: two roots with positive real part (numerically ), although every coefficient is positive.
More practice: Basu–Pollack–Roy, Exercise 9.3.
Isolating real roots
To compute with a real algebraic number you have to pin it down: an interval with rational endpoints that contains it and no other root. Bisection guided by Descartes' rule does this with exact rational arithmetic only. Step through it.
The idea
So bisection terminates: small intervals far from every root give 0, and small intervals around a single real root give 1. Its cost is governed by how close distinct roots can be, which for integer polynomials is bounded below in terms of the degree and the bitsize.
Explore
Worked example
Isolate the real roots of by the bisection method.
Find a starting interval.
The Cauchy bound is ; round up to a power of 2: .
Test .
. Signs : . Inconclusive, so bisect at 0, which is not a root.
Test and .
On : , signs , . On : , signs , . Each contains exactly one root.
What has been computed, and what would you do to get more digits?
Isolating intervals and . To refine, bisect an isolating interval and keep the half where changes sign: , , so , and so on.
Check your understanding
On some interval the transformed polynomial has . What do you know?
- There are exactly 2 roots in the interval.Descartes gives a bound with even excess, not an exact count.
- There is at least one root in the interval. is allowed: a complex pair near the interval can produce both variations.
- There are 0 or 2 roots there, so the interval must be bisected.
Why does the method work with the square-free part of ?
- Because Descartes' rule is false for polynomials with multiple roots.It holds, counting multiplicities; that's exactly why a double root keeps .
- Because near a multiple root the count never drops to 1, so bisection would never stop.
- Because the square-free part has smaller coefficients.It often does not; the point is termination.
What is the Cauchy bound for ?
- 4
- 7Divide by the leading coefficient first: the ratios are and .
- 3It is 1 plus the largest ratio.
Practice
The golden ratioOne test per root
For , compute on and on .
Solution
On : , : one root, . On : , : one root, .
Naming roots by derivative signsThom encodings
The roots of are about , , . Give the signs of and at each, and check that no two roots get the same pair.
Solution
is positive at and , negative at . is negative at and positive at the other two. Codes: , , , all different. The "A cubic and its derivative" example in module 14 shows this table.
Quantifier elimination
Tarski's theorem: every statement about real numbers built from polynomial equations, inequalities, logical connectives and quantifiers is equivalent to one without quantifiers. Here is the smallest interesting case, a quadratic with two parameters, and four questions about it.
The idea
Explore
Worked example
Eliminate the quantifier in .
What is needed for any real root at all?
. The two roots then have product and sum .
Case .
Then automatically, and the product of the roots is negative: one is positive. The formula holds.
Cases and .
: the roots (if real) have the same sign, the sign of their sum . So we need and . : the roots are and , so we need (and then ).
Combine, and compare with what a decomposition would see.
Only the signs of , and appear: the discriminant, the value at the boundary point , and the coefficient that locates the vertex. Their zero sets cut the -plane into cells on which the answer is constant. Choose the third question in the explorer to see them.
Check your understanding
Over , is equivalent to:
- When the parabola touches 0 but stays , so the boundary belongs.
- That's the condition at only: necessary, not sufficient.
Why does one sample point per cell suffice to decide a formula?
- Because cells are convex.They need not be; the arcs of a circle are cells.
- Because every polynomial in the formula has constant sign on each cell, so the quantifier-free part has a constant truth value there.
- Because the formula is linear in the parameters.Here the answer involves ; nothing is linear.
For a sentence with a single block of existential variables, what do critical point methods gain over cylindrical decomposition?
- A cost of , singly exponential in , instead of doubly exponential.
- Polynomial time in .Still exponential in , just not doubly so.
- Nothing for a fixed number of variables.For fixed both are polynomial in and , but the exponents are very different: against .
Practice
Positive on an intervalNegating a formula
Eliminate the quantifier in . Use the fourth question of the explorer.
Hint
This is the negation of .
Solution
The explorer's answer for the existential formula is : the minimum on is at , at , or at the vertex . Negating:
Two sentencesEliminate the inner quantifier first
Decide and .
Solution
, and is false (take ). , and is true. Each step is a one-variable elimination, which is what the algorithm does recursively.
More practice: Basu–Pollack–Roy, Exercises 2.14 and 14.1.
Solving polynomial systems
When a system has finitely many complex solutions, everything you want to know about them, their coordinates, how many are real, the sign of another polynomial at each, can be read off from linear algebra in a finite-dimensional ring. This module works one system through in full.
The idea
Worked example
Solve the system by these methods: find a Gröbner basis, the multiplication tables, the solutions, the number of real solutions, and how many have . Then see what changes for .
Eliminate : find a polynomial in alone in the ideal.
Multiply the first equation by and use : . So .
Express in terms of modulo , and give a basis of .
From we get , and , so . Indeed, for lex order with , a Gröbner basis is
The leading monomials are and , so the monomials form a basis of : .
Write in this basis and find its eigenvalues. Then get .
in , so is the companion matrix of , with eigenvalues . Since , its eigenvalue on each eigenvector is : the solutions are
Here happens to be separating, so this is already a univariate representation.
Count the real solutions with Hermite's form, without the solutions.
The entries are , here (from the companion matrix, or Newton's identities):
It splits into the blocks and , both with positive trace and determinants and . All four eigenvalues are positive: signature 4, so four real solutions.
How many solutions have ? Use the Tarski query of .
The signature of is , and vanishes at no solution. With and : . Only signs of traces were needed.
Now take . What does Hermite's form say?
The same steps give and a basis . The Newton sums are , and the blocks , have negative determinants: one positive and one negative eigenvalue each. Signature 0: no real solutions, four complex ones. (Geometrically, on the hyperbola.)
Check your understanding
A zero-dimensional ideal has . What do you know about its complex solutions?
- There are exactly 6 distinct ones.Multiple solutions count more than once in the dimension.
- There are 6 counted with multiplicity, so at most 6 distinct ones.
- There are 6 real ones.The dimension counts complex solutions; the real ones need a signature.
The eigenvalues of the multiplication matrix on are:
- the values at the complex solutions
- the coordinates of the solutionsThat is the special case or .
- the coefficients of The coefficients of enter , but its eigenvalues are values of .
For some zero-dimensional system the trace form has rank 6 and signature 2. How many solutions are real?
- 6The rank counts distinct complex solutions.
- 2, out of 6 distinct complex ones
- 4The signature itself is the number of real solutions; it doesn't need to be subtracted.
Practice
A family of systemsWhen do real solutions appear?
For which real does have real solutions, and how many?
Solution
Eliminating gives , so . For both values are positive: 4 real solutions. For : , two real solutions , , each of multiplicity 2. For : none (for the values of are negative, for they are not real).
A separating elementUnivariate representation
In the worked example, is separating? Find a linear form that is, and the characteristic polynomial of for it.
Solution
takes the values : not separating, since and collide. takes : separating, with characteristic polynomial .
Sign conditions and Thom encodings
Deciding whether a system of polynomial conditions has a real solution means finding which sign conditions on the polynomials are realizable. On the line you can see all of them at once, and there are far fewer than the conceivable ones. The same bookkeeping names each real root exactly.
The idea
The existential theory of the reals asks whether holds for a quantifier-free . Since the truth of only depends on the signs of its polynomials, it is enough to list the realizable sign conditions and test on each.
Explore
Worked example
Find the realizable sign conditions of , decide whether has a solution, and give the Thom encodings of the roots of the second polynomial.
Find the roots of the product and the cells of the line.
has roots ; has roots . The product's roots are , so there are 7 cells: , , , , , , .
Compute the sign vector on each cell.
Using sample points : , , , , , , .
Which sign conditions are realizable, and is the system solvable?
Six of the nine: , , , , , . The condition is not among them, so has no real solution. Neither do and .
Give the Thom encodings of the roots and of .
The derivative is : negative at 1, positive at 3. The encodings and differ, as Thom's lemma guarantees. "Shared roots" in the explorer is a variant of this example.
Check your understanding
Three polynomials of degree 2 in one variable. At most how many sign conditions are realizable?
- 27That's , all conceivable ones; most can't occur.
- 13
- 7Three quadratics can have up to 6 roots in total, so up to 13 cells.
Why can two different real roots of never have the same Thom encoding?
- Because all roots of are simple. may have multiple roots; the encoding still tells them apart.
- The set where have the given signs is an interval or a point, and on it is strictly monotone or the set is a single point, so vanishes there at most once.
- Because is nonzero at every root.At a multiple root vanishes, and the encoding then records a 0.
To decide in one variable, it suffices to:
- check whether the sign condition is realized, for example at one sample point in each cell cut out by the roots of
- evaluate and at the roots of onlyA strict condition like this one is realized on intervals between the roots, not at them.
- check whether somewhereThat is a different condition: , satisfies it.
Practice
Thom encodings of a quarticSigns of three derivatives
has the four real roots . Find their Thom encodings (signs of ) and check they are distinct. Then use the "Thom encodings" example in the explorer.
Solution
, , . At : . At : . At : . At : . All different. Note that alone separates the negative from the positive roots, and then separates the two of each sign.
One polynomial, many cellsCells versus sign conditions
Show that a single polynomial realizes at most 3 sign conditions however many roots it has. Can two polynomials of degree 2 realize all 9 sign conditions in ?
Hint
How many cells can two quadratics make, and how many of them are points?
Solution
One polynomial only has the values . For two quadratics there are at most 4 roots and 9 cells, but at most 4 of the cells are points, while the conditions , , (five of them) can only be realized at roots. So at most 4 of those five occur, and all 9 is impossible. With realized, some root is shared, which leaves even fewer cells.