NivaarExam PrepOfficial exam papers ↗

22-Elec-B1 Digital Signal Processing · May 2018

Question 5 of 6: System function, all admissible ROCs and the value of $h[0]$

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 5: System function, all admissible ROCs and the value of $h[0]$ (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.

Given. The difference equation $y[n] - \tfrac52 y[n-1] + y[n-2] = x[n] - x[n-1]$, with no statement about causality or stability — which is precisely why part (b) has more than one answer.

Find. $H(z)$; every region of convergence consistent with it; and $h[0]$ for each.

Approach. Transform the difference equation, factor the denominator to locate the poles, enumerate the annuli they bound, and obtain $h[0]$ from a partial-fraction expansion by asking which terms are right-sided in each case.

  1. Transform the difference equation. The z-transform is linear and a delay of $k$ samples multiplies by $z^{-k}$, so $$Y(z)\left(1 - \tfrac{5}{2}z^{-1} + z^{-2}\right) = X(z)\left(1 - z^{-1}\right),$$ giving $$\boxed{\;H(z) = \frac{Y(z)}{X(z)} = \frac{1 - z^{-1}}{1 - \tfrac{5}{2}z^{-1} + z^{-2}}\;}$$
  2. Factor the denominator. Treating $z^{-1}$ as the variable, $1 - \tfrac52 z^{-1} + z^{-2}$ factors as $$\left(1 - 2z^{-1}\right)\left(1 - \tfrac{1}{2}z^{-1}\right),$$ which is confirmed by the coefficient checks $2 + \tfrac12 = \tfrac52$ and $2 \times \tfrac12 = 1$. The system therefore has poles at $$z = 2 \qquad\text{and}\qquad z = \tfrac{1}{2},$$ and a single zero at $z = 1$ (with a second zero at $z = 0$ if one counts the difference in polynomial orders).
  3. Enumerate the regions of convergence. A region of convergence is always an annulus centred on the origin that is bounded by poles and contains none. With poles of magnitude $\tfrac12$ and $2$, exactly three such annuli exist: $$\boxed{\;|z| \lt \tfrac12, \qquad \tfrac12 \lt |z| \lt 2, \qquad |z| \gt 2.\;}$$ Their interpretations follow from where each ROC sits relative to the poles: $|z| \gt 2$ is outside the outermost pole, so $h[n]$ is right-sided (causal) but unstable; $|z| \lt \tfrac12$ is inside the innermost pole, so $h[n]$ is left-sided (anticausal) and also unstable; the annulus $\tfrac12 \lt |z| \lt 2$ is the only one containing the unit circle, so it is the two-sided, stable (and therefore non-causal) system.
  4. Expand in partial fractions. Writing $$H(z) = \frac{A}{1 - 2z^{-1}} + \frac{B}{1 - \tfrac12 z^{-1}},$$ the residues follow from covering up each factor: $$A = \left.\frac{1 - z^{-1}}{1 - \tfrac12 z^{-1}}\right|_{z^{-1} = 1/2} = \frac{1 - \tfrac12}{1 - \tfrac14} = \frac{2}{3}, \qquad B = \left.\frac{1 - z^{-1}}{1 - 2z^{-1}}\right|_{z^{-1} = 2} = \frac{1 - 2}{1 - 4} = \frac{1}{3}.$$ As a check, $A + B = 1$, which must equal the value of $H(z)$ as $z \to \infty$.
  5. Assign each term its sidedness and read off $h[0]$. A term $\dfrac{C}{1 - p z^{-1}}$ contributes $C p^{n}u[n]$ when the ROC lies outside $|z| = |p|$, and $-C p^{n}u[-n-1]$ when it lies inside. Applying this pole by pole:
    Case $|z| \gt 2$ (causal). Both terms are right-sided, $h[n] = \left(\tfrac23 2^{n} + \tfrac13 (\tfrac12)^{n}\right)u[n]$, so $$h[0] = A + B = \boxed{1}.$$
    Case $\tfrac12 \lt |z| \lt 2$ (stable). The pole at 2 lies outside the annulus and so becomes left-sided, while the pole at $\tfrac12$ stays right-sided: $$h[n] = -\tfrac{2}{3}\,2^{n}u[-n-1] + \tfrac{1}{3}\left(\tfrac12\right)^{n}u[n] \;\Longrightarrow\; h[0] = B = \boxed{\tfrac{1}{3}}.$$
    Case $|z| \lt \tfrac12$ (anticausal). Both terms are left-sided, both carry $u[-n-1]$, and neither contributes at $n = 0$: $$h[0] = \boxed{0}.$$
  6. Cross-check the causal case two independent ways. The initial-value theorem quoted on page 8 of the exam gives, for a causal sequence, $h[0] = \lim_{z\to\infty} H(z) = 1/1 = 1$, matching. Running the recursion $h[n] = \tfrac52 h[n-1] - h[n-2] + \delta[n] - \delta[n-1]$ forward from rest gives $h[0] = 1$, $h[1] = \tfrac32$, $h[2] = \tfrac{11}{4}$, which agree term by term with $\tfrac23 2^{n} + \tfrac13 (\tfrac12)^{n}$. Note also that the correct answers differ across the three cases, which is the whole point of the question: a difference equation alone does not define a system.
ReIm|z| < 1/2 (anticausal)ReIm1/2 < |z| < 2 (stable)ReIm|z| > 2 (causal)
Figure 5.1 — the pole–zero map of $H(z)$ (poles $\times$ at $z = \tfrac12, 2$; zero $\circ$ at $z = 1$) with the three admissible regions of convergence shaded. Only the middle annulus contains the unit circle, so only that choice gives a stable system.
QuantityResult
(a) System function$H(z) = \dfrac{1 - z^{-1}}{1 - \tfrac52 z^{-1} + z^{-2}} = \dfrac{1-z^{-1}}{(1-2z^{-1})(1-\tfrac12 z^{-1})}$
Poles and zeropoles $z = \tfrac12$ and $z = 2$; zero $z = 1$
Partial-fraction residues$A = \tfrac23$ (pole 2), $B = \tfrac13$ (pole $\tfrac12$)
(b) ROC 1: $|z| \gt 2$causal, unstable
(b) ROC 2: $\tfrac12 \lt |z| \lt 2$two-sided, stable (contains $|z| = 1$)
(b) ROC 3: $|z| \lt \tfrac12$anticausal, unstable
(c) $h[0]$ for the three ROCs$1$,   $\tfrac13$,   $0$ respectively