NivaarExam PrepOfficial exam papers ↗

22-Elec-B1 Digital Signal Processing · May 2018

Question 4 of 6: Frequency-domain sampling and the resulting time aliasing

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

Paper format. National Exams May 2018 — 16-Elec-B1, Digital Signal Processing. Three hours, closed book; one approved Casio or Sharp calculator and one double-sided aid sheet of tables and formulas are permitted. Six questions are printed and five constitute a complete paper, each worth 12 points; the marking scheme published on page 1 breaks those 12 points down part by part. All six questions are solved below, because the set is intended as a study resource rather than as a three-hour sitting.

Reference texts. A. V. Oppenheim and R. W. Schafer, Discrete-Time Signal Processing, 3rd ed., Pearson, 2010 — the source of the z-transform tables, the DFT property list and the sampling relations reproduced on pages 6–8 of this exam. J. G. Proakis and D. G. Manolakis, Digital Signal Processing: Principles, Algorithms and Applications, 4th ed., Pearson, 2007. S. K. Mitra, Digital Signal Processing: A Computer-Based Approach, 4th ed., McGraw-Hill, 2011 — filter structures, transposition and linear-phase FIR types.

Figure data. The eight-sample reading is the one used below, and it is what makes the requested eight-point circular convolution well posed.

Question 4: Frequency-domain sampling and the resulting time aliasing (12 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

nx[n] (ten-point, x[1] = a, x[4] = b)-1021a2-1314b526378-19210ny[n] (four-point sequence shown in the exam figure)-10113223145678910
Figure 4.1 — top: the ten-point sequence $x[n]$ with the two unknown samples $a = x[1]$ and $b = x[4]$ (drawn at an arbitrary height, as the exam warns). Bottom: the candidate four-point sequence $y[n]$ printed with part (a).

Given.

$n$0123456789
$x[n]$2$a$$-1$1$b$230$-1$2

The candidate sequence in the second figure is $y[n] = \{1,\,3,\,2,\,1\}$ for $n = 0,1,2,3$, and $Y[k]$ consists of $N = 4$ samples of $X(e^{j\omega})$ spaced $\Delta\omega = \pi/2$ apart.

Find. Whether the printed four-point sequence is consistent with being the 4-point IDFT of those DTFT samples, and if so the values of $a$ and $b$ that make it so.

Approach. Sampling a DTFT at $N$ equally spaced frequencies aliases the sequence in time with period $N$; write $y[n]$ as that alias sum, identify which samples are free of the unknowns, test those against the figure, and then solve the remaining two equations.

  1. Turn frequency sampling into time aliasing. Sampling $X(e^{j\omega})$ at $\omega = 2\pi k/N$ with $N = 4$ and inverting with a 4-point IDFT gives, for any sequence longer than $N$, $$y[n] = \sum_{r=-\infty}^{\infty} x[n + rN] = \sum_{r} x[n + 4r], \qquad 0 \le n \le 3.$$ Since $x[n]$ lives on $0 \le n \le 9$, each $y[n]$ is a sum of at most three samples of $x$, taken every fourth position.
  2. Write out the four alias sums. Collecting the terms, $$\begin{aligned} y[0] &= x[0] + x[4] + x[8] = 2 + b + (-1) = 1 + b, \\ y[1] &= x[1] + x[5] + x[9] = a + 2 + 2 = a + 4, \\ y[2] &= x[2] + x[6] = -1 + 3 = 2, \\ y[3] &= x[3] + x[7] = 1 + 0 = 1. \end{aligned}$$ The key structural observation is that the two unknowns land in different alias sums — $b$ only in $y[0]$ and $a$ only in $y[1]$ — so $y[2]$ and $y[3]$ are completely determined by the data the figure does give.
  3. Test the determined samples against the printed figure (part a). The exam's candidate sequence has $y[2] = 2$ and $y[3] = 1$. Our alias sums give exactly $$y[2] = -1 + 3 = \boxed{2} \qquad\text{and}\qquad y[3] = 1 + 0 = \boxed{1},$$ both matching. Since nothing in the candidate contradicts the two samples that cannot be adjusted, yes — the printed four-point sequence could be $y[n]$. Had either of these disagreed, no choice of $a$ or $b$ could have rescued it and the answer would have been an immediate no.
  4. Solve for the two unknowns (part b). The remaining two samples give one linear equation each: $$1 + b = y[0] = 1 \;\Longrightarrow\; \boxed{b = 0}, \qquad a + 4 = y[1] = 3 \;\Longrightarrow\; \boxed{a = -1}.$$ Both equations are independent and each has a unique solution, so all four printed values (not merely some of them) are simultaneously attainable, and the values are unique.
  5. Confirm the answer directly. With $a = -1$ and $b = 0$ the full sequence is $$x[n] = \{\,2,\,-1,\,-1,\,1,\,0,\,2,\,3,\,0,\,-1,\,2\,\}.$$ Evaluating its DTFT at the four required frequencies and comparing against the 4-point DFT of $\{1,3,2,1\}$ gives agreement to machine precision at $\omega = 0,\ \pi/2,\ \pi,\ 3\pi/2$; at $\omega = 0$, for example, both sides equal $2-1-1+1+0+2+3+0-1+2 = 7 = 1+3+2+1$. The alias sums also reproduce the figure exactly, closing the check.
QuantityResult
Relationship enforced by the frequency sampling$y[n] = \sum_r x[n+4r]$, $0 \le n \le 3$
Alias sums$y[0] = 1+b$, $\;y[1] = a+4$, $\;y[2] = 2$, $\;y[3] = 1$
(a) Could the printed sequence be $y[n]$?Yes — the two $a$,$b$-independent samples $y[2]=2$ and $y[3]=1$ both match
(b) Required values$a = x[1] = -1$ and $b = x[4] = 0$, uniquely; all four printed values are met
Resulting sequence$x[n] = \{2,-1,-1,1,0,2,3,0,-1,2\}$