---
title: Problem set 6
heading: "Problem set 6: frequency response and filters across the course"
eyebrow: C4 · Problem set 6
type: problems
---

::: hook
These problems mix the whole course: transfer functions and Bode plots, delay, filter types and orders, ladder and active realizations, transformations, loading, noise and anti-aliasing. Each one has your own numbers.
:::

::: pool
pick: 12

::: check
kind: parts
given: K = 20 | 40 | 60; f1 = 0.1 | 1; d = 1 | 1.5

## An amplifier's response is flat at {K} dB with poles at {f1} kHz and at {d} decade(s) above that.

::: part
answer: K - 20*d
unit: dB
tolerance: 0.5%

### Using straight lines, what is the gain at the second pole?

::: misses
- [any] −20 dB per decade between the poles.
:::
:::

::: part
answer: K - 20*d - 40
unit: dB
tolerance: 0.5%

### And one decade above the second pole?

::: misses
- [K - 20*d - 20] Above the second pole both act: −40 dB per decade.
- [any] Add −40 dB for that decade.
:::
:::

::: part
answer: -(atan(10^d) + atan(1))*180/pi
unit: °
tolerance: 0.5%

### What is the true phase at the second pole?

::: misses
- [-135] At the second pole, the first has contributed close to, but not quite, 90°.
- [any] $-\arctan(f/f_1) - \arctan(f/f_2)$.
:::
:::

::: right
Right. Count decades for the gain; add each pole's arctangent for the phase.
:::
:::

::: check
kind: parts
given: f0 = 500 | 1000 | 2000; Q = 0.707 | 1.5; C2 = 10 | 22

## Design an equal-resistor, unity-gain Sallen-Key low-pass with $f_0$ = {f0} Hz and Q = {Q}, with $C_2$ = {C2} nF.

::: part
answer: 4*Q^2*C2
unit: nF
tolerance: 1%

### What is $C_1$?

::: misses
- [any] $C_1 = 4Q^2C_2$.
:::
:::

::: part
answer: 1/(2*pi*f0*sqrt(4*Q^2*C2*1e-9*C2*1e-9))/1000
unit: kΩ
tolerance: 1%

### What is R?

::: misses
- [any] $R = 1/(2\pi f_0\sqrt{C_1C_2})$.
:::
:::

::: part
answer: 20*log10(Q)
unit: dB
tolerance: 1%

### What is its gain at $f_0$?

::: misses
- [any] $|H(f_0)| = Q$.
:::
:::

::: right
Right. Q from the capacitor ratio, then $f_0$ from R.
:::
:::

::: check
kind: parts
given: A = 40 | 60; k = 3 | 5; fc = 1 | 2

## A Butterworth low-pass with its corner at {fc} kHz must attenuate a {k}·{fc} kHz signal by at least {A} dB.

::: part
answer: ceil(log10(10^(A/10) - 1)/(2*log10(k)))
tolerance: 0.5%

### What is the minimum order?

::: misses
- [any] Solve $10\log_{10}(1 + k^{2n}) \geq A$ and round up.
:::
:::

::: part
answer: 10*log10(1 + k^(2*ceil(log10(10^(A/10) - 1)/(2*log10(k)))))
unit: dB
tolerance: 0.5%

### How much does that order actually attenuate at {k}·{fc} kHz?

::: misses
- [A] With a whole number of poles, it does a bit better than required.
- [any] $10\log_{10}(1 + k^{2n})$.
:::
:::

::: part
answer: -20*ceil(log10(10^(A/10) - 1)/(2*log10(k)))
unit: dB/dec
tolerance: 0.5%

### What is its roll-off far above the corner?

::: misses
- [any] −20 dB per decade per pole.
:::
:::

::: right
Right. Each extra pole adds 20 dB per decade of separation.
:::
:::

::: check
kind: parts
given: R1 = 1 | 2; R2 = 1 | 3; R3 = 4 | 6; RL = 2 | 10

## A T network has series arms $R_1$ = {R1} kΩ and $R_2$ = {R2} kΩ, and shunt leg $R_3$ = {R3} kΩ. It drives a {RL} kΩ load.

::: part
answer: R1 + R3
unit: kΩ
tolerance: 0.5%

