Shapes & spaces

Real polylogarithm calculator with integer order and argument transformations

Compute Li_s(x) for variable real argument and integer order, with derivative and branch-domain explanation.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Compute Li_s(x) for variable real argument and integer order, with derivative and branch-domain explanation. Hurwitz zeta lacks the variable geometric factor x^k.

THE FORMULALi_s(x)=Σ_(k>=1) x^k/k^s; d Li_s(x)/dx=Li_(s-1)(x)/x, with derivative 1 at x=0.

A worked example

For order s=2 and x=1/2, Li2(1/2)=pi²/12-(log 2)²/2, approximately 0.5822405264650125. Its derivative there is 2 log 2, approximately 1.3862943611198906.

Good to know

Integer s=2–8; -20<=x<=1; scalar real values only; x=1 handled with zeta constants; no complex continuation across the positive cut.

Choose the order and a real argument

The integer order changes how strongly higher powers are weighted in the defining series. The argument contributes a geometric factor x^k. Orders two through eight include the dilogarithm and trilogarithm while keeping the initial family explicit and bounded.

This calculator returns real values on a declared real branch for x between -20 and 1. A point beyond x=1 crosses the standard positive-real branch cut and needs a complex convention. It should not be accepted silently as another real value.

Real polylogarithms vanish at zero and remain finite at argument one for the supported orders0x=1Li2 and Li3
Scroll across to see the full diagram.
Real polylogarithms vanish at zero and remain finite at argument one for the supported orders. Their endpoint derivatives need separate checks.

Compare this with the Hurwitz zeta function calculator with Euler Maclaurin remainder check. Compute Li_s(x) for variable real argument and integer order, with derivative and branch-domain explanation. Hurwitz zeta lacks the variable geometric factor x^k.

Understand the weighted power series

For argument magnitude below one, the powers decay geometrically and the defining series gives a direct evaluation. At a small argument the first few terms often dominate, but the required truncation still depends on the order and desired accuracy.

The first derivative at zero is one for every supported order because the linear term is x. Computing Li_(s-1)(x)/x literally at zero creates a removable zero-over-zero expression. Use its limiting value instead of interpreting it as a singular derivative.

Change evaluation routes when the series slows

Near x=1, powers decay slowly, so a direct series may need many terms. For large negative x, the defining power series is outside its convergence disk. Integral representations and argument transformations provide alternative real evaluation routes.

These changes must preserve the stated branch. Applying a complex logarithmic identity without tracking its imaginary contributions can turn a real negative-argument answer into an incorrect complex result. A cross-check on overlapping regions tests the consistency of the chosen routes.

Relate derivatives to neighboring orders

Differentiation reduces the order by one and divides by the argument. For the dilogarithm, the neighboring function is Li1(x)=-log(1-x), giving an elementary derivative. Higher orders reuse the same family at the reduced order.

At x=1, a supported value may be finite while its derivative is not. Li2(1) is pi²/6, but its derivative diverges logarithmically. The output should distinguish an endpoint value from a nonexistent finite endpoint derivative.

Verify the half-argument dilogarithm

The identity at x=1/2 combines pi² and the squared natural logarithm of two. It supplies a reference value independent of the numerical series used for a general query. The derivative at the same input is the elementary number 2 log 2.

Together these checks exercise both the value and derivative paths. Testing only the function at zero would miss most indexing errors because every supported order vanishes there. A nonzero argument and an order change make the reference more discriminating.

Connect special arguments with zeta values

At x=1, Li_s becomes the Riemann zeta value zeta(s) for supported orders. At x=-1, alternating signs give -(1-2^(1-s))*zeta(s). These identities connect the geometric weighting to ordinary and alternating reciprocal-power sums.

Hurwitz zeta instead shifts the denominator and does not provide a variable geometric argument. The functions are related, but their user inputs encode different weighted sums. This page should keep that distinction visible when linking to the zeta calculation. At x=0, Li_s is zero and its derivative is one by the limiting power series. At x=1 the value becomes zeta(s), but the derivative is not uniformly finite: for order two, Li_1(x)/x diverges from the left. The page labels that derivative unbounded rather than printing a finite number. For negative arguments with magnitude above one, the defining power series does not converge, so a real integral representation is used instead. No complex branch beyond the positive-real cut is inferred from that real-valued implementation. Compare both order and argument when using a table of special values.

Interpret numerical diagnostics and branch limits

Comparing two formulas in an overlap region can expose cancellation or slow convergence. A stated numerical tolerance remains a computational target unless a rigorous tail and rounding enclosure is actually returned. Do not label an agreement check an exact proof.

The initial order and argument bounds are deliberate. They exclude complex branches and avoid promising a universal special-function implementation. A rejected input indicates this tool’s scope, not that the polylogarithm has no mathematical definition there.

A few questions, answered

Why is x greater than one excluded?

The usual principal polylogarithm acquires a branch cut there. Returning a real answer without a complex branch convention would be ambiguous for the intended scope.

How is this related to the zeta function?

At argument one, the supported polylogarithm equals zeta(s). A variable argument adds the geometric weighting x^k to the reciprocal-power sum.

What derivative is returned at zero?

The limiting derivative is one. This case must be handled directly because the neighboring-order quotient has a removable zero-over-zero form.

Is the displayed error a certified bound?

Only if the implementation explicitly provides a rigorous bound. Formula agreement and truncation diagnostics otherwise describe numerical evidence rather than a certified enclosure.

Find your calculator

Start typing to explore the library.