Laurent Series Calculator

Stephanie Ben-Joseph headshot Stephanie Ben-Joseph

What is a Laurent series?

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 (za)1,(za)2,, which describe behavior near poles and other singularities.

Formally, a function f(z) has a Laurent expansion about z=a of the form

f(z)=n=cn(za)n,

where the coefficients cn are complex numbers. The part with negative powers, n=1cn(zan), is called the principal part. The non‑negative powers n=0cn(za)n 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 c-1 is the residue of f at a, which is crucial for evaluating contour integrals using the residue theorem.

Coefficient formula

For a function that is analytic on and inside a circle centered at a (except possibly at a itself), the Laurent coefficients can be obtained from the Cauchy integral formula:

c n = 1 2 π i | z - a = r f ( z ) ( z - a ) n + 1 d z

Here the integral is taken around a small circle |za|=r that does not cross other singularities of f.

How this Laurent series calculator works

This calculator approximates the coefficients cn 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 cn, the algorithm:

  1. Chooses a radius r around the expansion point a.
  2. Samples points on the circle z_k=a+reiθk with equally spaced angles θθk=2πkN.
  3. Evaluates f(zk) using math.js with the real variable x substituted by zk.
  4. Forms a discrete approximation to the contour integral that defines cn.

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.

How to use the calculator

To compute a Laurent series with the tool:

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 f(z) as

f(z)n=nminnmaxcn(za)n.

Interpreting the results

The output lists coefficients cn together with their corresponding powers (za)n. You can use these in several ways:

Worked example

Example: f(z) = 1/(z-1) around a = 0

Consider

f(z)=1z1,a=0.

For |z|<1, we can rewrite

1z1=11z=n=0zn.

In Laurent series form about a=0, this is actually a Taylor series (no negative powers):

f(z)=-1-z-z2-z3-

If you set in the calculator:

you should obtain coefficients close to c0=-1,c1=-1,c2=-1,c3=-1. There is no principal part here; the function is analytic at 0, and its Laurent series reduces to a Taylor series.

Example: f(z) = (z+1)/(z(z-2)) around a = 1

Now consider

f(z)=z+1z(z-2),a=1.

This function has simple poles at z=0 and z=2. Around z=1, the Laurent series has a non‑trivial principal part (because 1 is between two poles) and a regular part. By running the calculator with

you will see a (z1)1 term, whose coefficient is the residue at z=1, together with several regular terms. Comparing these to a hand computation (via partial fractions and Taylor expansion) gives a useful check.

Comparison: Laurent vs. Taylor series

Feature Taylor series Laurent series
Allowed powers Non‑negative powers (za)0,(za)1, Both negative and non‑negative powers
Singularities at the center Not allowed; requires f analytic at a Allows isolated singularities at a (poles, essential singularities)
Principal part Absent Present if there are negative powers; encodes singular behavior
Residue (coefficient of (za)1) 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

Limitations and assumptions

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 f(z) 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.

Enter parameters to compute.

Embed this calculator

Copy and paste the HTML below to add the Laurent Series Calculator – Complex Function Expansion & Residues to your website.