# Sturm's theorem

### Sturm's theorem

In mathematics, the Sturm's sequence of a univariate polynomial p is a sequence of polynomials associated with p and its derivative by a variant of Euclid's algorithm for polynomials. Sturm's theorem expresses the number of distinct real roots of p located in an interval in terms of the number of changes of signs of the values of the Sturm's sequence at the bounds of the interval. Applied to the interval of all the real numbers, it gives the total number of real roots of p.

Whereas the fundamental theorem of algebra readily yields the overall number of complex roots, counted with multiplicity, it does not provide a procedure for calculating them. Sturm's theorem counts the number of distinct real roots and locates them in intervals. By subdividing the intervals containing some roots, it can isolate the roots into arbitrary small intervals, each containing exactly one root. This yields an arbitrary-precision numeric root finding algorithm for univariate polynomials.

Sturm's sequence and Sturm's theorems are named after Jacques Charles François Sturm.

## Contents

• Sturm chains 1
• Statement 2
• The non-square-free case 2.1
• Example 3
• Proof 4
• History section and other related methods 5
• Applications 6
• Number of real roots 6.1
• Quotient 6.2
• Generalized Sturm chains 7
• References 9

## Sturm chains

A Sturm chain or Sturm sequence is a finite sequence of polynomials

p_0, p_1, \dots, p_m

of decreasing degree with these following properties:

• p0 = p is square free (no square factors, i.e., no repeated roots);
• if p(ξ) = 0, then sign(p1(ξ)) = sign(p′(ξ));
• if pi(ξ) = 0 for 0 < i < m then sign(pi−1(ξ)) = −sign(pi+1(ξ));
• pm does not change its sign.

Sturm's sequence is a modification of Fourier's sequence.

To obtain a Sturm chain, Sturm himself proposed to choose the intermediary results when applying Euclid's algorithm to p and its derivative:

\begin{align} p_0(x) & := p(x),\\ p_1(x) & := p'(x),\\ p_2(x) & := -{\rm rem}(p_0, p_1) = p_1(x) q_0(x)- p_0(x),\\ p_3(x) & := -{\rm rem}(p_1,p_2) = p_2(x) q_1(x) - p_1(x),\\ &{}\ \ \vdots\\ 0 & = -\text{rem}(p_{m-1}, p_m), \end{align}

where rem(pi, pj) and qi are the remainder and the quotient of the polynomial long division of pi by pj, and where m is the minimal number of polynomial divisions (never greater than deg(p)) needed to obtain a zero remainder. That is, successively take the remainders with polynomial division and change their signs. Since deg(pi+1) < deg(pi) for 0 ≤ i < m, the algorithm terminates. The final polynomial, pm, is the greatest common divisor of p and its derivative. If p is square free, it shares no roots with its derivative, hence pm will be a non-zero constant polynomial. The Sturm chain, called the canonical Sturm chain, then is

p_0,p_1,p_2,\ldots,p_m .

If p is not square-free, this sequence does not formally satisfy the definition of a Sturm chain above; nevertheless it still satisfies the conclusion of Sturm's theorem (below).

## Statement

Let p = p0, ..., pm be a Sturm chain, where p is a square-free polynomial, and let σ(ξ) denote the number of sign changes (ignoring zeroes) in the sequence

p_0(\xi), p_1(\xi), p_2(\xi),\ldots, p_m(\xi).

Sturm's theorem then states that for two real numbers a < b, the number of distinct roots of p in the half-open interval (a, b] is σ(a) − σ(b).

### The non-square-free case

Let p = p0, ..., pm be the canonical Sturm sequence of a polynomial p, not necessarily square-free. Then σ(a) − σ(b) is the number of distinct roots of p in (a, b] whenever a < b are real numbers such that neither a nor b is a multiple root of p.

## Example

Suppose we wish to find the number of roots in some range for the polynomial p(x)=x^4+x^3-x-1. So

\begin{align} p_0(x) &=p(x)=x^4+x^3-x-1 \\ p_1(x)&=p'(x)=4x^3+3x^2-1 \end{align}

