{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Counterexample\n\nLet $f(x) = e^{-1/x}$ for $x \u003e 0$ and $f(x) = 0$ for $x \\le 0$.\nThen $f$ is [[smooth|0BE3QDH73A]] on $\\mathbb{R}$, and $f^{(n)}(0) = 0$ for all $n$.\nSo its [[Taylor series|0225QPWRRE]] at $0$ is the zero series. But $f(x) \u003e 0$ for $x \u003e 0$, so $f$ is not [[analytic|0JD5ZNW0F4]] at $0$.\n\n## Remarks\n\nFor $x \u003e 0$, each derivative has the form $p_n(1/x) e^{-1/x}$ for a polynomial $p_n$. It tends to $0$ as $x \\to 0^+$, because $e^{-1/x}$ decays faster than any power of $x$.\nSuch functions give smooth bump functions and smooth partitions of unity.\nMathlib defines this function as `expNegInvGlue`.\n\n## Explanations\n\n### L1 human\n\nThis function is so flat at $0$ that all its derivatives vanish there.\nSo its Taylor series sees only the zero function, but the function is not zero.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "counterexample",
    "msc": [
      "26E10"
    ],
    "name": "Smooth non-analytic function",
    "same_as": {
      "wikidata": "Q7048840",
      "wikipedia": "Non-analytic smooth function"
    },
    "sources": [
      {
        "locator": "An example function",
        "url": "https://en.wikipedia.org/wiki/Non-analytic_smooth_function"
      }
    ],
    "tag": "09RTYYHXKA",
    "uses": [
      "0BE3QDH73A",
      "0JD5ZNW0F4",
      "0225QPWRRE"
    ]
  },
  "kind": "counterexample",
  "link": "https://math2.tamnd.com/node/09RTYYHXKA/",
  "links": [
    {
      "field": "uses",
      "target": "0BE3QDH73A"
    },
    {
      "field": "uses",
      "target": "0JD5ZNW0F4"
    },
    {
      "field": "uses",
      "target": "0225QPWRRE"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/09RTYYHXKA.md",
  "msc": [
    "26E10"
  ],
  "name": "Smooth non-analytic function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/09R/09RTYYHXKA.md",
  "status": null,
  "tag": "09RTYYHXKA",
  "uri": "m2://09RTYYHXKA",
  "url": "https://math2.tamnd.com/wiki/smooth-non-analytic-function/",
  "writing": {
    "tag": "09RTYYHXKA",
    "kind": "counterexample",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge refutes or not_instance_of out",
        "have": 0,
        "want": 1
      }
    ]
  }
}
