{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $N \\ge 0$ be an integer.\nA *trigonometric polynomial* of degree at most $N$ is a function $T \\colon \\R \\to \\C$ with\n$$T(x) = \\sum_{n=-N}^{N} c_n e^{inx},$$\nfor complex numbers $c_{-N}, \\dots, c_N$, where $e^{inx}$ is the [[complex exponential|07GJV36896]].\nIts *degree* is the largest $\\abs{n}$ with $c_n \\ne 0$.\n\n## Remarks\n\nBy Euler's formula the same functions are the sums $a_0 + \\sum_{n=1}^{N} (a_n \\cos nx + b_n \\sin nx)$ with complex $a_n, b_n$, built from [[sine and cosine|08WFZP6P89]].\nThe two forms are related by $a_0 = c_0$, $a_n = c_n + c_{-n}$ and $b_n = i(c_n - c_{-n})$ for $n \\ge 1$.\n$T$ is real-valued exactly when $c_{-n} = \\overline{c_n}$ for all $n$, that is, when all $a_n$ and $b_n$ are real.\nExample: $\\cos^2 x = \\frac{1}{4} e^{-2ix} + \\frac{1}{2} + \\frac{1}{4} e^{2ix}$, so $\\cos^2 x$ is a trigonometric polynomial of degree $2$.\nNon-example: $\\sin(x/2)$ is not a trigonometric polynomial, since it has period $4\\pi$ and not $2\\pi$, while every trigonometric polynomial is $2\\pi$-periodic.\nThe coefficients are unique: $c_n = \\frac{1}{2\\pi} \\int_{-\\pi}^{\\pi} T(x) e^{-inx} \\, dx$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "J3NJQ5FZJ5",
    "kind": "definition",
    "msc": [
      "42A05",
      "42A10"
    ],
    "name": "Trigonometric polynomial",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Trigonometric_polynomial"
      }
    ],
    "tag": "A6YS3A9DNP",
    "uses": [
      "07GJV36896",
      "08WFZP6P89"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/A6YS3A9DNP/",
  "links": [
    {
      "field": "defines",
      "target": "J3NJQ5FZJ5"
    },
    {
      "field": "uses",
      "target": "07GJV36896"
    },
    {
      "field": "uses",
      "target": "08WFZP6P89"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/A6YS3A9DNP.md",
  "msc": [
    "42A05",
    "42A10"
  ],
  "name": "Trigonometric polynomial",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/A6Y/A6YS3A9DNP.md",
  "status": null,
  "tag": "A6YS3A9DNP",
  "uri": "m2://A6YS3A9DNP",
  "url": "https://tamnd.github.io/math2/wiki/trigonometric-polynomial-definition/",
  "writing": {
    "tag": "A6YS3A9DNP",
    "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
      }
    ]
  }
}
