{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $\\ln$ be the [[natural logarithm|04DXAFN2ES]].\nFor a real number $x \u003e 0$ with $x \\ne 1$, the *logarithmic integral* is\n$$\\operatorname{li}(x) = \\int_0^x \\frac{dt}{\\ln t},$$\nwhere for $x \u003e 1$ the integral is the [[Cauchy principal value|0SYR10HD4R]] at $t = 1$:\n$$\\operatorname{li}(x) = \\lim_{\\varepsilon \\to 0^+} \\left( \\int_0^{1 - \\varepsilon} \\frac{dt}{\\ln t} + \\int_{1 + \\varepsilon}^x \\frac{dt}{\\ln t} \\right).$$\nThe *offset logarithmic integral* is $\\operatorname{Li}(x) = \\operatorname{li}(x) - \\operatorname{li}(2) = \\int_2^x \\frac{dt}{\\ln t}$ for $x \\ge 2$.\n\n## Remarks\n\nThe integrand tends to $0$ as $t \\to 0^+$, so there is no problem at the lower end.\n\nExample: the substitution $t = e^u$ gives $\\operatorname{li}(x) = \\operatorname{Ei}(\\ln x)$, where $\\operatorname{Ei}$ is the [[exponential integral|EV6ZDQ0NDY]].\nThe function $\\operatorname{li}$ has exactly one positive zero, at $x = \\mu \\approx 1.4513$, the Ramanujan–Soldner constant, and $\\operatorname{li}(2) \\approx 1.045$.\n\nNon-example: without the principal value the integral diverges for $x \u003e 1$, because $\\frac{1}{\\ln t} \\sim \\frac{1}{t - 1}$ near $t = 1$ and $\\int \\frac{dt}{\\abs{t - 1}}$ diverges.\n\nThe [[prime number theorem|0EHBY5Y84N]] is equivalent to $\\pi(x) \\sim \\operatorname{li}(x)$, where $\\pi$ is the [[prime-counting function|0RQSNVTFVZ]].\nIntegration by parts gives $\\operatorname{li}(x) \\sim \\frac{x}{\\ln x}$ as $x \\to \\infty$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "VP98WSTZWT",
    "kind": "definition",
    "msc": [
      "33E20",
      "11N05"
    ],
    "name": "Logarithmic integral",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Logarithmic_integral_function"
      }
    ],
    "tag": "H77NYP0C68",
    "uses": [
      "0SYR10HD4R",
      "04DXAFN2ES"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/H77NYP0C68/",
  "links": [
    {
      "field": "defines",
      "target": "VP98WSTZWT"
    },
    {
      "field": "uses",
      "target": "0SYR10HD4R"
    },
    {
      "field": "uses",
      "target": "04DXAFN2ES"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/H77NYP0C68.md",
  "msc": [
    "33E20",
    "11N05"
  ],
  "name": "Logarithmic integral",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/H77/H77NYP0C68.md",
  "status": null,
  "tag": "H77NYP0C68",
  "uri": "m2://H77NYP0C68",
  "url": "https://tamnd.github.io/math2/wiki/logarithmic-integral-definition/",
  "writing": {
    "tag": "H77NYP0C68",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
