---
title: Problem set 5
heading: "Problem set 5: frequency response and impulse response"
eyebrow: A10 · Problem set 5
type: problems
---

::: hook
These problems use lessons 23 to 25: sketching a Bode plot from poles and zeros, and moving between a system's impulse response, its transfer function and its output. Sketch the straight lines first, then refine with the exact formulas where a part asks for them.
:::

::: pool
pick: 12

::: check
kind: parts
given: K = 10 | 100; fc = 1 | 5

## A low-pass $H(f) = \dfrac{\given{K}}{1 + jf/f_c}$ has its corner at $f_c$ = {fc} kHz.

::: part
answer: 20*log(K)
tolerance: 0.5%

### What is its gain at low frequency, in dB?

::: misses
- [10*log(K)] Voltage gain uses $20\log_{10}$.
- [any] $20\log_{10}K$.
:::
:::

::: part
answer: 20*log(K) - 40
tolerance: 1%

### By the straight-line sketch, what is its gain at $100f_c$, in dB?

::: misses
- [any] Two decades above the corner: 40 dB below the flat part.
:::
:::
:::

::: check
kind: parts
given: f1 = 100 | 200; f2 = 5000 | 10000

## $H(f) = \dfrac{1}{(1 + jf/f_1)(1 + jf/f_2)}$, with $f_1$ = {f1} Hz and $f_2$ = {f2} Hz.

::: part
answer: -20*log(f2/f1)
tolerance: 1%

### By the straight-line sketch, what is the gain at $f_2$, in dB?

::: misses
- [any] One pole has been falling at 20 dB per decade since $f_1$.
:::
:::

::: part
answer: -atan(f2/f1)*180/pi - 45
tolerance: 0.5%

### What is the exact phase at $f_2$, in degrees?

::: misses
- [any] $-\tan^{-1}(f_2/f_1) - 45°$.
:::
:::
:::

::: check
kind: parts
given: fz = 10 | 20; fp = 1000 | 2000

## A lead network $H(f) = \dfrac{1 + jf/f_z}{1 + jf/f_p}$ has a zero at {fz} Hz and a pole at {fp} Hz.

::: part
answer: 20*log(fp/fz)
tolerance: 1%

### By the straight-line sketch, how much gain does it have well above $f_p$, in dB?

::: misses
- [any] It rises at 20 dB per decade from $f_z$ to $f_p$, then flattens.
:::
:::

::: part
answer: atan(sqrt(fp/fz))*180/pi - atan(sqrt(fz/fp))*180/pi
tolerance: 0.5%

### What is its phase at $\sqrt{f_zf_p}$, where the lead is largest, in degrees?

::: misses
- [any] $\tan^{-1}\sqrt{f_p/f_z} - \tan^{-1}\sqrt{f_z/f_p}$.
:::
:::
:::

::: check
kind: parts
given: f0 = 1 | 10; zeta = 0.05 | 0.2

## A complex pole pair has $f_0$ = {f0} kHz and $\zeta$ = {zeta}.

::: part
answer: 20*log(1/(2*zeta))
tolerance: 1%

### About how high is its resonant peak, in dB?

::: misses
- [any] $20\log_{10}\frac{1}{2\zeta}$.
:::
:::

::: part
answer: -40
tolerance: 0.5%

### What is the slope well above $f_0$, in dB per decade?

::: misses
- [any] Two poles.
:::
:::
:::

::: check
kind: parts
given: f = 3 | 7; fc = 1 | 2

## A single-pole low-pass, $f_c$ = {fc} kHz, is driven at {f} kHz.

::: part
answer: -10*log(1 + (f/fc)^2)
tolerance: 0.5%

### What is the exact gain, in dB?

::: misses
- [any] $-10\log_{10}(1 + (f/f_c)^2)$.
:::
:::

::: part
answer: -atan(f/fc)*180/pi
tolerance: 0.5%

### What is the phase, in degrees?

::: misses
- [any] $-\tan^{-1}(f/f_c)$.
:::
:::
:::

::: check
kind: parts
given: n = 2 | 4; f = 10 | 100

## A filter has {n} identical real poles at 1 kHz.

::: part
answer: -20*n
tolerance: 0.5%

### What is its slope well above 1 kHz, in dB per decade?

::: misses
- [any] $-20$ per pole.
:::
:::

::: part
answer: -20*n*log(f)
tolerance: 1%

### By the straight-line sketch, what is its gain at {f} kHz, in dB?

::: misses
- [any] $-20n\log_{10}(f/1\text{ kHz})$.
:::
:::
:::

::: check
kind: parts
given: tau = 0.5 | 2; T = 1 | 3

## A 1 V pulse lasting {T} ms enters an RC low-pass with $\tau$ = {tau} ms.

::: part
answer: 1 - exp(-T/tau)
unit: V
tolerance: 0.5%

