{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Counterexample\n\nThe function $f(x) = |x|$ is continuous on $\\mathbb{R}$, but it is not differentiable at $0$.\nThe difference quotient is $\\frac{|h|}{h}$, which is $1$ for $h \u003e 0$ and $-1$ for $h \u003c 0$. So it has no limit as $h \\to 0$.\n\n## Remarks\n\nThe [[one-sided derivatives|0HXEX0DPRA]] at $0$ exist: the right derivative is $1$ and the left derivative is $-1$.\nSo the converse of [[differentiable functions are continuous|07ZMX4ANJS]] fails.\nFor $x \\ne 0$, the derivative is $x / |x|$, the sign of $x$. Mathlib states the failure at $0$ as `not_differentiableAt_abs_zero`.\n\n## Explanations\n\n### L1 human\n\nThe graph of $|x|$ is a V with a sharp corner at the origin.\nAt the corner, no single line fits the graph, so there is no tangent.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "counterexample",
    "msc": [
      "26A24"
    ],
    "name": "Absolute value is continuous but not differentiable at 0",
    "sources": [
      {
        "locator": "Derivative",
        "url": "https://en.wikipedia.org/wiki/Absolute_value"
      }
    ],
    "tag": "0CQ9ZM383N",
    "uses": [
      "0HXEX0DPRA",
      "07ZMX4ANJS"
    ]
  },
  "kind": "counterexample",
  "link": "https://math2.tamnd.com/node/0CQ9ZM383N/",
  "links": [
    {
      "field": "uses",
      "target": "0HXEX0DPRA"
    },
    {
      "field": "uses",
      "target": "07ZMX4ANJS"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0CQ9ZM383N.md",
  "msc": [
    "26A24"
  ],
  "name": "Absolute value is continuous but not differentiable at 0",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0CQ/0CQ9ZM383N.md",
  "status": null,
  "tag": "0CQ9ZM383N",
  "uri": "m2://0CQ9ZM383N",
  "url": "https://math2.tamnd.com/wiki/absolute-value-is-continuous-but-not-differentiable-at-0/",
  "writing": {
    "tag": "0CQ9ZM383N",
    "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
      }
    ]
  }
}