Using polynomial long division to divide p0 by p1 gives the remainder -\tfrac{3}{16}x^2-\tfrac{3}{4}x-\tfrac{15}{16}, and upon multiplying this remainder by −1 we obtain p_2(x)=\tfrac{3}{16}x^2+\tfrac{3}{4}x+\tfrac{15}{16}. Next dividing p1 by p2 and multiplying the remainder by −1, we obtain p_3(x)=-32x-64. And dividing p2 by p3 and multiplying the remainder by −1, we obtain p_4(x)=-\tfrac{3}{16}.

Thus the complete chain of Sturm polynomials is:

p_0(x) = x^4+x^3-x-1
p_1(x) = 4x^3+3x^2-1
p_2(x) = \tfrac{3}{16}x^2+\tfrac{3}{4}x+\tfrac{15}{16}
p_3(x) = -32x-64
p_4(x) = -\tfrac{3}{16}

To find the number of roots between −∞ and , first evaluate p0, p1, p2, p3, and p4 at −∞ and note the sequence of signs of the results: + − + + −, which contains three sign changes (+ to , then to +, then + to ). The same procedure for gives the sign sequence + + + − −, which contains just one sign change. Hence the number of roots of the original polynomial between −∞ and is 3 − 1 = 2. That this is correct can be seen by noting that p(x) = x4 + x3x − 1 can be factored as (x2 − 1)(x2 + x + 1), where it is readily verifiable that x2 − 1 has the two roots −1 and 1 while x2 + x + 1 has no real roots. In more complicated examples in which there is no advance knowledge of the roots because factoring is either impossible or impractical, one can experiment with various finite bounds for the range to be considered, thus narrowing down the locations of the roots.

## Proof

Polynomials are continuous functions, and any sign change must occur at a root, so consider the behavior of a Sturm chain around the roots of its constituent polynomials.

First, note that two adjacent polynomials can share a common root only when it is a multiple root of p (in which case it is a root of every pi). Indeed, if pi(ξ) = pi−1 (ξ) = 0, then pi+1(ξ) = 0, since sign(pi−1(ξ)) = −sign(pi+1(ξ)). The zero then propagates recursively up and down the chain, so that ξ is a root of all the polynomials p0, ..., pm.

Next, consider roots of polynomials in the interior (i.e., 0 < i < m) of the Sturm chain that are not multiple roots of p. If pi(ξ) = 0, then from the previous paragraph it is true that pi−1(ξ) ≠ 0 and pi+1(ξ) ≠ 0. Furthermore, sign(pi−1(ξ)) = −sign(pi+1(ξ)). Since pi−1 and pi+1 are continuous, sign(pi+1(x)) = −sign(pi−1(x)) for every x in the vicinity of ξ. Similarly, the sign of pi(x) is constant before and after ξ, and changes as x is crossing ξ. Thus, whenever x is crossing ξ, moving from left to right, the part pi−1, pi, pi+1 of the Sturm chain loses a sign change at one side, and acquires a new sign change at the other side. Consequently, the total number of sign changes is never affected by the polynomial variations in the interior of the chain, and only roots of the original polynomial, at the top of the chain, can affect the total number of sign changes.

Consider a root ξ, so p(ξ), and assume first that it is a simple root. Then the derivative of p, which is p1, must be non-zero at ξ, so p must be either increasing or decreasing at ξ. If it's increasing, then its sign is changing from negative to positive when moving from left to right while its derivative (again, p1) is positive, so the total number of sign changes decreases by one. Conversely, if it's decreasing, then its sign changes from positive to negative while its derivative is negative, so again the total number of sign changes decreases by one.

Finally, let ξ be a multiple root of p, and let p0, ..., pm be the canonical Sturm chain. Let d = gcd(p,p′), q = p/d, and let q0, ..., qm′ be the canonical Sturm chain of q. Then m = m′ and pi = qid for every i. In particular, σ(x) is the same for both chains whenever x is not a root of d. Then the number of sign changes (in either chain) around ξ decreases by one, since ξ is a simple root of q.

