Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 36 · Getting Started

What Is Complex Analysis?

Meet complex analysis: calculus with numbers that have a real and an imaginary part, why it is so powerful, and what you will learn in this track.

Complex analysis is calculus done with complex numbers. A complex number has two parts, a real part and an imaginary part, and you can picture it as a point on a flat plane instead of a point on a line. When you differentiate and integrate functions of such numbers, something surprising happens: the rules become stricter, and the strict rules give you far more powerful theorems than real calculus ever offers.

This track is written for university students, strong high-school students and anyone refreshing the subject. You should know ordinary calculus (derivatives, integrals, limits) and basic algebra. Everything else is explained as we go, and almost every idea comes with a short Python program you can run and change.

The big idea: one extra dimension

In real calculus a function f(x) takes a number on a line and returns a number on a line. In complex analysis a function f(z) takes a point z = x + iy in a plane and returns another point in a plane. The symbol i is the imaginary unit with the property i² = -1.

That tiny change has big consequences. To be differentiable at a point, a complex function must have the same limit of the difference quotient from every direction in the plane, not just from the left and right. This is a very demanding condition. Functions that satisfy it everywhere nearby are called analytic (or holomorphic), and they are remarkably well behaved:

  • If a function is differentiable once, it is differentiable infinitely many times.
  • It equals its Taylor series near every point.
  • Its values inside a closed loop are completely decided by its values on the loop.

None of these things is true for real differentiable functions. You will meet each of them in later chapters.

What can you do with it?

Complex analysis is not just a pretty theory. It is a working tool:

Area How complex analysis helps
Integrals Evaluate real integrals that have no elementary antiderivative, using residues
Physics Model fluid flow, electric fields and heat flow in two dimensions
Engineering Analyze signals and control systems with the Laplace and Fourier transforms
Number theory Study the distribution of primes through the zeta function
Algebra Prove that every non-constant polynomial has a root (the fundamental theorem of algebra)

You do not need any of these fields to follow this track. They are listed so you can see where the road leads.

Python has complex numbers built in

Python writes the imaginary unit as j (engineers' convention). A literal like 3 + 4j is a complex number. Run the example and change the numbers.

Python Complex numbers in Python

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The line abs(z) gives the distance of the point from the origin, called the modulus. For 3 + 4j the point sits at 3 units right and 4 units up, so by the Pythagorean theorem the distance is 5.

A first taste of a surprising result

Here is a teaser. Take any non-constant polynomial, such as z³ - 2z + 2. Over the reals it may have no roots at all, or fewer than its degree. Over the complex numbers it always has exactly as many roots (counted with multiplicity) as its degree. Let NumPy find them.

Python Roots of a polynomial

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The three printed values of p(root) are essentially zero, which confirms that each number really is a root. One root is real and two are a complex conjugate pair. Real polynomials always give complex roots in such pairs.

How this track is organized

  1. Getting Started (this chapter): the language, Python tools and plotting.
  2. Complex Numbers and the Plane: geometry, polar form, Euler's formula, roots.
  3. Analytic Functions: limits, derivatives, the Cauchy-Riemann equations.
  4. Elementary Functions: exp, sin, cos, log and powers.
  5. and later: integration along curves, Cauchy's theorems, series, residues and conformal maps.

Do the quiz at the end of each lesson, and rewrite the code examples with your own numbers. Complex analysis is learned by doing.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the imaginary unit i defined by?

    The imaginary unit satisfies i² = -1. It is not equal to -1 itself.
  2. 2. How does Python write the imaginary unit?

    Python uses j, as in 3 + 4j. The letter i is an ordinary name you could use for a loop counter.
  3. 3. What makes a complex function analytic at a point?

    Complex differentiability requires the difference quotient to approach one limit however h tends to 0 in the plane. Analytic means that holds on a whole neighborhood.
  4. 4. How many complex roots (with multiplicity) does a polynomial of degree 5 have?

    The fundamental theorem of algebra says a degree n polynomial has exactly n complex roots counted with multiplicity.

Summary

  • Complex analysis is calculus for functions of a complex variable z = x + iy.
  • Complex differentiability is a strong condition that produces strong theorems.
  • Applications range from real integrals to physics, engineering and number theory.
  • Python supports complex numbers directly with the suffix j.

Next: The Imaginary Unit and Complex Arithmetic