{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $\\alpha, \\beta \u003e -1$ and let $\\omega(x) = (1 - x)^{\\alpha} (1 + x)^{\\beta}$ on $(-1, 1)$.\nLet $n \\ge 1$ and let $x_1, \\ldots, x_n$ be the zeros of the [[Jacobi polynomial|TRD7DSF2KR]] $P_n^{(\\alpha, \\beta)}$; they are real, simple and lie in $(-1, 1)$.\nLet $\\ell_1, \\ldots, \\ell_n$ be the [[Lagrange basis polynomials|Y7KSGE97GK]] of these nodes, and set $w_i = \\int_{-1}^{1} \\omega(x) \\ell_i(x) \\, dx$.\nThen $w_i = \\int_{-1}^{1} \\omega(x) \\ell_i(x)^2 \\, dx \u003e 0$ for each $i$, and for every polynomial $p$ of degree at most $2n - 1$,\n$$\\int_{-1}^{1} (1 - x)^{\\alpha} (1 + x)^{\\beta} p(x) \\, dx = \\sum_{i=1}^{n} w_i \\, p(x_i).$$\n\n## Remarks\n\nThe proof is the general argument for [[Gaussian quadrature|FP37BTP93K]].\nDivide $p$ by $P_n^{(\\alpha,\\beta)}$ and use the orthogonality of $P_n^{(\\alpha,\\beta)}$ to all polynomials of lower degree for the weight $\\omega$.\nThen integrate the remainder, of degree at most $n - 1$, by interpolation.\nApplying the exactness to $\\ell_i^2$, of degree $2n - 2$, gives $w_i = \\int \\omega \\ell_i^2 \u003e 0$.\nExample: $\\alpha = \\beta = 0$ gives Gauss–Legendre quadrature.\nExample: $\\alpha = \\beta = -\\tfrac12$ gives Gauss–Chebyshev quadrature, with nodes $x_i = \\cos\\frac{(2i - 1)\\pi}{2n}$ and equal weights $w_i = \\pi / n$; for $n = 1$ the rule is $\\pi f(0)$, and indeed $\\int_{-1}^1 (1 - x^2)^{-1/2} dx = \\pi$.\nThe condition $\\alpha, \\beta \u003e -1$ is needed for $\\omega$ to be integrable; for $\\alpha \\le -1$ even $\\int \\omega$ diverges.\n\n## Explanations\n\n### L1 human\n\nSome integrals on $[-1, 1]$ have a factor that blows up or vanishes at an endpoint, such as $1/\\sqrt{1 - x}$.\nOrdinary rules handle such endpoint behaviour badly.\nGauss–Jacobi quadrature builds the factor $(1-x)^\\alpha (1+x)^\\beta$ into the weights, so that only the smooth part of the integrand is sampled.\nWith $n$ points it is exact for that factor times any polynomial of degree up to $2n - 1$.\n\n### L2 human\n\nThe family contains the Gauss–Legendre and Gauss–Chebyshev rules as special cases.\nIt is used for integrands with known algebraic endpoint singularities, for example in boundary integral methods and in spectral methods based on Jacobi polynomials.\nThe nodes and weights are computed in practice from the three-term recurrence of the Jacobi polynomials, as eigenvalues and eigenvector components of a symmetric tridiagonal matrix.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "FP37BTP93K"
    ],
    "kind": "statement",
    "msc": [
      "65D32",
      "41A55",
      "33C45"
    ],
    "name": "Gauss–Jacobi quadrature",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q5527851",
      "wikipedia": "Gauss–Jacobi quadrature"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Gauss%E2%80%93Jacobi_quadrature"
      }
    ],
    "tag": "RFA8HAEW9D",
    "uses": [
      "FP37BTP93K",
      "TRD7DSF2KR",
      "ZYT1JNT1Y0",
      "Y7KSGE97GK"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/RFA8HAEW9D/",
  "links": [
    {
      "field": "about",
      "target": "FP37BTP93K"
    },
    {
      "field": "uses",
      "target": "FP37BTP93K"
    },
    {
      "field": "uses",
      "target": "TRD7DSF2KR"
    },
    {
      "field": "uses",
      "target": "ZYT1JNT1Y0"
    },
    {
      "field": "uses",
      "target": "Y7KSGE97GK"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/RFA8HAEW9D.md",
  "msc": [
    "65D32",
    "41A55",
    "33C45"
  ],
  "name": "Gauss–Jacobi quadrature",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/RFA/RFA8HAEW9D.md",
  "status": null,
  "tag": "RFA8HAEW9D",
  "uri": "m2://RFA8HAEW9D",
  "url": "https://tamnd.github.io/math2/wiki/gauss-jacobi-quadrature/",
  "writing": {
    "tag": "RFA8HAEW9D",
    "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
      }
    ]
  }
}
