---
title: Problem set 6
heading: "Problem set 6: the whole course"
eyebrow: A10 · Problem set 6
type: problems
---

::: hook
These problems mix the whole course: series, transforms, modulation, sampling and Laplace. Most of them need two ideas at once, the way real problems do. Each one has your own numbers.
:::

::: pool
pick: 12

::: check
kind: parts
given: A = 1..5 int; f0 = 1 | 2 | 5; fc = 3 | 4 | 6

## A ±{A} V square wave at {f0} kHz drives an RC low-pass filter with its corner at {fc} kHz.

::: part
answer: 4*A/pi/sqrt(1 + (f0/fc)^2)
unit: V
tolerance: 1%

### What is the amplitude of the fundamental at the output?

::: misses
- [4*A/pi] The filter also shrinks the fundamental, by $1/\sqrt{1 + (f_0/f_c)^2}$.
- [A/sqrt(1 + (f0/fc)^2)] The square wave's fundamental is $4A/\pi$, bigger than A.
- [any] The fundamental is $4A/\pi$ going in; multiply by the filter's gain at $f_0$.
:::
:::

::: part
answer: 4*A/(3*pi)/sqrt(1 + (3*f0/fc)^2)
unit: V
tolerance: 1%

### And the 3rd harmonic?

::: misses
- [4*A/(3*pi)/sqrt(1 + (f0/fc)^2)] Use the 3rd harmonic's own frequency, $3f_0$, in the filter's gain.
- [4*A/(3*pi)] Include the filter's gain at $3f_0$.
- [any] It's $4A/(3\pi)$ going in, times the gain at $3f_0$.
:::
:::

::: right
Right. The filter shrinks the 3rd harmonic more than the fundamental, so the output looks rounder and more like a sine.
:::
:::

::: check
kind: parts
given: T = 1 | 2 | 4; D = 0.1 | 0.2 | 0.25

## A pulse train repeats every {T} ms and is high for a fraction {D} of each period.

::: part
answer: 1000/T
unit: Hz
tolerance: 0.5%

### How far apart are its spectral lines?

::: misses
- [T] The spacing is $1/T$.
- [any] Line spacing $= 1/T$.
:::
:::

::: part
answer: 1000/(D*T)
unit: Hz
tolerance: 0.5%

### Where is the first null of the envelope?

::: misses
- [1000/T] That's the line spacing. The null depends on the pulse width.
- [any] One over the pulse width, $DT$.
:::
:::

::: part
answer: 1/D - 1
tolerance: 0.5%

### How many lines (not counting DC) are there below that first null?

::: misses
- [1/D] The line at the null itself has zero height. Count the ones strictly below.
- [any] The null is at harmonic number $1/D$; count the harmonics before it.
:::
:::

::: right
Right. Narrower pulses push the null out and put more harmonics under the main lobe.
:::
:::

::: check
kind: parts
given: Vs = 5 | 10 | 12; R = 1k..10k E6 Ω; C = 100n..1µ E6 F

## A capacitor, initially empty, is switched through {R} onto {Vs} V. In the s domain, $V_C(s) = \dfrac{V_s}{s(1 + sRC)}$, with C = {C}.

::: part
answer: -1/(R*C)
tolerance: 1%

### Where is the pole of $1/(1 + sRC)$, in 1/s?

::: misses
- [1/(R*C)] It's in the left half plane.
- [-R*C] The pole is at minus one over the time constant.
- [any] Solve $1 + sRC = 0$.
:::
:::

::: part
answer: Vs
unit: V
tolerance: 0.5%

### Where does $v_C$ settle?

::: misses
- [0] Use the final value theorem: $sV_C(s) \to V_s$ as $s \to 0$.
- [any] Final value: $\lim_{s \to 0} sV_C(s)$.
:::
:::

::: part
answer: Vs*(1 - exp(-2))
unit: V
tolerance: 0.5%

### What is $v_C$ after two time constants?

::: misses
- [Vs*exp(-2)] That's how much is still to go.
- [Vs*(1 - exp(-1))] That's after one time constant.
- [any] $v = V_s(1 - e^{-t/RC})$ at $t = 2RC$.
:::
:::

