---
title: Problem set 4
heading: "Problem set 4: frequency response and the DTFT"
eyebrow: C9 · Problem set 4
type: problems
---

::: hook
These problems use lessons 14 to 19: sinusoids and periodic signals through LTI systems, magnitude, phase and delay, ideal filters, the Fourier transform, duration and bandwidth, the discrete-time Fourier transform, and simple digital filters. Discrete-time frequencies are in radians per sample, and a ±A square wave has odd harmonics of amplitude 4A/(πk).
:::

::: pool
pick: 12

::: check
kind: parts
given: f = 200 | 1500; fc = 500 | 3000; A = 2 | 10

## {A} V at {f} Hz goes through an RC low-pass with its corner at {fc} Hz.

::: part
answer: A/sqrt(1 + (f/fc)^2)
unit: V
tolerance: 0.5%

### What is the output amplitude?

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

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

### What is the output phase, in degrees?

::: misses
- [any] $-\arctan(f/f_c)$.
:::
:::
:::

::: check
kind: parts
given: A = 1 | 3; r = 0.5 | 3; k = 3 | 5

## A ±{A} V square wave at $f_0$ goes into an RC low-pass with its corner at $f_0/\given{r}$.

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

### How big is the output's fundamental?

::: misses
- [4*A/pi] That's the input's; the filter cuts it by $1/\sqrt{1 + r^2}$.
- [any] Not yet. $(4A/\pi)/\sqrt{1 + r^2}$.
:::
:::

::: part
answer: 4*A/(pi*k)/sqrt(1 + (k*r)^2)
unit: V
tolerance: 0.5%

### How big is harmonic {k}?

::: misses
- [any] $(4A/\pi k)/\sqrt{1 + (kr)^2}$.
:::
:::
:::

::: check
kind: parts
given: w = 0.4 | 1.2 | 2

## The two-point average $\tfrac12(x[n] + x[n-1])$ is fed $\cos(\given{w}n)$.

::: part
answer: cos(w/2)
tolerance: 0.5%

### What is its gain?

::: misses
- [any] $\cos(\omega/2)$.
:::
:::

::: part
answer: -w/2*180/pi
unit: °
tolerance: 0.5%

### What is its phase, in degrees?

::: misses
- [-w*180/pi] The delay is half a sample: −ω/2.
- [any] Not yet. $-\omega/2$.
:::
:::
:::

::: check
kind: parts
given: s0 = 0.5 | 2; a = 1 | 4; b = 3 | 6

## $x(t) = e^{\given{s0}t}$ goes into $h(t) = \given{b}e^{-\given{a}t}u(t)$.

::: part
answer: b/(s0 + a)
tolerance: 0.5%

### By what factor is the input multiplied at the output?

::: misses
- [b/a] Evaluate H at s = {s0}.
- [any] Not yet. $H(s) = b/(s + a)$.
:::
:::

::: part
answer: b/a
tolerance: 0.5%

### What is the system's DC gain?

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

::: check
kind: parts
given: tau = 0.5 | 2; f = 50 | 200; t0 = 1 | 4

## An RC low-pass has τ = {tau} ms; separately, a cable delays signals by {t0} ms.

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

### What is the RC filter's group delay at {f} Hz?

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

::: part
answer: -360*f*t0/1000
unit: °
tolerance: 0.5%

### What phase does the cable give {f} Hz?

::: misses
- [any] $-360ft_0$ degrees.
:::
:::
:::

::: check
kind: parts
given: fc = 0.25 | 4; N = 9 | 41

## An ideal low-pass cuts off at {fc} kHz; a symmetric FIR filter has {N} taps.

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

### Where is the first zero of the ideal filter's impulse response after t = 0?

::: misses
- [any] $1/(2f_c)$.
:::
:::

::: part
answer: (N - 1)/2
tolerance: 0

### How many samples does the FIR filter delay every frequency?

::: misses
- [any] (N − 1)/2.
:::
:::
:::

::: check
kind: parts
given: a = 2 | -1; b = 3 | 1; c = -1 | 4; d = 1 | -2

## x = [{a}, {b}, {c}, {d}], from n = 0.

::: part
answer: a + b + c + d
tolerance: 0.5%

### What is its DTFT at ω = 0?

::: misses
- [any] The sum.
:::
:::

::: part
answer: a - c
tolerance: 0.5%

### What is the real part of its DTFT at ω = π/2?

::: misses
- [any] $e^{-j\pi n/2}$ is 1, −j, −1, j: the real parts come from n = 0 and 2.
:::
:::
:::

::: check
kind: parts
given: N = 6 | 12 | 40

## x[n] = 1 for n = 0 to {N} − 1.

::: part
answer: 4*pi/N
unit: rad
tolerance: 0.5%

### How wide is its DTFT's main lobe, null to null?