### What is $z_{11}$?

::: misses
- [any] Output open: $R_1 + R_3$.
:::
:::

::: part
answer: R1 + R3*(R2 + RL)/(R3 + R2 + RL)
unit: kΩ
tolerance: 0.5%

### What is the input impedance with the load?

::: misses
- [R1 + R3] That's with no load.
- [any] $R_1 + R_3 \parallel (R_2 + R_L)$.
:::
:::

::: part
answer: R3*RL/((R1 + R3)*(R2 + R3 + RL) - R3^2)
tolerance: 0.5%

### What is the voltage gain $V_2/V_1$ with the load?

::: misses
- [R3/(R1 + R3)] That's the open-circuit gain; the load pulls it down.
- [any] $\frac{z_{21}R_L}{z_{11}(z_{22} + R_L) - z_{12}z_{21}}$.
:::
:::

::: right
Right. The z parameters, then the loaded formulas.
:::
:::

::: check
kind: parts
given: Ap = 0.5 | 1; As = 50 | 70; r = 3 | 6

## A low-pass may lose {Ap} dB in its passband and must lose {As} dB at {r} times the passband edge.

::: part
answer: ceil(log((10^(As/10) - 1)/(10^(Ap/10) - 1))/(2*log(r)))
tolerance: 0.1%

### What Butterworth order meets it?

::: misses
- [any] Butterworth order formula.
:::
:::

::: part
answer: ceil(ln(sqrt((10^(As/10) - 1)/(10^(Ap/10) - 1)) + sqrt((10^(As/10) - 1)/(10^(Ap/10) - 1) - 1))/ln(r + sqrt(r^2 - 1)))
tolerance: 0.1%

### What Chebyshev order?

::: misses
- [any] Chebyshev order formula.
:::
:::
:::

::: check
kind: parts
given: R = 50 | 75; fc = 5 | 100

## A third-order Butterworth ladder (1, 2, 1) is scaled to {R} Ω and {fc} MHz.

::: part
answer: 1/(2*pi*fc*1e6*R)*1e12
unit: pF
tolerance: 0.5%

### What are its shunt capacitors?

::: misses
- [any] $g/(\omega_cR_0)$ with g = 1.
:::
:::

::: part
answer: 2*R/(2*pi*fc*1e6)*1e9
unit: nH
tolerance: 0.5%

### What is its series inductor?

::: misses
- [any] $gR_0/\omega_c$ with g = 2.
:::
:::
:::

::: check
kind: parts
given: f1 = 400 | 900; f2 = 500 | 1100

## A band-pass passes {f1} to {f2} kHz.

::: part
answer: sqrt(f1*f2)
unit: kHz
tolerance: 0.5%

### What is its center?

::: misses
- [any] The geometric mean.
:::
:::

::: part
answer: sqrt(f1*f2)/(f2 - f1)
tolerance: 0.5%

### What is its Q?

::: misses
- [any] $f_0/B$.
:::
:::
:::

::: check
kind: parts
given: tau = 0.5 | 2; f = 100 | 400

## A first-order all-pass with τ = {tau} ms equalizes a filter's delay.

::: part
answer: 2*tau
unit: ms
tolerance: 0.5%

### What delay does it add at low frequencies?

::: misses
- [any] $2\tau$.
:::
:::

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

### And at {f} Hz?

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

::: check
kind: parts
given: Q = 0.6 | 1 | 3; f0 = 1 | 10

## A second-order low-pass has Q = {Q} at {f0} kHz.

::: part
answer: 1/(Q*2*pi*f0*1000)*1e6
unit: µs
tolerance: 0.5%

### What is its group delay at DC?

::: misses
- [any] $1/(Q\omega_0)$.
:::
:::

::: part
answer: 2*Q/(2*pi*f0*1000)*1e6
unit: µs
tolerance: 0.5%

### And at $f_0$?

::: misses
- [any] $2Q/\omega_0$.
:::
:::
:::

::: check
kind: parts
given: k = 1 | 10; R = 1 | 4.7; C = 10 | 100

## Two RC sections ({R} kΩ, {C} nF), the second scaled {k} times in impedance, are cascaded without a buffer.