::: right
Right. Partial fractions turn $\frac{V_s}{s(1 + sRC)}$ into $V_s\left(\frac1s - \frac{1}{s + 1/RC}\right)$: the charging curve.
:::
:::

::: check
kind: parts
given: fs = 1000 | 2000 | 5000; r = 0.6 | 0.7 | 0.8; N = 500 | 1000; let f = fs*r

## A {f} Hz tone is sampled at {fs} Hz with no anti-aliasing filter, and a DFT is taken of {N} samples.

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

### What is the Nyquist frequency?

::: misses
- [fs] It's half the sample rate.
- [any] $f_s/2$.
:::
:::

::: part
answer: fs - f
unit: Hz
tolerance: 0.5%

### At what frequency does the tone appear?

::: misses
- [f] It's above the Nyquist frequency, so it aliases.
- [f - fs/2] Fold around $f_s$: the alias is $f_s - f$.
- [any] $|f - f_s|$.
:::
:::

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

### In which DFT bin does it land?

::: misses
- [f*N/fs] That's where the real frequency would be. The data shows the alias.
- [any] Bin $k = f_\text{alias}N/f_s$.
:::
:::

::: right
Right. Without a filter before the converter, the tone sits in the data looking exactly like a genuine lower frequency.
:::
:::

::: check
kind: parts
given: A = 2 | 5 | 10

## A ±{A} V square wave drives a 1 Ω load.

::: part
answer: A^2
unit: W
tolerance: 0.5%

### What is its average power?

::: misses
- [any] Its square is $A^2$ all the time.
:::
:::

::: part
answer: 8*A^2/pi^2
unit: W
tolerance: 0.5%

### How much of that is in the fundamental?

::: misses
- [16*A^2/pi^2] The fundamental's amplitude is $\frac{4A}{\pi}$; a sine's power is half its amplitude squared.
- [any] $\frac{1}{2}\left(\frac{4A}{\pi}\right)^2$.
:::
:::

::: part
answer: 100*8/pi^2
tolerance: 0.5%

### What percent of the power is that?

::: misses
- [any] $\frac{8}{\pi^2}$, as a percent.
:::
:::
:::

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

## $x(t) = e^{-t/\tau}$ V for $t \ge 0$, with $\tau$ = {tau} ms.

::: part
answer: tau/2
unit: V²·ms
tolerance: 0.5%

### What is its energy, $\int x^2\,dt$?

::: misses
- [tau] Square first: $e^{-2t/\tau}$ decays twice as fast.
- [any] $\int_0^\infty e^{-2t/\tau}dt$.
:::
:::

::: part
answer: 50
tolerance: 0.5%

### By Parseval, what percent of that energy lies below the corner frequency $\frac{1}{2\pi\tau}$ (counting $-f_c$ to $f_c$)?

::: misses
- [any] Integrate $\frac{\tau^2}{1 + (2\pi f\tau)^2}$ from $-f_c$ to $f_c$: it gives $\tan^{-1}(1)$ terms.
:::
:::
:::

::: check
kind: parts
given: frf = 600 | 1200 | 880; B = 4 | 5

## An AM receiver with a 455 kHz IF, its local oscillator above the station, tunes a station at {frf} kHz carrying audio up to {B} kHz.

::: part
answer: frf + 455
unit: kHz
tolerance: 0.01%

### Where is the local oscillator?

::: misses
- [any] $f_\text{RF} + f_\text{IF}$.
:::
:::

::: part
answer: frf + 910
unit: kHz
tolerance: 0.01%

### Where is the image?

::: misses
- [any] Another 455 kHz above the LO.
:::
:::

::: part
answer: 2*B
unit: kHz
tolerance: 0.01%

### How wide must the IF filter's passband be?

::: misses
- [any] Both sidebands.
:::
:::
:::

::: check
kind: parts
given: B = 4 | 20; df = 10 | 50

## A signal has content up to {B} kHz and needs a spectrum with bins {df} Hz apart.

::: part
answer: 2*B
unit: kHz

### What is the lowest sample rate that avoids aliasing?

::: misses
- [any] Twice the highest frequency.
:::
:::

::: part
answer: 2.5*B*1000/df
tolerance: 0.5%

### Sampling at $2.5B$ for margin, how many samples must the record hold?

::: misses
- [any] $N = f_s/\Delta f$.
:::
:::
:::

