{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nThe *Clausen function* is the function $\\operatorname{Cl}_2 \\colon \\R \\to \\R$ given by\n$$\\operatorname{Cl}_2(\\theta) = -\\int_0^{\\theta} \\log \\abs{2 \\sin \\tfrac{t}{2}} \\, dt,$$\nwhere $\\log$ is the [[natural logarithm|04DXAFN2ES]].\nThe integral converges for every real $\\theta$, because the logarithmic singularities of the integrand at the points of $2\\pi\\Z$ are integrable.\n\n## Remarks\n\nEquivalently, $\\operatorname{Cl}_2$ is the sum of the uniformly convergent [[Fourier series|G12KXDHPPS]]\n$$\\operatorname{Cl}_2(\\theta) = \\sum_{k=1}^{\\infty} \\frac{\\sin k\\theta}{k^2},$$\nand $\\operatorname{Cl}_2(\\theta) = \\operatorname{Im} \\operatorname{Li}_2(e^{i\\theta})$, where $\\operatorname{Li}_2$ is the [[dilogarithm|G0X0NWSDB7]].\nThe function is odd and $2\\pi$-periodic, and it vanishes at every multiple of $\\pi$.\n\nExample: at $\\theta = \\pi/2$, $\\sin(k\\pi/2)$ is $0$ for even $k$ and $(-1)^{m}$ for $k = 2m + 1$, so $\\operatorname{Cl}_2(\\pi/2) = \\sum_{m \\ge 0} (-1)^m / (2m+1)^2 = G$, Catalan's constant.\nIts maximum on $\\R$ is $\\operatorname{Cl}_2(\\pi/3) \\approx 1.01494$.\n\nNon-example: the series $\\sum_{k \\ge 1} \\cos(k\\theta)/k^2$ is not the Clausen function; it is the real part of $\\operatorname{Li}_2(e^{i\\theta})$, which equals $\\frac{\\pi^2}{6} - \\frac{\\pi\\theta}{2} + \\frac{\\theta^2}{4}$ for $0 \\le \\theta \\le 2\\pi$.\n\nHigher Clausen functions $\\operatorname{Cl}_n$ are defined from $\\operatorname{Li}_n(e^{i\\theta})$ in a similar way.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "AVS6G54711",
    "kind": "definition",
    "msc": [
      "33B30",
      "33E20"
    ],
    "name": "Clausen function",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Clausen_function"
      }
    ],
    "tag": "2R3VH69BSA",
    "uses": [
      "04DXAFN2ES",
      "G12KXDHPPS"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/2R3VH69BSA/",
  "links": [
    {
      "field": "defines",
      "target": "AVS6G54711"
    },
    {
      "field": "uses",
      "target": "04DXAFN2ES"
    },
    {
      "field": "uses",
      "target": "G12KXDHPPS"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/2R3VH69BSA.md",
  "msc": [
    "33B30",
    "33E20"
  ],
  "name": "Clausen function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/2R3/2R3VH69BSA.md",
  "status": null,
  "tag": "2R3VH69BSA",
  "uri": "m2://2R3VH69BSA",
  "url": "https://tamnd.github.io/math2/wiki/clausen-function-definition/",
  "writing": {
    "tag": "2R3VH69BSA",
    "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
      }
    ]
  }
}
