---
title: Problem set 1
heading: "Problem set 1: complex arithmetic"
eyebrow: A3 · Problem set 1
type: problems
---

::: hook
These problems use lessons 1 to 5: complex roots, the plane, and adding, multiplying and dividing in both forms. Before each answer, sketch the arrows roughly: it catches most sign and quadrant slips.
:::

::: pool
pick: 12

::: check
kind: parts
given: p = 2 | 4 | 6; q = 13 | 29 | 34

## A circuit's characteristic equation is $s^2 + \given{p}s + \given{q} = 0$.

::: part
answer: -p/2
tolerance: 0.01

### What is the real part of its roots?

::: misses
- [p/2] It's $-b/2a$.
- [any] $-b/(2a)$.
:::
:::

::: part
answer: sqrt(q - p^2/4)
tolerance: 0.5%

### And the positive imaginary part?

::: misses
- [sqrt(q)] Subtract $b^2/4$ first.
- [sqrt(4*q - p^2)] Divide by $2a = 2$.
- [any] $\sqrt{4ac - b^2}/(2a)$.
:::
:::
:::

::: check
kind: parts
given: x = -3 | -6 | -1; y = 4 | 8 | 7

## Write $z = \given{x} + \given{y}j$ in polar form.

::: part
answer: sqrt(x^2 + y^2)
tolerance: 0.2%

### What is $|z|$?

::: misses
- [abs(x) + abs(y)] Pythagoras.
- [any] $\sqrt{x^2 + y^2}$.
:::
:::

::: part
answer: arg(x + j*y)*180/pi
unit: °
tolerance: 0.2%

### What is its angle?

::: misses
- [atan(y/x)*180/pi] The point is left of the axis: add 180°.
- [any] atan2, in the second quadrant.
:::
:::
:::

::: check
kind: parts
given: r = 2 | 5 | 10; t = 150 | 210 | 300

## Write $z = \given{r}\angle\given{t}°$ in rectangular form.

::: part
answer: r*cos(t*pi/180)
tolerance: 0.2%

### What is its real part?

::: misses
- [r*sin(t*pi/180)] That's the imaginary part.
- [any] $r\cos\theta$.
:::
:::

::: part
answer: r*sin(t*pi/180)
tolerance: 0.2%

### And its imaginary part?

::: misses
- [r*cos(t*pi/180)] That's the real part.
- [any] $r\sin\theta$.
:::
:::
:::

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

## Multiply $(\given{a} + (\given{b})j)(\given{c} + \given{d}j)$.

::: part
answer: a*c - b*d
tolerance: 0.01

### What is the real part?

::: misses
- [a*c + b*d] $j^2 = -1$, so the $bd$ term subtracts.
- [a*c] Include the $j \cdot j$ term.
- [any] $ac - bd$.
:::
:::

::: part
answer: a*d + b*c
tolerance: 0.01

### And the imaginary part?

::: misses
- [b*d] Collect both cross terms: $ad + bc$.
- [any] $ad + bc$.
:::
:::
:::

::: check
kind: parts
given: r1 = 2 | 3; t1 = 40 | 110; r2 = 4 | 5; t2 = 75 | 160

## Multiply $\given{r1}\angle\given{t1}°$ by $\given{r2}\angle\given{t2}°$.

::: part
answer: r1*r2
tolerance: 0.2%

### What is the magnitude?

::: misses
- [r1 + r2] Lengths multiply.
- [any] Multiply the lengths.
:::
:::

::: part
answer: t1 + t2 - 360*floor((t1 + t2 + 180)/360)
unit: °
tolerance: 0.2%

### What is the angle, between −180° and 180°?

::: misses
- [t1*t2] Angles add.
- [any] Add the angles, then bring the result into −180° to 180°.
:::
:::
:::

::: check
kind: parts
given: a = 4 | 7; b = 2 | -3; c = 1 | 2; d = 3 | -1

## Divide $\dfrac{\given{a} + (\given{b})j}{\given{c} + (\given{d})j}$.

::: part
answer: (a*c + b*d)/(c^2 + d^2)
tolerance: 0.5%

### What is the real part?

