{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "H77NYP0C68"
    }
  ],
  "body": "\n## Summary\n\nThe logarithmic integral is $\\operatorname{li}(x) = \\int_0^x \\frac{dt}{\\ln t}$, taken as a principal value at $t = 1$.\nBy the [[prime number theorem|0EHBY5Y84N]], it is asymptotic to, and an excellent approximation of, the [[prime-counting function|0RQSNVTFVZ]] $\\pi(x)$.\nThe offset version $\\operatorname{Li}(x) = \\int_2^x \\frac{dt}{\\ln t}$ avoids the singularity at $1$.\nIt is the [[exponential integral|EV6ZDQ0NDY]] composed with the logarithm: $\\operatorname{li}(x) = \\operatorname{Ei}(\\ln x)$.\n\n## Explanations\n\n### L1 human\n\nNear a large number $t$, about one number in $\\ln t$ is prime.\nAdding up these densities from $2$ to $x$ gives the integral $\\int_2^x \\frac{dt}{\\ln t}$.\nSo the logarithmic integral predicts how many primes there are up to $x$.\nFor $x = 10^6$ the prediction is about $78\\,627$, while the true count is $78\\,498$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "33E20",
      "11N05"
    ],
    "name": "Logarithmic integral",
    "same_as": {
      "wikidata": "Q1350206",
      "wikipedia": "Logarithmic integral function"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Logarithmic_integral_function"
      }
    ],
    "tag": "VP98WSTZWT"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/VP98WSTZWT/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/VP98WSTZWT.md",
  "msc": [
    "33E20",
    "11N05"
  ],
  "name": "Logarithmic integral",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/VP9/VP98WSTZWT.md",
  "status": null,
  "tag": "VP98WSTZWT",
  "uri": "m2://VP98WSTZWT",
  "url": "https://tamnd.github.io/math2/wiki/logarithmic-integral/",
  "writing": {
    "tag": "VP98WSTZWT",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
