---
title: Problem set 4
heading: "Problem set 4: series, residues and real integrals"
eyebrow: A12 · Problem set 4
type: problems
---

::: hook
These problems use lessons 15 to 18: Taylor and Laurent series, singularities and residues, the residue theorem for real integrals, and keyholes and principal values. For each integral, decide where the poles are, which ones the contour encloses, and whether any sit on the path.
:::

::: pool
pick: 12

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

## $f(z) = \frac{1}{z^2 + \given{a}^2}$ is expanded in a Taylor series around the real point $z_0 = \given{b}$.

::: part
answer: sqrt(a^2 + b^2)
tolerance: 0.5%

### What is its radius of convergence?

::: misses
- [b] The singularities are at $\pm ja$, off the real axis.
- [any] The distance from $z_0$ to the nearest singularity.
:::
:::
:::

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

## $f(z) = \frac{1}{z(z - \given{a})}$ is expanded for $\lvert z\rvert > \given{a}$.

::: part
answer: a
tolerance: 0.5%

### What is the coefficient of $z^{-3}$?

::: misses
- [1] That's the coefficient of $z^{-2}$.
- [any] $\frac{1}{z^2}\cdot\frac{1}{1 - a/z} = \sum_k a^kz^{-k-2}$.
:::
:::

::: part
answer: a^2
tolerance: 0.5%

### And of $z^{-4}$?

::: misses
- [any] $k = 2$ in $a^kz^{-k-2}$.
:::
:::
:::

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

## $f(z) = \frac{e^{\given{a}z}}{(z - \given{b})^2}$.

::: part
answer: a*exp(a*b)
tolerance: 0.5%

### What is its residue at $z = \given{b}$?

::: misses
- [exp(a*b)] At a double pole, differentiate $e^{az}$ first.
- [any] $\frac{d}{dz}e^{az}$ at $z = b$.
:::
:::
:::

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

## $f(z) = \frac{1}{z^4 - \given{c}^4}$.

::: part
answer: 1/(4*c^3)
tolerance: 0.5%

### What is its residue at $z = \given{c}$?

