Maths & numbers

Cauchy principal value integral calculator for a simple pole

Evaluate the symmetric principal value of p(x)/(x−c) with an exact polynomial numerator and a declared interior pole.

Your numbers

Use exact integers, decimals with up to six places, or fractions. Separate entries with commas or spaces; each component is bounded as stated in the guide. Use at most 21 coefficients, from constant term upward.
Use an integer, a decimal with up to six places, or a fraction such as 3/2. Endpoint magnitude and fraction components are limited to 1,000,000.
Use an integer, a decimal with up to six places, or a fraction such as 3/2. Endpoint magnitude and fraction components are limited to 1,000,000.
Use an integer, a decimal with up to six places, or a fraction such as 3/2. Endpoint magnitude and fraction components are limited to 1,000,000.

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

A Cauchy principal value takes a linked symmetric limit around a declared singularity. It is not the same as requiring the two ordinary one-sided improper integrals to converge independently. This calculator supports the explicit class p(x)/(x−c), where p is a polynomial and c lies strictly inside the interval. Exact polynomial division separates a regular polynomial integral from a simple logarithmic pole contribution. The regular part and residue remain exact fractions; the logarithm and final sum are numerical.

THE FORMULAPV ∫aᵇ p(x)/(x−c) dx = ∫aᵇ [p(x)−p(c)]/(x−c) dx + p(c) ln[(b−c)/(c−a)], a<c<b.

A worked example

For p(x) = 1, integrate 1/x from −1 to 2 with pole c = 0. Removing equal distances ε on each side gives [ln ε − ln 1] + [ln 2 − ln ε] = ln 2. The principal value is therefore about 0.693147. The separate integrals to zero diverge, so this finite principal value must not be called an ordinary convergent improper integral.

Good to know

Only one declared simple-pole polynomial-numerator form is supported. Enter at most 21 ascending rational coefficients and exact rational bounds satisfying a < c < b. Multiple poles, higher-order finite-part regularization, arbitrary-expression singularities and automatic pole discovery are excluded. If p(c) = 0 the singularity is removable and is labeled accordingly. Exact fraction growth is bounded; the logarithmic result is approximate.

The two cutoffs must approach the pole together

The definition here removes (c−ε,c+ε) with the same ε in the coordinate variable on both sides. For 1/x, the divergent logarithms then cancel in the linked sum. If independent cutoffs approach zero at different relative rates, a different constant or divergence can result. That is why the page states its cutoff convention rather than merely skipping a small central sample in a numerical rule.

An asymmetric integration interval can still have a principal value. In the default [−1,2] example the two endpoint distances are one and two, so the remaining logarithm is ln 2 rather than zero. Symmetry of the removed neighborhood, not symmetry of the full endpoints, defines the cancellation. The displayed positive logarithm ratio records those endpoint distances explicitly.

Equal logarithmic divergences cancel only in the linked principal-value limitLeft: ln ε; right: ln 2 − ln εln ε + ln 2 − ln ε = ln 2One-sided integrals still diverge
For 1/x on [−1,2], the left cutoff term is ln ε and the right is ln 2 − ln ε. Their linked sum is ln 2; the ordinary one-sided integrals diverge.

The Gauss–Legendre quadrature calculator with nodes and weights estimates a regular finite-interval integral; it does not replace a principal-value definition at a pole.

Polynomial division removes the computational singularity

Write p(x) = (x−c)q(x) + p(c). The quotient q is an ordinary polynomial, so its integral over [a,b] is regular and can be computed exactly with rational coefficients. Only p(c)/(x−c) needs the principal-value limit. For p(x) = x and c = 0, the residue vanishes, leaving q = 1 and an ordinary integral after cancellation.

This analytic separation avoids asking a quadrature method to sample arbitrarily close to a pole. The Gauss–Legendre quadrature calculator handles a different regular finite-interval task and cannot infer this cancellation from an unspecified singularity. A finite principal value also does not make the absolute integral finite, establish a probability normalization or justify an unrelated physical regularization. The restricted polynomial model keeps the supported operation explicit and independently checkable.

A few questions, answered

Does a finite principal value mean the improper integral converges?

No. The ordinary improper integral requires independent one-sided convergence. Principal value uses a linked cancellation rule and can be finite when those one-sided integrals diverge.

What happens when the numerator is zero at the pole?

The factor x−c cancels from the polynomial numerator. The page reports a removable singularity and integrates the regular quotient.

Find your calculator

Start typing to explore the library.