::: misses
- [a/c] Multiply top and bottom by the conjugate of the bottom.
- [(a*c - b*d)/(c^2 + d^2)] $(jb)(-jd) = +bd$.
- [any] $(ac + bd)/(c^2 + d^2)$.
:::
:::

::: part
answer: (b*c - a*d)/(c^2 + d^2)
tolerance: 0.5%

### And the imaginary part?

::: misses
- [(b*c + a*d)/(c^2 + d^2)] The conjugate gives $-ad$.
- [any] $(bc - ad)/(c^2 + d^2)$.
:::
:::
:::

::: check
kind: parts
given: R = 1 | 4.7 | 10; X = 2.2 | 6.8

## A divider has $R$ = {R} kΩ on top and a capacitor of reactance $-j\given{X}$ kΩ below.

::: part
answer: X/sqrt(R^2 + X^2)
tolerance: 0.5%

### What is the magnitude of $V_{out}/V_{in} = \dfrac{-jX}{R - jX}$?

::: misses
- [X/(R + X)] Use Pythagoras for $|R - jX|$.
- [R/sqrt(R^2 + X^2)] That's the share across the resistor.
- [any] $X/\sqrt{R^2 + X^2}$.
:::
:::

::: part
answer: -90 + atan(X/R)*180/pi
unit: °
tolerance: 0.5%

### What is its angle?

::: misses
- [-atan(X/R)*180/pi] The top contributes −90°; subtract the bottom's angle, $-\tan^{-1}(X/R)$.
- [any] $-90° - \angle(R - jX)$.
:::
:::
:::

::: check
kind: parts
given: n = 5..14 int; a = 2 | 3; b = 1 | 5

## Powers of $j$.

::: part
answer: Re(j^n)
tolerance: 0.01

### What is the real part of $j^{\given{n}}$?

::: misses
- [any] Reduce {n} modulo 4.
:::
:::

::: part
answer: Re((a + j*b)*j^n)
tolerance: 0.01

### What is the real part of $(\given{a} + \given{b}j)\,j^{\given{n}}$?

::: misses
- [any] $j^{\given{n}}$ turns the arrow by $\given{n} \times 90°$.
:::
:::
:::

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

## A filter's characteristic polynomial should have roots $\given{a} \pm \given{b}j$ and leading coefficient 1.

::: part
answer: -2*a
tolerance: 0.01

### What is the coefficient of $s$?

::: misses
- [2*a] Minus twice the real part.
- [any] $-2\,\mathrm{Re}$.
:::
:::

::: part
answer: a^2 + b^2
tolerance: 0.01

### What is the constant term?

::: misses
- [a^2 - b^2] $(jb)(-jb) = +b^2$.
- [any] $a^2 + b^2$.
:::
:::
:::

::: check
kind: parts
given: r1 = 3 | 5; t1 = 0 | 30; r2 = 4 | 6; t2 = 100 | 140

## Add $\given{r1}\angle\given{t1}°$ and $\given{r2}\angle\given{t2}°$.

::: part
answer: abs(r1*exp(j*t1*pi/180) + r2*exp(j*t2*pi/180))
tolerance: 0.5%

### What is the magnitude of the sum?

::: misses
- [r1 + r2] Add components, not lengths.
- [any] Rectangular form, add, then the length.
:::
:::

::: part
answer: arg(r1*exp(j*t1*pi/180) + r2*exp(j*t2*pi/180))*180/pi
unit: °
tolerance: 0.5%

### And its angle?

::: misses
- [(t1 + t2)/2] Only if the lengths were equal.
- [any] The angle of the summed components.
:::
:::
:::

::: check
kind: parts
given: c = 3 | 6; d = 4 | -8

## Find the reciprocal of $\given{c} + (\given{d})j$.

::: part
answer: c/(c^2 + d^2)
tolerance: 0.5%

### What is its real part?

::: misses
- [1/c] Multiply by the conjugate.
- [any] $c/(c^2 + d^2)$.
:::
:::

::: part
answer: -d/(c^2 + d^2)
tolerance: 0.5%

### And its imaginary part?

::: misses
- [d/(c^2 + d^2)] The conjugate flips the sign.
- [any] $-d/(c^2 + d^2)$.
:::
:::
:::

