A Laurent series represents a complex function as an infinite sum of both positive and negative powers around a point a. While a Taylor series only has non‑negative powers (regular power series), a Laurent series can include terms like , which describe behavior near poles and other singularities.
Formally, a function has a Laurent expansion about of the form
where the coefficients are complex numbers. The part with negative powers, , is called the principal part. The non‑negative powers form the regular part (similar to a Taylor series).
Laurent series are central in complex analysis because they describe the local behavior of functions near isolated singularities. In particular, the coefficient is the residue of at , which is crucial for evaluating contour integrals using the residue theorem.
For a function that is analytic on and inside a circle centered at (except possibly at itself), the Laurent coefficients can be obtained from the Cauchy integral formula:
Here the integral is taken around a small circle that does not cross other singularities of .
This calculator approximates the coefficients numerically using the contour integral formula above. Instead of integrating exactly, it samples points on a circle around the expansion point and approximates the integral by a discrete sum.
For each coefficient , the algorithm:
math.js with the real variable x substituted by .For rational functions with isolated poles, this numerical contour method typically recovers the dominant coefficients quite accurately, especially the principal part (negative powers) and a few nearby regular terms.
To compute a Laurent series with the tool:
x as the variable, in syntax compatible with math.js. For example:
1/(x-1)(x+1)/(x*(x-2))exp(1/x) (numerically more delicate)0. For an expansion around , use 1, and so on.2 means the calculator will include terms down to .After you click the compute button, the tool estimates all coefficients from the specified negative order up to the specified positive order and displays them so that you can reconstruct as
The output lists coefficients together with their corresponding powers . You can use these in several ways:
Consider
For , we can rewrite
In Laurent series form about , this is actually a Taylor series (no negative powers):
If you set in the calculator:
1/(x-1)003you should obtain coefficients close to . There is no principal part here; the function is analytic at , and its Laurent series reduces to a Taylor series.
Now consider
This function has simple poles at and . Around , the Laurent series has a non‑trivial principal part (because is between two poles) and a regular part. By running the calculator with
(x+1)/(x*(x-2))113you will see a term, whose coefficient is the residue at , together with several regular terms. Comparing these to a hand computation (via partial fractions and Taylor expansion) gives a useful check.
| Feature | Taylor series | Laurent series |
|---|---|---|
| Allowed powers | Non‑negative powers | Both negative and non‑negative powers |
| Singularities at the center | Not allowed; requires analytic at | Allows isolated singularities at (poles, essential singularities) |
| Principal part | Absent | Present if there are negative powers; encodes singular behavior |
| Residue (coefficient of ) | Zero by definition | May be nonzero and is used in the residue theorem |
| Typical use cases | Local approximations for analytic functions, series solutions | Studying singularities, computing contour integrals, analytic continuation |
This calculator is designed primarily for rational functions and reasonably well‑behaved expressions near the expansion point. The numerical method assumes:
When using more complicated functions (such as those with branch cuts, essential singularities, or many nearby poles), expect the numerical coefficients to be approximations only. For highly sensitive problems, compare the output with symbolic algebra or smaller radii and more sample points if those options are available.
Finally, keep in mind that the series is local: it describes only within the annulus where the Laurent series converges. Outside that region, the truncated series used by the calculator may give poor approximations even if it looks algebraically similar.