{
  "id": "enwiki-001339812367",
  "slug": "logarithmic-integral-function",
  "title": "Logarithmic integral function",
  "qid": "",
  "lead": "In mathematics, the logarithmic integral function or integral logarithm li(x) is a special function. It is relevant in problems of physics and has number theoretic significance. In particular, according to the prime number theorem, it is a very good approximation to the prime-counting function, which is defined as the number of prime numbers less than or equal to a given value .",
  "body": "In mathematics, the logarithmic integral function or integral logarithm li(x) is a special function. It is relevant in problems of physics and has number theoretic significance. In particular, according to the prime number theorem, it is a very good approximation to the prime-counting function, which is defined as the number of prime numbers less than or equal to a given value . \\operatorname{li}(x) = \\int_0^x \\frac{dt}{\\ln t}. Here, denotes the natural logarithm. The function has a singularity at , and the integral for is interpreted as a Cauchy principal value, \\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). However, the logarithmic integral can also be taken to be a meromorphic complex-valued function in the complex domain. In this case it is multi-valued with branch points at 0 and 1, and the values between 0 and 1 defined by the above integral are not compatible with the values beyond 1. The complex function is shown in the figure above. The values on the real axis beyond 1 are the same as defined above, but the values between 0 and 1 are offset by iπ so that the absolute value at 0 is π rather than zero. The complex function is also defined (but multi-valued) for numbers with negative real part, but on the negative real axis the values are not real. \\operatorname{Li}(x) = \\int_2^x \\frac{dt}{\\ln t} = \\operatorname{li}(x) - \\operatorname{li}(2). As such, the integral representation has the advantage of avoiding the singularity in the domain of integration. Equivalently, \\operatorname{li}(x) = \\int_0^x \\frac{dt}{\\ln t} = \\operatorname{Li}(x) + \\operatorname{li}(2). \\operatorname{li}(\\text{Li}^{-1}(0)) = \\text{li}(2) ≈ 1.045163 780117 492784 844588 889194 613136 522615 578151... This is -(\\Gamma(0,-\\ln 2) + i\\,\\pi) where \\Gamma(a,x) is the incomplete gamma function. It must be understood as the Cauchy principal value of the function. \\operatorname{li}(x)=\\hbox{Ei}(\\ln x) , which is valid for x&nbsp;>&nbsp;0. This identity provides a series representation of li(x) as \\operatorname{li}(e^u) = \\hbox{Ei}(u) = \\gamma + \\ln |u| + \\sum_{n=1}^\\infty {u^{n}\\over n \\cdot n!} \\quad \\text{ for } u \\ne 0 \\, , where γ ≈ 0.57721 56649 01532 ... is the Euler–Mascheroni constant. For the complex function the formula is \\operatorname{li}(e^u) = \\hbox{Ei}(u) = \\gamma + \\ln u + \\sum_{n=1}^\\infty {u^{n}\\over n \\cdot n!} \\quad \\text{ for } u \\ne 0 \\, , (without taking the absolute value of u). A more rapidly convergent series by Ramanujan is \\operatorname{li}(x) = \\gamma + \\ln |\\ln x| + \\sqrt{x} \\sum_{n=1}^\\infty \\left( \\frac{ (-1)^{n-1} (\\ln x)^n} {n! \\, 2^{n-1}} \\sum_{k=0}^{\\lfloor (n-1)/2 \\rfloor} \\frac{1}{2k+1} \\right). Again, for the meromorphic complex function the term \\ln|\\ln u| must be replaced by \\ln\\ln u. \\operatorname{li}(x) = O \\left( \\frac{x }{\\ln x} \\right) . where O is the big O notation. The full asymptotic expansion is \\operatorname{li}(x) \\sim \\frac{x}{\\ln x} \\sum_{k=0}^\\infty \\frac{k!}{(\\ln x)^k} or \\frac{\\operatorname{li}(x)}{x/\\ln x} \\sim 1 + \\frac{1}{\\ln x} + \\frac{2}{(\\ln x)^2} + \\frac{6}{(\\ln x)^3} + \\cdots. This gives the following more accurate asymptotic behaviour: \\operatorname{li}(x) - \\frac{x}{ \\ln x} = O \\left( \\frac{x}{(\\ln x)^2} \\right) . As an asymptotic expansion, this series is not convergent: it is a reasonable approximation only if the series is truncated at a finite number of terms, and only large values of x are employed. This expansion follows directly from the asymptotic expansion for the exponential integral. This implies e.g. that we can bracket li as: 1+\\frac{1}{\\ln x} for all \\ln x \\ge 11 . |\\operatorname{li}(x)-\\pi(x)| = O(\\sqrt{x}\\log x) In fact, the Riemann hypothesis is equivalent to the statement that: |\\operatorname{li}(x)-\\pi(x)| = O(x^{1/2+a}) for any a>0 . For small x , \\operatorname{li}(x)>\\pi(x) but the difference changes sign an infinite number of times as x increases, and the first time that this happens is somewhere between 10 19 and .",
  "categories": [
    "22904282",
    "23118434",
    "23603337",
    "25626815",
    "29176414",
    "68328988"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1339812367",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1771761545.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001339812367",
    "type": "webpage",
    "title": "Logarithmic integral function",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/logarithmic-integral-function",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          20
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          20
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001339812367",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1339812367",
    "note": "Immutable snapshot enwiki-001339812367"
  }
}