---
title: Problem set 3
heading: "Problem set 3: building filters"
eyebrow: C4 · Problem set 3
type: problems
---

::: hook
These problems use lessons 11 to 16: passive ladder prototypes and scaling, frequency transformations, active filters and their sensitivity, notch and all-pass filters, and equalizers. For the unity-gain Sallen-Key low-pass, $f_0 = \frac{1}{2\pi\sqrt{R_1R_2C_1C_2}}$ and $Q = \frac{\sqrt{R_1R_2C_1C_2}}{C_2(R_1 + R_2)}$.
:::

::: pool
pick: 12

::: check
kind: parts
given: n = 3 | 5; R = 50 | 75; fc = 1 | 30

## A Butterworth ladder of order {n} is designed for {R} Ω and {fc} MHz.

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

### What is its first shunt capacitor?

::: misses
- [any] $g_1 = 2\sin\frac{\pi}{2n}$, then $C = g/(\omega_cR_0)$.
:::
:::

::: part
answer: 2*sin(3*pi/(2*n))*R/(2*pi*fc*1e6)*1e6
unit: µH
tolerance: 0.5%

### What is its first series inductor (element 2)?

::: misses
- [any] $g_2 = 2\sin\frac{3\pi}{2n}$, then $L = gR_0/\omega_c$.
:::
:::
:::

::: check
kind: parts
given: R = 600 | 50; fc = 0.003 | 0.5; k = 2 | 10

## A filter designed for {R} Ω with a {fc} MHz corner is rescaled.

::: part
answer: fc/k
unit: MHz
tolerance: 0.5%

### If every L and C is multiplied by {k}, where does the corner go?

::: misses
- [any] Larger parts, lower frequency.
:::
:::

::: part
answer: R*k
unit: Ω
tolerance: 0.5%

### If instead every L is multiplied and every C divided by {k}, what impedance is it designed for?

::: misses
- [any] Impedance scaling by {k}.
:::
:::
:::

::: check
kind: parts
given: g1 = 1 | 1.414; g2 = 2 | 1.414; R = 50 | 300; fc = 0.1 | 10

## A low-pass prototype with $g_1$ = {g1} (shunt C) and $g_2$ = {g2} (series L) becomes a {R} Ω high-pass at {fc} MHz.

::: part
answer: R/(2*pi*fc*1e6*g1)*1e6
unit: µH
tolerance: 0.5%

### What shunt inductor replaces $g_1$?

::: misses
- [any] $R_0/(\omega_cg)$.
:::
:::

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

### What series capacitor replaces $g_2$?

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

::: check
kind: parts
given: f1 = 7 | 88; bw = 0.2 | 20

## A band-pass passes from {f1} MHz across a width of {bw} MHz.

::: part
answer: sqrt(f1*(f1 + bw))
unit: MHz
tolerance: 0.5%

### What is its center frequency?

::: misses
- [any] Geometric mean of the edges.
:::
:::

::: part
answer: sqrt(f1*(f1 + bw))/bw
tolerance: 0.5%

### What is its Q?

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

::: check
kind: parts
given: g = 1 | 2; R = 50 | 75; B = 1 | 4; f0 = 10 | 50

## A prototype shunt element g = {g} becomes a resonator in a {R} Ω band-pass {B} MHz wide at {f0} MHz.

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

### What is the resonator's capacitor?

::: misses
- [any] $g/(BR_0)$ with B in rad/s.
:::
:::

::: part
answer: 1/((2*pi*f0*1e6)^2*g/(2*pi*B*1e6*R))*1e9
unit: nH
tolerance: 0.5%

### What is its inductor?

::: misses
- [any] Resonate at $f_0$.
:::
:::
:::

::: check
kind: parts
given: R = 4.7 | 10; C1 = 22 | 47; C2 = 4.7 | 10

## A unity-gain Sallen-Key low-pass has $R_1 = R_2$ = {R} kΩ, $C_1$ = {C1} nF and $C_2$ = {C2} nF.

::: part
answer: 1/(2*pi*R*1000*sqrt(C1*C2)*1e-9)
unit: Hz
tolerance: 0.5%

### What is its $f_0$?

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

::: part
answer: 0.5*sqrt(C1/C2)
tolerance: 0.5%

### What is its Q?

::: misses
- [any] $\frac12\sqrt{C_1/C_2}$.
:::
:::
:::

::: check
kind: parts
given: f0 = 1 | 10; Q = 0.707 | 1.3; C2 = 1 | 10

## A unity-gain Sallen-Key low-pass with equal resistors must have $f_0$ = {f0} kHz and Q = {Q}, with $C_2$ = {C2} nF.

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

### What must $C_1$ be?

::: misses
- [any] $Q = \frac12\sqrt{C_1/C_2}$, so $C_1 = 4Q^2C_2$.
:::
:::

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

### What must R be?

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

::: check
kind: parts
given: f0 = 50 | 60; C = 0.1 | 0.47; Q = 5 | 20

## A twin-T notch must null {f0} Hz with C = {C} µF, and is sharpened to Q = {Q} with feedback.

