{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $a \u003c b$ be real numbers and let $f \\colon [a, b] \\to \\R$ be a [[convex function|0VV0HSW1ZS]].\nThen $f$ is Riemann integrable on $[a, b]$ and\n$$f\\Big( \\frac{a + b}{2} \\Big) \\le \\frac{1}{b - a} \\int_a^b f(x) \\, dx \\le \\frac{f(a) + f(b)}{2}.$$\n\n## Remarks\n\nProof idea: a convex function on $[a, b]$ is bounded and is continuous on $(a, b)$, so it is integrable.\nFor the left inequality, convexity gives $f\\big(\\frac{a+b}{2}\\big) \\le \\frac{1}{2}\\big(f(x) + f(a + b - x)\\big)$; integrate over $x \\in [a, b]$.\nFor the right inequality, the graph lies below the chord: $f(x) \\le \\frac{b - x}{b - a} f(a) + \\frac{x - a}{b - a} f(b)$; integrate this bound, whose mean value is $\\frac{f(a) + f(b)}{2}$.\n\nExample: $f(x) = x^2$ on $[0, 1]$ gives $\\frac{1}{4} \\le \\frac{1}{3} \\le \\frac{1}{2}$.\n\nFor a concave function both inequalities are reversed.\n\n## Explanations\n\n### L1 human\n\nThe average value of a convex function over an interval lies between two simple numbers.\nIt is at least the value at the midpoint, and at most the average of the two end values.\nGeometrically, the graph lies above a supporting line at the midpoint and below the chord joining the ends.\n\n### L2 human\n\nThe inequality gives error bounds for the midpoint rule and the trapezoidal rule: for a convex integrand the midpoint rule underestimates the integral and the trapezoidal rule overestimates it.\nIt is a two-sided refinement of [[Jensen's inequality|0RWMRTPC87]] for the uniform distribution on $[a, b]$.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "about": [
      "07Q7CNM5WF"
    ],
    "kind": "statement",
    "msc": [
      "26D15",
      "26A51"
    ],
    "name": "Hermite–Hadamard inequality",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q1035624",
      "wikipedia": "Hermite–Hadamard inequality"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Hermite–Hadamard_inequality"
      }
    ],
    "tag": "3VB65PEZQS",
    "uses": [
      "0VV0HSW1ZS",
      "0QM4TXT3DR"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/3VB65PEZQS/",
  "links": [
    {
      "field": "about",
      "target": "07Q7CNM5WF"
    },
    {
      "field": "uses",
      "target": "0VV0HSW1ZS"
    },
    {
      "field": "uses",
      "target": "0QM4TXT3DR"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/3VB65PEZQS.md",
  "msc": [
    "26D15",
    "26A51"
  ],
  "name": "Hermite–Hadamard inequality",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/3VB/3VB65PEZQS.md",
  "status": null,
  "tag": "3VB65PEZQS",
  "uri": "m2://3VB65PEZQS",
  "url": "https://math2.tamnd.com/wiki/hermite-hadamard-inequality/",
  "writing": {
    "tag": "3VB65PEZQS",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