In summary, only sign changes at roots of the original polynomial affect the total number of sign changes across the chain, and the total number of sign changes always decreases by one as roots are passed. The theorem follows directly.

## History section and other related methods

For counting and isolating the real roots, other methods are usually preferred, because they are computationally more efficient; these methods all use Descartes' rule of signs (just like Fourier did back in 1820) and Vincent's theorem. The very first one of those methods was initially called "modified Uspensky's algorithm" by its inventors, but it was later shown that there is no Uspensky's method; afterwards, people started calling it either "Collins-Akritas method" or "Descartes' method" only to be shown that there is no Descartes' method either. Finally, François Boulier, of the University of Lille, p. 24, gave it the name "Vincent-Collins-Akritas" (VCA for short) to also give credit to Vincent. VCA is a bisection method; there exists also a continued fractions method based on Vincent's theorem namely, the Vincent-Akritas-Strzeboński (VAS) method.

VAS is based on Budan's theorem whereas Sturm's method was inspired by Fourier's theorem. In fact Sturm himself, p. 108, acknowledges the great influence Fourier's theorem had on him: « C'est en m'appuyant sur les principes qu'il a posés, et en imitant ses démonstrations, que j'ai trouvé les nouveaux théorèmes que je vais énoncer. » which translates to "It is by relying upon the principles he has laid out and by imitating his proofs that I have found the new theorems which I am about to announce."

## Applications

### Number of real roots

Sturm's theorem can be used to compute the total number of real roots of a polynomial.

This may be done by choosing a = b = M where M is larger than the absolute value of every root. For example, a bound due to Cauchy says that all real roots of a polynomial with coefficients ai are in the interval [−M, M], where

M = 1 + \frac{\max_{i=0}^{n-1} |a_i|}{|a_n|}.

Although theoretically the above approach is the simplest, in practice bounds on the positive (only) roots of polynomials are used and the positive roots are isolated and evaluated first; the negative roots are treated by first substituting x by −x, then compute a new (positive root) bound to isolate and evaluate the negative roots. Sturm's method and VCA need to compute only one bound to isolate the positive roots. In contrast, to isolate the positive roots VAS needs to compute various positive bounds, for the various polynomials that appear in the process.

Another method is computationally simpler. One can use the fact that for large x, the sign of

p(x)=a_n x^n+\cdots

is sign(an), whereas sign(p(−x)) is (−1)nan. In this way, simply counting the sign changes in the leading coefficients in the Sturm chain readily gives the number of distinct real roots of a polynomial.

Sturm's theorem allows also to determine the multiplicity of a given root, say ξ. Indeed, suppose that a < ξ < b, with σ(a) − σ(b) = 1. Then, ξ has multiplicity k precisely when ξ is a root with multiplicity k − 1 of pm (since it is the GCD of p and its derivative). Thus the multiplicity of ξ may be computed by recursively applying Sturm's theorem to pm. However, this method is rarely used, as square-free factorization is computationally more efficient for this purpose.

### Quotient

The remainder is needed to compute the chain using Euclid's algorithm. For two polynomials

this is accomplished by

\text{rem} \left (p, \widetilde{p} \right )= \widetilde{p}_{i-1}\cdot p(x)- p_i\cdot\widetilde{p}(x)\left(x+\frac{p_{i-1}}{p_i}-\frac{\widetilde{p}_{i-2}}{\widetilde{p}_{i-1}}\right),

where the quotient is built solely of the first two leading coefficients.

## Generalized Sturm chains

Let ξ be in the compact interval [a, b]. A generalized Sturm chain over [a, b] is a finite sequence of real polynomials (X0, X1, ..., Xr) such that:

1. X(a)X(b) ≠ 0
2. sign(Xr) is constant on [a, b]
3. If Xi(ξ) = 0 for 1 ≤ ir − 1, then Xi−1(ξ)Xi+1(ξ) < 0.

One can check that each Sturm chain is indeed a generalized Sturm chain.