{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $f = a_n x^n + \\cdots + a_1 x + a_0$ be a nonzero polynomial with real coefficients.\nLet $V$ be the number of sign changes in the sequence of nonzero coefficients of $f$, taken in order of degree.\nLet $P$ be the number of positive [[roots|00EHX6FWC0]] of $f$, counted with [[multiplicity|03XVP8Q4GY]].\nThen $P \\le V$, and $V - P$ is even.\n\n## Remarks\n\nThe parity part follows by comparing the sign of the leading coefficient with the sign of the lowest nonzero coefficient.\nBoth $V$ and $P$ are even exactly when these signs agree.\nThe bound $P \\le V$ can be proved by induction on the degree, using [[Rolle's theorem|0194DY35BG]] to compare the positive roots of $f$ with those of $f'$.\nExample: $f = x^3 - x^2 - x + 1$ has signs $+, -, -, +$, so $V = 2$; indeed $f = (x - 1)^2 (x + 1)$ has the double positive root $1$, so $P = 2$.\nThe number of negative roots is bounded in the same way by the sign changes of $f(-x)$.\nThe bound need not be reached: $x^2 - x + 1$ has $V = 2$ and no real root, so $P = 0$.\n\n## Explanations\n\n### L1 human\n\nReading the signs of the coefficients of a polynomial gives an upper bound for the number of its positive roots.\nEach change from plus to minus, or from minus to plus, allows at most one positive root.\nThe count can only be too high by an even number.\n\n### L2 human\n\nThe rule is a quick first test before one locates roots more precisely.\nIf all roots of $f$ are real, then the bound is exact: $P = V$.\n[[Budan's theorem|7THS519D4A]] extends the rule from the half-line $(0, \\infty)$ to any interval, and [[Sturm's theorem|R44CV0KD9T]] gives the exact number of distinct real roots in an interval.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "about": [
      "019MA1VTR2"
    ],
    "kind": "statement",
    "msc": [
      "26C10",
      "12D10"
    ],
    "name": "Descartes' rule of signs",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q1379344",
      "wikipedia": "Descartes's rule of signs"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Descartes%27s_rule_of_signs"
      }
    ],
    "tag": "T6DQQ36JZ5",
    "uses": [
      "0Q9EZS90GY",
      "00EHX6FWC0",
      "03XVP8Q4GY",
      "0194DY35BG",
      "7THS519D4A"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/T6DQQ36JZ5/",
  "links": [
    {
      "field": "about",
      "target": "019MA1VTR2"
    },
    {
      "field": "uses",
      "target": "0Q9EZS90GY"
    },
    {
      "field": "uses",
      "target": "00EHX6FWC0"
    },
    {
      "field": "uses",
      "target": "03XVP8Q4GY"
    },
    {
      "field": "uses",
      "target": "0194DY35BG"
    },
    {
      "field": "uses",
      "target": "7THS519D4A"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/T6DQQ36JZ5.md",
  "msc": [
    "26C10",
    "12D10"
  ],
  "name": "Descartes' rule of signs",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/T6D/T6DQQ36JZ5.md",
  "status": null,
  "tag": "T6DQQ36JZ5",
  "uri": "m2://T6DQQ36JZ5",
  "url": "https://math2.tamnd.com/wiki/descartes-rule-of-signs/",
  "writing": {
    "tag": "T6DQQ36JZ5",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
