courses › Beyond College

Complex analysis

level 60 course

Calculus with complex numbers: residues and contour integrals.

Pen and paper is fine · no calculator needed why?

Learn first (about 3 minutes)

Opens at level 60.

Sign in to start

Builds on: Complex numbers (not open yet) · Series (not open yet)

the lesson

The idea, the techniques and a tip for each skill, right here. The Learn page adds worked examples for every skill and untimed practice.

Read the lesson · about 3 minutes

The idea

Complex analysis is calculus for functions of z = x + iy. A function is analytic on a region when it has a complex derivative at every point there. Polynomials in z, eᶻ, sin z and cos z are analytic everywhere.

The residue theorem says an integral once counterclockwise around a closed loop depends only on the poles inside it, the points where the function blows up. Each pole adds 2πi times its residue.

Techniques

Cover up the pole

A simple pole z = a, from a factor (z − a) on the bottom.

  1. Cover up (z − a) and put z = a into what is left.
  2. That value is the residue.
worked example

Example: What is the residue of f(z) = 2/((z − 1)(z + 3)) at z = 1? Give an exact number or fraction.

  1. Cover up (z − 1). What is left is 2/(z + 3).
  2. Put in z = 1: 2/(1 + 3) = 2/4 = 1/2.

Answer: 1/2

Add the residues inside

An integral around a circle |z| = R, counterclockwise.

  1. Keep only the poles inside the circle, closer to 0 than R.
  2. The integral is 2πi × (the sum of their residues). For an answer kπi, k is twice that sum.
worked example

Example: The integral of f(z) = 2/((z − 1)(z + 3)) around the circle |z| = 2 (counterclockwise) equals kπi. What is k?

  1. Poles: 1 and −3. Only 1 is inside the circle of radius 2.
  2. Its residue is 2/(1 + 3) = 1/2.
  3. So k is twice 1/2, which is 1.

Answer: 1

Let the roots of unity cancel

The n roots of unity, the solutions of zⁿ = 1: their sum, product or powers.

  1. Evenly spread around the unit circle, they balance out: for n ≥ 2, the sum is 0.
  2. Product: each non-real root times its mirror image is 1. Left over: 1, and also −1 if n is even.
  3. kth powers: if n divides k, each is 1 and the sum is n. Otherwise it is 0.
worked example

Example: What is the product of all 4th roots of unity?

  1. The 4th roots of unity are 1, i, −1 and −i.
  2. i and −i are a mirror pair with product 1.
  3. That leaves 1 × (−1), so the product is −1.

Answer: −1

Tips by skill

  • TipRoots of unity: For n ≥ 2: sum 0; product −1 if n is even, 1 if odd; sum of kth powers n if n divides k, else 0.
  • TipResidues: Cover up the factor for the pole, then put the pole’s value into what is left of the function.
  • TipContour integrals: Only poles inside the circle count. k is twice the sum of their residues, because the integral is 2πi times that sum.
  • TipAnalytic or not?: Polynomials in z, eᶻ, sin z and cos z are analytic. conj(z), its square, |z|, |z|², Re(z) and Im(z) are not.

Watch out for

  • Counting a pole outside the circle, which adds nothing to the integral.
  • Flipping a residue’s sign. For 1/((z − 1)(z − 3)) at z = 1, the residue is 1/(1 − 3), which is −1/2.
  • Calling |z|² or conj(z) analytic because it looks smooth. Neither has a complex derivative on any open region.

skills · practice stats

From rounds of this course only: box, review and test-out answers are left out. Once a skill has 40 tries, it compares your first 20 tries with your last 20.

rest ladder

Win 3 of your last 4 rounds and the course rests. A win is 90% right, within 2× the round's par. Pass the review when it comes back and the next rest is longer.

  1. 1 day
  2. 3 days
  3. 7 days
  4. 14 days
  5. 30 days
  6. 60 days
  7. mastered · every 90 days

your rounds

No rounds yet.