---
title: Problem set 1
heading: "Problem set 1: signals, operations and system properties"
eyebrow: C9 · Problem set 1
type: problems
---

::: hook
These problems use lessons 1 to 4: continuous and discrete signals with their periods, energy and power; shifting, reversing and scaling time; steps, impulses and complex exponentials; and the properties of systems. Discrete-time frequencies are in radians per sample.
:::

::: pool
pick: 12

::: check
kind: parts
given: A = 1 | 3 | 4; tau = 0.2 | 5; B = 2 | 6

## Consider $x_1(t) = \given{A}e^{-t/\given{tau}}u(t)$ and $x_2(t) = \given{B}\cos(40t)$.

::: part
answer: A^2*tau/2
tolerance: 0.5%

### What is the energy of $x_1$?

::: misses
- [A^2*tau] Squaring doubles the decay rate.
- [any] Not yet. $A^2\tau/2$.
:::
:::

::: part
answer: B^2/2
tolerance: 0.5%

### What is the average power of $x_2$?

::: misses
- [B^2] The average of cos² is 1/2.
- [any] Not yet. $B^2/2$.
:::
:::
:::

::: check
kind: parts
given: m = 3 | 5 | 7; d = 8 | 16 | 32

## Consider $x[n] = \cos(\given{m}\pi n/\given{d})$.

::: part
answer: 2*d
tolerance: 0

### What is its period, in samples?

::: misses
- [d] $\omega_0/2\pi = m/(2d)$: the period is the reduced denominator.
- [any] Not yet. Reduce $\omega_0/2\pi$ to lowest terms.
:::
:::

::: part
answer: m
tolerance: 0

### How many cycles of the underlying cosine fit in one period?

::: misses
- [any] The numerator of $\omega_0/2\pi$ in lowest terms.
:::
:::
:::

::: check
kind: parts
given: f = 60 | 1000 | 3000; fs = 8000 | 48000

## A {f} Hz cosine is sampled at {fs} Hz.

::: part
answer: 2*pi*f/fs
unit: rad
tolerance: 0.5%

### What is $\omega_0$ in radians per sample?

::: misses
- [f/fs] Multiply by 2π.
- [any] Not yet. $2\pi f/f_s$.
:::
:::

::: part
answer: fs/f
tolerance: 0.5%

### How many samples are taken per cycle?

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

::: check
kind: parts
given: w = 4 | 5 | 5.5 | 6

## $x[n] = \cos(\given{w} n)$, with $\omega_0$ = {w} radians per sample.

::: part
answer: 2*pi - w
unit: rad
tolerance: 0.5%

### Which frequency between 0 and π gives exactly the same samples?

::: misses
- [w - pi] Cosine is even: $\cos(\omega_0 n) = \cos((2\pi - \omega_0)n)$.
- [any] Not yet. Subtract from 2π.
:::
:::

::: part
answer: pi
unit: rad
tolerance: 0.5%

### What is the highest frequency a sequence can have, in radians per sample?

::: misses
- [2*pi] At 2π the samples are back to a constant.
- [any] Not yet. Alternating signs, every sample.
:::
:::
:::

::: check
kind: parts
given: a = 2 | -3 | 0.5; b = -4 | 6; t0 = 1 | 3; D = 4 | 9

## x(t) lasts {D} s and has a spike at t = {t0}. Consider $y(t) = x(\given{a}t + \given{b})$.

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

### Where is the spike in y?

::: misses
- [t0 - b] Divide by the scale factor too.
- [any] Not yet. Solve $at + b = t_0$.
:::
:::

::: part
answer: D/abs(a)
unit: s
tolerance: 0.5%

### How long does y last?

::: misses
- [any] D/|a|.
:::
:::
:::

::: check
kind: parts
given: p = 2 | 7 | -3; q = 4 | -1 | 6

## A signal has $x(3) = \given{p}$ and $x(-3) = \given{q}$.

::: part
answer: (p + q)/2
tolerance: 0.5%

### What is its even part at t = −3?

::: misses
- [any] The even part is the same at ±3: the average.
:::
:::

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

### What is its odd part at t = −3?

::: misses
- [(p - q)/2] That's the odd part at +3; at −3 it has the other sign.
- [any] Not yet. $(x(-3) - x(3))/2$.
:::
:::
:::

::: check
kind: parts
given: L = 9 | 13 | 21; k = 5 | 12; n0 = 2 | 7

## x[n] is nonzero only for n = 0 to {L} − 1, and its largest sample is at n = {n0}.

::: part
answer: ceil(L/2)
tolerance: 0

### For how many n is $x[2n]$ nonzero?

::: misses
- [floor(L/2)] Count n = 0.
- [any] Not yet. The even indices from 0 to {L} − 1.
:::
:::

::: part
answer: k - n0
tolerance: 0

### Where is the largest sample of $x[\given{k} - n]$?

