{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $N \\ge 0$ be an integer.\nThe *Dirichlet kernel* of order $N$ is the [[trigonometric polynomial|J3NJQ5FZJ5]] $D_N \\colon \\R \\to \\R$ given by\n$$D_N(x) = \\sum_{n=-N}^{N} e^{inx} = 1 + 2 \\sum_{n=1}^{N} \\cos nx.$$\n\n## Remarks\n\nSumming the geometric progression gives $D_N(x) = \\frac{\\sin((N + \\frac{1}{2}) x)}{\\sin(x/2)}$ for $x \\notin 2\\pi\\Z$, and $D_N(x) = 2N + 1$ for $x \\in 2\\pi\\Z$.\nIt is even, $2\\pi$-periodic, and $\\frac{1}{2\\pi} \\int_{-\\pi}^{\\pi} D_N(x) \\, dx = 1$, since only the term $n = 0$ contributes.\nFor $f$ integrable and $2\\pi$-periodic, the partial sums of its [[Fourier series|G12KXDHPPS]] are the [[convolutions|2Z29JN3VES]]\n$$S_N f(x) = \\frac{1}{2\\pi} \\int_{-\\pi}^{\\pi} f(x - t) D_N(t) \\, dt.$$\nExample: $D_1(x) = 1 + 2 \\cos x$, and indeed $\\frac{\\sin(3x/2)}{\\sin(x/2)} = 3 - 4 \\sin^2(x/2) = 1 + 2 \\cos x$.\nNon-example: $\\sum_{n=0}^{N} e^{inx}$ is not a Dirichlet kernel, since its sum is not symmetric in $n$; it is not real-valued for $N \\ge 1$.\nSome authors use the factor $\\frac{1}{2\\pi}$ in $D_N$ itself, or the period $1$ with $D_N(x) = \\sum_{\\abs{n} \\le N} e^{2\\pi i n x}$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "3JY4BVE4DW",
    "kind": "definition",
    "msc": [
      "42A20",
      "42A24"
    ],
    "name": "Dirichlet kernel",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Dirichlet_kernel"
      }
    ],
    "tag": "EJE15QHXZN",
    "uses": [
      "J3NJQ5FZJ5",
      "G12KXDHPPS",
      "2Z29JN3VES"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/EJE15QHXZN/",
  "links": [
    {
      "field": "defines",
      "target": "3JY4BVE4DW"
    },
    {
      "field": "uses",
      "target": "J3NJQ5FZJ5"
    },
    {
      "field": "uses",
      "target": "G12KXDHPPS"
    },
    {
      "field": "uses",
      "target": "2Z29JN3VES"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/EJE15QHXZN.md",
  "msc": [
    "42A20",
    "42A24"
  ],
  "name": "Dirichlet kernel",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/EJE/EJE15QHXZN.md",
  "status": null,
  "tag": "EJE15QHXZN",
  "uri": "m2://EJE15QHXZN",
  "url": "https://tamnd.github.io/math2/wiki/dirichlet-kernel-definition/",
  "writing": {
    "tag": "EJE15QHXZN",
    "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
      }
    ]
  }
}
