---
title: Problem set 2
heading: "Problem set 2: convolution and LTI systems"
eyebrow: C9 · Problem set 2
type: problems
---

::: hook
These problems use lessons 6 to 9: the convolution sum and integral, what the impulse response says about causality, stability and inverses, connected systems, and difference and differential equations. Sequences in brackets start at n = 0, and systems start at rest.
:::

::: pool
pick: 12

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

## x = [{a}, {b}, {c}] is convolved with h = [{p}, {q}].

::: part
answer: b*q + c*p
tolerance: 0

### What is y[2]?

::: misses
- [b*p + c*q] Pair x[k] with h[2 − k]: x[1] with h[1] and x[2] with h[0].
- [any] Not yet. x[1]h[1] + x[2]h[0].
:::
:::

::: part
answer: (a + b + c)*(p + q)
tolerance: 0

### What do all of y's samples add up to?

::: misses
- [any] Sums multiply.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 0.7 | 0.9; L = 4 | 6; n = 2 | 3

## A block of {L} ones (n = 0 to {L} − 1) goes into $h[n] = (\given{a})^n u[n]$.

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

### What is y[{n}]?

::: misses
- [any] $1 + a + \cdots + a^n$.
:::
:::

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

### What is y[{L} + 1], two samples after the block's last one?

::: misses
- [(1 - a^(L + 2))/(1 - a)] The block has ended: only {L} terms remain, each decayed.
- [any] Not yet. All {L} samples of the block contribute, each decayed: $a^2 + a^3 + \cdots + a^{L+1}$.
:::
:::
:::

::: check
kind: parts
given: M = 3 | 5 | 10; C = 1 | 6

## An M-point moving average, $h[n] = 1/\given{M}$ for n = 0 to {M} − 1, gets a step of height {C}.

::: part
answer: 2*C/M
tolerance: 0.5%

### What is the output at n = 1?

::: misses
- [any] Two samples in the window.
:::
:::

::: part
answer: M - 1
tolerance: 0

### At what n does the output first reach {C}?

::: misses
- [M] The window is full when it holds samples 0 to {M} − 1.
- [any] Not yet. When all {M} samples are in.
:::
:::
:::

::: check
kind: parts
given: A = 2 | 3; a = 0.5 | 1.5; B = 1 | 4; b = 2 | 3

## A pulse of height {A} lasting {a} s is convolved with a pulse of height {B} lasting {b} s.

::: part
answer: A*B*a
tolerance: 0.5%

### What is the peak of the result?

::: misses
- [any] Heights times the narrower width.
:::
:::

::: part
answer: b - a
unit: s
tolerance: 0.5%

### For how long does the result stay at that peak?

::: misses
- [any] The narrow pulse can slide inside the wide one for {b} − {a} s.
:::
:::
:::

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

## A pulse of height 1 lasting {T} s drives an RC low-pass with τ = {tau} s.

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

### What is the output at the end of the pulse?

::: misses
- [any] The step response at T.
:::
:::

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

### What is it {d} s after the pulse ends?

::: misses
- [any] Decay from the end value.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 2 | 5; t = 0.2 | 1 | 3

## Consider $y(t) = u(t) * e^{-\given{a}t}u(t)$.

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

### What is y({t})?

::: misses
- [any] $(1 - e^{-at})/a$.
:::
:::

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

### What value does y approach?

::: misses
- [1] The area of $e^{-at}u(t)$ is 1/a.
- [any] Not yet. The area of the exponential.
:::
:::
:::

::: check
kind: parts
given: a = 0.3 | 0.6 | -0.8; b = 0.25 | 0.75

## Two systems have $h_1[n] = (\given{a})^n u[n]$ and $h_2[n] = n(\given{b})^n u[n]$.

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

### What is $\sum\lvert h_1\rvert$?

::: misses
- [any] $1/(1 - \lvert a\rvert)$.
:::
:::

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

### What is $\sum\lvert h_2\rvert$?

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

::: check
kind: parts
given: a = 0.4 | 0.7; D = 3 | 8

## An echo $h[n] = \delta[n] + \given{a}\,\delta[n - \given{D}]$ is to be cancelled.

::: part
answer: (-a)^3
tolerance: 0.5%

### What is the inverse's sample at n = 3 × {D}?

