---
title: Problem set 3
heading: "Problem set 3: functions and contour integrals"
eyebrow: A12 · Problem set 3
type: problems
---

::: hook
These problems use lessons 6 to 13: the exponential, logarithm and branch cuts, roots and powers, contour integrals, Cauchy's theorem and Cauchy's integral formula. Paths are traversed counterclockwise; principal values use $-\pi < \text{Arg}\,z \le \pi$.
:::

::: pool
pick: 12

::: check
kind: parts
given: x = 0.5 | 1.5; y = 1 | 2.5

## Let $z = \given{x} + \given{y}j$.

::: part
answer: exp(x)*cos(y)
tolerance: 0.5%

### What's Re $e^z$?

::: misses
- [any] $e^x\cos y$.
:::
:::

::: part
answer: exp(x)*sin(y)
tolerance: 0.5%

### What's Im $e^z$?

::: misses
- [any] $e^x\sin y$.
:::
:::
:::

::: check
kind: parts
given: a = -2 | -1 | 3; b = 1 | -2

## Let $z = \given{a} + \given{b}j$.

::: part
answer: ln(abs(a + j*b))
tolerance: 0.5%

### What's Re Log z?

::: misses
- [any] $\ln\lvert z\rvert$.
:::
:::

::: part
answer: arg(a + j*b)
tolerance: 0.5%

### What's Im Log z?

::: misses
- [any] Arg z, in (−π, π].
:::
:::
:::

::: check
kind: parts
given: y = 1.5 | 2 | 4; x = 1 | 2

## Compute some functions on the imaginary axis.

::: part
answer: cosh(y)
tolerance: 0.5%

### What's $\cos(\given{y}j)$?

::: misses
- [any] $\cosh y$.
:::
:::

::: part
answer: sinh(y)
tolerance: 0.5%

### What's $\text{Im}\sin(\given{y}j)$? ($\sin(jy) = j\sinh y$.)

::: misses
- [any] $\sinh y$.
:::
:::
:::

::: check
kind: parts
given: r = 8 | 64; n = 3 | 6; t = 0 | 90

## Find the {n}th roots of $\given{r}e^{j\given{t}°}$.

::: part
answer: r^(1/n)
tolerance: 0.5%

### How far from the origin are they?

::: misses
- [any] $r^{1/n}$.
:::
:::

::: part
answer: (t + 360)/n
unit: °
tolerance: 0.5%

### What's the angle of the root after the principal one?

::: misses
- [any] $(\theta + 360°)/n$.
:::
:::
:::

::: check
kind: parts
given: k = 0 | 1 | 2

## $j^j = e^{j\log j}$, with $\log j = j(\pi/2 + 2\pi k)$.

::: part
answer: exp(-pi/2 - 2*pi*k)
tolerance: 0.5%

### What's its value for k = {k}?

::: misses
- [any] $e^{-\pi/2 - 2\pi k}$.
:::
:::

::: part
answer: exp(-pi/2 - 2*pi*k)/exp(-pi/2 - 2*pi*(k + 1))
tolerance: 0.5%

### By what factor does the next branch's value differ?

::: misses
- [any] $e^{2\pi}$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 1 | -1; n = 2 | 3

## Integrate $z^{\given{n}}$ from 0 to $z_1 = \given{a} + \given{b}j$.

::: part
answer: Re((a + j*b)^(n + 1)/(n + 1))
tolerance: 0.5%

### What's the real part?

::: misses
- [any] $z_1^{n+1}/(n + 1)$.
:::
:::

::: part
answer: Im((a + j*b)^(n + 1)/(n + 1))
tolerance: 0.5%

### And the imaginary part?

::: misses
- [any] The same antiderivative.
:::
:::
:::

::: check
kind: parts
given: M = 0.2 | 3; R = 2 | 8

## On the half circle $\lvert z\rvert = \given{R}$, $\text{Im}\,z \ge 0$, $\lvert f\rvert \le \given{M}$.

::: part
answer: pi*R
tolerance: 0.5%

### How long is the path?

::: misses
- [any] $\pi R$.
:::
:::

::: part
answer: M*pi*R
tolerance: 0.5%

### What bound does the ML inequality give for $\lvert\int f\,dz\rvert$?

::: misses
- [any] M × L.
:::
:::
:::

::: check
kind: parts
given: c1 = 1 | 3; c2 = 2 | -2; R = 1.5 | 3

