{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\Gamma$ be the [[gamma function|0H5SYBSED9]] and $\\ln$ the [[natural logarithm|04DXAFN2ES]].\nFor a real number $x \u003e 0$, the *K-function* is\n$$K(x) = (2\\pi)^{-(x-1)/2} \\exp\\left(\\binom{x}{2} + \\int_0^{x-1} \\ln \\Gamma(t + 1)\\, dt\\right),$$\nwhere $\\binom{x}{2} = \\frac{x(x-1)}{2}$.\n\n## Remarks\n\nRaabe's formula $\\int_a^{a+1} \\ln \\Gamma(u)\\, du = \\frac12 \\ln 2\\pi + a \\ln a - a$ for $a \u003e 0$ gives\n$$K(x + 1) = x^x K(x) \\qquad (x \u003e 0).$$\n\nExample: $\\int_0^1 \\ln \\Gamma(t+1)\\, dt = \\int_0^1 (\\ln t + \\ln \\Gamma(t))\\, dt = -1 + \\frac12 \\ln 2\\pi$.\nHence $K(2) = (2\\pi)^{-1/2} \\exp(1 - 1 + \\frac12 \\ln 2\\pi) = 1$.\nThe recurrence then gives $K(3) = 2^2 = 4$, $K(4) = 4 \\cdot 3^3 = 108$, and in general $K(n + 1) = \\prod_{k=1}^n k^k$.\n\nNon-example: the function $x \\mapsto x^x$ does not satisfy the recurrence; for instance $3^3 = 27 \\ne 2^2 \\cdot 2^2 = 16$.\n\nThe formula above is stated for $x \u003e 0$, where $t + 1 \u003e 0$ on the path of integration.\nThe same formula, with the principal branch of $\\ln \\Gamma$, defines $K$ as a holomorphic function on $\\C \\setminus (-\\infty, 0]$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "TXCA43CMYR",
    "kind": "definition",
    "msc": [
      "33B15"
    ],
    "name": "K-function",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/K-function"
      }
    ],
    "tag": "3TY9Y91AMZ",
    "uses": [
      "0H5SYBSED9",
      "04DXAFN2ES"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/3TY9Y91AMZ/",
  "links": [
    {
      "field": "defines",
      "target": "TXCA43CMYR"
    },
    {
      "field": "uses",
      "target": "0H5SYBSED9"
    },
    {
      "field": "uses",
      "target": "04DXAFN2ES"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/3TY9Y91AMZ.md",
  "msc": [
    "33B15"
  ],
  "name": "K-function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/3TY/3TY9Y91AMZ.md",
  "status": null,
  "tag": "3TY9Y91AMZ",
  "uri": "m2://3TY9Y91AMZ",
  "url": "https://tamnd.github.io/math2/wiki/k-function-definition/",
  "writing": {
    "tag": "3TY9Y91AMZ",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
