{"id":228,"date":"2012-07-20T03:59:33","date_gmt":"2012-07-20T08:59:33","guid":{"rendered":"http:\/\/daylateanddollarshort.com\/bloog\/?p=228"},"modified":"2012-07-24T19:14:33","modified_gmt":"2012-07-25T00:14:33","slug":"the-descartes-rule-of-sweeps","status":"publish","type":"post","link":"http:\/\/daylateanddollarshort.com\/bloog\/the-descartes-rule-of-sweeps\/","title":{"rendered":"The Descartes Rule of Sweeps"},"content":{"rendered":"\n<p>Something about\u00a0<a title=\"&quot;Descartes' Rule of Signs&quot; at Wikipedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Descartes'_rule_of_signs\">Descartes&#8217; Rule of Signs<\/a>\u00a0had bothered me ever since my exposure to it in high school.<\/p>\n<p>As you know, the Rule of Signs runs something like this:<\/p>\n<blockquote><p>For a polynomial with non-zero real coefficients, the number of positive roots is, at most, the number of sign changes in the coefficient sequence (ordered by power); more specifically, the difference between the number of positive roots and the number of coefficient sign changes is even.<\/p><\/blockquote>\n<p>For instance, the polynomial<\/p>\n<p>$$p(x) = x^5 + 2 x^4 &#8211; x &#8211; 2$$<\/p>\n<p>has a coefficient sequence \\(\\{1,2,-1,-2\\}\\) with one sign change, so that \\(p\\) has a single positive root.<\/p>\n<p>The Rule is a curious and far-from-obvious result, and the oft-cited\u00a0<a title=\"&quot;Descartes' Rule of Signs&quot; at Cut the Knot\" href=\"http:\/\/www.cut-the-knot.org\/fta\/ROS2.shtml\">proof at Cut the Knot<\/a>\u00a0is effective, but not terribly insightful. It&#8217;s not clear\u00a0<em>why<\/em>\u00a0the Rule works. That&#8217;s bothersome, of course, but not what bothered me.<\/p>\n<p>We can also use the Rule to get information about the number of\u00a0<em>negative<\/em>\u00a0roots of a polynomial; we define an auxiliary polynomial that reverses the sign of \\(x\\) &#8230; for instance:<\/p>\n<p>$$q(x) := p(-x) = -x^5+2x^4+x-2$$<\/p>\n<p>The negative roots of \\(p\\) are the negatives of the positive roots of \\(q\\), and there are either two of those, or none, since \\(q\\) has two coefficient sign changes.<\/p>\n<p>At this point, we have accounted-for three, or maybe just one, of the roots of \\(p\\). The\u00a0<a title=\"&quot;Fundamental Theorem of Algebra&quot; at Wikipedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Fundamental_theorem_of_algebra\">Fundamental Theorem of Algebra<\/a>\u00a0tells us that there should be a total of five. Clearly, none of the roots is zero; but, if we&#8217;ve exhausted positive, negative, and zero candidates, then what&#8217;s left?\u00a0<em>Non-real complex numbers<\/em>, of course (in conjugate pairs).<\/p>\n<p>That&#8217;s what bothered me.<\/p>\n<p>Not that I have anything against complex numbers; quite the contrary! The thing is that, while the Descartes Rule of Signs forces us to confront the complex numbers as a fact &#8212;and ultimately, a completion&#8212; of algebraic life, it won&#8217;t address non-reals in any specificity. We get an idea of how many roots lie in either direction along the real axis, but no information about roots along, say, the imaginary axis. That doesn&#8217;t seem fair.<\/p>\n<p>On one level, the limitation is understandable. Consider the trick that allows us to count negative roots of \\(p\\); tweaking this to count roots of along the &#8220;positive&#8221; imaginary axis would require us to a new auxiliary polynomial thusly &#8230;<\/p>\n<p>$$r(x) := p\\left(\\frac{x}{i}\\right) = p(-i x) = -i x^5 + 2 i x^4 + i x &#8211; 2$$<\/p>\n<p>&#8230; and then simply to count sign changes: from &#8220;\\(-i\\)&#8221; to &#8220;\\(2i\\)&#8221; is one; from &#8220;\\(2i\\)&#8221; to &#8220;\\(i\\)&#8221; doesn&#8217;t count; and then from &#8220;\\(i\\)&#8221; to &#8220;\\(-2\\)&#8221;&#8212;\u00a0<em>Hey, waydaminnit!<\/em>\u00a0The notion of &#8220;sign change&#8221; from &#8220;\\(i\\)&#8221; to &#8220;\\(-2\\)&#8221; doesn&#8217;t make any sense! &#8230; and so, we give up and go home.<\/p>\n<p>Of course, that defeatist attitude runs contrary to the proper mathematical philosophy toward apparent nonsense; our instincts should be to\u00a0<em>make sense<\/em> out of what we encounter. Besides, to turn away now is to ignore one of the fundamental conceptual insights of complex algebra: a sign change isn&#8217;t the result of a\u00a0<em>discrete flip<\/em>\u00a0across the origin, but rather the result of a\u00a0<em>continuous half-turn<\/em>\u00a0about it. Hmmm &#8230;<\/p>\n<p>Adapting the notion of &#8220;sign change&#8221; to apply to the transition from &#8220;\\(i\\)&#8221; to &#8220;\\(-2\\)&#8221; in a coefficient sequence would seem to be very-nearly obvious: measure the &#8220;angular sweep&#8221; &#8230; which in this case is a quarter-turn (in the standard direction), or \\(\\pi\/2\\). Does this help?<\/p>\n<p>I&#8217;ll cut to the chase: <em>Yes. Yes, it does help.<\/em><\/p>\n<p>We compute the angular sweep of polynomial \\(r\\) thusly: &#8220;\\(-i\\)&#8221; to &#8220;\\(2i\\)&#8221; is a sweep of \\(\\pi\\); from &#8220;\\(2i\\)&#8221; to &#8220;\\(i\\)&#8221; doesn&#8217;t count; and then from &#8220;\\(i\\)&#8221; to &#8220;\\(-2\\)&#8221; is a sweep of \\(\\pi\/2\\). All together, that&#8217;s a total sweep of \\(3\\pi\/2\\).<\/p>\n<p>In the original Rule of Signs, each sign change contributes one to the tally of possible positive roots; it also contributes \\(\\pi\\) to this angular sweep value. Thus, according to Descartes,\u00a0<em>the tally of possible positive roots is exactly equal to the number of half-turns in the sweep.<\/em>\u00a0 (And the Rule admits that the tally may be off by an even number &#8230; An even number of half-turns is some number of full circles; we&#8217;re used to this kind ofmeasurement when measuring angles! Coincidence?) When the angular sweep lies between half-turns, we (very reasonably) round down; In the case of polynomial \\(r\\), the rounded-down count of half-turns in the sweep is one, so the tally of possible positive roots &#8212;equivalently, the tally of \\(p\\)&#8217;s roots along the positive imaginary axis&#8212; is also exactly one. And, in point of fact, \\(p\\) has \\(i\\) as its sole &#8220;positive imaginary&#8221; root.<\/p>\n<p>To look for roots along the &#8220;negative imaginary&#8221; axis, we construct yet another auxiliary polynomial:<\/p>\n<p>$$s(x) := p\\left(\\frac{x}{-i}\\right) = p(ix) = i x^5 + 2 x^4 &#8211; i x &#8211; 2$$<\/p>\n<p>The angular sweep from &#8220;\\(i\\)&#8221; to &#8220;\\(2\\)&#8221; is \\(3\\pi\/2\\); from &#8220;\\(2\\)&#8221; to &#8220;\\(-i\\)&#8221; is another \\(3\\pi\/2\\); from &#8220;\\(-i\\)&#8221; to &#8220;\\(-2\\)&#8221; is yet another \\(3\\pi\/2\\). \u00a0That&#8217;s a total sweep of \\(9\\pi\/2\\), which covers four half-turns. We happen to know that the polynomial \\(p\\) has a single root &#8212;namely, \\(-i\\)&#8212; along the negative imaginary axis, so the root count is certainly bounded above by the half-turn tally, although it doesn&#8217;t differ from that tally by an even number.<\/p>\n<p>Interestingly, if we sweep from coefficient to coefficient in the <em>clockwise<\/em> direction, \\(s\\)&#8217;s angular sweep is \\(\\pi\/2 + \\pi\/2 + \\pi\/2 = 3\\pi\/2\\), which covers a single half-turn, and thus accurately predicts the sole negative-imaginary root of \\(p\\). It makes sense that we should consider oppositely-directed sweeps &#8212;and (again, very reasonably) adopt the smaller value as &#8220;the&#8221; angular sweep&#8212; because a polynomial knows nothing of our bias toward counter-clockwise rotations.<\/p>\n<p>In any case &#8230; We now have a version of the Rule of Signs that does justice to the non-reals.<\/p>\n<p>My note <a title=\"&quot;The Descartes Rule of Sweeps and the Descartes Signature&quot; (PDF)\" href=\"http:\/\/dlnds.com\/mathdocs\/The-Descartes-Rule-of-Sweeps.pdf\">&#8220;The Descartes Rule of Sweeps and the Descartes Signature&#8221;<\/a> explores these ideas in more depth; in particular, the &#8220;Signature&#8221; provides a holistic approach to seeking roots in a given direction of the complex plane. Unfortunately, my proof of the Rule of Sweeps is based directly on the Rule of Signs; consequently, we <em>still<\/em> don&#8217;t really know <em>why<\/em> this all works. (That&#8217;s my current source of bother in this area.)<\/p>\n<p>The <strong>Open Question<\/strong>:<\/p>\n<blockquote><p>What is the independent proof of the Rule of Sweeps that establishes the conceptual intuition for believing it?<\/p><\/blockquote>\n<p>The sweep notion &#8212;with its rotational aspect and its quotients by \\(\\pi\\)&#8212; seems awfully-closely tied to winding numbers and <a title=\"&quot;Cauchy's Integral Formula&quot; at Wikipedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Cauchy's_integral_formula\">Cauchy&#8217;s Integral Formula<\/a>. I get the sense that we&#8217;re one clever contour integral away from enlightenment &#8230; but apparently I&#8217;m insufficiently clever.<\/p>\n<p>For interactive engagement with this stuff, see my <a title=\"&quot;Descartes Signature Explorer&quot; at the Wolfram Demonstrations Project\" href=\"http:\/\/demonstrations.wolfram.com\/DescartesSignatureExplorer\/\">&#8220;Descartes Signature Explorer&#8221;<\/a> at the <a title=\"The Wolfram Demonstrations Project\" href=\"http:\/\/demonstrations.wolfram.com\">Wolfram Demonstrations Project<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Something about\u00a0Descartes&#8217; Rule of Signs\u00a0had bothered me ever since my exposure to it in high school. As you know, the Rule of Signs runs something like this: For a polynomial with non-zero real coefficients, the number of positive roots is, at most, the number of sign changes in the coefficient sequence (ordered by power); more [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,11],"tags":[],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-misc-math","category-open-question"],"_links":{"self":[{"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":10,"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":266,"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/posts\/228\/revisions\/266"}],"wp:attachment":[{"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/daylateanddollarshort.com\/bloog\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}