::: part
answer: 1/(2*pi*f0*C*1e-6)/1000
unit: kΩ
tolerance: 0.5%

### What R does it need?

::: misses
- [any] $1/(2\pi f_0C)$.
:::
:::

::: part
answer: f0/Q
unit: Hz
tolerance: 0.5%

### How wide is the sharpened notch?

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

::: check
kind: parts
given: tau = 0.2 | 1; f = 200 | 2000

## A first-order all-pass has τ = {tau} ms.

::: part
answer: -2*atan(2*pi*f*tau/1000)*180/pi
unit: °
tolerance: 0.5%

### What phase does it give at {f} Hz?

::: misses
- [any] $-2\tan^{-1}\omega\tau$.
:::
:::

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

### What group delay?

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

::: check
kind: parts
given: Q = 2 | 8; r = 0.9 | 1.05

## A notch with Q = {Q} is driven at {r} times its center.

::: part
answer: 20*log(abs((1 - r^2)/(1 - r^2 + j*r/Q)))
unit: dB
tolerance: 0.5%

### What is its gain?

::: misses
- [any] $\left|\frac{1 - r^2}{1 - r^2 + jr/Q}\right|$.
:::
:::

::: part
answer: arg((1 - r^2)/(1 - r^2 + j*r/Q))*180/pi
unit: °
tolerance: 0.5%

### What is its phase?

::: misses
- [any] The angle of the same expression.
:::
:::
:::

::: check
kind: parts
given: R = 50 | 600; f = 0.0034 | 10

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

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

### What are its shunt capacitors?

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

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

### What's its series inductor?

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

::: check
kind: parts
given: g = 1 | 2; R = 50 | 300; f = 0.5 | 20

## A prototype element g = {g} is turned into a high-pass for {R} Ω at {f} MHz.

::: part
answer: R/(2*pi*f*1e6*g)*1e6
unit: µH
tolerance: 0.5%

### What shunt inductor replaces a shunt capacitor?

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

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

### What series capacitor replaces a series inductor?

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

::: check
kind: parts
given: f = 0.5 | 2; R = 10 | 22; Q = 0.707 | 1.3

## A unity-gain equal-R Sallen-Key low-pass uses {R} kΩ for f₀ = {f} kHz and Q = {Q}.

::: part
answer: 1/(4*pi*Q*f*1e3*R*1e3)*1e9
unit: nF
tolerance: 0.5%

### What's $C_2$?

::: misses
- [any] $\frac{1}{4\pi Qf_0R}$.
:::
:::

::: part
answer: 4*Q^2/(4*pi*Q*f*1e3*R*1e3)*1e9
unit: nF
tolerance: 0.5%

### What's $C_1$?

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

::: check
kind: parts
given: f = 50 | 60; Q = 5 | 20; d = 2 | 5

## A hum notch at {f} Hz has Q = {Q}.

::: part
answer: f/Q
unit: Hz
tolerance: 0.5%

### How wide is it at −3 dB?

::: misses
- [any] $\frac{f_0}{Q}$.
:::
:::

::: part
answer: 20*log(abs(1 - ((f - d)/f)^2)/sqrt((1 - ((f - d)/f)^2)^2 + (((f - d)/f)/Q)^2))
unit: dB
tolerance: 0.5%

### What does it do to a tone {d} Hz below the notch?

::: misses
- [any] $\frac{|1 - x^2|}{\sqrt{(1 - x^2)^2 + (x/Q)^2}}$.
:::
:::
:::

::: check
kind: parts
given: f = 0.2 | 2; x = 2 | 5

## A first-order all-pass is 90° at {f} kHz.

::: part
answer: -2*atan(x)*180/pi
unit: °
tolerance: 0.5%

### What's its phase at {x} times that?

::: misses
- [any] $-2\arctan\frac{f}{f_0}$.
:::
:::

::: part
answer: 1/(pi*f*1e3)*1000
unit: ms
tolerance: 0.5%

### What's its group delay at DC?

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

::: check
kind: parts
given: Q = 2 | 4 | 6; g = 6 | 9 | 12; x = 0.8 | 1.25

## An equal-component Sallen-Key section is set for Q = {Q}, and separately a {g} dB peaking equalizer has Q = 2.

::: part
answer: (3 - 1/Q)*Q
tolerance: 0.5%

### What's the Sallen-Key's sensitivity of Q to its gain K?

::: misses
- [Q] It's $KQ$ with $K = 3 - 1/Q$.
- [any] Not yet. $S_K^Q = K/(3 - K) = KQ$.
:::
:::

::: part
answer: 10*log(((1 - x^2)^2 + (10^(g/40)*x/2)^2)/((1 - x^2)^2 + (x/(10^(g/40)*2))^2))
tolerance: 1%

### What's the equalizer's gain in dB at {x} times its center?

::: misses
- [g] That's the peak, at the center itself.
- [any] Not yet. Evaluate $|H|^2$ and take $10\log_{10}$.
:::
:::

::: right
Right. High-Q filters are both sharp and sensitive.
:::
:::
:::
