{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $P_n$ be the [[Legendre polynomial|QFYGJVA996]] of degree $n$, for $n \\ge 0$, normalized by $P_n(1) = 1$.\nLet $f \\colon [-1, 1] \\to \\C$ be a [[Lebesgue integrable|DWJF7ABPR1]] function.\nThe *Fourier–Legendre coefficients* of $f$ are\n$$a_n = \\frac{2n + 1}{2} \\int_{-1}^{1} f(x) P_n(x) \\, dx, \\qquad n \\ge 0.$$\nThe *Fourier–Legendre series* of $f$ is the formal series\n$$\\sum_{n=0}^{\\infty} a_n P_n(x).$$\n\n## Remarks\n\nThe factor $(2n+1)/2$ comes from the orthogonality relations $\\int_{-1}^{1} P_m P_n \\, dx = \\frac{2}{2n+1} \\delta_{mn}$.\nFor $f$ in the [[space|SASP14MA1Z]] $L^2([-1, 1])$, the series converges to $f$ in $L^2$, because the Legendre polynomials form a complete orthogonal system there.\n\nExample: let $f(x) = x^2$.\nThen $a_0 = \\frac12 \\int_{-1}^1 x^2 \\, dx = \\frac13$, $a_1 = \\frac32 \\int_{-1}^1 x^3 \\, dx = 0$, and $a_2 = \\frac52 \\int_{-1}^1 x^2 \\cdot \\frac{3x^2 - 1}{2} \\, dx = \\frac52 \\cdot \\frac{4}{15} = \\frac23$.\nAll $a_n$ with $n \\ge 3$ vanish, since $x^2$ is a combination of $P_0$ and $P_2$ and is orthogonal to $P_n$ for $n \\ge 3$.\nSo the series is $\\frac13 P_0 + \\frac23 P_2$, which equals $x^2$.\n\nNon-example: $f(x) = 1/(1 - x)$ on $[-1, 1)$ is not integrable near $x = 1$.\nAlready $a_0 = \\frac12 \\int_{-1}^{1} \\frac{dx}{1 - x}$ diverges, so $f$ has no Fourier–Legendre series.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "RK2G9HN63E",
    "kind": "definition",
    "msc": [
      "42C10",
      "33C45"
    ],
    "name": "Fourier–Legendre series",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Legendre_polynomials"
      }
    ],
    "tag": "T046A1477B",
    "uses": [
      "QFYGJVA996",
      "SASP14MA1Z",
      "DWJF7ABPR1"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/T046A1477B/",
  "links": [
    {
      "field": "defines",
      "target": "RK2G9HN63E"
    },
    {
      "field": "uses",
      "target": "QFYGJVA996"
    },
    {
      "field": "uses",
      "target": "SASP14MA1Z"
    },
    {
      "field": "uses",
      "target": "DWJF7ABPR1"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/T046A1477B.md",
  "msc": [
    "42C10",
    "33C45"
  ],
  "name": "Fourier–Legendre series",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/T04/T046A1477B.md",
  "status": null,
  "tag": "T046A1477B",
  "uri": "m2://T046A1477B",
  "url": "https://tamnd.github.io/math2/wiki/fourier-legendre-series-definition/",
  "writing": {
    "tag": "T046A1477B",
    "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
      }
    ]
  }
}
