---
title: Final exam
heading: "Final exam: Fourier and Laplace"
eyebrow: A10 · Final exam
type: problems
---

::: hook
Twelve problems from across the whole course: Fourier series and power, transforms and their properties, modulation, sampling and the FFT, Laplace transforms, and frequency and impulse response. Give yourself three hours, work without the lessons open, and write out your reasoning before checking each answer. "Another set" deals a different exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: A = 5 | 10; D = 0.25 | 0.2; n = 1 | 2 | 3

## A pulse train of height {A} V has duty cycle {D}.

::: part
answer: A*D
unit: V
tolerance: 0.5%

### What is its DC level?

::: misses
- [any] The average: $AD$.
:::
:::

::: part
answer: 2*A*abs(sin(pi*n*D))/(pi*n)
unit: V
tolerance: 0.5%

### What is the amplitude of harmonic {n}?

::: misses
- [A*abs(sin(pi*n*D))/(pi*n)] That's $|c_n|$; the one-sided amplitude is $2|c_n|$.
- [any] $\frac{2A}{\pi n}|\sin(\pi nD)|$.
:::
:::
:::

::: check
kind: parts
given: A = 4 | 6; phi = 30 | 60

## $x(t) = \given{A}\cos(2\pi f_0t + \given{phi}°)$.

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

### What is $|c_1|$, its complex Fourier coefficient at $+f_0$?

::: misses
- [A] The cosine splits equally between $+f_0$ and $-f_0$.
- [any] $\cos\theta = \frac{e^{j\theta} + e^{-j\theta}}{2}$.
:::
:::

::: part
answer: -phi

### What is the angle of $c_{-1}$, in degrees?

::: misses
- [phi] That's $c_1$'s angle; $c_{-1}$ is its conjugate.
- [any] $c_{-1} = c_1^*$ for a real signal.
:::
:::
:::

::: check
kind: parts
given: V1 = 10 | 20; V3 = 3 | 4; V5 = 1 | 2

## A distorted sine has harmonic amplitudes $V_1$ = {V1} V, $V_3$ = {V3} V and $V_5$ = {V5} V.

::: part
answer: 100*sqrt(V3^2 + V5^2)/V1
tolerance: 0.5%

### What is its THD, in percent?

::: misses
- [100*(V3 + V5)/V1] Harmonic powers add, so amplitudes add in quadrature.
- [any] $\frac{\sqrt{V_3^2 + V_5^2}}{V_1}$.
:::
:::

::: part
answer: sqrt((V1^2 + V3^2 + V5^2)/2)
unit: V
tolerance: 0.5%

### What is its RMS value?

::: misses
- [V1/sqrt(2)] Include the harmonics.
- [any] Each sine contributes $V_n^2/2$ to the mean square.
:::
:::
:::

::: check
kind: parts
given: T = 1 | 2 | 0.5

## $x(t) = e^{-\pi(t/T)^2}$ V with $T$ = {T} ms. Its transform is $X(f) = Te^{-\pi(fT)^2}$.

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

### What is $X(0)$?

::: misses
- [any] The area, $T$.
:::
:::

::: part
answer: T*exp(-pi)
unit: mV/Hz
tolerance: 0.5%

### What is $|X|$ at $f = 1/T$?

::: misses
- [any] $Te^{-\pi}$.
:::
:::
:::

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

## A 1 V pulse lasting {T} ms enters an RC low-pass with its corner at {fc} kHz.

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

### What is the input's $|X(f)|$ at $f = \frac{1}{2T}$?

::: misses
- [any] $T\,\text{sinc}(\tfrac{1}{2}) = \frac{2T}{\pi}$.
:::
:::

::: part
answer: 2*T/pi/sqrt(1 + (1/(2*T)/fc)^2)
unit: mV/Hz
tolerance: 0.5%

### What is the output's $|Y(f)|$ there?

::: misses
- [any] Multiply by the filter's gain at that frequency.
:::
:::
:::

::: check
kind: parts
given: B = 100 | 350; Bc = 3 | 4

## Time-bandwidth rules of thumb.

::: part
answer: 350/B
unit: ns
tolerance: 1%

### About what rise time can a {B} MHz scope show?

::: misses
- [any] $t_r \approx 0.35/B$.
:::
:::

::: part
answer: 2*Bc*1000
tolerance: 0.5%

### At most how many symbols per second fit through a {Bc} kHz channel?

::: misses
- [Bc*1000] The Nyquist rate is $2B$.
- [any] $2B$.
:::
:::
:::

::: check
kind: parts
given: Pc = 100 | 400; m = 0.5 | 0.8

## An AM transmitter has a {Pc} W carrier and tone modulation of depth {m}.

::: part
answer: Pc*(1 + m^2/2)
unit: W
tolerance: 0.5%

### What is its total power?

::: misses
- [any] Carrier plus $\frac{m^2}{2}P_c$.
:::
:::

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

### What percent of it carries the message?

::: misses
- [any] The sidebands' share.
:::
:::
:::

::: check
kind: parts
given: f = 7 | 9; fs = 10 | 12; N = 1000 | 2000

## A {f} kHz tone is sampled at {fs} kHz with no anti-alias filter, and an {N}-point FFT is taken.

::: part
answer: abs(f - fs)
unit: kHz
tolerance: 0.5%

### At what frequency does it appear?

::: misses
- [f] It's above $f_s/2$, so it folds back.
- [any] $|f - f_s|$.
:::
:::

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

