---
title: Problem set 2
heading: "Problem set 2: Euler, powers and exponentials"
eyebrow: A3 · Problem set 2
type: problems
---

::: hook
These problems use lessons 7 to 9: Euler's formula, powers and roots, and complex exponential signals. Keep your calculator in radians for $e^{j\theta}$ and convert angles deliberately.
:::

::: pool
pick: 12

::: check
kind: parts
given: x = 0.5 | 1.2 | 2 | 2.8

## Evaluate $e^{j\given{x}}$, with the angle in radians.

::: part
answer: cos(x)
tolerance: 0.5%

### What is its real part?

::: misses
- [sin(x)] That's the imaginary part.
- [cos(x*pi/180)] The angle is in radians.
- [any] $\cos x$.
:::
:::

::: part
answer: sin(x)
tolerance: 0.5%

### And its imaginary part?

::: misses
- [cos(x)] That's the real part.
- [any] $\sin x$.
:::
:::
:::

::: check
kind: parts
given: r = 2 | 4; d = 30 | 135 | 240

## Write $\given{r}\angle\given{d}°$ as $\given{r}e^{j\theta}$.

::: part
answer: d*pi/180
tolerance: 0.5%

### What is $\theta$, in radians?

::: misses
- [d] Convert to radians.
- [any] Multiply by $\pi/180$.
:::
:::

::: part
answer: r*cos(d*pi/180)
tolerance: 0.5%

### What is its real part?

::: misses
- [any] $r\cos\theta$.
:::
:::
:::

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

## Compute $(1 + \given{b}j)^{\given{n}}$ using polar form.

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

### What is its magnitude?

::: misses
- [n*sqrt(a^2 + b^2)] Raise the length to the power.
- [any] $|z|^n$.
:::
:::

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

### What is its angle, between 0° and 360°?

::: misses
- [n*atan(b/a)*180/pi] Take off whole turns.
- [any] Multiply the angle by {n}, then reduce.
:::
:::
:::

::: check
kind: parts
given: R = 8 | 27 | 125; p = 60 | 150 | 270

## Find the cube roots of $\given{R}\angle\given{p}°$.

::: part
answer: R^(1/3)
tolerance: 0.5%

### What is the magnitude of each?

::: misses
- [R/3] The cube root of the length.
- [any] $R^{1/3}$.
:::
:::

::: part
answer: p/3 + 120
unit: °
tolerance: 0.2%

### What is the angle of the second root ($k = 1$)?

::: misses
- [p/3] That's the first.
- [p + 120] Divide the angle by 3 first.
- [any] $(\varphi + 360°)/3$.
:::
:::
:::

::: check
kind: parts
given: n = 3 | 4 | 6 | 8

## Consider the {n}th roots of 1.

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

### What is the real part of the root at the smallest positive angle?

::: misses
- [cos(pi/n)] The roots are $360°/n$ apart.
- [any] $1\angle(360°/n)$.
:::
:::

::: part
answer: 0
tolerance: 1e-6

### What do all {n} roots add to?

::: misses
- [n] They point in all directions evenly.
- [1] They cancel completely.
- [any] Evenly spaced arrows cancel.
:::
:::
:::

::: check
kind: parts
given: a = 5 | 20 | 100; w = 314 | 1000 | 6283

## A response is $\operatorname{Re}\,e^{st}$ with $s = -\given{a} + j\given{w}$ per second.

::: part
answer: w/(2*pi)
unit: Hz

### What frequency does it oscillate at?

::: misses
- [w] Divide by $2\pi$.
- [any] $\omega/2\pi$.
:::
:::

::: part
answer: ln(100)/a
unit: s

### How long until its envelope is down to 1%?

::: misses
- [1/a] That's one time constant.
- [any] $\ln 100/a$.
:::
:::

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

### How many cycles fit in one time constant?

::: misses
- [w/a] Cycles, not radians.
- [any] Frequency times time constant.
:::
:::
:::

::: check
kind: parts
given: v1 = 10 | 4; r = 0.5 | 0.8; T = 1 | 4; let v2 = v1*r

## A ringing waveform's successive peaks, one period of {T} ms apart, are {v1} V and {v2} V.

::: part
answer: 2*pi/(T*1e-3)
unit: rad/s

### What is its angular frequency?

::: misses
- [1/(T*1e-3)] That's in hertz.
- [any] $\omega = 2\pi/T$.
:::
:::

::: part
answer: ln(r)/(T*1e-3)
tolerance: 0.5%

### What is $\sigma$, in 1/s?

::: misses
- [-ln(r)/(T*1e-3)] It's decaying: negative.
- [ln(r)/T] Use seconds.
- [any] $\ln(v_2/v_1)/T$.
:::
:::
:::

::: check
kind: parts
given: p = 20 | 40 | 60; q = 1000 | 2000 | 2500

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

::: part
answer: sqrt(q - p^2/4)/(2*pi)
unit: Hz

### At what frequency does its natural response ring?

::: misses
- [sqrt(q)/(2*pi)] The damping lowers it slightly: $\sqrt{q - p^2/4}$.
- [sqrt(q - p^2/4)] Divide by $2\pi$.
- [any] The imaginary part of the roots, over $2\pi$.
:::
:::

::: part
answer: 2/p
unit: s

### What is the envelope's time constant?

::: misses
- [1/p] The real part of the roots is $-p/2$.
- [any] $1/(p/2)$.
:::
:::
:::

::: check
kind: parts
given: x = 0.3 | 1 | 1.5