::: check
kind: parts
given: x1 = 1 | 4; y1 = 2 | -3; x2 = -2 | 6; y2 = 5 | 1

## Two points on the complex plane are $z_1 = \given{x1} + (\given{y1})j$ and $z_2 = \given{x2} + \given{y2}j$.

::: part
answer: sqrt((x1 - x2)^2 + (y1 - y2)^2)
tolerance: 0.2%

### How far apart are they? (That's $|z_1 - z_2|$.)

::: misses
- [abs(sqrt(x1^2 + y1^2) - sqrt(x2^2 + y2^2))] That's the difference of their lengths. Subtract the numbers first, then take the length.
- [any] $|z_1 - z_2|$.
:::
:::

::: part
answer: (x1 + x2)/2
tolerance: 0.5%

### What is the real part of the point halfway between them?

::: misses
- [any] The average of the two numbers.
:::
:::
:::

::: check
kind: parts
given: x = 3 | -2; y = 1 | 4; t = 30 | 135

## Multiplying by $e^{j\theta}$ rotates. Rotate $z = \given{x} + \given{y}j$ by {t}°.

::: part
answer: x*cos(t°) - y*sin(t°)
tolerance: 0.5%

### What is the real part of $ze^{j\given{t}°}$?

::: misses
- [x*cos(t°) + y*sin(t°)] $jy \times j\sin\theta = -y\sin\theta$.
- [any] Multiply $(x + jy)(\cos\theta + j\sin\theta)$ and collect the real terms.
:::
:::

::: part
answer: x*sin(t°) + y*cos(t°)
tolerance: 0.5%

### What is its imaginary part?

::: misses
- [any] Collect the terms with $j$.
:::
:::

::: part
answer: sqrt(x^2 + y^2)
tolerance: 0.5%

### What is its length?

::: misses
- [any] Rotating doesn't change the length: it's still $|z|$.
:::
:::
:::

::: check
kind: parts
given: R1 = 10 | 20; X1 = 10 | 30; R2 = 15 | 40; X2 = -20 | -50

## Impedances $Z_1 = \given{R1} + j\given{X1}$ Ω and $Z_2 = \given{R2} + j(\given{X2})$ Ω are in parallel.

::: part
answer: Re((R1 + j*X1)*(R2 + j*X2)/(R1 + R2 + j*(X1 + X2)))
unit: Ω
tolerance: 0.5%

### What is the real part of the combination $\frac{Z_1Z_2}{Z_1 + Z_2}$?

::: misses
- [any] Multiply the two, add the two, then divide (multiply by the conjugate of the sum).
:::
:::

::: part
answer: Im((R1 + j*X1)*(R2 + j*X2)/(R1 + R2 + j*(X1 + X2)))
unit: Ω
tolerance: 0.5%

### What is its imaginary part?

::: misses
- [any] The imaginary part of the same quotient.
:::
:::

::: part
answer: abs((R1 + j*X1)*(R2 + j*X2)/(R1 + R2 + j*(X1 + X2)))
unit: Ω
tolerance: 0.5%

### What is its size?

::: misses
- [any] $|Z_1||Z_2|/|Z_1 + Z_2|$.
:::
:::
:::

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

## Let $z = \given{a} + (\given{b})j$ and $\bar z$ its conjugate.

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

### What is $z\bar z$?

::: misses
- [a^2 - b^2] $(jb)(-jb) = +b^2$.
- [any] $(a + jb)(a - jb)$.
:::
:::

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

### What is the real part of $z/\bar z$?

::: misses
- [any] Multiply the top and bottom by $z$: $z/\bar z = z^2/|z|^2$.
:::
:::

::: part
answer: 2*arg(a + j*b)*180/pi - 360*floor((2*arg(a + j*b)*180/pi + 180)/360)
unit: °
tolerance: 0.5%

### What is the angle of $z/\bar z$, between −180° and 180°?

::: misses
- [arg(a + j*b)*180/pi] That's the angle of $z$. Dividing by $\bar z$ adds that angle again.
- [any] $\bar z$ has angle $-\theta$, so the quotient has angle $2\theta$.
:::
:::
:::
:::