### What is the bin spacing?

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

::: check
kind: parts
given: X = 512 | 1024; N = 2048 | 4096

## A tone lands exactly on a bin of an {N}-point FFT.

::: part
answer: 2*X/N
unit: V
tolerance: 0.5%

### With no window, $|X_k|$ = {X}. What is its amplitude?

::: misses
- [any] $2|X_k|/N$.
:::
:::

::: part
answer: 4*X/N
unit: V
tolerance: 0.5%

### With a Hann window ($\sum w \approx N/2$), $|X_k|$ = {X}. What is its amplitude?

::: misses
- [2*X/N] Normalize by $\sum w$, about $N/2$.
- [any] $2|X_k|/\sum w$.
:::
:::
:::

::: check
kind: parts
given: p = 2 | 5; q = 7 | 11

## $F(s) = \dfrac{\given{p}s + \given{q}}{(s + 1)(s + 4)} = \dfrac{A}{s + 1} + \dfrac{B}{s + 4}$.

::: part
answer: (q - p)/3
tolerance: 0.5%

### What is $A$?

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

::: part
answer: (4*p - q)/3
tolerance: 0.5%

### What is $B$?

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

::: part
answer: p

### What is $f(0^+)$?

::: misses
- [any] $A + B$, or $\lim_{s\to\infty}sF(s)$.
:::
:::
:::

::: check
kind: parts
given: v0 = 2 | 10; Vs = 5 | 12; R = 1 | 2; C = 1 | 10; t = 1 | 2

## A {C} µF capacitor at {v0} V is switched through {R} kΩ onto a {Vs} V source.

::: part
answer: (Vs - v0)/R
unit: mA
tolerance: 0.5%

### What current flows into the capacitor at $t = 0^+$? (Negative if it discharges.)

::: misses
- [Vs/R] The capacitor's own voltage opposes the source.
- [any] $(V_s - v_0)/R$.
:::
:::

::: part
answer: Vs + (v0 - Vs)*exp(-t/(R*C))
unit: V
tolerance: 0.5%

### What is its voltage at $t$ = {t} ms?

::: misses
- [Vs*(1 - exp(-t/(R*C)))] That assumes it started empty.
- [any] $V_s + (v_0 - V_s)e^{-t/RC}$.
:::
:::
:::

::: check
kind: parts
given: R = 10 | 20; L = 10 | 20; C = 0.1 | 1

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

::: part
answer: 1/(2*pi*sqrt(L*1e-3*C*1e-6))
unit: Hz
tolerance: 0.5%

### What is its resonant frequency?

::: misses
- [1/sqrt(L*1e-3*C*1e-6)] That's in rad/s.
- [any] $\frac{1}{2\pi\sqrt{LC}}$.
:::
:::

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

### What is its $Q$, roughly the height of its resonant peak?

::: misses
- [any] $Q = \frac{1}{2\zeta} = \frac{1}{R}\sqrt{L/C}$.
:::
:::
:::

::: check
kind: parts
given: G = 1 | 10; a = 10 | 20; b = 1000 | 2000

## $H(s) = \dfrac{Gab}{(s + a)(s + b)}$, with $G$ = {G}, $a$ = {a} and $b$ = {b} rad/s.

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

### What is its DC gain, in dB?

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

::: part
answer: 20*log(G) - 20*log(b/a)
tolerance: 1%

### By the straight-line sketch, what is its gain at $\omega = b$, in dB?

::: misses
- [any] The first pole has been falling since $a$.
:::
:::

::: part
answer: -atan(b/a)*180/pi - 45
tolerance: 0.5%

### What is the exact phase at $\omega = b$, in degrees?

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

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

## Two systems with impulse responses $ae^{-at}$ and $be^{-bt}$ ($a$ = {a}, $b$ = {b}, per second) are cascaded.

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

### What is the cascade's impulse response at $t$ = {t} s?

::: misses
- [any] $H = \frac{ab}{(s + a)(s + b)}$; partial fractions.
:::
:::

::: part
answer: ln(b/a)/(b - a)
unit: s
tolerance: 0.5%

### When is that impulse response largest?

::: misses
- [any] Set its derivative to zero: $ae^{-at} = be^{-bt}$.
:::
:::
:::

::: check
kind: parts
given: B = 1..20 int

## An ideal low-pass filter passes everything below {B} kHz.

::: part
answer: 2*B
tolerance: 0.5%

### Its impulse response is $2B\,\text{sinc}(2Bt)$. What is its height at $t = 0$, in thousands per second?

::: misses
- [any] $\text{sinc}(0) = 1$.
:::
:::

::: part
answer: 1/(2*B)
unit: ms
tolerance: 0.5%

### Where is its first zero?

::: misses
- [1/B] $\text{sinc}(x)$ is first zero at $x = 1$: $2Bt = 1$.
- [any] $t = \frac{1}{2B}$.
:::
:::
:::

::: check
kind: parts
given: K = 2000 | 5000 | 8000 | 10000 | 20000 | 50000

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

::: part
answer: 180 - (atan(sqrt((-10100 + sqrt(10100^2 + 4*(K^2 - 1000000)))/2)/10) + atan(sqrt((-10100 + sqrt(10100^2 + 4*(K^2 - 1000000)))/2)/100))*180/pi
unit: °
tolerance: 0.5%

### What is its phase margin?

::: misses
- [any] Find the crossover, then $180°$ minus the two poles' phase lags there.
:::
:::
:::
:::