## Using $\cos x = \frac{1}{2}(e^{jx} + e^{-jx})$ and $\sin x = \frac{1}{2j}(e^{jx} - e^{-jx})$:

::: part
answer: cos(x)^2 + sin(x)^2
tolerance: 0.1%

### What is $\big|e^{j\given{x}}\big|^2$?

::: misses
- [any] $e^{jx}$ is on the unit circle.
:::
:::

::: part
answer: cos(2*x)
tolerance: 0.5%

### What is $\operatorname{Re}\,e^{j2\given{x}}$? (It equals $\cos^2 x - \sin^2 x$.)

::: misses
- [2*cos(x)] $e^{j2x} = (e^{jx})^2$: double the angle, not the real part.
- [any] $\cos 2x$.
:::
:::
:::

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

## Find the square roots of $\given{a} + \given{b}j$.

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

### What is their magnitude?

::: misses
- [sqrt(a^2 + b^2)] Take the square root of the length too.
- [any] $\sqrt{|z|}$.
:::
:::

::: part
answer: sqrt(sqrt(a^2 + b^2))*cos(atan(b/a)/2)
tolerance: 0.5%

### What is the real part of the principal root?

::: misses
- [sqrt(a)] Roots don't act on each part separately. Halve the angle and root the length.
- [any] $\sqrt{|z|}\cos(\theta/2)$.
:::
:::
:::

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

## Simplify $e^{j\given{a}} \cdot e^{j\given{b}} / e^{j\given{c}}$, angles in radians.

::: part
answer: a + b - c
tolerance: 0.5%

### Its angle is how many radians (before reducing)?

::: misses
- [a*b/c] Exponents add and subtract.
- [any] $a + b - c$.
:::
:::

::: part
answer: 1
tolerance: 0.1%

### What is its magnitude?

::: misses
- [any] Every $e^{j\theta}$ has length 1.
:::
:::
:::

::: check
kind: parts
given: s1 = -1 | -4; w1 = 3 | 10; t = 0.5 | 1

## A signal is $e^{\given{s1}t}\cos(\given{w1}t)$, with $t$ in seconds.

::: part
answer: exp(s1*t)
tolerance: 0.5%

### What is its envelope at $t$ = {t} s?

::: misses
- [exp(-s1*t)] Use $e^{\sigma t}$ with $\sigma$ = {s1}.
- [any] $e^{\sigma t}$.
:::
:::

::: part
answer: exp(s1*t)*cos(w1*t)
tolerance: 1%

### What is the signal's value then?

::: misses
- [exp(s1*t)*cos(w1*t*pi/180)] The angle $\omega t$ is in radians.
- [any] Envelope times $\cos(\omega t)$.
:::
:::
:::

::: check
kind: parts
given: N = 8 | 12 | 16; k = 3 | 5

## A digital filter uses the "twiddle factor" $W = e^{-j2\pi/\given{N}}$.

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

### What is the real part of $W^{\given{k}}$?

::: misses
- [cos(2*pi/N)] That's $W$ itself. Raising to the {k}th power multiplies the angle by {k}.
- [any] $W^k = e^{-j2\pi k/N}$.
:::
:::

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

### What is its imaginary part?

::: misses
- [sin(2*pi*k/N)] The exponent is negative, so the imaginary part is $-\sin$.
- [any] $-\sin(2\pi k/N)$.
:::
:::

::: part
answer: N
tolerance: 0

### What is the smallest positive power $m$ with $W^m = 1$?

::: misses
- [any] $W^m = 1$ when $2\pi m/N$ is a whole turn.
:::
:::
:::

::: check
kind: parts
given: a = 100 | 300; w = 2000 | 6000

## A circuit's natural response is $e^{-\given{a}t}\cos(\given{w}t)$, with $t$ in seconds.

::: part
answer: ln(10)/a
unit: s
tolerance: 0.5%

### How long until the envelope falls to 10% of its start?

::: misses
- [log(10)/a] That's the base-10 log of 10, which is 1. Use $\ln 10$.
- [any] Solve $e^{-at} = 0.1$.
:::
:::

::: part
answer: w*ln(10)/(2*pi*a)
tolerance: 0.5%

### How many cycles pass in that time?

::: misses
- [w*ln(10)/a] Divide by $2\pi$: a cycle is $2\pi$ radians.
- [any] The time times the frequency $\omega/2\pi$.
:::
:::

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

### By what factor does each peak shrink from one to the next?

::: misses
- [exp(-a/w)] One period is $2\pi/\omega$, not $1/\omega$.
- [any] The envelope one period later: $e^{-a \cdot 2\pi/\omega}$.
:::
:::
:::

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

## Use $e^{j\given{a}}$ and $e^{j\given{b}}$ (radians) to find a product of cosines.

::: part
answer: cos(a + b)
tolerance: 0.5%

### What is the real part of $e^{j\given{a}}e^{j\given{b}}$?

::: misses
- [cos(a)*cos(b)] The exponents add, so it's the cosine of the sum.
- [any] $e^{j(a + b)}$.
:::
:::

::: part
answer: cos(a - b)
tolerance: 0.5%

### What is the real part of $e^{j\given{a}}e^{-j\given{b}}$?

::: misses
- [any] $e^{j(a - b)}$.
:::
:::

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

### Average the two. What is $\cos\given{a}\cos\given{b}$?

::: misses
- [cos(a + b) + cos(a - b)] Average them: divide by 2.
- [any] $\cos a\cos b = \tfrac12[\cos(a + b) + \cos(a - b)]$.
:::
:::
:::
:::
