{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $s$ and $x$ be real numbers.\n1. For $s \u003e 0$ and $x \\ge 0$, the *lower incomplete gamma function* is\n$$\\gamma(s, x) = \\int_0^x t^{s-1} e^{-t}\\, dt.$$\n2. For $x \u003e 0$ and any real $s$, the *upper incomplete gamma function* is the [[improper integral|0VCTBJMEJF]]\n$$\\Gamma(s, x) = \\int_x^\\infty t^{s-1} e^{-t}\\, dt.$$\n\n## Remarks\n\nFor $s \u003e 0$ and $x \u003e 0$, $\\gamma(s, x) + \\Gamma(s, x) = \\Gamma(s)$, the [[gamma function|0H5SYBSED9]].\n\nExample: for $s = 1$, $\\gamma(1, x) = \\int_0^x e^{-t}\\, dt = 1 - e^{-x}$ and $\\Gamma(1, x) = e^{-x}$, and their sum is $1 = \\Gamma(1)$.\nIntegration by parts gives $\\gamma(s+1, x) = s\\,\\gamma(s, x) - x^s e^{-x}$.\n\nNon-example of a valid argument: for $s = 0$ the lower integral $\\int_0^x t^{-1} e^{-t}\\, dt$ diverges at $0$, so $\\gamma(0, x)$ is not defined.\nThe upper function is still defined: $\\Gamma(0, x) = E_1(x)$ is the [[exponential integral|EV6ZDQ0NDY]].\n\nThe quotient $P(s, x) = \\gamma(s, x)/\\Gamma(s)$ is the regularised lower incomplete gamma function, the distribution function of the [[gamma distribution|0B80PAQD3C]] with shape $s$ and scale $1$.\nBoth functions extend to complex arguments: $\\gamma(s, x)$ for $\\operatorname{Re} s \u003e 0$, and $\\Gamma(s, x)$ by analytic continuation.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "YB7ZV0HG7K",
    "kind": "definition",
    "msc": [
      "33B20"
    ],
    "name": "Incomplete gamma function",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Incomplete_gamma_function"
      }
    ],
    "tag": "R4MZRFB9MV",
    "uses": [
      "0H5SYBSED9",
      "0VCTBJMEJF"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/R4MZRFB9MV/",
  "links": [
    {
      "field": "defines",
      "target": "YB7ZV0HG7K"
    },
    {
      "field": "uses",
      "target": "0H5SYBSED9"
    },
    {
      "field": "uses",
      "target": "0VCTBJMEJF"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/R4MZRFB9MV.md",
  "msc": [
    "33B20"
  ],
  "name": "Incomplete gamma function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/R4M/R4MZRFB9MV.md",
  "status": null,
  "tag": "R4MZRFB9MV",
  "uri": "m2://R4MZRFB9MV",
  "url": "https://tamnd.github.io/math2/wiki/incomplete-gamma-function-definition/",
  "writing": {
    "tag": "R4MZRFB9MV",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
