---
title: Problem set 12
heading: "Problem set 12: signals and systems across the course"
eyebrow: C9 · Problem set 12
type: problems
---

::: hook
Multi-step problems that draw on the whole course: convolution and impulse responses, frequency response and filters, sampling and the DFT, the Laplace and z-transforms, feedback, state space, modulation, and the lab and project. Each one has your own numbers.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 0.6 | 0.85; L = 3 | 5; C = 2 | 4

## A block of {L} samples of height {C} goes into $h[n] = (\given{a})^n u[n]$.

::: part
answer: C*(1 - a^L)/(1 - a)
tolerance: 0.5%

### What is the output at n = {L} − 1, when the whole block is in?

::: misses
- [any] $C(1 + a + \cdots + a^{L-1})$.
:::
:::

::: part
answer: C*a^3*(1 - a^L)/(1 - a)
tolerance: 0.5%

### What is it three samples later?

::: misses
- [any] Decayed by $a^3$.
:::
:::
:::

::: check
kind: parts
given: tau = 1 | 4; f = 50 | 200; A = 1 | 3

## A ±{A} V square wave at {f} Hz goes into an RC low-pass with τ = {tau} ms.

::: part
answer: 4*A/pi/sqrt(1 + (2*pi*f*tau/1000)^2)
unit: V
tolerance: 0.5%

### How big is the output's fundamental?

::: misses
- [any] $(4A/\pi)\lvert H\rvert$ at f.
:::
:::

::: part
answer: tau/(1 + (2*pi*f*tau/1000)^2)
unit: ms
tolerance: 0.5%

### What is the filter's group delay at that frequency?

::: misses
- [any] $\tau/(1 + \omega^2\tau^2)$.
:::
:::
:::

::: check
kind: parts
given: f = 3100 | 4700 | 7300; fs = 4000 | 6000; N = 400 | 1200

## A tone at {f} Hz is sampled at {fs} Hz (no filter) and analyzed with an {N}-point DFT.

::: part
answer: abs(f - fs*round(f/fs))
unit: Hz
tolerance: 0.5%

### At what frequency do the samples show it?

::: misses
- [any] Fold into 0 to $f_s/2$.
:::
:::

::: part
answer: abs(f - fs*round(f/fs))*N/fs
tolerance: 0.5%

### At what bin number does it appear?

::: misses
- [any] Aliased frequency over $f_s/N$.
:::
:::
:::

::: check
kind: parts
given: M = 8 | 12; fs = 960 | 2400; f = 10 | 30

## An {M}-point moving average runs at {fs} Hz.

::: part
answer: fs/M
unit: Hz
tolerance: 0.5%

### Where is its first null?

::: misses
- [any] $f_s/M$.
:::
:::

::: part
answer: abs(sin(M*pi*f/fs)/(M*sin(pi*f/fs)))
tolerance: 0.5%

### What is its gain at {f} Hz?

::: misses
- [any] $\lvert\sin(M\omega/2)/(M\sin(\omega/2))\rvert$ with $\omega = 2\pi f/f_s$.
:::
:::
:::

::: check
kind: parts
given: K = 10 | 40; a = 2 | 6

## $G(s) = \given{K}/(s(s + \given{a}))$ is in unity feedback.

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

### What is the damping ratio?

::: misses
- [any] $a/(2\sqrt K)$.
:::
:::

::: part
answer: 100*exp(-pi*a/(2*sqrt(K))/sqrt(1 - a^2/(4*K)))
unit: %
tolerance: 0.5%

### What overshoot does the step response show?

::: misses
- [any] $100e^{-\pi\zeta/\sqrt{1-\zeta^2}}$.
:::
:::
:::

::: check
kind: parts
given: p1 = 0.9 | 0.75; p2 = 0.5 | -0.4; n = 3 | 6

## $H(z) = 1/((1 - \given{p1}z^{-1})(1 - (\given{p2})z^{-1}))$.

::: part
answer: (p1^(n + 1) - p2^(n + 1))/(p1 - p2)
tolerance: 0.5%

### What is h[{n}]?

::: misses
- [any] $A_1p_1^n + A_2p_2^n$.
:::
:::

::: part
answer: 1/((1 - p1)*(1 - p2))
tolerance: 0.5%

### What is its DC gain?

::: misses
- [any] H(1).
:::
:::
:::

::: check
kind: parts
given: f0 = 50 | 60; fs = 1000 | 4000; r = 0.97 | 0.995

## A notch removes {f0} Hz from {fs} Hz data with poles at radius {r}.

::: part
answer: -2*r*cos(2*pi*f0/fs)
tolerance: 0.5%

### What is the $z^{-1}$ coefficient of its denominator?

::: misses
- [any] $-2r\cos\omega_0$.
:::
:::