## $f = \frac{\given{c1}}{z - 1} + \frac{\given{c2}}{z + 2}$, integrated around $\lvert z\rvert = \given{R}$.

::: part
answer: 2*pi*(c1 + c2*step(R - 2))
tolerance: 0.001

### What's Im $\oint f\,dz$?

::: misses
- [any] $2\pi\sum$ of enclosed coefficients.
:::
:::

::: part
answer: 0*R
tolerance: 0.001

### What's Re $\oint f\,dz$?

::: misses
- [any] $2\pi j \times$ real coefficients is purely imaginary.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2 | 4

## Consider $\frac{1}{z^2 + a^2}$ with a = {a}.

::: part
answer: pi/a
tolerance: 0.5%

### What's $\oint$ around a small circle enclosing only $ja$?

::: misses
- [any] $\frac{1}{2ja}\cdot 2\pi j$.
:::
:::

::: part
answer: -pi/a
tolerance: 0.5%

### And around a small circle enclosing only $-ja$?

::: misses
- [any] The coefficient of $1/(z + ja)$ is $-1/(2ja)$.
:::
:::
:::

::: check
kind: parts
given: a = 0.3 | 1; n = 1 | 2

## Integrate around $\lvert z\rvert = 2$ using Cauchy's formula.

::: part
answer: 2*pi*exp(a)
tolerance: 0.5%

### What's Im $\oint\frac{e^z}{z - \given{a}}dz$?

::: misses
- [any] $2\pi e^a$.
:::
:::

::: part
answer: 2*pi*exp(a)/n!
tolerance: 0.5%

### What's Im $\oint\frac{e^z}{(z - \given{a})^{\given{n} + 1}}dz$?

::: misses
- [any] $2\pi e^a/n!$.
:::
:::
:::

::: check
kind: parts
given: b = 1 | 3; a = 0.25 | 0.5

## Let $f(z) = \cos(\given{b}z)$, integrated around $\lvert z\rvert = 1$.

::: part
answer: 2*pi*cos(b*a)
tolerance: 0.5%

### What's Im $\oint\frac{f(z)}{z - \given{a}}dz$?

::: misses
- [any] $2\pi f(a)$.
:::
:::

::: part
answer: -2*pi*b*sin(b*a)
tolerance: 0.5%

### What's Im $\oint\frac{f(z)}{(z - \given{a})^2}dz$?

::: misses
- [any] $2\pi f'(a)$.
:::
:::
:::

::: check
kind: parts
given: c = 2 | 3; r = 1 | 4

## Let $f(z) = (z + \given{c})^3$.

::: part
answer: c^3
tolerance: 0.5%

### What's its average around $\lvert z\rvert = \given{r}$?

::: misses
- [any] f(0).
:::
:::

::: part
answer: 2*pi*c^3
tolerance: 0.5%

### What's Im $\oint\frac{f(z)}{z}dz$ around that circle?

::: misses
- [any] $2\pi f(0)$.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 1 | 2

## Evaluate $\oint\frac{z^2 + 1}{z - \given{a}}dz$ around $\lvert z\rvert = 3$.

::: part
answer: 2*pi*(a^2 + 1)
tolerance: 0.5%

### What is its imaginary part?

::: misses
- [2*pi*a^2] The +1 counts too: $f(a) = a^2 + 1$.
- [any] $2\pi jf(a)$ with $f = z^2 + 1$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 0.5 | 1

## Evaluate $\oint\frac{e^{\given{b}z}}{z(z - \given{a})}dz$ around $\lvert z\rvert = 4$.

::: part
answer: 2*pi*(exp(a*b) - 1)/a
tolerance: 0.5%

### What is its imaginary part?

::: misses
- [2*pi*exp(a*b)/a] Include the singularity at 0, with coefficient $-\frac1a$.
- [any] Partial fractions: $\frac1a\left(\frac{e^{bz}}{z - a} - \frac{e^{bz}}{z}\right)$.
:::
:::
:::

::: check
kind: parts
given: c = 0.5 | 2 | 3

## $f(z) = z^2 + \given{c}$ on the closed disk $\lvert z\rvert \le 1$.

::: part
answer: 1 + c
tolerance: 0.5%

### What is the largest value of $\lvert f\rvert$?

::: misses
- [c] The maximum is on the boundary, at $z = \pm1$.
- [any] By the maximum modulus principle, look on $\lvert z\rvert = 1$.
:::
:::
:::
:::