::: check
kind: parts
given: K = 10 | 50; a = 1 | 2; w = 5 | 10

## A system's step response is $Y(s) = \dfrac{\given{K}}{s[(s + \given{a})^2 + \given{w}^2]}$.

::: part
answer: K/(a^2 + w^2)
tolerance: 0.5%

### What does it settle to?

::: misses
- [K/w^2] At $s = 0$, $(s + a)^2 + \omega^2$ is $a^2 + \omega^2$.
- [any] Final value theorem.
:::
:::

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

### At what frequency does it ring while settling?

::: misses
- [any] The poles are at $-a \pm j\omega$.
:::
:::

::: part
answer: 1/a
unit: s
tolerance: 0.5%

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

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

::: check
kind: parts
given: tau1 = 1 | 2; tau2 = 0.1 | 0.2; f = 10 | 20

## Two buffered RC low-pass stages have $\tau_1$ = {tau1} ms and $\tau_2$ = {tau2} ms.

::: part
answer: 1000/(2*pi*tau1)
unit: Hz
tolerance: 0.5%

### Where is the lower corner?

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

::: part
answer: -20*log(2*pi*f*tau1) - 20*log(2*pi*f*tau2)
tolerance: 1%

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

::: misses
- [-20*log(2*pi*f*tau1)] Both stages are past their corners.
- [any] Add $-20\log_{10}(f/f_c)$ for each.
:::
:::
:::

::: check
kind: parts
given: A = 1 | 2; T = 0.5 | 1; fc = 10 | 20

## A {A} V pulse lasting {T} ms is multiplied by a {fc} kHz cosine.

::: part
answer: A*T/2
unit: mV/Hz
tolerance: 0.5%

### What is the spectrum's height at $f_c$?

::: misses
- [A*T] Modulation splits the pulse's spectrum into two half-height copies.
- [any] Half of the pulse's area.
:::
:::

::: part
answer: 2/T
unit: kHz
tolerance: 0.5%

### How wide is the main lobe around $f_c$, null to null?

::: misses
- [1/T] Nulls lie $1/T$ on each side of the center.
- [any] $2/T$.
:::
:::
:::

::: check
kind: parts
given: A = 1 | 3; f0 = 1 | 2

## A ±{A} V square wave at {f0} kHz passes through an ideal low-pass that keeps everything below $4f_0$, into 1 Ω.

::: part
answer: 8*A^2/pi^2*(1 + 1/9)
unit: W
tolerance: 0.5%

### What is the output power?

::: misses
- [8*A^2/pi^2] The 3rd harmonic gets through too.
- [any] Add the fundamental's and the 3rd harmonic's powers.
:::
:::

::: part
answer: 100*8/pi^2*(10/9)
tolerance: 0.5%

### What percent of the input power is that?

::: misses
- [any] Divide by $A^2$.
:::
:::
:::

::: check
kind: parts
given: R = 50 | 200; L = 10 | 22

## A series RLC with $R$ = {R} Ω, $L$ = {L} mH and $C$ = 1 µF, output across $C$.

::: part
answer: 1/sqrt(L*1e-3*1e-6)
unit: rad/s
tolerance: 0.5%

### What is $|p|$ for its poles?

::: misses
- [any] $\omega_0 = \frac{1}{\sqrt{LC}}$.
:::
:::

::: part
answer: R/2*sqrt(1e-6/(L*1e-3))
tolerance: 0.5%

### What is $\zeta$?

::: misses
- [any] $\frac R2\sqrt{C/L}$.
:::
:::
:::

::: check
kind: parts
given: N = 3 | 5 | 7

## A ±1 square wave rebuilt from its odd harmonics up to {N}.

::: part
answer: sqrt(1 - 8/pi^2*(1 + step(N - 2)/9 + step(N - 4)/25 + step(N - 6)/49))
tolerance: 0.5%

### What RMS error remains?

::: misses
- [any] Parseval: $\sqrt{1 - \sum\frac{8}{\pi^2n^2}}$ over the included harmonics.
:::
:::
:::

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

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

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

### What is the output at $t = 2T$?

::: misses
- [1 - exp(-T/tau)] That's at the end of the pulse.
- [any] Charge until $T$, then decay for another $T$.
:::
:::
:::
:::
