{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $f \\colon [0, \\pi] \\to \\R$ be Lebesgue [[integrable|X7GTF3D98F]].\nFor $n \\ge 0$ put\n$$a_n = \\frac{2}{\\pi} \\int_0^\\pi f(x) \\cos nx \\, dx, \\qquad b_n = \\frac{2}{\\pi} \\int_0^\\pi f(x) \\sin nx \\, dx.$$\nThe *Fourier cosine series* of $f$ is the [[trigonometric series|FZK2M8KGXQ]] $\\frac{a_0}{2} + \\sum_{n=1}^{\\infty} a_n \\cos nx$.\nThe *Fourier sine series* of $f$ is the trigonometric series $\\sum_{n=1}^{\\infty} b_n \\sin nx$.\n\n## Remarks\n\nThe cosine series is the [[Fourier series|G12KXDHPPS]] of the even $2\\pi$-periodic function equal to $f$ on $[0, \\pi]$.\nThe sine series is the Fourier series of the odd $2\\pi$-periodic function equal to $f$ on $(0, \\pi)$.\nExample: for $f(x) = x$ on $[0, \\pi]$, integration by parts gives $b_n = \\frac{2(-1)^{n+1}}{n}$, so the sine series is $2 \\sum_{n \\ge 1} \\frac{(-1)^{n+1}}{n} \\sin nx$.\nFor the same $f$, $a_0 = \\pi$, $a_n = 0$ for even $n \\ge 2$ and $a_n = -\\frac{4}{\\pi n^2}$ for odd $n$.\nNon-example: $f(x) = 1/x$ on $(0, \\pi]$ is not integrable on $[0, \\pi]$, so its sine and cosine coefficients are not defined.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "Y6EPBG6S8G",
    "kind": "definition",
    "msc": [
      "42A16",
      "42A20"
    ],
    "name": "Sine and cosine series",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Fourier_series"
      }
    ],
    "tag": "J6H7YPRZG7",
    "uses": [
      "X7GTF3D98F",
      "FZK2M8KGXQ",
      "G12KXDHPPS"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/J6H7YPRZG7/",
  "links": [
    {
      "field": "defines",
      "target": "Y6EPBG6S8G"
    },
    {
      "field": "uses",
      "target": "X7GTF3D98F"
    },
    {
      "field": "uses",
      "target": "FZK2M8KGXQ"
    },
    {
      "field": "uses",
      "target": "G12KXDHPPS"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/J6H7YPRZG7.md",
  "msc": [
    "42A16",
    "42A20"
  ],
  "name": "Sine and cosine series",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/J6H/J6H7YPRZG7.md",
  "status": null,
  "tag": "J6H7YPRZG7",
  "uri": "m2://J6H7YPRZG7",
  "url": "https://tamnd.github.io/math2/wiki/sine-and-cosine-series-definition/",
  "writing": {
    "tag": "J6H7YPRZG7",
    "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
      }
    ]
  }
}