::: misses
- [a^3] The signs alternate: $(-a)^3$.
- [any] Not yet. $(-a)^k$ at n = kD.
:::
:::

::: part
answer: 0
tolerance: 0

### What is it at n = {D} + 1?

::: misses
- [any] The inverse is nonzero only at multiples of {D}.
:::
:::
:::

::: check
kind: parts
given: L = 5 | 16; M = 3 | 9; c1 = 0.5 | 2; c2 = 1.5 | -2

## $h_1$ has {L} samples summing to {c1}; $h_2$ has {M} samples summing to {c2}.

::: part
answer: L + M - 1
tolerance: 0

### How long is the impulse response of the two in cascade?

::: misses
- [any] Lengths add, less one.
:::
:::

::: part
answer: c1 + c2
tolerance: 0.5%

### What do the samples of the parallel connection add up to?

::: misses
- [c1*c2] That's the cascade. In parallel the impulse responses add.
- [any] Not yet. $h_1 + h_2$.
:::
:::
:::

::: check
kind: parts
given: a = 0.6 | -0.5 | 0.95; b = 2 | 0.5; C = 1 | 3

## $y[n] = \given{a}\,y[n-1] + \given{b}\,x[n]$, at rest.

::: part
answer: b*a^3
tolerance: 0.5%

### What is its impulse response at n = 3?

::: misses
- [any] $ba^3$.
:::
:::

::: part
answer: b*C/(1 - a)
tolerance: 0.5%

### What does it settle to for a constant input {C}?

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

::: check
kind: parts
given: r = 0.8 | 0.9 | 0.99; c = 0.5 | 0.866 | 0.309

## $y[n] = a_1y[n-1] + a_2y[n-2] + x[n]$ with $a_1 = 2 \cdot \given{r} \cdot \given{c}$ and $a_2 = -\given{r}^2$.

::: part
answer: r
tolerance: 0.5%

### What factor does the ringing shrink by each sample?

::: misses
- [r^2] $a_2 = -r^2$: take the square root.
- [any] Not yet. $r = \sqrt{-a_2}$.
:::
:::

::: part
answer: 2*pi/acos(c)
tolerance: 0.5%

### How many samples does one cycle of the ringing take?

::: misses
- [any] $\cos\theta = a_1/(2r)$, and a cycle takes 2π/θ samples.
:::
:::
:::

::: check
kind: parts
given: tau = 0.002 | 0.5; t = 1 | 2

## A system obeys $\tau y' + y = x$ with τ = {tau} s.

::: part
answer: exp(-t)/tau
tolerance: 0.5%

### What is h(t) at t = {t}τ?

::: misses
- [any] $e^{-t/\tau}/\tau$.
:::
:::

::: part
answer: 1 - exp(-t)
tolerance: 0.5%

### What is the step response at that time?

::: misses
- [any] $1 - e^{-t/\tau}$.
:::
:::
:::

::: check
kind: parts
given: b0 = 1 | 0.5; b1 = 2 | -0.5; b2 = 1 | 0.25

## An FIR filter has taps [{b0}, {b1}, {b2}] and is fed a unit step.

::: part
answer: b0 + b1
tolerance: 0.5%

### What is s[1]?

::: misses
- [any] The running sum of the taps.
:::
:::

::: part
answer: b0 + b1 + b2
tolerance: 0.5%

### Where does it settle?

::: misses
- [any] The sum of all the taps.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 3 | 5

## Find $e^{-\given{a}t}u(t) * e^{-\given{b}t}u(t)$.

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

### What is it at t = 0.5?

::: misses
- [any] $(e^{-at} - e^{-bt})/(b - a)$.
:::
:::

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

### When does it peak?

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

::: check
kind: parts
given: c1 = 0.5 | 1.2; c2 = -0.5 | 0.3

## $y[n] = \given{c1}\,y[n-1] + (\given{c2})\,y[n-2] + x[n]$, at rest.

::: part
answer: c1
tolerance: 0.5%

### What is h[1]?

::: misses
- [any] Run the recursion on an impulse.
:::
:::

::: part
answer: c1^2 + c2
tolerance: 0.5%

### What is h[2]?

::: misses
- [any] $c_1h[1] + c_2h[0]$.
:::
:::
:::
:::
