{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Counterexample\n\nLet $\\varphi \\colon \\mathbb{R} \\to \\mathbb{R}$ be the zigzag function with $\\varphi(x) = |x|$ for $-1 \\le x \\le 1$ and $\\varphi(x + 2) = \\varphi(x)$ for all $x$.\nDefine\n$$f(x) = \\sum_{n=0}^{\\infty} \\Big( \\frac{3}{4} \\Big)^n \\varphi(4^n x).$$\nThe function $f$ is continuous on $\\mathbb{R}$, but it is not [[differentiable|0A61B60B5R]] at any point.\n\n## Remarks\n\nSince $0 \\le \\varphi \\le 1$, the [[M-test|0NX5NWAFC9]] with $M_n = (3/4)^n$ and the [[continuity of uniform sums|0R0MYT0BJD]] give continuity.\nFix $x$. For each $m$, choose $\\delta_m = \\pm \\frac{1}{2} 4^{-m}$ so that no integer lies strictly between $4^m x$ and $4^m (x + \\delta_m)$.\nThen $\\Big| \\frac{f(x + \\delta_m) - f(x)}{\\delta_m} \\Big| \\ge \\frac{3^m + 1}{2}$. This tends to infinity while $\\delta_m \\to 0$, so $f'(x)$ does not exist.\nThis function replaces the cosine in the [[Weierstrass function|01A0MK1730]] by a piecewise linear zigzag.\n\n## Explanations\n\n### L1 human\n\nEach term adds smaller and steeper zigzags to the graph.\nThe sum is continuous, but its graph has a corner at every scale near every point.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "counterexample",
    "msc": [
      "26A27"
    ],
    "name": "A continuous nowhere differentiable function",
    "sources": [
      {
        "locator": "Construction",
        "url": "https://en.wikipedia.org/wiki/Weierstrass_function_(nowhere-differentiable_function)"
      }
    ],
    "tag": "0RXK2Z808Q",
    "uses": [
      "0NX5NWAFC9",
      "0R0MYT0BJD",
      "0A61B60B5R"
    ]
  },
  "kind": "counterexample",
  "link": "https://math2.tamnd.com/node/0RXK2Z808Q/",
  "links": [
    {
      "field": "uses",
      "target": "0NX5NWAFC9"
    },
    {
      "field": "uses",
      "target": "0R0MYT0BJD"
    },
    {
      "field": "uses",
      "target": "0A61B60B5R"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0RXK2Z808Q.md",
  "msc": [
    "26A27"
  ],
  "name": "A continuous nowhere differentiable function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0RX/0RXK2Z808Q.md",
  "status": null,
  "tag": "0RXK2Z808Q",
  "uri": "m2://0RXK2Z808Q",
  "url": "https://math2.tamnd.com/wiki/a-continuous-nowhere-differentiable-function/",
  "writing": {
    "tag": "0RXK2Z808Q",
    "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
      }
    ]
  }
}
