How this calculation works
Evaluate the real principal dilogarithm Li2 with explicit endpoint and branch conventions.
Li2(x)=Σxⁿ/n² for |x|≤1; dLi 2/dx=−log(1−x)/x.A worked example
Li2(1/2)=π²/12−(log2)²/2≈0.5822405265.
Good to know
Real−1e6≤x≤1. Series after real functional transformations to 0≤t≤1/2; endpoint values explicit. Values above 1 require a complex branch and are rejected. Numerical finite precision, not a formal series remainder enclosure.
An integral of a logarithm
The dilogarithm extends a familiar logarithmic pattern: its derivative is minus log one-minus-x divided by x. It appears in definite integrals, series identities and analytic formulas where a single elementary logarithm is insufficient. Its conventional name Li2 refers to the polylogarithm of order two.
This page evaluates the principal function on its real domain up to one. Beyond that point a branch cut introduces a complex value, so accepting a real number greater than one without a branch convention would change the problem rather than simply extend the same real evaluation.
Compare this with the Hurwitz zeta function calculator with Euler Maclaurin remainder check. Evaluate Li2 at a real argument using argument-dependent series and functional identities; a Hurwitz-zeta value does not supply this function.
Choosing the real-domain convention
Enter a finite real argument between minus one million and one. The function is real throughout this interval. At zero the apparent derivative singularity is removable, while at one the value remains finite but the positive derivative diverges.
Some software uses the name Spence function for a transformed argument, often Li2 of one-minus-x. Comparing equal numeric inputs without checking this convention can therefore produce different values even when both implementations are correct. This calculator always labels its output Li2 of the entered x.
A half-argument identity
For x equal to one-half, the reflection identity combines two equal dilogarithms. It gives Li2 one-half equal to pi squared over twelve minus one-half times log two squared. The resulting value is approximately 0.5822405265.
The default derivative is log two divided by one-half, approximately 1.3862943611. This derivative is local slope, not a second independently normalized special function. Both the elementary identity and the derivative provide simple checks of the page's argument convention.
Reducing to a rapidly converging series
The direct series converges quickly when its transformed argument lies between zero and one-half. For inputs close to one, the reflection identity moves the series to one-minus-x and adds explicit logarithmic terms. This avoids a very slow near-unit series.
Negative inputs are transformed through real identities involving x divided by x-minus-one or its reciprocal. These moves retain a real logarithm of positive quantities in the supported domain. The implementation does not cross the complex branch cut and then discard an imaginary part to force a real answer.
Endpoint values and a removable limit
Li2 zero is zero, Li2 one is pi squared over six and Li2 minus one is minus pi squared over twelve. Those values are handled explicitly. The derivative at zero is one by a limit, so it should not be evaluated by a literal zero divided by zero expression.
At x equal to one, the page reports the derivative's unbounded limiting behavior rather than a fabricated finite slope. Approaching one from below can also magnify input sensitivity of the derivative even though the function value itself approaches a finite limit.
Reading convergence information
The term count records the series work performed after functional reduction. It is not the number of original powers summed at the entered x, and it does not count elementary logarithmic transformations as extra series terms. Different arguments can therefore have similar term counts despite very different values.
The stop criterion controls the small transformed terms under finite arithmetic. A reported value with ten decimal places is not a universal claim of ten correct relative digits near a function zero. Independent functional identities and a trusted high-precision reference remain appropriate checks for demanding downstream use.
Using the result in another formula
Retain the exact Li2 argument when transferring values into a larger analytic expression. Cancellations between several dilogarithms and logarithms can make the final expression less accurate than each individual output. Changing a transformed argument without its accompanying logarithmic terms gives an incorrect identity.
Use a complex special-function implementation if your expression requires arguments above one or complex continuation around the branch point. This real-only page deliberately rejects those inputs. It supplies a bounded principal real evaluation, not an automatic simplifier of every multibranch dilogarithm identity.
A few questions, answered
Is Li2(x) the same as Spence(x)?
Not necessarily. Some libraries define Spence(x) as Li2(1−x), so check the argument convention.
Why is x above 1 rejected?
The principal continuation is complex there and requires an explicit branch convention.
What is the derivative at zero?
Its removable limit is 1, even though the written quotient has a zero denominator.
Is the value infinite at x=1?
No. Li2(1)=π²/6 is finite; its derivative diverges from the left.