Cauchy integral formula and derivatives

A closed contour integral looks like it should depend on every value f(z)f(z) takes all along the curve CC. Cauchy's Integral Formula says something far stronger: if ff is analytic inside and on CC, the integral ∮Cf(z)/(z−a) dz\oint_C f(z)/(z-a)\,dz collapses to a single number, 2πi f(a)2\pi i\,f(a) — the value at one interior point. Differentiate that formula and you get every derivative f(n)(a)f^{(n)}(a) from the same boundary data, for free. This turns contour integration from a parametrize-and-grind exercise into instant lookup: spot the pole, read off ff, aa, nn, and write the answer. It also delivers one of complex analysis's most surprising facts — an analytic function is automatically infinitely differentiable, with no real-variable counterpart. This article builds the formula from Cauchy's Integral Theorem, states the derivative generalization, and drills the pattern-matching skill on two fully worked contour integrals.

The core insight

Cauchy's Integral Formula reconstructs an analytic function's value (and, by differentiating, all its derivatives) at an interior point purely from its values on the boundary contour, via f(n)(a)=n!2πi∮Cf(z)(z−a)n+1dzf^{(n)}(a) = \frac{n!}{2\pi i}\oint_C \frac{f(z)}{(z-a)^{n+1}}dz.

The core idea

Setup. Let ff be analytic inside and on a simple closed contour CC, traversed counter-clockwise, and let aa be any point strictly inside CC. Then f(a)f(a) is fully determined by the boundary values of ff:

f(a)=12πi∮Cf(z)z−a dz.f(a) = \frac{1}{2\pi i} \oint_C \frac{f(z)}{z-a}\, dz.

where: CC is the closed contour, aa is a fixed interior point, zz is the integration variable running along CC, and the 2πi2\pi i factor is the same constant that appears in ∮dz/(z−a)=2πi\oint dz/(z-a) = 2\pi i.