::: part
answer: (1 - r)*fs/pi
unit: Hz
tolerance: 0.5%

### About how wide is the notch?

::: misses
- [any] $(1 - r)f_s/\pi$.
:::
:::
:::

::: check
kind: parts
given: R = 4 | 20; L = 0.2 | 1; C = 0.05 | 0.002

## A series RLC: R = {R} Ω, L = {L} H, C = {C} F.

::: part
answer: R/L
tolerance: 0.5%

### What is −(trace of A), with states $v_C$ and $i_L$?

::: misses
- [any] The trace is −R/L.
:::
:::

::: part
answer: 1/(L*C)
tolerance: 0.5%

### What is det A?

::: misses
- [any] $1/(LC)$.
:::
:::
:::

::: check
kind: parts
given: fc = 100 | 540; fm = 2 | 5; mu = 0.5 | 0.8

## A {fc} kHz carrier is AM-modulated by a {fm} kHz tone with μ = {mu}.

::: part
answer: 2*fm
unit: kHz
tolerance: 0.5%

### What bandwidth does it occupy?

::: misses
- [any] $2f_m$.
:::
:::

::: part
answer: mu/2
tolerance: 0.5%

### How big is each sideband relative to the carrier?

::: misses
- [any] μ/2.
:::
:::
:::

::: check
kind: parts
given: m = 10 | 12; M = 101 | 513

## A $2^{\given{m}}$-point FFT does overlap-add with a {M}-tap filter.

::: part
answer: 2^m - M + 1
tolerance: 0

### How many new samples per block?

::: misses
- [any] N − M + 1.
:::
:::

::: part
answer: (2^m*m + 2^m)/(2^m - M + 1)
tolerance: 0.5%

### How many complex multiplications per output sample (two FFTs plus N products per block)?

::: misses
- [any] $(N\log_2N + N)/(N - M + 1)$.
:::
:::
:::

::: check
kind: parts
given: f = 852 | 1336; fs = 8000; N = 205 | 410

## A DTMF decoder tunes Goertzel to {f} Hz at {fs} Hz over {N} samples.

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

### What is its coefficient?

::: misses
- [any] $2\cos(2\pi f/f_s)$.
:::
:::

::: part
answer: fs/N
unit: Hz
tolerance: 0.5%

### What is the frequency resolution of the block?

::: misses
- [any] $f_s/N$.
:::
:::
:::

::: check
kind: parts
given: a = 0.8 | -0.5; b = 1.5 | 0.25; w = 1 | 2

## `lfilter([{b}], [1, {a}], x)` is run on a signal.

::: part
answer: b/(1 + a)
tolerance: 0.5%

### What is its DC gain?

::: misses
- [b/(1 - a)] The a list is the denominator $1 + a_1z^{-1}$: here 1 + ({a}) at z = 1.
- [any] Not yet. $b/(1 + a_1)$.
:::
:::

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

### What is its gain at ω = {w}?

::: misses
- [any] $b/\lvert 1 + a e^{-j\omega}\rvert$.
:::
:::
:::

::: check
kind: parts
given: k = 40 | 333 | 2000; fs = 2 | 20 | 100

## A rangefinder's echo correlates best at a lag of {k} samples at {fs} MHz.

::: part
answer: 3e8*k/(fs*1e6)/2
unit: m
tolerance: 0.5%

### How far is the target?

::: misses
- [any] $c\tau/2$ with $\tau = k/f_s$.
:::
:::

::: part
answer: 3e8/(fs*1e6)/2
unit: m
tolerance: 0.5%

### How much range does one sample of lag represent?

::: misses
- [any] $c/(2f_s)$.
:::
:::
:::

::: check
kind: parts
given: a = 5 | 50; T = 0.002 | 0.01 | 0.05

## A plant pole at s = −{a} is discretized with step T = {T} s.

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

### Where does a zero-order hold put the pole?

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

::: part
answer: 1 - a*T
tolerance: 0.5%

### Where does forward Euler put it?

::: misses
- [any] $1 - aT$: unstable if below −1.
:::
:::
:::

::: check
kind: parts
given: fp = 2 | 4; fst = 5 | 8; fs = 20 | 32

## A Butterworth low-pass at {fs} kHz must lose at most 1 dB to {fp} kHz and at least 40 dB from {fst} kHz.

::: part
answer: log((10^4 - 1)/(10^0.1 - 1))/(2*log(tan(pi*fst/fs)/tan(pi*fp/fs)))
tolerance: 0.5%

### What does the order formula give before rounding?

::: misses
- [any] Prewarp both edges first.
:::
:::

::: part
answer: ceil(log((10^4 - 1)/(10^0.1 - 1))/(2*log(tan(pi*fst/fs)/tan(pi*fp/fs))) - 0.000001)
tolerance: 0

### What order is needed?

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