NivaarExam PrepOfficial exam papers ↗

22-Elec-B1 Digital Signal Processing · Undated paper

Question 5 of 6: Five signal flow graphs for one third-order system

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

Notes on this paper

Paper format. National Exam, May 2019 — 16-Elec-B1 Digital Signal Processing. Three hours, closed book; two approved calculators (Casio or Sharp) and one double-sided aid sheet are permitted. Six questions, each worth 12 marks; the printed rubric states that any five of the six constitute a complete paper. Marking scheme as printed: Q1 (a) 6 (b) 6; Q2 (a) 6 (b) 6; Q3 (a) 6 (b) 6; Q4 (a) 7 (b) 5; Q5 (a) 3 (b) 2 (c) 2 (d) 3 (e) 2; Q6 (a) 5 (b) 3 (c) 4. All six questions are solved here, because the set is a study resource rather than an exam script.

Reference texts. A. V. Oppenheim and R. W. Schafer, Discrete-Time Signal Processing, 3rd ed. — the standard EGBC reference for this subject (sampling Ch. 4, the z-transform Ch. 3, the DFS/DFT Ch. 8, filter structures Ch. 6, FIR design by windowing Ch. 7). Supporting: J. G. Proakis and D. G. Manolakis, Digital Signal Processing: Principles, Algorithms and Applications, 4th ed.; A. V. Oppenheim and A. S. Willsky, Signals and Systems, 2nd ed. The paper supplies its own aid sheet (DTFT analysis/synthesis pair, Parseval, a table of z-transform properties, a table of common z-transform pairs including the finite-length geometric pair, the geometric sum and series, the DFT/CTFT/DTFT property table, and the Kaiser design formulas), and the solutions below use only those.

Source-quality disclosure. Two places where the paper itself is still partly illegible are flagged in check notes at the questions concerned (Q4(b) numerator coefficient, Q5 expanded denominator); in both cases the printed information elsewhere in the same expression fixes the value uniquely. Readers comparing against another copy of the paper should treat those two items as reconstructed.

