{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "DWZD2EKC1Q"
    }
  ],
  "body": "\n## Definition\n\nThe *error function* is the function $\\operatorname{erf} \\colon \\R \\to \\R$ given by the [[definite integral|04TMP0XGMJ]]\n$$\\operatorname{erf} x = \\frac{2}{\\sqrt{\\pi}} \\int_0^x e^{-t^2}\\, dt,$$\nwhere $e^{-t^2}$ uses the [[exponential function|0J0FCWV32D]].\n\n## Remarks\n\nExample: $\\operatorname{erf} 0 = 0$, and the [[Gaussian integral|0DFT1GP1JP]] $\\int_0^\\infty e^{-t^2}\\, dt = \\frac{\\sqrt{\\pi}}{2}$ gives $\\lim_{x \\to \\infty} \\operatorname{erf} x = 1$.\nThe integrand is even, so $\\operatorname{erf}(-x) = -\\operatorname{erf} x$.\nIts derivative is $\\operatorname{erf}' x = \\frac{2}{\\sqrt{\\pi}} e^{-x^2} \u003e 0$, so $\\operatorname{erf}$ increases strictly from $-1$ to $1$.\n\nNon-example: $x \\mapsto \\int_0^x e^{-t^2}\\, dt$ is not the error function; without the factor $\\frac{2}{\\sqrt{\\pi}}$ its limit at $\\infty$ is $\\frac{\\sqrt{\\pi}}{2}$, not $1$.\n\nThe distribution function of the standard [[normal distribution|05AQE0QR0D]] is $\\Phi(x) = \\frac12\\left(1 + \\operatorname{erf}\\frac{x}{\\sqrt{2}}\\right)$.\nThe same integral, along any path from $0$ to $z$, defines $\\operatorname{erf} z$ as an entire function of $z \\in \\C$, with power series $\\operatorname{erf} z = \\frac{2}{\\sqrt{\\pi}} \\sum_{n \\ge 0} \\frac{(-1)^n z^{2n+1}}{n!\\,(2n+1)}$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "7Y56QCZSZJ",
    "kind": "definition",
    "msc": [
      "33B20",
      "60E05"
    ],
    "name": "Error function",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Error_function"
      }
    ],
    "tag": "1EG3DWPNZN",
    "uses": [
      "0J0FCWV32D",
      "04TMP0XGMJ"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/1EG3DWPNZN/",
  "links": [
    {
      "field": "defines",
      "target": "7Y56QCZSZJ"
    },
    {
      "field": "uses",
      "target": "0J0FCWV32D"
    },
    {
      "field": "uses",
      "target": "04TMP0XGMJ"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/1EG3DWPNZN.md",
  "msc": [
    "33B20",
    "60E05"
  ],
  "name": "Error function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/1EG/1EG3DWPNZN.md",
  "status": null,
  "tag": "1EG3DWPNZN",
  "uri": "m2://1EG3DWPNZN",
  "url": "https://tamnd.github.io/math2/wiki/error-function-definition/",
  "writing": {
    "tag": "1EG3DWPNZN",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