::: misses
- [1/c^3] $h'(z) = 4z^3$.
- [any] $\frac{1}{h'(c)}$.
:::
:::

::: part
answer: 1/(4*c^3)
tolerance: 0.5%

### What is the imaginary part of its residue at $z = \given{c}j$?

::: misses
- [-1/(4*c^3)] $(jc)^3 = -jc^3$, and $\frac{1}{-4jc^3} = \frac{j}{4c^3}$.
- [any] $\frac{1}{4(jc)^3}$.
:::
:::
:::

::: check
kind: parts
given: m = 3 | 5 | 6

## $f(z) = \frac{1 - \cos z}{z^{\given{m}}}$.

::: part
answer: m - 2
tolerance: 0

### What is the order of its pole at 0?

::: misses
- [m] $1 - \cos z \approx \frac{z^2}{2}$ cancels two powers.
- [any] $1 - \cos z$ has a double zero at 0.
:::
:::
:::

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

## Use $z = e^{j\theta}$ on the unit circle.

::: part
answer: 2*pi/sqrt(a^2 - b^2)
tolerance: 0.5%

### What is $\int_0^{2\pi}\frac{d\theta}{\given{a} + \given{b}\sin\theta}$?

::: misses
- [2*pi/a] The sine term matters: only the pole inside the circle counts.
- [any] The same as with $\cos\theta$: $\frac{2\pi}{\sqrt{a^2 - b^2}}$.
:::
:::
:::

::: check
kind: parts
given: k = 1 | 2; a = 1 | 2

## Close in the upper half-plane around the double pole at $ja$.

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

### What is $\int_{-\infty}^{\infty}\frac{\cos\given{k}x}{(x^2 + \given{a}^2)^2}dx$?

::: misses
- [pi*exp(-k*a)/(2*a^3)] Differentiating at the double pole brings an extra $(1 + ka)$.
- [any] The residue of $\frac{e^{jkz}}{(z^2 + a^2)^2}$ at $ja$ is the derivative of $\frac{e^{jkz}}{(z + ja)^2}$ there.
:::
:::
:::

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

## Scale the known result $\int\frac{t^2dt}{t^4 + 1} = \frac{\pi}{\sqrt2}$.

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

### What is $\int_{-\infty}^{\infty}\frac{x^2\,dx}{x^4 + \given{a}^4}$?

::: misses
- [pi/(sqrt(2)*a^3)] Substitute $x = at$: the result scales as $\frac1a$.
- [any] $x = at$.
:::
:::
:::

::: check
kind: parts
given: a = 0.1 | 0.2 | 0.25 | 0.4 | 0.5 | 0.6

## Keyhole integrals.

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

### What is $\int_0^\infty\frac{x^{\given{a}}}{x^2 + 1}dx$? (Substitute $t = x^2$.)

::: misses
- [pi/2] That's a = 0.
- [any] It becomes $\frac12\int_0^\infty\frac{t^{(a - 1)/2}}{1 + t}dt$.
:::
:::
:::

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

## Both poles of $\frac{e^{jkz}}{z^2 - a^2}$ lie on the real axis.

::: part
answer: -pi*sin(k*a)/a
tolerance: 0.5%

### What is $\text{PV}\int_{-\infty}^{\infty}\frac{\cos\given{k}x}{x^2 - \given{a}^2}dx$?

::: misses
- [pi*sin(k*a)/a] Check the residue at −a: $\frac{e^{-jka}}{-2a}$.
- [-2*pi*sin(k*a)/a] Poles on the path count half.
- [any] $\pi j$ times the sum of the two residues; take the real part.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 3 | 4; c = 5 | 6

## $f(z) = \frac{1}{(z - \given{a})(z - \given{b})(z - \given{c})}$.

::: part
answer: 1/((a - b)*(a - c))
tolerance: 0.5%

### What is its residue at $\given{a}$?

::: misses
- [any] Cover up $z - a$ and put $z = a$.
:::
:::

::: part
answer: 1/((c - a)*(c - b))
tolerance: 0.5%

### And at $\given{c}$? (The three residues add to zero.)

::: misses
- [any] Cover up $z - c$.
:::
:::
:::

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

## $f(z) = z^2\sin(\given{c}/z)$ has an essential singularity at 0.

::: part
answer: -c^3/6
tolerance: 0.5%

### What is its residue there?

::: misses
- [c] That's the coefficient of z.
- [any] $z^2\left(\frac cz - \frac{c^3}{6z^3} + \cdots\right)$: read off the $z^{-1}$ term.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 0.95

## You sum $\sum_{n=0}^{N-1}\given{a}^n$ in place of $\frac{1}{1 - a}$.

::: part
answer: ceil(ln(1e-6*(1 - a))/ln(a))
tolerance: 0

### What is the smallest N that makes the error at most $10^{-6}$?

::: misses
- [ceil(ln(1e-6)/ln(a))] The tail is $\frac{a^N}{1 - a}$, not $a^N$.
- [any] Solve $\frac{a^N}{1 - a} \le 10^{-6}$ and round up.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; w = 2 | 5

## $H(s) = \frac{1}{s + \given{a}}$ evaluated around the circle $\lvert s\rvert = \given{w}$, which encloses the pole.

::: part
answer: 1
tolerance: 0.5%

### What is $\frac{1}{2\pi j}\oint H\,ds$?

::: misses
- [0] The pole at −a is inside the circle.
- [any] The residue at −a.
:::
:::

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

### What is $\frac{1}{2\pi j}\oint sH\,ds$?

::: misses
- [a] The residue of $\frac{s}{s + a}$ at $-a$ is $-a$.
- [any] Cover up: $s$ at $s = -a$.
:::
:::
:::

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

## Indent around the pole at 0 and close above.

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

### What is $\int_{-\infty}^{\infty}\frac{\sin\given{k}x}{x(x^2 + \given{a}^2)}dx$?

::: misses
- [pi/a^2] Include the pole at $ja$.
- [any] Half of $2\pi j\,\text{Res}$ at 0 plus all of it at $ja$, imaginary part.
:::
:::
:::
:::
