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. Exercises from the book appear at the end of each module, with their numbers from the book and their statements restated in our own words.
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
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 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 ). SoThe 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
- 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
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
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
Hint
Run the remainder sequence of
Solution
Eliminating a variableA parameter in one polynomial
For which
Hint
Solution
The sequence is
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 1.2Constructible sets on the line
Prove that a constructible subset of
Hint
The class of finite and cofinite subsets of
Solution
A constructible set is a finite Boolean combination of sets
Let
Exercise 1.9A quadratic and its derivative
Over
Hint
Treat
Solution
(a) If
(b) If
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
Explore
Worked example
How many positive and negative roots does
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
- 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
- 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.
- 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
Hint
Descartes leaves two possibilities for the positive roots. Rule out 2 by finding the minimum of the polynomial on
Solution
Budan–Fourier on intervalsCounting in (0, 1] and (1, 2]
For
Hint
Solution
At 0:
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 2.12When Budan–Fourier is exact
Using the Budan–Fourier theorem, prove: if
Hint
Budan–Fourier says the variation count is at least the number of roots in
Solution
Write
If
If
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:
the number of roots of
Explore
Worked example
Locate the real roots of
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
- 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
- 0
- 2At
the signs are , only one change. - 1At
the signs are , which also has one change.
- 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
Hint
Solution
The sequence is
Signs of Q at the roots of PThree Tarski queries
Let
Hint
Each root contributes
Solution
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 2.13The sign matrix is invertible
Let
Hint
Solution
If
Infinitesimals and Puiseux series
Many algorithms in this subject perturb a problem by an infinitely small
The idea
An element is bounded over
Reason: substitute
Explore
Worked example
Find the orders and leading terms of the roots of
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
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
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
Hint
The quadratic formula works in a real closed field. Expand
Solution
Signs and sizesWorking in the ordered field
Decide the sign of
Solution
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 2.4The order on
On the field of rational functions
Hint
Write
Solution
Every nonzero
Uniqueness. Fix any order in which
Exercise 2.19Puiseux series form a field
Prove that the Puiseux series
Hint
For a fixed
Solution
In
Inverse: a nonzero
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
The
Each distinct real root
Explore
Worked example
Write down Hermite's form for
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
- 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.
- 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
- 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
Hint
The rows are the coefficients of
Solution
With
Hermite's form of x⁴ − 1A 4 × 4 Hankel matrix
Compute the Newton sums
Solution
The roots are
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 4.1Which sign conditions on happen?
For
Hint
Three tools:
Solution
Of the 27 sign conditions, 20 are realised:
: with each sign of ; with each sign of ; with or . (8 conditions.) : with each sign of ; with each sign of . (6.) : with each sign of ; with or ; with . (6.)
The seven empty ones.
Witnesses (a few; the rest come from a perturbation of these or random sampling).
Cylindrical decomposition
Any finite family of polynomials cuts
The idea
In the plane, with
- 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
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
- 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
- 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
Solution
Both are of degree 1 in
Why leading coefficients matterA root running away
For
Solution
The leading coefficient in
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
The idea
Explore
Worked example
Compute the homology of the boundary of a triangle (vertices
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
- 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
- 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
Solution
χ from cellsOpen disk, closed disk, circle
Using the 13-cell decomposition of the worked example in the previous module, compute the additive
Solution
Open disk: one 2-cell,
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 6.1Homology of a punctured disk
Let
Hint
Solution
The map
Exercise 6.3Borel–Moore homology of the punctured plane
Let
Hint
Solution
Let
gives
So
Morse theory and Betti number bounds
How complicated can the zero set of a polynomial of degree
The idea
Consequence:
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
Explore
Worked example
For the curve
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
- 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
- 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
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
Solution
Which Betti number changesThe index of a critical point
Sweep
Solution
Empty, then an arc (contractible:
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 7.1Non-singular hypersurfaces are manifolds
Prove that a non-singular algebraic hypersurface
Hint
Semi-algebraic implicit function theorem at a point where some partial derivative is nonzero.
Solution
Let
Exercise 7.2The gradient is normal
For a non-singular hypersurface
Hint
In the chart from the previous exercise,
Solution
Using the chart
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
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
- 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
- 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
- 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
Hint
Solution
Bounding a resultantHadamard on a Sylvester matrix
Solution
The Sylvester matrix is
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 8.1Computing rank by elimination
Adapt Gaussian elimination and the Dodgson–Jordan–Bareiss (fraction-free) algorithm to compute the rank of a matrix.
Hint
Rank is the number of pivots you find when you are allowed to search the whole remaining submatrix for a nonzero pivot.
Solution
Gauss (over a field). For
Bareiss (over an integral domain). Same pivot search, but update with the fraction-free rule
Exercise 8.2A quadratic-time resultant
Give an algorithm computing
Hint
Use
Solution
The hint. At each root
Remainder rule. If
Algorithm. Compute
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
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
- 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
- 1Going into the negative entry is one change and coming out of it is another.
- 2
- 3Count the sign changes, not the entries.
For
- 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
Solution
Roots: their sum is
A quarticPositive coefficients are not enough
How many roots of
Solution
Rows:
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 9.3Stable cubics
Determine the conditions on
Hint
Normalise
Solution
(Both conditions are unchanged by
Why: if the roots are
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
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
- 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
Solution
On
Naming roots by derivative signsThom encodings
The roots of
Solution
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
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
- 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
Hint
This is the negation of
Solution
The explorer's answer for the existential formula is
Two sentencesEliminate the inner quantifier first
Decide
Solution
From Basu, Pollack and Roy, Algorithms in Real Algebraic Geometry (2nd ed., Springer, 2006)
Numbers match the book. Each question is restated in our own words; the hints and solutions are written for this page.
Exercise 2.14When has a positive root
Find the conditions on
Hint
Look at
Solution
Let
- If
: and , so there is a positive root. - If
: roots ; a positive root iff . - If
: a positive root needs somewhere on . If , is increasing and positive there. If , the minimum on is at with . So .
Together:
Exercise 14.1The minimum of a polynomial
Design an algorithm with complexity
Hint
The image
Solution
Step 1. Apply the single-block quantifier elimination algorithm to
Step 2. Compute the Thom encodings of all real roots of the polynomials in
Output. Either "
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
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 isThe 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 areHere
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
- 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
- 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
- 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
Solution
Eliminating
A separating elementUnivariate representation
In the worked example, is
Solution
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
The idea
The existential theory of the reals asks whether
Explore
Worked example
Find the realizable sign conditions of
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
- 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
- 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
Solution
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