Practice midterm 2 solutions

Complex analysis, lecture 2
(March 9, 2026)

As usual, be sure to include your method, and remember to write your name.

Problem 1. Let γ be the circle of radius 3 centered at the origin. Compute

∫γz−1z2⁢𝑑z

via parametrization.

The above problem is directed towards Objective 4 (complex integration).

Solution. Writing z=γ⁢(t)=3⁢ei⁢t for 0≤t<2⁢π, this is

∫02⁢π3⁢ei⁢t−19⁢e2⁢i⁢t⋅3⁢i⁢ei⁢t⁢𝑑t=i⁢∫02⁢π3⁢ei⁢t−13⁢ei⁢t⁢𝑑t=i⁢∫02⁢π(1−e−i⁢t/3)⁢𝑑t=2⁢π⁢i+13⁢e−i⁢t|02⁢π=2⁢π⁢i.

Problem 2. Consider the path γ given by the straight line segment from −i to i+1.

γ

Compute

∫γz⁢ez2⁢𝑑z.

The above problem is directed towards Objective 4 (complex integration).

Solution. Since f⁢(z)=z⁢ez2 is an analytic function and is defined on all of ℂ, which is a star-shaped domain, we can use the fundamental theorem of calculus. Setting u=z2, we have z⁢ez2⁢d⁢z=12⁢eu⁢d⁢u with antiderivative 12⁢eu=12⁢ez2, so the integral is

12⁢ez2|−ii+1=12⁢(e(i+1)2−e(−i)2).

This is an acceptable answer, but one could simplify further: (i+1)2=2⁢i and (−i)2=−1, so this is 12⁢(e2⁢i−e−1). (If you like, you could write this in terms of sine and cosine, but it isn’t really any simpler.)

Problem 3. Let R be the rectangle with corners at −2−i, −2+i, 2−i, 2+i:

R

Compute

∫∂Rz2+1z4−z3⁢𝑑z.

Hint/timesaver: you may find the formulas g′⁢(z)=1−2(z−1)2 and g′′⁢(z)=4(z−1)3 useful, where g⁢(z)=z2+1z−1.

The above problem is directed towards Objective 5 (Cauchy’s integral theorem and formula).

Solution. Let f⁢(z)=z2+1z3, g⁢(z)=z2+1z−1, and h⁢(z)=z2+1z4−z3=f⁢(z)z−1=g⁢(z)z3. Note that f is analytic on R∖{0} and g is analytic on R∖{1}. Letting D0 and D1 be disks of small radius r around 0 and 1 respectively and D=R∖D0∖D1, we have ∂D=∂R−∂D0−∂D1 (i.e. the union of the boundaries with the negative orientations on the second terms), and since h is analytic on D we have

0=∫∂Dh⁢(z)⁢𝑑z=∫∂Rh⁢(z)⁢𝑑z−∫∂D0h⁢(z)⁢𝑑z−∫∂D1h⁢(z)⁢𝑑z,

so

∫∂Rh⁢(z)⁢𝑑z=∫∂D0h⁢(z)⁢𝑑z+∫∂D1h⁢(z)⁢𝑑z.

On D0, we have h⁢(z)=g⁢(z)z3 and g⁢(z) is analytic, so by Cauchy’s formula for derivatives

∫∂D0g⁢(z)z3⁢𝑑z=2⁢π⁢i2!⁢g(2)⁢(0)=π⁢i⋅4(−1)3=−4⁢π⁢i.

Similarly, on D1 we have h⁢(z)=f⁢(z)z−1 and f analytic, so by Cauchy’s formula

∫∂D1f⁢(z)z−1⁢𝑑z=2⁢π⁢i⁢f⁢(1)=4⁢π⁢i.

Hence the overall integral is 0.

Problem 4. Let f:D→ℂ be a smooth function. For z0∈D, let g⁢(z)=f⁢(z)−f⁢(z0). Show that

∫∂Dg⁢(z)⁢𝑑z=∫∂Df⁢(z)⁢𝑑z.

The above problem is directed towards Objective 5 (Cauchy’s integral theorem and formula).

Solution. Since z↦f⁢(z0) is an analytic function (since it is constant), by Cauchy’s theorem

∫∂Dg⁢(z)⁢𝑑z=∫∂Df⁢(z)⁢𝑑z−∫∂Df⁢(z0)⁢𝑑z=∫∂Df⁢(z)⁢𝑑z.

Problem 5. Suppose that f:ℂ→ℂ is an analytic function such that |f⁢(z)|≤|z|n for all z∈ℂ. Conclude that |f(n)⁢(0)|≤n!.

The above problem is directed towards Objective 6 (consequences of Cauchy’s theorem and formula).

Solution. Since f is analytic on ℂ, it is analytic on any disk of radius R centered at the origin; on its boundary the bound is then |z|n=Rn. By the Cauchy estimates it follows that |f(n)⁢(0)|≤n!Rn⁢Rn=n!.

Problem 6. Let D be the disk of radius 1 centered at the origin. Verify Pompeiu’s formula for f⁢(z)=|z|2 at z0=0.

The above problem is directed towards Objective 6 (consequences of Cauchy’s theorem and formula).

Solution. First, note |z|2=z⁢z¯, so ∂f∂z¯=z. Therefore Pompeiu’s formula reads

|0|2=0=12⁢π⁢i⁢∫∂D|z|2z⁢𝑑z−1π⁢∫Dz⋅1z⁢𝑑x⁢𝑑y.

The second integral is just the area of D, which is π, so the second term is −1π⋅π=−1. On ∂D the absolute value |z|2 is just 1, so the first integral is

∫∂D1z⁢𝑑z,

which we’ve seen by a number of methods is 2⁢π⁢i. Hence the first term is 12⁢π⁢i⋅2⁢π⁢i=1. Combining these together, the right-hand side is 1−1=0, matching the left-hand side.