Because it is fairly complicated, Sturm’s Theorem is best taught with an example.
In the last post, we were investigating the roots of the function p(x)=x3+7x+2 via Newton’s method, and we speculated that it only has one root. Now we will show the process algorithmically and you should not try to understand how it works (for now).
Let p0(x)=p(x) and p1(x)=p′(x) and pk(x)=−rem(pk−2(x),pk−1(x)) for k>1, whererem(pn−2(x),pn−1(x)) is the remainder of the polynomial division pn−2/pn−1.
p0(x)=x3+7x+2
p1(x)=3x2+7
p2(x)=−rem(x3+7x+2,3x2+7)=−314x−2
p3(x)=−rem(3x2+7,−314x−2)=−49370.
Since we have reached a constant, we stop. Now take the limit limx→−∞ of each of the polynomials above and find the sign of the result:
p0(−∞)=−
p1(−∞)=+
p2(−∞)=+
p3(−∞)=−,
and listing them out −++− we see that there are two sign changes. Doing the same with ∞, we get
p0(∞)=+
p1(∞)=+
p2(∞)=−
p3(∞)=−,
and there is one sign change. The difference (−∞sign changes)−(∞sign changes)=2−1=1 is the number of real roots of p(x).