::: part
answer: 20*log(1/(2 + 1/k))
unit: dB
tolerance: 0.5%

### What is the gain at ω = 1/RC?

::: misses
- [any] $\frac{1}{2 + 1/k}$.
:::
:::

::: part
answer: 20*log(1/(2 + 1/k)) - 20*log(0.5)
unit: dB
tolerance: 1%

### How far is that from the buffered result?

::: misses
- [any] Compare with −6.02 dB.
:::
:::
:::

::: check
kind: parts
given: fs = 20 | 48; fm = 2 | 5; N = 12 | 16

## A converter of {N} bits samples at {fs} kHz, for signals to {fm} kHz.

::: part
answer: fs - fm
unit: kHz
tolerance: 0.5%

### Where is the first frequency that would alias into the band?

::: misses
- [any] $f_s - f_\text{max}$.
:::
:::

::: part
answer: ceil(log(10^((6.02*N + 1.76)/10) - 1)/(2*log((fs - fm)/fm)))
tolerance: 0.1%

### What Butterworth order, cornered at {fm} kHz, suppresses it below the resolution?

::: misses
- [any] Order for $6.02N + 1.76$ dB at that frequency.
:::
:::
:::

::: check
kind: parts
given: n = 4 | 6; fc = 1 | 5; R = 10 | 22

## An order-{n} Butterworth filter at {fc} kHz uses equal-resistor Sallen-Key stages with R = {R} kΩ.

::: part
answer: 2*(1/(2*sin(pi/(2*n))))/(2*pi*fc*1000*R*1000)*1e9
unit: nF
tolerance: 0.5%

### What $C_1$ does its highest-Q stage use?

::: misses
- [any] $Q = 1/(2\sin(\pi/2n))$, then $C_1 = 2Q/(\omega_cR)$.
:::
:::

::: part
answer: 1/(2*(1/(2*sin(pi/(2*n))))*2*pi*fc*1000*R*1000)*1e9
unit: nF
tolerance: 0.5%

### And $C_2$?

::: misses
- [any] $C_2 = 1/(2Q\omega_cR)$.
:::
:::
:::

::: check
kind: parts
given: R = 1 | 10; C = 10 | 100; f = 0.3 | 3

## An RC low-pass of {R} kΩ and {C} nF passes {f} kHz.

::: part
answer: 1/sqrt(1 + (2*pi*f*1e3*R*1e3*C*1e-9)^2)
tolerance: 0.5%

### What's its gain?

::: misses
- [any] $\frac{1}{\sqrt{1 + (\omega RC)^2}}$.
:::
:::

::: part
answer: R*1e3*C*1e-9/(1 + (2*pi*f*1e3*R*1e3*C*1e-9)^2)*1e6
unit: µs
tolerance: 0.5%

### What's its group delay there?

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

::: check
kind: parts
given: n = 2..7 int

## A Butterworth and a 1 dB Chebyshev of order {n} both have their passband edge at 1.

::: part
answer: 10*log(1 + 2^(2*n))
unit: dB
tolerance: 0.5%

### How far down is the Butterworth at 2 (with its −3 dB point at 1)?

::: misses
- [any] $10\log(1 + 2^{2n})$.
:::
:::

::: part
answer: 10*log(1 + (10^0.1 - 1)*cosh(n*ln(2 + sqrt(3)))^2)
unit: dB
tolerance: 0.5%

### How far down is the Chebyshev at 2?

::: misses
- [any] $10\log(1 + \varepsilon^2T_n(2)^2)$.
:::
:::
:::

::: check
kind: parts
given: R = 50 | 75; f = 5 | 30

## The (1, 2, 1) Butterworth prototype is scaled to {R} Ω at {f} MHz.

::: part
answer: 1/(2*pi*f*1e6*R)*1e12
unit: pF
tolerance: 0.5%

### What are the shunt capacitors?

::: misses
- [any] $\frac{1}{2\pi fR}$.
:::
:::

::: part
answer: 2*R/(2*pi*f*1e6)*1e9
unit: nH
tolerance: 0.5%

### What's the series inductor?

::: misses
- [any] $\frac{2R}{2\pi f}$.
:::
:::
:::
:::