Why it is plausible. The integrand f(z)/(z−a)f(z)/(z-a) is analytic everywhere inside CC except at the single point z=az=a. By the deformation principle (a direct consequence of Cauchy's Integral Theorem), the integral over CC equals the integral over a tiny circle around aa — and on that tiny circle f(z)≈f(a)f(z)\approx f(a), since ff is continuous. Shrinking the circle isolates exactly one copy of f(a)f(a) times the standard 2πi2\pi i.

Differentiate to get every derivative. Formally differentiating the formula with respect to aa, repeatedly, produces derivatives of all orders from the same boundary integral:

f(n)(a)=n!2πi∮Cf(z)(z−a)n+1 dz,n=0,1,2,…f^{(n)}(a) = \frac{n!}{2\pi i} \oint_C \frac{f(z)}{(z-a)^{n+1}}\, dz, \qquad n = 0, 1, 2, \dots

where: nn is the derivative order (n=0n=0 recovers the original formula), and n!n! is the usual factorial that must not be dropped. The striking consequence: an analytic function is automatically infinitely differentiable, and every one of its derivatives is itself analytic — a guarantee real-variable calculus never offers, where being differentiable once says nothing about being differentiable twice.

How it is used in practice. The formulas are almost always run in reverse: given ∮Cf(z)(z−a)n+1 dz\oint_C \dfrac{f(z)}{(z-a)^{n+1}}\,dz with ff analytic inside CC and aa inside CC, the answer is read off instantly as 2πin!f(n)(a)\dfrac{2\pi i}{n!}f^{(n)}(a), with no parametrization of CC ever needed.

Figure
Diagram showing a contour C enclosing a point a with a shrinking circle around a illustrating the deformation argument
Deforming C down to a tiny circle around a contour C a small circle radius epsilon shrink on the small circle f(z) is close to f(a) so the integral equals 2 pi i times f(a)
Derivation ADeriving Cauchy's Integral Formula from Cauchy's Integral Theorem

The goal is to show, starting only from Cauchy's Integral Theorem and the ML-inequality — the standard bound that a contour integral's size is at most (arc length) times (maximum integrand size) — that ∮Cf(z)/(z−a) dz\oint_C f(z)/(z-a)\,dz collapses to the single value 2πi f(a)2\pi i\,f(a), no matter how complicated ff or how large CC is, provided ff is analytic inside and on CC and aa lies strictly inside CC.

Step 1. Isolate the singularity by deformation. The function g(z)=f(z)/(z−a)g(z) = f(z)/(z-a) is analytic inside and on CC except at the single point z=az=a. Cauchy's Integral Theorem (applied to the region between CC and a small circle Cε:∣z−a∣=εC_\varepsilon: |z-a|=\varepsilon drawn around aa, where gg is analytic throughout that annular region) gives ∮Cg(z) dz=∮Cεg(z) dz\oint_C g(z)\,dz = \oint_{C_\varepsilon} g(z)\,dz: the original contour can be shrunk down to the tiny circle without changing the integral's value.

Step 2. Split off the constant piece f(a)f(a). Write f(z)=f(a)+[f(z)−f(a)]f(z) = f(a) + [f(z)-f(a)] inside the integral over CεC_\varepsilon:

∮Cεf(z)z−a dz=f(a)∮Cεdzz−a+∮Cεf(z)−f(a)z−a dz.\oint_{C_\varepsilon} \frac{f(z)}{z-a}\,dz = f(a)\oint_{C_\varepsilon} \frac{dz}{z-a} + \oint_{C_\varepsilon} \frac{f(z)-f(a)}{z-a}\,dz.

The first term is a pure constant f(a)f(a) times a standard integral.

Step 3. Evaluate the standard integral. Parametrizing CεC_\varepsilon as z=a+εeiθz = a + \varepsilon e^{i\theta}, θ\theta from 00 to 2π2\pi, gives ∮Cεdz/(z−a)=2πi\oint_{C_\varepsilon} dz/(z-a) = 2\pi i exactly, independent of ε\varepsilon — the shifted version of the familiar 1/z1/z result. So the first term is f(a)⋅2πif(a)\cdot 2\pi i.

Step 4. Show the second term vanishes as ε→0\varepsilon \to 0. Since ff is continuous at aa, ∣f(z)−f(a)∣→0|f(z)-f(a)| \to 0 as z→az \to a; call this maximum value M(ε)M(\varepsilon) on CεC_\varepsilon, with M(ε)→0M(\varepsilon)\to 0. The ML-inequality bounds the second integral by M(ε)⋅(length of Cε)=M(ε)⋅2πεM(\varepsilon) \cdot (\text{length of } C_\varepsilon) = M(\varepsilon)\cdot 2\pi\varepsilon, which shrinks to 00 because M(ε)→0M(\varepsilon) \to 0 while 2πε2\pi\varepsilon stays bounded. Combining Steps 1 to 4, ∮Cg(z) dz=2πi f(a)+0=2πi f(a)\oint_C g(z)\,dz = 2\pi i\,f(a) + 0 = 2\pi i\,f(a), which is exactly Cauchy's Integral Formula after dividing both sides by 2πi2\pi i.

Worked example

Problem. Evaluate ∮Ccos⁡zz4 dz\displaystyle\oint_C \frac{\cos z}{z^4}\,dz where C:∣z∣=1C: |z|=1 (counter-clockwise), and compare with the related integral ∮Ccos⁡zz3 dz\displaystyle\oint_C \frac{\cos z}{z^3}\,dz over the same contour.

Step 1. Match the pattern for the first integral. Write the integrand as f(z)(z−0)3+1\dfrac{f(z)}{(z-0)^{3+1}}, so f(z)=cos⁡zf(z) = \cos z (entire, hence analytic inside CC), a=0a = 0, and n=3n=3. Check aa is inside CC: ∣0∣=0<1|0| = 0 < 1, so it is. This is the derivative form of the Cauchy Integral Formula with n=3n=3:

∮Ccos⁡zz4 dz=2πi3! f(3)(0).\oint_C \frac{\cos z}{z^4}\,dz = \frac{2\pi i}{3!}\, f^{(3)}(0).

Step 2. Compute the needed derivative. f′(z)=−sin⁡zf'(z) = -\sin z, f′′(z)=−cos⁡zf''(z) = -\cos z, f′′′(z)=sin⁡zf'''(z) = \sin z, so f(3)(0)=sin⁡0=0f^{(3)}(0) = \sin 0 = 0.

Step 3. Substitute back. ∮Ccos⁡zz4 dz=2πi6⋅0=0\oint_C \dfrac{\cos z}{z^4}\,dz = \dfrac{2\pi i}{6}\cdot 0 = \mathbf{0}.

Step 4. Do the companion integral ∮Ccos⁡z/z3 dz\oint_C \cos z/z^3\,dz the same way, to see the pattern shift by one power. Here the denominator is (z−0)2+1(z-0)^{2+1}, so n=2n=2 this time, and the formula gives 2πi2!f′′(0)=πi⋅(−cos⁡0)=\dfrac{2\pi i}{2!}f''(0) = \pi i\cdot(-\cos 0) = \boldsymbol{-\pi i}, since f′′(z)=−cos⁡zf''(z) = -\cos z and cos⁡0=1\cos 0 = 1. Lining the two answers up side by side — 00 for the z4z^4 case, −πi-\pi i for the z3z^3 case — is the fastest way to check the power of (z−a)(z-a) in the denominator was correctly matched to n+1n+1 before reading off which derivative of ff is needed.

Common traps

  • Applying the formula when aa is outside CC. Then f(z)/(z−a)f(z)/(z-a) is analytic throughout CC, and Cauchy's Integral Theorem (not the formula) gives 00 — a different theorem for a different situation; always locate aa relative to CC first.
  • Misreading the power of (z−a)(z-a). For cos⁡z/z4\cos z/z^4, it is tempting to peel off cos⁡z/z3\cos z/z^3 as "f(z)f(z)" with n=1n=1; instead match the exact power in the denominator to n+1n+1 and keep the rest as f(z)f(z), provided that remainder is analytic inside CC.
  • Dropping the n!n!. f(n)(a)=n!2πi∮Cf(z)(z−a)n+1dzf^{(n)}(a) = \dfrac{n!}{2\pi i}\oint_C \dfrac{f(z)}{(z-a)^{n+1}}dz — omitting or misplacing n!n! is a common slip for n≥2n \ge 2, as seen in the 3!=63! = 6 above.
  • Using the formula when ff itself has a hidden singularity inside CC. If f(z)f(z) is not analytic everywhere inside CC (a singularity distinct from aa), the formula does not directly apply; such cases need residue calculus, covered later.

Ask the tutor: If distinguishing when the answer is zero versus a derivative value still feels shaky, ask the AI tutor for a quick mixed set of five contour integrals to test the inside-or-outside judgment call.

Why does Cauchy's Integral Formula work even though f(z)/(z-a) blows up at z=a?

The singularity at z=az=a is exactly what makes the formula nontrivial, and the derivation handles it by shrinking the contour down to a tiny circle around aa. On that tiny circle f(z)f(z) barely differs from f(a)f(a) because ff is continuous, so the integral behaves like f(a)f(a) times the standard result ∮dz/(z−a)=2πi\oint dz/(z-a) = 2\pi i. The blow-up is real, but it is exactly cancelled by the shrinking arc length of the tiny circle, which is why the ML-inequality step shows the leftover piece vanishes.

How do I quickly tell whether to use Cauchy's Theorem (answer zero) or Cauchy's Integral Formula (answer a derivative value)?

Check only one thing first: is the point aa where the denominator vanishes located inside the contour CC or outside it? If aa is outside CC, the whole integrand is analytic inside CC and Cauchy's Integral Theorem gives 00 immediately, no further work needed. If aa is inside CC, the integrand has a genuine singularity inside the region and you switch to the Cauchy Integral Formula (or its derivative form), matching the power of (z−a)(z-a) to find nn.

Does this formula work for any function f, or only special ones like polynomials and cos z?

It works for any ff that is analytic inside and on the contour CC — polynomials, eze^z, sin⁡z\sin z, cos⁡z\cos z, and much more exotic analytic functions all qualify, since the derivation never used any special property of ff beyond analyticity and continuity. The one requirement is that ff itself must not have its own singularity inside CC; if it does, this formula as stated does not apply and residue calculus is needed instead.

Before this

Where this leads