::: misses
- [2*pi/N] That's to the first null; the lobe spans ±2π/N.
- [any] Not yet. 4π/N.
:::
:::

::: part
answer: N
tolerance: 0.5%

### What is $\frac{1}{2\pi}\int_{-\pi}^{\pi}\lvert X\rvert^2 d\omega$?

::: misses
- [N^2] By Parseval that's the energy, N ones squared: N.
- [any] Not yet. Parseval: the sum of the squares.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 0.7 | -0.4

## $x[n] = (\given{a})^n u[n]$.

::: part
answer: 1/sqrt(1 + a^2)
tolerance: 0.5%

### What is $\lvert X(e^{j\pi/2})\rvert$?

::: misses
- [any] $1/\lvert 1 + ja\rvert$.
:::
:::

::: part
answer: 1/(1 - a^2)
tolerance: 0.5%

### What is its energy?

::: misses
- [any] $1/(1 - a^2)$.
:::
:::
:::

::: check
kind: parts
given: fs = 3000 | 6000 | 9000; fh = 50 | 60; M = 16 | 64

## Data sampled at {fs} Hz has {fh} Hz hum.

::: part
answer: fs/fh
tolerance: 0

### How long a moving average nulls the hum exactly?

::: misses
- [any] One period of the hum, in samples.
:::
:::

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

### Where is the first null of a {M}-point average instead?

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

::: check
kind: parts
given: alpha = 0.04 | 0.15 | 0.4; w = 0.3 | 1.5

## An exponential smoother with α = {alpha}, and the first difference, are compared.

::: part
answer: -1/ln(1 - alpha)
tolerance: 0.5%

### In how many samples does the smoother's impulse response fall by 1/e?

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

::: part
answer: 2*sin(w/2)
tolerance: 0.5%

### What is the first difference's gain at ω = {w}?

::: misses
- [any] $2\sin(\omega/2)$.
:::
:::
:::

::: check
kind: parts
given: alpha = 0.1 | 0.3 | 0.6

## An exponential smoother has α = {alpha}.

::: part
answer: 1
tolerance: 0.5%

### What is its gain at DC?

::: misses
- [any] At ω = 0, $H = \alpha/(1 - (1 - \alpha)) = 1$.
:::
:::

::: part
answer: alpha/(2 - alpha)
tolerance: 0.5%

### What is its gain at ω = π?

::: misses
- [any] $\alpha/(2 - \alpha)$.
:::
:::
:::

::: check
kind: parts
given: A = 2 | 5; T = 0.25 | 4 | 10

## A pulse of {A} V lasts {T} µs.

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

### What is its spectrum at zero frequency?

::: misses
- [any] Its area.
:::
:::

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

### Where is its second spectral null?

::: misses
- [1/T] That's the first.
- [any] At 2/T.
:::
:::
:::

::: check
kind: parts
given: t0 = 0.25 | 1.5; f = 60 | 500 | 2000

## A signal is delayed by {t0} ms.

::: part
answer: -360*f*t0/1000
unit: °
tolerance: 0.5%

### What phase does that add at {f} Hz?

::: misses
- [any] $-360°\,f t_0$.
:::
:::

::: part
answer: t0
unit: ms
tolerance: 0.5%

### What group delay does it have at every frequency?

::: misses
- [any] A pure delay delays everything equally.
:::
:::
:::

::: check
kind: parts
given: b = 0 | 1 | 2; w = 0.5 | 1.5

## x = [1, {b}, 1] for n = 0 to 2.

::: part
answer: abs(b + 2*cos(w))
tolerance: 0.5%

### What is $\lvert X\rvert$ at ω = {w}?

::: misses
- [any] $\lvert b + 2\cos\omega\rvert$.
:::
:::

::: part
answer: -w*180/pi
unit: °
tolerance: 0.5%

### What is its phase there, if $b + 2\cos\omega$ is positive?

::: misses
- [any] One sample of delay: $-\omega$.
:::
:::
:::

::: check
kind: parts
given: T = 0.2 | 1 | 5; B = 50 | 200 | 1000

## A system sends {T} µs rectangular pulses through a front end with a single-pole bandwidth of {B} MHz.

::: part
answer: 1/T
unit: MHz
tolerance: 0.5%

### Where is the pulse spectrum's first null?

::: misses
- [0.443/T] That's the half-power point.
- [any] Not yet. $1/T$.
:::
:::

::: part
answer: 0.35/B*1e3
unit: ns
tolerance: 1%

### What 10 to 90% rise time does the front end add?

::: misses
- [1/B*1e3] The single-pole product is 0.35.
- [any] Not yet. $t_r \approx 0.35/f_c$.
:::
:::

::: right
Right. Each is the duration-bandwidth product of its own shape.
:::
:::
:::