::: misses
- [n0 - k] Solve $k - n = n_0$.
- [any] Not yet. Set the argument to {n0}.
:::
:::
:::

::: check
kind: parts
given: t0 = 1 | 2 | 4; a = 2 | 5; b = 4 | 10

## Evaluate these integrals over all t.

::: part
answer: exp(-t0)*t0
tolerance: 0.5%

### $\int t\,e^{-t}\,\delta(t - \given{t0})\,dt$

::: misses
- [any] Sift: evaluate $te^{-t}$ at {t0}.
:::
:::

::: part
answer: cos(b/a)/a
tolerance: 0.5%

### $\int \cos(t)\,\delta(\given{a}t - \given{b})\,dt$

::: misses
- [cos(b/a)] $\delta(at - b) = \delta(t - b/a)/a$: divide by {a}.
- [cos(b)/a] The impulse sits where $at = b$.
- [any] Not yet. Rewrite the impulse first.
:::
:::
:::

::: check
kind: parts
given: sigma = -0.5 | -4 | -100; w = 2 | 50 | 1000

## $x(t) = e^{\given{sigma}t}\cos(\given{w}t)$.

::: part
answer: -1/sigma
unit: s
tolerance: 0.5%

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

::: misses
- [any] $-1/\sigma$.
:::
:::

::: part
answer: -ln(2)/sigma
unit: s
tolerance: 0.5%

### How long does the envelope take to halve?

::: misses
- [-1/sigma] That's the time constant; halving takes ln 2 of them.
- [any] Not yet. Solve $e^{\sigma t} = 1/2$.
:::
:::
:::

::: check
kind: parts
given: r = 0.8 | 0.9 | 0.97; k = 8 | 12 | 24

## $x[n] = z^n$ with $z = \given{r}e^{j2\pi/\given{k}}$.

::: part
answer: k
tolerance: 0

### How many samples does one full turn take?

::: misses
- [any] The angle grows by 2π/{k} a sample.
:::
:::

::: part
answer: r^k
tolerance: 0.5%

### How big is $\lvert x[n]\rvert$ after that turn?

::: misses
- [any] $r^k$.
:::
:::
:::

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

## A system is $y = \given{a}x + \given{b}$. Inputs {p} and {q} are tried separately and together.

::: part
answer: 2*b + a*(p + q)
tolerance: 0.5%

### What is $y(\given{p}) + y(\given{q})$?

::: misses
- [any] Add the two outputs.
:::
:::

::: part
answer: b
tolerance: 0.5%

### By how much does that exceed $y(\given{p} + \given{q})$?

::: misses
- [0] It would be 0 if the system were linear.
- [any] Not yet. The constant is counted twice.
:::
:::
:::

::: check
kind: parts
given: M = 2 | 4; a = 0.5 | 0.9 | -0.8; N = 9 | 30

## An LTI system has $h[n] = (\given{a})^n u[n]$; separately, an accumulator is fed u[n].

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

### If $\lvert x\rvert \le \given{M}$, what bound holds on the LTI system's output?

::: misses
- [M] The output sums many past inputs.
- [any] Not yet. $M\sum\lvert h\rvert$.
:::
:::

::: part
answer: N + 1
tolerance: 0

### What is the accumulator's output at n = {N}?

::: misses
- [any] One for each n from 0 to {N}.
:::
:::
:::

::: check
kind: parts
given: D = 0.5 | 1 | 2; A = 1 | 3 | 4

## $x(t) = \given{D} + \given{A}\cos(200\pi t)$.

::: part
answer: D^2 + A^2/2
tolerance: 0.5%

### What is its average power?

::: misses
- [D^2 + A^2] A sinusoid's power is half its peak squared.
- [any] DC power plus $A^2/2$.
:::
:::

::: part
answer: sqrt(D^2 + A^2/2)
tolerance: 0.5%

### What is its RMS value?

::: misses
- [any] The square root of the power.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 0.8 | -0.9; N = 3 | 10

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

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

### What is its energy?

::: misses
- [1/(1 - a)] Square the samples: the ratio becomes $a^2$.
- [any] $\sum a^{2n} = 1/(1 - a^2)$.
:::
:::

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

### How much of it is in the first {N} samples?

::: misses
- [any] A finite geometric sum of $a^2$.
:::
:::
:::

::: check
kind: parts
given: k = 2 | 5 | 9

## A system computes $y[n] = n\,x[n]$. The input is $\delta[n - \given{k}]$.

::: part
answer: k
tolerance: 0

### What is the output's one nonzero sample?

::: misses
- [any] $n \cdot 1$ at n = {k}.
:::
:::

::: part
answer: k + 1
tolerance: 0

### Delay the input by one sample. What is the nonzero output sample now? (It isn't the old output delayed, so the system is time varying.)

::: misses
- [k] The gain depends on n, so the shifted input meets a different gain.
- [any] The sample is at n = {k} + 1.
:::
:::
:::
:::
