{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $f \\colon [a, b] \\to \\mathbb{R}$ be Riemann integrable.\nThen $|f|$ is Riemann integrable on $[a, b]$, and\n$$\\Big| \\int_a^b f(x) \\, dx \\Big| \\le \\int_a^b |f(x)| \\, dx.$$\n\n## Remarks\n\nThe inequality follows from $-|f| \\le f \\le |f|$ and the [[monotonicity of the integral|0MBWQKM8QR]].\nThe converse of the first claim fails. On $[0, 1]$, let $f = 1$ on the rationals and $f = -1$ elsewhere. Then $|f| = 1$ is integrable, but $f$ is not.\nMathlib states the inequality as `intervalIntegral.norm_integral_le_integral_norm`.\n\n## Explanations\n\n### L1 human\n\nCancellation can only make an integral smaller in size.\nThe size of the integral is at most the integral of the size of the function.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "26A42"
    ],
    "name": "Triangle inequality for integrals",
    "role": "theorem",
    "sources": [
      {
        "locator": "Inequalities",
        "url": "https://en.wikipedia.org/wiki/Integral"
      }
    ],
    "tag": "0NR82KMYKD",
    "uses": [
      "0MBWQKM8QR",
      "0W3K3QPEWT"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0NR82KMYKD/",
  "links": [
    {
      "field": "uses",
      "target": "0MBWQKM8QR"
    },
    {
      "field": "uses",
      "target": "0W3K3QPEWT"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0NR82KMYKD.md",
  "msc": [
    "26A42"
  ],
  "name": "Triangle inequality for integrals",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0NR/0NR82KMYKD.md",
  "status": null,
  "tag": "0NR82KMYKD",
  "uri": "m2://0NR82KMYKD",
  "url": "https://math2.tamnd.com/wiki/triangle-inequality-for-integrals/",
  "writing": {
    "tag": "0NR82KMYKD",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
