{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $a \u003c b$ be real numbers and let $n \\ge 1$.\nA *quadrature rule* on $[a, b]$ with $n$ nodes consists of distinct nodes $x_1, \\dots, x_n \\in [a, b]$ and real weights $w_1, \\dots, w_n$.\nIt assigns to each [[continuous function|0X3WGX95FE]] $f \\colon [a, b] \\to \\R$ the number\n$$Q(f) = \\sum_{i=1}^{n} w_i\\, f(x_i),$$\nwhich is used as an approximation of the [[definite integral|021WEM680W]] $I(f) = \\int_a^b f(x)\\, dx$.\n\n## Remarks\n\nA quadrature rule is a [[numerical integration|7HYF6YG0RS]] method, and $Q$ is a linear functional on the continuous functions.\nMore generally, a rule for a weight function $\\omega \\ge 0$ approximates $\\int_a^b f(x)\\, \\omega(x)\\, dx$ by the same kind of sum.\nExample: the midpoint rule has $n = 1$, $x_1 = (a + b)/2$, $w_1 = b - a$; for $f = 1$ it gives $b - a = I(1)$.\nNon-example: $f \\mapsto (b - a) \\max_{[a, b]} f$ is not a quadrature rule, because it is not of the form $\\sum w_i f(x_i)$ with fixed nodes; it is not even linear.\nA rule is called interpolatory if $Q(f)$ is the integral of the polynomial that interpolates $f$ at the nodes.\nA rule with nonnegative weights is stable, since $\\abs{Q(f)} \\le \\big(\\sum_i w_i\\big) \\max \\abs{f}$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "ADSVMCY77A",
    "kind": "definition",
    "msc": [
      "65D32",
      "41A55"
    ],
    "name": "Quadrature rule",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Quadrature_(mathematics)"
      }
    ],
    "tag": "4T1MNB8Z11",
    "uses": [
      "021WEM680W",
      "7HYF6YG0RS",
      "0X3WGX95FE"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/4T1MNB8Z11/",
  "links": [
    {
      "field": "defines",
      "target": "ADSVMCY77A"
    },
    {
      "field": "uses",
      "target": "021WEM680W"
    },
    {
      "field": "uses",
      "target": "7HYF6YG0RS"
    },
    {
      "field": "uses",
      "target": "0X3WGX95FE"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/4T1MNB8Z11.md",
  "msc": [
    "65D32",
    "41A55"
  ],
  "name": "Quadrature rule",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/4T1/4T1MNB8Z11.md",
  "status": null,
  "tag": "4T1MNB8Z11",
  "uri": "m2://4T1MNB8Z11",
  "url": "https://tamnd.github.io/math2/wiki/quadrature-rule-definition/",
  "writing": {
    "tag": "4T1MNB8Z11",
    "kind": "definition",
    "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
      }
    ]
  }
}