### What is the output when the pulse ends?

::: misses
- [any] $1 - e^{-T/\tau}$.
:::
:::

::: part
answer: (1 - exp(-T/tau))*exp(-1)
unit: V
tolerance: 0.5%

### What is it one time constant after that?

::: misses
- [any] It falls by $e^{-1}$.
:::
:::
:::

::: check
kind: parts
given: K = 4 | 10; a = 1 | 2; b = 4 | 5

## A system has $H(s) = \dfrac{\given{K}}{(s + \given{a})(s + \given{b})}$.

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

### Its impulse response is $Ae^{-at} + Be^{-bt}$. What is $A$?

::: misses
- [any] Cover-up at $s = -a$.
:::
:::

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

### What does its step response settle to?

::: misses
- [any] $H(0)$.
:::
:::
:::

::: check
kind: parts
given: A = 2 | 5; d = 2 | 5; tau = 200 | 500

## A {A} V pulse lasting {d} µs enters an RC low-pass with $\tau$ = {tau} µs.

::: part
answer: A*d
unit: V·µs
tolerance: 0.5%

### What is the pulse's area?

::: misses
- [any] Height times width.
:::
:::

::: part
answer: A*d/tau*exp(-1)
unit: V
tolerance: 1%

### Treating the pulse as an impulse, what is the output one time constant later?

::: misses
- [any] $\frac{Ad}{\tau}e^{-1}$.
:::
:::
:::

::: check
kind: parts
given: N = 200 | 500; M = 50 | 120; dt = 10 | 20

## Two signals sampled every {dt} µs, of {N} and {M} samples, are convolved with `np.convolve`.

::: part
answer: N + M - 1
tolerance: 0.01%

### How many samples does the result have?

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

::: part
answer: (N + M - 1)*dt/1000
unit: ms
tolerance: 0.5%

### How long a stretch of time does it cover?

::: misses
- [any] Samples times spacing.
:::
:::
:::

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

## A system's impulse response is $h(t) = \given{K}e^{-\given{a}t}$.

::: part
kind: expression
answer: K/(s + a)
vars: s = 1..10

### What is its transfer function $H(s)$?

::: misses
- [any] $\mathcal{L}\{Ke^{-at}\}$.
:::
:::

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

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

::: misses
- [any] The running integral of $h$.
:::
:::
:::

::: check
kind: parts
given: fc = 1 | 3; f = 10 | 30

## An RC low-pass ($f_c$ = {fc} kHz) is fed a 1 V square wave at {f} kHz, far above its corner.

::: part
answer: 4/pi*fc/f
unit: V
tolerance: 2%

### About what amplitude is the fundamental at the output? (Use the asymptote $f_c/f$.)

::: misses
- [4/pi] The filter cuts it by about $f_c/f$.
- [any] $\frac{4}{\pi}\cdot\frac{f_c}{f}$.
:::
:::

::: part
answer: 1/3
tolerance: 1%

### By what factor is the 3rd harmonic's output smaller than the fundamental's, relative to their sizes at the input?

::: misses
- [any] The filter's gain at $3f$ is a third of its gain at $f$.
:::
:::
:::

::: check
kind: parts
given: z = 5 | 20; p = 200 | 500

## A lead network $\dfrac{s + \given{z}}{s + \given{p}}$.

::: part
answer: sqrt(z*p)
unit: rad/s
tolerance: 0.5%

### Where is its phase lead largest?

::: misses
- [(z + p)/2] The geometric mean, not the arithmetic.
- [any] $\sqrt{zp}$.
:::
:::

::: part
answer: 20*log(z/p)
unit: dB
tolerance: 0.5%

### What is its DC gain?

::: misses
- [any] $H(0) = z/p$.
:::
:::
:::

::: check
kind: parts
given: f = 0.5 | 2 | 4

## A single pole at its corner $\omega_c$.

::: part
answer: -10*log(1 + f^2) + 20*log(f)*step(f - 1)
unit: dB
tolerance: 1%

### At {f} times the corner, how far is the exact gain from the asymptote?

::: misses
- [any] Exact $-10\log_{10}(1 + f^2)$, asymptote 0 below the corner and $-20\log_{10}f$ above.
:::
:::
:::

::: check
kind: parts
given: K = 2000 | 3000 | 5000 | 10000 | 20000 | 30000

## $L(s) = \dfrac{\given{K}}{(s + 10)(s + 100)}$.

::: part
answer: sqrt((-10100 + sqrt(10100^2 + 4*(K^2 - 1000000)))/2)
unit: rad/s
tolerance: 0.5%

### Where is its gain crossover?

::: misses
- [any] Solve $(\omega^2 + 100)(\omega^2 + 10^4) = K^2$ as a quadratic in $\omega^2$.
:::
:::
:::
:::
