{
  "id": "residue-theorem",
  "title": "Residue Theorem",
  "lang": "en",
  "source_lang": "en",
  "summary": "The residue theorem evaluates complex contour integrals by summing local coefficients at enclosed singularities, weighted by the contour’s winding numbers.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Cauchy’s residue theorem",
    "Cauchy residue theorem"
  ],
  "generated_at": "2026-11-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/residue-theorem/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/residue-theorem/",
      "json": "https://aiwiki.page/zh/residue-theorem.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The residue theorem is a central result in complex analysis that expresses an integral around a closed contour as a sum of contributions from the singularities enclosed by that contour. Each contribution is determined by a single coefficient, called a residue, in the local series expansion of the function. The theorem converts a global integration problem into a collection of local calculations and provides powerful methods for evaluating real integrals, counting zeros, and studying analytic functions."
    },
    {
      "heading": "Residues and isolated singularities",
      "text": "Let \\(f\\) be a complex-valued function that is holomorphic in a punctured disk \\(0<|z-a|<r\\). The point \\(a\\) is then an isolated singularity, unless \\(f\\) has already been defined holomorphically there. In this punctured disk, \\(f\\) has a Laurent series\n\n\\[f(z)=\\sum_{n=-\\infty}^{\\infty}c_n(z-a)^n.\\]\n\nUnlike a Taylor series, a Laurent series may contain negative powers. The residue of \\(f\\) at \\(a\\) is the coefficient of \\((z-a)^{-1}\\):\n\n\\[\\operatorname{Res}(f,a)=c_{-1}.\\]\n\nThis coefficient is singled out by integration. If \\(C_\\rho\\) is the counterclockwise circle \\(|z-a|=\\rho\\), with \\(0<\\rho<r\\), then\n\n\\[\\int_{C_\\rho}(z-a)^n\\,dz = \\begin{cases} 2\\pi i,&n=-1,\\\\ 0,&n\\ne -1. \\end{cases}\\]\n\nConsequently,\n\n\\[\\operatorname{Res}(f,a) = \\frac{1}{2\\pi i}\\int_{C_\\rho}f(z)\\,dz.\\]\n\nThe residue measures the local contribution to a closed-contour integral, not the overall size or severity of the singularity. For example, \\(1/(z-a)^2\\) has a pole but has residue zero."
    },
    {
      "heading": "Statement of the theorem",
      "text": "Simple closed contours\n\nLet \\(C\\) be a positively oriented, piecewise smooth, simple closed contour. Positive orientation means that the bounded interior remains on the left as the contour is traversed.\n\nSuppose \\(f\\) is holomorphic on an open set containing \\(C\\) and its interior, except at finitely many isolated singularities \\(a_1,\\ldots,a_N\\) strictly inside \\(C\\). Then\n\n\\[\\boxed{ \\int_C f(z)\\,dz = 2\\pi i\\sum_{k=1}^{N}\\operatorname{Res}(f,a_k) }.\\]\n\nThe integral is a complex line integral. Reversing the orientation changes its sign.\n\nThe singularities need not be poles: isolated essential singularities are also allowed. A removable singularity contributes zero.\n\nGeneral contours and winding numbers\n\nFor a closed curve that crosses itself or travels around a point more than once, “inside” is replaced by the winding number\n\n\\[\\operatorname{Ind}(\\gamma,a) = \\frac{1}{2\\pi i}\\int_\\gamma\\frac{dz}{z-a}.\\]\n\nThis integer counts the net number of counterclockwise turns around \\(a\\).\n\nOne general formulation is as follows. Let \\(U\\) be an open subset of the complex plane, let \\(A=\\{a_1,\\ldots,a_N\\}\\subset U\\), and suppose \\(f\\) is holomorphic on \\(U\\setminus A\\). If \\(\\gamma\\) is a closed piecewise smooth curve in \\(U\\setminus A\\) satisfying\n\n\\[\\operatorname{Ind}(\\gamma,w)=0 \\qquad\\text{for every }w\\notin U,\\]\n\nthen\n\n\\[\\int_\\gamma f(z)\\,dz = 2\\pi i \\sum_{k=1}^{N} \\operatorname{Ind}(\\gamma,a_k)\\operatorname{Res}(f,a_k).\\]\n\nThe condition on points outside \\(U\\) prevents the contour from enclosing holes where the function’s behavior has not been specified. It is automatically satisfied when \\(U\\) is simply connected."
    },
    {
      "heading": "Why the theorem holds",
      "text": "The residue theorem follows from Cauchy’s integral theorem and the local Laurent expansion.\n\nFor the simple-contour version, remove small disjoint disks around the singularities. The remaining region contains no singularities of \\(f\\), so the integral around its full oriented boundary is zero. Its outer boundary is \\(C\\), while the boundaries of the removed disks are traversed clockwise.\n\nIf \\(C_k\\) denotes the counterclockwise circle around \\(a_k\\), this gives\n\n\\[\\int_C f(z)\\,dz = \\sum_{k=1}^{N}\\int_{C_k}f(z)\\,dz.\\]\n\nThe local coefficient formula then gives\n\n\\[\\int_{C_k}f(z)\\,dz = 2\\pi i\\,\\operatorname{Res}(f,a_k).\\]\n\nThus the theorem combines two facts: contours can be deformed through regions where the function is holomorphic, and only the \\((z-a)^{-1}\\) term survives integration around an isolated singularity."
    },
    {
      "heading": "Computing residues",
      "text": "Simple poles\n\nIf \\(a\\) is a simple pole, then\n\n\\[\\operatorname{Res}(f,a) = \\lim_{z\\to a}(z-a)f(z).\\]\n\nA particularly useful case is\n\n\\[f(z)=\\frac{g(z)}{h(z)},\\]\n\nwhere \\(g\\) and \\(h\\) are holomorphic near \\(a\\), \\(h(a)=0\\), and \\(h'(a)\\ne0\\). Then\n\n\\[\\operatorname{Res}(f,a)=\\frac{g(a)}{h'(a)}.\\]\n\nIf \\(g(a)=0\\), the singularity is removable rather than a simple pole, and the same expression gives zero.\n\nFor example,\n\n\\[f(z)=\\frac{1}{z^2+1}\\]\n\nhas simple poles at \\(i\\) and \\(-i\\), with\n\n\\[\\operatorname{Res}(f,i)=\\frac{1}{2i}, \\qquad \\operatorname{Res}(f,-i)=-\\frac{1}{2i}.\\]\n\nHigher-order poles\n\nIf \\(a\\) is a pole of order \\(m\\), then\n\n\\[\\operatorname{Res}(f,a) = \\frac{1}{(m-1)!} \\left. \\frac{d^{m-1}}{dz^{m-1}} \\left[(z-a)^m f(z)\\right] \\right|_{z=a}.\\]\n\nFor instance,\n\n\\[f(z)=\\frac{e^z}{(z-a)^2}\\]\n\nhas residue \\(e^a\\) at \\(a\\).\n\nSeries methods\n\nDirect expansion is often simpler than repeated differentiation. Using the exponential function series,\n\n\\[e^{1/z} = 1+\\frac1z+\\frac{1}{2!z^2}+\\cdots,\\]\n\nso\n\n\\[\\operatorname{Res}(e^{1/z},0)=1,\\]\n\neven though \\(0\\) is an essential singularity rather than a pole.\n\nMore generally, products of convergent local series can be expanded until the coefficient of \\((z-a)^{-1}\\) is identified."
    },
    {
      "heading": "Evaluation of real integrals",
      "text": "A major application is evaluating real integrals by embedding a real interval in a closed contour. The residue theorem evaluates the full contour integral; separate estimates must show what happens to the added contour segments.\n\nRational integrals\n\nConsider\n\n\\[I=\\int_{-\\infty}^{\\infty}\\frac{dx}{x^2+1}.\\]\n\nClose the segment \\([-R,R]\\) with a counterclockwise semicircle in the upper half-plane, taking \\(R>1\\). Only the pole \\(i\\) is enclosed, so\n\n\\[\\int_{-R}^{R}\\frac{dx}{x^2+1} + \\int_{\\text{arc}}\\frac{dz}{z^2+1} = 2\\pi i\\frac{1}{2i} = \\pi.\\]\n\nOn the arc,\n\n\\[|z^2+1|\\ge R^2-1,\\]\n\nand therefore\n\n\\[\\left|\\int_{\\text{arc}}\\frac{dz}{z^2+1}\\right| \\le \\frac{\\pi R}{R^2-1} \\longrightarrow 0.\\]\n\nIt follows that\n\n\\[\\int_{-\\infty}^{\\infty}\\frac{dx}{x^2+1}=\\pi.\\]\n\nThe residue calculation alone is not enough: the vanishing arc estimate is an essential part of the argument.\n\nOscillatory integrals\n\nFor \\(a>0\\) and real \\(t\\), residue methods give\n\n\\[\\int_{-\\infty}^{\\infty} \\frac{e^{itx}}{x^2+a^2}\\,dx = \\frac{\\pi}{a}e^{-a|t|}.\\]\n\nFor \\(t>0\\), the contour is closed in the upper half-plane, where\n\n\\[|e^{itz}|=e^{-t\\,\\operatorname{Im}z}\\le1.\\]\n\nThe enclosed pole at \\(ia\\) has residue\n\n\\[\\frac{e^{-at}}{2ia}.\\]\n\nFor \\(t<0\\), closing in the lower half-plane encloses \\(-ia\\); the clockwise orientation supplies the necessary minus sign. This type of calculation is important in Fourier transform methods.\n\nOther useful contours include keyhole contours for powers and logarithms, rectangular contours for periodic functions, and indented contours that avoid singularities on the real axis."
    },
    {
      "heading": "Related results",
      "text": "Cauchy’s integral formula\n\nIf \\(g\\) is holomorphic inside and on a positively oriented simple contour \\(C\\), and \\(a\\) is inside, then \\(g(z)/(z-a)\\) has residue \\(g(a)\\). Hence the residue theorem yields Cauchy’s integral formula:\n\n\\[g(a)=\\frac{1}{2\\pi i}\\int_C\\frac{g(z)}{z-a}\\,dz.\\]\n\nMore generally,\n\n\\[g^{(n)}(a) = \\frac{n!}{2\\pi i} \\int_C\\frac{g(z)}{(z-a)^{n+1}}\\,dz.\\]\n\nThe argument principle\n\nFor a meromorphic function \\(f\\), the logarithmic derivative \\(f'/f\\) has residue \\(m\\) at a zero of multiplicity \\(m\\), and residue \\(-m\\) at a pole of order \\(m\\).\n\nApplying the residue theorem gives the argument principle:\n\n\\[\\frac{1}{2\\pi i}\\int_C\\frac{f'(z)}{f(z)}\\,dz = N-P,\\]\n\nwhere \\(N\\) and \\(P\\) count zeros and poles inside a positively oriented simple contour, with multiplicity. The function must have no zeros or poles on \\(C\\). This turns local algebraic multiplicities into a global count obtainable from boundary values.\n\nResidue at infinity\n\nFor a function holomorphic outside a sufficiently large disk, its residue at infinity is defined by\n\n\\[\\operatorname{Res}(f,\\infty) = -\\operatorname{Res}_{w=0} \\left(\\frac{f(1/w)}{w^2}\\right).\\]\n\nIf \\(f\\) is holomorphic in the complex plane except at finitely many isolated singularities, then\n\n\\[\\sum_{\\text{finite }a}\\operatorname{Res}(f,a) + \\operatorname{Res}(f,\\infty)=0.\\]\n\nIn geometric language, this is an instance of the global residue theorem: the residues of a meromorphic differential form on a compact Riemann surface sum to zero. The differential \\(f(z)\\,dz\\), rather than the function alone, is the coordinate-invariant object."
    },
    {
      "heading": "Historical development",
      "text": "Residue methods emerged from Augustin-Louis Cauchy’s development of complex integration in the early nineteenth century. They brought together contour integration, local series expansions, and the behavior of functions near singularities.\n\nLater developments in Riemann surface theory placed residues in a geometric setting. In this formulation, the cancellation of residues on compact surfaces connects local singular behavior with global structure."
    },
    {
      "heading": "Conditions and limitations",
      "text": "Several distinctions matter when applying the theorem:\n\n- Singularities on the contour are excluded. Such a contour requires modification or a separately defined limiting procedure. An ordinary improper integral and a Cauchy principal value need not agree.\n- Branch points are not isolated singularities of a single-valued holomorphic function on a punctured disk. Expressions involving logarithms or noninteger powers require a chosen branch and a suitable domain before contour integration can be applied.\n- Contours extending to infinity require estimates. The contribution from a large arc or another closing segment does not vanish automatically.\n- An infinite collection of singularities requires additional justification. The finite-sum theorem does not by itself authorize an infinite residue sum or an interchange of limits and summation.\n- Zero residue does not imply a removable singularity. A higher-order pole or an essential singularity may have residue zero.\n- Domain topology matters. A contour can surround a hole in the domain without surrounding any listed singularity. The general theorem’s winding-number condition accounts for this possibility."
    }
  ],
  "links": [
    "complex-analysis",
    "analytic-function",
    "laurent-series",
    "taylor-series",
    "line-integral",
    "exponential-function",
    "integral",
    "fourier-transform",
    "meromorphic-function",
    "differential-form",
    "riemann-surface",
    "augustin-louis-cauchy"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}