{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "6WGT43N6KT"
    }
  ],
  "body": "\n## Statement\n\nLet $H = \\set{s \\in \\C : \\operatorname{Re} s \u003e 0}$, and for $t \u003e 0$ let $t^{s-1} = e^{(s-1)\\ln t}$.\n\n1. For every $s \\in H$ the integral $\\int_0^\\infty t^{s-1} e^{-t} \\, dt$ converges [[absolutely|0F9VKJPWCA]].\n2. The function $G(s) = \\int_0^\\infty t^{s-1} e^{-t} \\, dt$ is [[holomorphic|0NAHXR1FRH]] on $H$.\n3. For real $s \u003e 0$, $G(s) = \\Gamma(s)$, where $\\Gamma$ is the [[gamma function|0V3FZMVB4K]].\n\nSo $G$ is the unique holomorphic extension of $\\Gamma$ from $(0, \\infty)$ to $H$, and $\\Gamma(s) = G(s)$ for all $s \\in H$.\n\n## Remarks\n\nAbsolute convergence follows from $\\abs{t^{s-1} e^{-t}} = t^{\\sigma - 1} e^{-t}$ with $\\sigma = \\operatorname{Re} s \u003e 0$, which is the real integrand.\nFor holomorphy, the truncated integrals $\\int_{1/n}^{n}$ are entire in $s$ and converge to $G$ uniformly on each strip $a \\le \\operatorname{Re} s \\le b$ with $0 \u003c a \u003c b$, so the limit is holomorphic.\nUniqueness comes from the [[identity theorem|0YBVKMYX0W]], since $(0, \\infty)$ has accumulation points in the connected set $H$.\nThe integral diverges at $t = 0$ when $\\operatorname{Re} s \\le 0$; the extension of $\\Gamma$ beyond $H$ uses the functional equation $\\Gamma(s + 1) = s\\,\\Gamma(s)$ instead.\nIn Mathlib the statement is `Complex.Gamma_eq_integral`.\n\n## Explanations\n\n### L1 human\n\nEuler's integral is the most common formula for the gamma function.\nIt works not only for positive real numbers but for every complex number with positive real part.\nFor example, at $s = 1$ it gives $\\int_0^\\infty e^{-t}\\,dt = 1 = \\Gamma(1)$.\n\n### L2 human\n\nThe integral is the gamma function's Mellin transform description: $\\Gamma(s)$ is the Mellin transform of $e^{-t}$.\nMany identities, such as the formula linking the [[beta function|QHNWVSC6AQ]] with $\\Gamma$, start from this integral and a change of variables.\nThe integral alone only defines $\\Gamma$ on the right half-plane; the [[meromorphic|0NSD1TPHR0]] extension to $\\C$ comes from the functional equation.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "0H5SYBSED9"
    ],
    "kind": "statement",
    "msc": [
      "33B15",
      "30D30"
    ],
    "name": "Euler integral for the gamma function",
    "role": "theorem",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Gamma_function"
      }
    ],
    "tag": "Z8D1CZFTWP",
    "uses": [
      "0V3FZMVB4K",
      "0F9VKJPWCA",
      "0NAHXR1FRH",
      "0YBVKMYX0W"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/Z8D1CZFTWP/",
  "links": [
    {
      "field": "about",
      "target": "0H5SYBSED9"
    },
    {
      "field": "uses",
      "target": "0V3FZMVB4K"
    },
    {
      "field": "uses",
      "target": "0F9VKJPWCA"
    },
    {
      "field": "uses",
      "target": "0NAHXR1FRH"
    },
    {
      "field": "uses",
      "target": "0YBVKMYX0W"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/Z8D1CZFTWP.md",
  "msc": [
    "33B15",
    "30D30"
  ],
  "name": "Euler integral for the gamma function",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/Z8D/Z8D1CZFTWP.md",
  "status": null,
  "tag": "Z8D1CZFTWP",
  "uri": "m2://Z8D1CZFTWP",
  "url": "https://tamnd.github.io/math2/wiki/euler-integral-for-the-gamma-function/",
  "writing": {
    "tag": "Z8D1CZFTWP",
    "kind": "statement",
    "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
      }
    ]
  }
}