Question 5: Five signal flow graphs for one third-order system (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.

Check: reconstructed denominator. The paper prints $H(z)$ twice, once with the denominator expanded and once factored. The expanded coefficients used below are therefore multiplied out here rather than copied. The reading is strongly corroborated by the parallel-form residues, which come out as the exact halves $\tfrac12$ and $\tfrac12$ with no $z^{-1}$ term in the second-order numerator — an outcome that only occurs if all five printed coefficients are as read.

Given. A causal LTI system with the system function above: a second-order numerator and a third-order denominator supplied ready-factored into one quadratic and one first-order term.

Find. Signal flow graphs for all five realisations, together with the coefficient set each one needs.

Approach. Multiply the factored denominator out to get the direct-form coefficients, then write the difference equation. Direct form I and direct form II follow from those coefficients; the cascade uses the factors as printed; the parallel form needs one partial-fraction expansion; and the transposed direct form II is the direct form II with every branch reversed.

  1. Expand the denominator. Multiplying the two printed factors, $$\left(1 - \tfrac45 z^{-1} + \tfrac23 z^{-2}\right)\left(1 + \tfrac15 z^{-1}\right) = 1 - \tfrac35 z^{-1} + \tfrac{38}{75}z^{-2} + \tfrac{2}{15}z^{-3},$$

    because $\tfrac15 - \tfrac45 = -\tfrac35$, $\tfrac23 - \tfrac{4}{25} = \tfrac{38}{75}$ and $\tfrac23\cdot\tfrac15 = \tfrac{2}{15}$. The system is therefore third order with

    $$b = \left\{1,\ -\tfrac{3}{10},\ \tfrac13\right\}, \qquad a = \left\{1,\ -\tfrac35,\ \tfrac{38}{75},\ \tfrac{2}{15}\right\}.$$
  2. Write the difference equation. With $H(z) = \bigl(\sum_k b_k z^{-k}\bigr)/\bigl(1 + \sum_k a_k z^{-k}\bigr)$, $$\boxed{\ y[n] = \tfrac35 y[n-1] - \tfrac{38}{75}y[n-2] - \tfrac{2}{15}y[n-3] + x[n] - \tfrac{3}{10}x[n-1] + \tfrac13 x[n-2] \ }$$

    Every structure below realises this one equation; they differ only in how the delays and multipliers are shared.

  3. Locate the poles and zeros (a stability sanity check). The quadratic factor gives $z^{2} - \tfrac45 z + \tfrac23 = 0$, i.e. $z = 0.4 \pm j0.7118$ with $|z| = \sqrt{2/3} = 0.8165$, and the linear factor gives $z = -\tfrac15$. All three poles are inside the unit circle, so the causal system is stable and every structure below is a legitimate realisation. The zeros sit at $z = 0.15 \pm j0.5545$ (radius $1/\sqrt3 = 0.5774$) and at the origin.

  4. ReImpoles 0.4 +/- j0.712 and -0.2; ROC |z| > 0.816 -> causal and stable
    Poles (crosses) and zeros (circles) of H(z). All poles lie inside the unit circle, so the causal system is stable.
  5. (a) Direct form I. Realise the numerator first and the denominator second, each with its own delay chain: $x[n]$ feeds a chain of two delays tapped by $b_0 = 1$, $b_1 = -\tfrac{3}{10}$, $b_2 = \tfrac13$ into the summing node, and $y[n]$ feeds a chain of three delays tapped by $-a_1 = \tfrac35$, $-a_2 = -\tfrac{38}{75}$, $-a_3 = -\tfrac{2}{15}$ back into the same node. This costs $2 + 3 = 5$ delays and 6 multipliers.

  6. x[n]z^-1z^-11-3/101/3y[n]z^-1z^-1z^-13/5-38/75-2/15
    (a) Direct form I: separate delay chains for the numerator and the denominator, five delay elements in total.
  7. (b) Direct form II. Swapping the order of the two cascaded sections lets the two delay chains merge into a single chain holding the internal state $w[n]$, where $$w[n] = x[n] + \tfrac35 w[n-1] - \tfrac{38}{75}w[n-2] - \tfrac{2}{15}w[n-3], \qquad y[n] = w[n] - \tfrac{3}{10}w[n-1] + \tfrac13 w[n-2].$$

    Only $\max(N,M) = 3$ delays are now needed — the canonical minimum — with the same 6 multipliers.

  8. x[n]z^-1z^-1z^-13/5-38/75-2/151-3/101/3y[n]
    (b) Direct form II: one shared delay chain carrying the state w[n], three delays (canonic).
  9. (c) Cascade of a second-order and a first-order direct-form-II section. The paper supplies the denominator already factored, so no work is needed beyond assigning the numerator to one section: $$H(z) = \underbrace{\frac{1 - \tfrac{3}{10}z^{-1} + \tfrac13 z^{-2}}{1 - \tfrac45 z^{-1} + \tfrac23 z^{-2}}}_{H_1(z)} \cdot \underbrace{\frac{1}{1 + \tfrac15 z^{-1}}}_{H_2(z)}.$$

    The complex-conjugate pole pair must stay together in the quadratic section so that all coefficients remain real. Three delays and five multipliers in total; the order of the two sections is free.

  10. x[n]z^-1z^-14/5-2/31-3/101/3v[n]v[n]z^-1-1/51y[n]second-order sectionfirst-order section
    (c) Cascade form: a second-order direct-form-II section carrying the numerator and the conjugate pole pair, feeding a first-order all-pole section.
  11. (d) Parallel form — do the partial-fraction expansion. Since the numerator degree (2) is below the denominator degree (3) there is no polynomial part, and we may write $$H(z) = \frac{A}{1 + \tfrac15 z^{-1}} + \frac{B_0 + B_1 z^{-1}}{1 - \tfrac45 z^{-1} + \tfrac23 z^{-2}}.$$

    Clearing denominators and matching powers of $z^{-1}$ gives the three equations $A + B_0 = 1$, $-\tfrac45 A + \tfrac15 B_0 + B_1 = -\tfrac{3}{10}$ and $\tfrac23 A + \tfrac15 B_1 = \tfrac13$. Solving in that order yields $B_0 = 1-A$, then $B_1 = A - \tfrac12$, and finally $\tfrac{13}{15}A = \tfrac{13}{30}$, so

    $$\boxed{\ A = \tfrac12, \qquad B_0 = \tfrac12, \qquad B_1 = 0 \ }$$

    The expansion is unusually clean — the exam has been designed so that both residues are one half and the second-order numerator has no $z^{-1}$ term. Substituting back reproduces the printed numerator exactly: $\tfrac12(1-\tfrac45 z^{-1}+\tfrac23 z^{-2}) + \tfrac12(1+\tfrac15 z^{-1}) = 1 - \tfrac{3}{10}z^{-1} + \tfrac13 z^{-2}$.

  12. (d) Draw the parallel form. The two branches $$H(z) = \frac{\tfrac12}{1 + \tfrac15 z^{-1}} + \frac{\tfrac12}{1 - \tfrac45 z^{-1} + \tfrac23 z^{-2}}$$

    are each realised in direct form I, driven by the same $x[n]$ and summed to form $y[n]$. Because both numerators are constants, each branch is an all-pole section preceded by a gain of $\tfrac12$: one delay in the first-order branch and two in the second-order branch, three delays and five multipliers in total.

  13. y[n]x[n]1/2z^-1-1/5first-order sectionx[n]1/2z^-1z^-14/5-2/3second-order section
    (d) Parallel form: a first-order and a second-order direct-form-I section driven in parallel and summed.
  14. (e) Transposed direct form II. Apply the transposition theorem to (b): reverse the direction of every branch, exchange the roles of input and output, and replace every branch node by an adder and every adder by a branch node. The transfer function is unchanged, so the same six coefficients appear, but now the input drives the feed-forward gains directly and the delays sit between the adders. The structure still needs only three delays.

  15. x[n]1-3/101/3z^-1z^-1z^-1y[n]3/5-38/75-2/15
    (e) Transposed direct form II: the direct form II of (b) with every branch reversed; three delays, six multipliers.
  16. Cross-check all five. Driving each structure with a unit impulse and comparing the first thirty output samples against long division of $H(z)$ gives identical sequences to machine precision. That check is worth doing by hand for the first three samples: every structure must give $h[0] = 1$, $h[1] = -\tfrac{3}{10} + \tfrac35 = \tfrac{3}{10}$ and $h[2] = 0.2467$.

Question 5 — final results
ItemValue
Expanded denominator$1 - \tfrac35 z^{-1} + \tfrac{38}{75}z^{-2} + \tfrac{2}{15}z^{-3}$
Poles$0.4 \pm j0.7118$ ($|z| = 0.8165$) and $-0.2$
Zeros$0.15 \pm j0.5545$ ($|z| = 0.5774$) and $0$
(a) Direct form I5 delays, 6 multipliers
(b) Direct form II3 delays, 6 multipliers
(c) Cascade sections$\dfrac{1-\tfrac{3}{10}z^{-1}+\tfrac13 z^{-2}}{1-\tfrac45 z^{-1}+\tfrac23 z^{-2}}$ and $\dfrac{1}{1+\tfrac15 z^{-1}}$
(d) Parallel residues$A = \tfrac12$, $B_0 = \tfrac12$, $B_1 = 0$
(e) Transposed direct form II3 delays, 6 multipliers