Shapes & spaces

Clausen integral calculator with periodic angle reduction

Evaluate the periodic Clausen integral using singularity subtraction and a stated angular convention.

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

The real Clausen function of order two integrates minus the logarithm of the absolute value of twice the sine of half an angle. The logarithm diverges at multiples of two pi, but that endpoint singularity is integrable.

THE FORMULACl2(theta)=-integral_0^theta log|2sin(t/2)|dt. Reduceperiod2pi andoddness to x in[0,pi]withsign. x0orpi exact0. Forpositive x, subtractsingularity: Cl2(x)=x*(1-logx)-integral_0^x log(sin(t/2)/(t/2))dt. Evaluatesinc ratio viaTaylornear0 andadaptivequadratureon smoothintegrand. derivative=-logabs(2sinθ/2) exceptat2πk diverges; atπ -log2. Catalanconstantfixture independent.

A worked example

With the prefilled inputs, value = 0.9159655941772191.

Good to know

Cl₂(θ)=−∫₀ᶿ log|2sin(t/2)|dt; singular log term integrated analytically. Derivative is with respect to radians even when degree input is selected.

An integral with a logarithmic endpoint

The real Clausen function of order two integrates minus the logarithm of the absolute value of twice the sine of half an angle. The logarithm diverges at multiples of two pi, but that endpoint singularity is integrable.

The resulting function is finite and periodic. It appears in trigonometric sums and special-function identities. This page evaluates a real angle integral, rather than a general complex dilogarithm with arbitrary branch choices.

Clausen integral calculator with periodic angle reductionClausen Cl₂ over one period0π2πCl₂(π/2) = Catalan ≈ 0.915966
Scroll across to see the full diagram.
The curve is computed by singularity-subtracted quadrature, with the independent Catalan-constant value atπ/2 marked. Oddness and periodicity determine the negative half-period.

Compare with the Real dilogarithm calculator with branch conventions. Computeimaginaryunitcircle dilog/realClausenintegralwithlogsin singularity; currentdilogsupportsrealargumentsandcannotreturnthisperiodicfunction.

Angles and periodic reduction

Use the prefilled input structure and preserve the declared column or index order. Choose degrees or radians explicitly. The calculation converts to radians and reduces the angle modulo two pi before using oddness to work on a smaller interval. This reduction improves numerical stability and makes the sign behavior easier to check.

Exact multiples supplied through a recognized symbolic angle can use exact zeros where appropriate. A long decimal close to pi is merely close, not automatically exact. The interface must distinguish an intended exact angle from a rounded numerical input.

Removing the singularity before quadrature

Near zero, twice sine of half t behaves like t. Subtracting log t leaves the logarithm of a smooth sinc ratio. Its singular part integrates analytically to x times one minus log x, while the remaining smooth integral is handled numerically.

Evaluating the sinc ratio by its local series avoids cancellation at very small arguments. Directly sending an infinite endpoint value into an ordinary quadrature rule is unnecessary and can create a false failure even though the integral exists.

Derivative and turning behavior

Away from multiples of two pi, the derivative is minus log of the absolute sine expression in the integrand. Its divergence at a periodic origin does not make the function itself infinite. This distinction should be visible in derivative output and help text.

The derivative vanishes where twice the absolute sine of half the angle equals one. A smooth value curve therefore has extrema that can be checked independently of the integration routine. Those extrema should not be inferred from sparse plotted samples alone.

A quarter-turn worked value

At pi divided by two, the Fourier representation has sine values cycling through one, zero, minus one and zero. The surviving terms produce Catalan's constant, approximately 0.915965594177219. This is a useful independent benchmark for the integral representation.

At pi, every sine term in the Fourier sum vanishes and the Clausen value is zero. Oddness gives the negative of the quarter-turn value at minus pi divided by two. Together these tests exercise periodicity, sign reduction and absolute scale.

Reading the static integral diagram

A useful figure shows the Clausen curve over one full period with marked exact zeros and the selected angle. A companion area sketch can explain the logarithmic integral, but it should not imply that the integrand is bounded at the periodic origin.

The numerical quadrature estimate describes the smooth remainder integration. It is not a probability interval. When showing many digits, the page should keep the analytic singular contribution and numerical remainder separate enough to diagnose cancellation. Reducing the angle before quadrature preserves oddness and periodicity while keeping the singular endpoint treatment consistent. At a full-turn multiple the function itself is zero, but its derivative is not finite. At an odd half-turn the function is also zero for a different symmetry reason. These distinctions prevent an exact function value from being mistaken for differentiability at every special angle.

Scope and numerical limits

Very large angles can lose remainder information during floating-point periodic reduction. The accepted entered angle is bounded in magnitude by one billion, but large-angle periodic reduction can still lose low-order information. The returned derivative is with respect to radians even if the angle input was supplied in degrees, so a derivative per degree would require multiplication by pi over180.

The calculation does not evaluate arbitrary complex polylogarithms or choose their continuation paths. Its special-function relation supplies checks and context. If a future complex-polylogarithm page includes this same real operation, the catalogue should merge overlapping functionality rather than count an alias. Cl₂(θ)=−∫₀ᶿ log|2sin(t/2)|dt; singular log term integrated analytically. Derivative is with respect to radians even when degree input is selected.

A few questions, answered

Is the function infinite at zero?

No; the logarithmic singularity of the integrand is integrable and the function value is zero.

Why does the calculator reduce the angle first?

Periodicity and oddness give a smaller, better-conditioned real integration interval.

What is the value at ninety degrees?

At ninety degrees, Cl₂ equals Catalan's constant, approximately 0.915965594177219. This is a reference value for the angle convention and the numerical quadrature.

Which angular units apply to the derivative?

It is explicitly a derivative per radian even when the input selector is degrees; multiply by pi/180 for a derivative per degree.

Find your calculator

Start typing to explore the library.