---
title: Midterm exam
heading: "Midterm exam: complex variables"
eyebrow: A12 · Midterm exam
type: problems
---

::: hook
Twelve problems from the first half of the course: complex functions as maps, the derivative and the Cauchy–Riemann equations, harmonic functions and complex potentials, the exponential, logarithm and roots, contour integrals, Cauchy's theorem and formula, series, residues, real integrals, inverse Laplace transforms and conformal mapping. Give yourself two hours, work without the lessons open, and write out your reasoning before checking each answer. "Another set" deals a different exam.
:::

::: pool
pick: 12

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

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

::: part
answer: a^2 - b^2
tolerance: 0

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

::: misses
- [any] $x^2 - y^2$.
:::
:::

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

### What's Re of the Smith map $\frac{z - 1}{z + 1}$?

::: misses
- [any] Compute $(z - 1)/(z + 1)$.
:::
:::
:::

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

## Let $f = z^{\given{n}}$ at $z_0 = \given{a} + \given{b}j$.

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

### What's the local magnification $\lvert f'(z_0)\rvert$?

::: misses
- [any] $n\lvert z_0\rvert^{n-1}$.
:::
:::

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

### What's Re $f'(z_0)$?

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

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

## For $f = z^3$: $u = x^3 - 3xy^2$, at $(\given{x}, \given{y})$.

::: part
answer: 3*x^2 - 3*y^2
tolerance: 0

### What's $u_x$?

::: misses
- [any] $3x^2 - 3y^2$.
:::
:::

::: part
answer: 6*x - 6*x
tolerance: 0.001

### What's $u_{xx} + u_{yy}$?

::: misses
- [any] $6x - 6x$: it's harmonic.
:::
:::
:::

::: check
kind: parts
given: U = 2 | 5; t = 30 | 60; R = 1 | 2

## Uniform flow U = {U} past a cylinder of radius {R}: $\Phi = U(z + R^2/z)$.

::: part
answer: 2*U*abs(sin(t*pi/180))
tolerance: 0.5%

### What's the speed on the surface at {t}° from the flow?

::: misses
- [any] $2U\lvert\sin\theta\rvert$.
:::
:::

::: part
answer: U*(1 - R^2/(3*R)^2)
tolerance: 0.5%

### What's the flow speed on the axis at $z = -3R$, upstream of the cylinder? (It's $\lvert\Phi'\rvert$.)

::: misses
- [U] Near the cylinder the flow slows on the axis: $U(1 - R^2/z^2)$.
- [any] $U\lvert 1 - R^2/z^2\rvert$ at $z = -3R$.
:::
:::
:::

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

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

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

### What's Im Log z?

::: misses
- [any] Arg z.
:::
:::

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

### What's Re of the principal $\sqrt z$?

::: misses
- [any] $\sqrt{\lvert z\rvert}\cos(\text{Arg}\,z/2)$.
:::
:::
:::

::: check
kind: parts
given: r = 16 | 81; n = 4; t = 0 | 180

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

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

### What's their distance from the origin?

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

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

### What's the angle of the root with k = 2?

::: misses
- [any] $(\theta + 720°)/4$.
:::
:::
:::

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

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

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

### What's Re $\int z^2\,dz$?

::: misses
- [any] $z_1^3/3$.
:::
:::

::: part
answer: Re(exp(a + j*b) - 1)
tolerance: 0.5%

### What's Re $\int e^z\,dz$?

::: misses
- [any] $e^{z_1} - 1$.
:::
:::
:::

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

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

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

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

::: misses
- [any] $2\pi$ times the enclosed coefficients.
:::
:::

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

### What would it be around $\lvert z\rvert = 5$?

::: misses
- [any] Both enclosed.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 1.2; n = 2 | 3

## Integrate around $\lvert z\rvert = 3$.

::: 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: a = 2 | 4; b = 1 | 3

## Consider $\frac{1}{1 + z^2}$ and a function whose only singularity is at $\given{b}j$.

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

### What's the radius of convergence of $1/(1 + z^2)$ around {a}?

::: misses
- [any] Distance to $\pm j$.
:::
:::

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

### What's the other function's radius around {a}?

::: misses
- [any] $\lvert a - bj\rvert$.
:::
:::
:::

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

## $H(s) = \frac{s + \given{c}}{(s + \given{a})(s + \given{b})}$, with $a \ne b$.

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

### What's the residue at $-\given{a}$?

::: misses
- [any] Cover-up.
:::
:::

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

### What's h(1), the impulse response at t = 1?

::: misses
- [any] Sum of residue × $e^{pt}$.
:::
:::
:::

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

## Evaluate by residues.

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

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

::: misses
- [any] Double pole at $ja$.
:::
:::

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

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

::: misses
- [any] $\frac{\pi}{a}e^{-ka}$.
:::
:::
:::

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

## $I = \int_0^{2\pi}\frac{d\theta}{\given{a} + \given{b}\cos\theta}$.

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

### What's I? (Assume $a > \lvert b\rvert$.)

::: misses
- [any] $2\pi/\sqrt{a^2 - b^2}$.
:::
:::

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

### What would it be with b = 0?

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

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

## $F(s) = \frac{1}{(s + \given{a})^2}$ and $G(s) = \frac{s + \given{a}}{(s + \given{a})^2 + \given{w}^2}$.

::: part
answer: t*exp(-a*t)
tolerance: 0.5%

### What's f(t) at t = {t}?

::: misses
- [any] $te^{-at}$.
:::
:::

::: part
answer: exp(-a*t)*cos(w*t)
tolerance: 1%

### What's g(t) at t = {t}?

::: misses
- [any] $e^{-at}\cos\omega t$.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 1; b = 3 | 6; V = 10 | 50; r = 2

## A coax has radii {a} mm and {b} mm in air, with {V} V across it.

::: part
answer: 2*pi*8.854/ln(b/a)
unit: pF/m
tolerance: 0.5%

### What's C′?

::: misses
- [any] $2\pi\varepsilon_0/\ln(b/a)$.
:::
:::

::: part
answer: V*ln(r/a)/ln(b/a)
unit: V
tolerance: 0.5%

### What's the potential at r = {r} mm, measured from the inner conductor?

::: misses
- [any] $V\ln(r/a)/\ln(b/a)$.
:::
:::
:::

::: check
kind: parts
given: r = 0.5 | 2; x = 1 | -1

## A load has normalized impedance $\given{r} + \given{x}j$.

::: part
answer: sqrt(((r - 1)^2 + x^2)/((r + 1)^2 + x^2))
tolerance: 0.5%

### What is $\lvert\Gamma\rvert$?

::: misses
- [abs(r - 1)/(r + 1)] Include the reactance.
- [any] $\frac{\lvert z - 1\rvert}{\lvert z + 1\rvert}$.
:::
:::
:::
:::
