Salta al contenuto
Note per Studenti Signals and Systems - Exam of 10 February 2025 Report

Signals and Systems - Exam of 10 February 2025

Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.

In questa pagina 7

Exam paper of Signals and Systems, second session (appello) of 10 February 2025 (academic year 2024-25, Engineering, UniPD). The course taught in English does not publish its exams, so this is the paper of the equivalent Italian-language Signals and Systems course of the Engineering degrees at the University of Padova, translated into English. Time: 2 hours 30 minutes; no documents allowed; the paper is solved on squared sheets, every answer must be justified and all calculations reported; when asked to plot a signal, find its support and draw its shape, even roughly. Points: three exercises of 7 points, two theory questions of 4 points and one Matlab question of 3 points. To pass, at least 10 points in the exercises and at least 5 between theory and Matlab are needed.

Conventions used in the paper (the same as in the notes): sinc(α)=sin⁡παπα\mathrm{sinc}(\alpha)=\dfrac{\sin\pi\alpha}{\pi\alpha}, rect(t)=1\mathrm{rect}(t)=1 for ∣t∣<12|t|<\tfrac12 and 00 for ∣t∣>12|t|>\tfrac12, Λ(t)=(1−∣t∣) rect ⁣(t2)\Lambda(t)=(1-|t|)\,\mathrm{rect}\!\left(\tfrac t2\right), F[x](ω)=∫−∞+∞x(t)e−jωtdt\mathcal F[x](\omega)=\int_{-\infty}^{+\infty}x(t)e^{-j\omega t}dt, and F[v w]=12πV∗W\mathcal F[v\,w]=\frac1{2\pi}V*W.

Exercise 1 (points 7)

Discrete-time LTI systems. Let S1\mathcal S_1 and S2\mathcal S_2 be two discrete-time LTI systems with impulse responses

h1(n)=δ(n−2)−13 δ(n−3),h2(n)=3−n u(n+1),h_1(n)=\delta(n-2)-\frac13\,\delta(n-3),\qquad\qquad h_2(n)=3^{-n}\,u(n+1),

where δ(n)=1\delta(n)=1 if n=0n=0 and δ(n)=0\delta(n)=0 otherwise. Let S\mathcal S be the system formed by the series of S1\mathcal S_1 and S2\mathcal S_2, and let hh be the impulse response of this new system.

  1. Discuss stability and causality of S1\mathcal S_1 and S2\mathcal S_2.
  2. Compute the frequency responses H1(ω)H_1(\omega) and H2(ω)H_2(\omega) of S1\mathcal S_1 and S2\mathcal S_2.
  3. Sketch ∣H1(ω)∣2|H_1(\omega)|^2 and ∣H2(ω)∣2|H_2(\omega)|^2, even roughly. Hint. Sketch ∣H1∣2|H_1|^2 and use the result to sketch ∣H2∣2|H_2|^2.
  4. Determine the frequency response of S\mathcal S and deduce its impulse response. Deduce whether this system is causal and stable.
  5. Determine the response y(n)y(n) of S\mathcal S to the input x(n)=cos⁡ ⁣(−27.2⋅π⋅n+579π)+cos⁡ ⁣(10−5⋅π⋅n+4813⋅π).x(n)=\cos\!\left(-27.2\cdot\pi\cdot n+\frac{57}{9}\pi\right)+\cos\!\left(10^{-5}\cdot\pi\cdot n+\frac{48}{13}\cdot\pi\right). Express yy as a sum of sinusoids in canonical form.
Show the result
  1. S1\mathcal S_1: causal and BIBO stable (∑n∣h1(n)∣=43\sum_n|h_1(n)|=\frac43). S2\mathcal S_2: not causal (h2(−1)=3≠0h_2(-1)=3\neq0) but BIBO stable (∑n∣h2(n)∣=92\sum_n|h_2(n)|=\frac92).
  2. H1(ω)=e−2jω(1−13e−jω)H_1(\omega)=e^{-2j\omega}\left(1-\frac13e^{-j\omega}\right), H2(ω)=3ejω1−13e−jω\qquad H_2(\omega)=\dfrac{3e^{j\omega}}{1-\frac13e^{-j\omega}}.
  3. ∣H1(ω)∣2=109−23cos⁡ω=29 (5−3cos⁡ω)|H_1(\omega)|^2=\frac{10}9-\frac23\cos\omega=\frac29\,(5-3\cos\omega), between 49\frac49 (at ω=0\omega=0) and 169\frac{16}9 (at ω=±π\omega=\pm\pi); ∣H2(ω)∣2=8110−6cos⁡ω=9∣H1(ω)∣2|H_2(\omega)|^2=\dfrac{81}{10-6\cos\omega}=\dfrac9{|H_1(\omega)|^2}, between 8116\frac{81}{16} (at ω=±π\omega=\pm\pi) and 814\frac{81}4 (at ω=0\omega=0).
  4. H(ω)=3e−jωH(\omega)=3e^{-j\omega}, so h(n)=3 δ(n−1)h(n)=3\,\delta(n-1): S\mathcal S is causal and BIBO stable (∑n∣h(n)∣=3\sum_n|h(n)|=3).
  5. y(n)=3cos⁡ ⁣(45πn−715π)+3cos⁡ ⁣(1100000πn−4000131300000π)y(n)=3\cos\!\left(\frac45\pi n-\frac7{15}\pi\right)+3\cos\!\left(\frac1{100000}\pi n-\frac{400013}{1300000}\pi\right).
Show the full solution

Point 1: stability and causality. The systems are convolutional LTI, so both properties are read directly from the impulse response (Properties of Convolutional LTI SystemsA convolutional LTI system is completely described by its impulse response h (or by its step response), and BIBO stability, staticity, causality and series or parallel interconnection are all read directly from h.Properties of Convolutional LTI Systems →, Stability of LTI Systems - BIBO and Internal StabilityCharacterization of BIBO (external) stability and of internal stability of LTI convolutional systems through the mode functions: stability zones in the complex plane, asymptotic, marginal and unstable behaviour of the natural response, and an example of an externally stable but internally unstable system with a zero-pole cancellation.Stability of LTI Systems - BIBO and Internal Stability →): the system is causal if and only if h(n)=0h(n)=0 for all n<0n<0, and BIBO stable if and only if ∑n∣h(n)∣<+∞\sum_n|h(n)|<+\infty.

  • h1h_1 is non-zero only at n=2n=2 and n=3n=3, so h1(n)=0h_1(n)=0 for n<0n<0: S1\mathcal S_1 is causal. Its sum is ∑n∣h1(n)∣=1+13=43<∞\sum_n|h_1(n)|=1+\frac13=\frac43<\infty: stable.
  • h2(n)=3−nu(n+1)h_2(n)=3^{-n}u(n+1) is non-zero for every n≥−1n\ge-1; in particular h2(−1)=31=3≠0h_2(-1)=3^{1}=3\neq0: S2\mathcal S_2 is not causal (its output at time nn depends on the input at time n+1n+1). Its sum, with the first term n=−1n=-1 taken apart, is ∑n∣h2(n)∣=3+∑n≥0(13)n=3+11−13=3+32=92<∞:\sum_n|h_2(n)|=3+\sum_{n\ge0}\left(\frac13\right)^n=3+\frac1{1-\frac13}=3+\frac32=\frac92<\infty: stable.

Typical mistake: deducing instability from the "growing" factor 3−n3^{-n} at negative nn. Here the sequence starts at n=−1n=-1, so only one term is "large"; the tail is (1/3)n(1/3)^n, which decays. Non-causality does not affect stability.

(The official solution labels the second sum ∑∣h1(2)∣\sum|h_1(2)|: it is a typing slip for ∑∣h2(n)∣\sum|h_2(n)|; the value 92\frac92 is the correct one.)

Point 2: frequency responses. Both systems are stable, so the frequency response exists and is the DTFT of the impulse response, H(ω)=∑nh(n)e−jωnH(\omega)=\sum_nh(n)e^{-j\omega n} (Eigenfunctions and Frequency Response of LTI Systemsfor a BIBO stable convolutional LTI system the complex exponential e^{j w t} is an eigenfunction and the frequency response H(jw), the Fourier transform of the impulse response, is its eigenvalue; for real h the response to a cosine is a scaled and phase-shifted cosine.Eigenfunctions and Frequency Response of LTI Systems →, Frequency Response of LTI SystemsApplying the Fourier transform to LTI convolutional systems described by ODEs: the frequency response H(jw) is the transform of the impulse response, equals Y/U, is a ratio of polynomials in jw, and can be inverted by partial fractions to get h(t), with a warning about causality when the system is not asymptotically stable.Frequency Response of LTI Systems →; in the notes it is written H(ejθ)H(e^{j\theta})).

H1(ω)=e−2jω−13e−3jω=e−2jω(1−13e−jω).H_1(\omega)=e^{-2j\omega}-\frac13e^{-3j\omega}=e^{-2j\omega}\left(1-\frac13e^{-j\omega}\right).

For H2H_2 put q=13e−jωq=\frac13e^{-j\omega}, so that 3−ne−jωn=qn3^{-n}e^{-j\omega n}=q^n and ∣q∣=13<1|q|=\frac13<1. The sum starts at n=−1n=-1: H2(ω)=∑n=−1+∞qn=q−1∑m=0+∞qm=q−11−q=3ejω1−13e−jω.H_2(\omega)=\sum_{n=-1}^{+\infty}q^n=q^{-1}\sum_{m=0}^{+\infty}q^m=\frac{q^{-1}}{1-q}=\frac{3e^{j\omega}}{1-\frac13e^{-j\omega}}. (The official solution splits off the term n=−1n=-1, 3ejω3e^{j\omega}, and sums the rest: 3ejω+11−q=3ejω(1−q)+11−q3e^{j\omega}+\frac1{1-q}=\frac{3e^{j\omega}(1-q)+1}{1-q}; since 3ejω⋅13e−jω=13e^{j\omega}\cdot\frac13e^{-j\omega}=1 the numerator becomes 3ejω3e^{j\omega}: same result.)

Point 3: squared moduli. Since ∣ejθ∣=1|e^{j\theta}|=1 for every real θ\theta, the exponential factors do not matter: ∣H1(ω)∣2=∣1−13cos⁡ω+j13sin⁡ω∣2=(1−13cos⁡ω)2+19sin⁡2ω=1+19−23cos⁡ω=29 (5−3cos⁡ω).|H_1(\omega)|^2=\left|1-\tfrac13\cos\omega+j\tfrac13\sin\omega\right|^2=\left(1-\tfrac13\cos\omega\right)^2+\tfrac19\sin^2\omega=1+\tfrac19-\tfrac23\cos\omega=\frac29\,(5-3\cos\omega). It is a cosine "upside down" (minimum at ω=0\omega=0), 2π2\pi-periodic and even: it oscillates between 29⋅2=49\frac29\cdot2=\frac49 at ω=0\omega=0 and 29⋅8=169\frac29\cdot8=\frac{16}9 at ω=±π\omega=\pm\pi. S1\mathcal S_1 attenuates the low frequencies and amplifies the high ones (a high-pass behaviour).

For H2H_2, the numerator has modulus ∣3ejω∣2=9|3e^{j\omega}|^2=9 and the denominator is exactly the factor 1−13e−jω1-\frac13e^{-j\omega} of H1H_1, so ∣H2(ω)∣2=9∣1−13e−jω∣2=9∣H1(ω)∣2=929(5−3cos⁡ω)=8110−6cos⁡ω.|H_2(\omega)|^2=\frac{9}{|1-\frac13e^{-j\omega}|^2}=\frac{9}{|H_1(\omega)|^2}=\frac{9}{\frac29(5-3\cos\omega)}=\frac{81}{10-6\cos\omega}. It is the reciprocal of the previous curve, scaled by 99: maximum 814=20.25\frac{81}{4}=20.25 at ω=0\omega=0, minimum 8116=5.0625\frac{81}{16}=5.0625 at ω=±π\omega=\pm\pi (a low-pass behaviour). Sketches on [−π,π][-\pi,\pi]:

Grafico interattivo: |H1(w)|^2 = 10/9 - (2/3)cos(w): minimum 4/9 at w = 0, maximum 16/9 at w = ±pi

Grafico interattivo: |H2(w)|^2 = 81/(10 - 6cos(w)): maximum 81/4 at w = 0, minimum 81/16 at w = ±pi

Point 4: the series. The series of two LTI systems has impulse response h=h1∗h2h=h_1*h_2 (Properties of Convolutional LTI SystemsA convolutional LTI system is completely described by its impulse response h (or by its step response), and BIBO stability, staticity, causality and series or parallel interconnection are all read directly from h.Properties of Convolutional LTI Systems →), and by the convolution theorem its frequency response is the product H=H1H2H=H_1H_2 (it is enough that both systems are stable): H(ω)=e−2jω(1−13e−jω)⋅3ejω1−13e−jω=3e−jω.H(\omega)=e^{-2j\omega}\left(1-\tfrac13e^{-j\omega}\right)\cdot\frac{3e^{j\omega}}{1-\frac13e^{-j\omega}}=3e^{-j\omega}. The factor 1−13e−jω1-\frac13e^{-j\omega} cancels. Since e−jωe^{-j\omega} is the frequency response of a unit delay, δ(n−1)↔e−jω\delta(n-1)\leftrightarrow e^{-j\omega}, uniqueness of the DTFT gives h(n)=3 δ(n−1).h(n)=3\,\delta(n-1). Check in the time domain (Properties of Discrete-Time Convolutionalgebraic properties of the discrete convolution (time invariance, commutativity, associativity, bilinearity, neutral element, support), its link with correlation and a set of worked examples including the rectangle-by-rectangle graphical method.Properties of Discrete-Time Convolution →): convolving with δ(n−k)\delta(n-k) delays by kk, so h1∗h2(n)=h2(n−2)−13h2(n−3)=3−(n−2)u(n−1)−3−(n−2)u(n−2)=3−(n−2) δ(n−1)=3 δ(n−1),h_1*h_2(n)=h_2(n-2)-\tfrac13h_2(n-3)=3^{-(n-2)}u(n-1)-3^{-(n-2)}u(n-2)=3^{-(n-2)}\,\delta(n-1)=3\,\delta(n-1), because u(n−1)−u(n−2)=δ(n−1)u(n-1)-u(n-2)=\delta(n-1) and 3−(n−2)=33^{-(n-2)}=3 at n=1n=1. (Check made also numerically: the convolution of the two truncated sequences is non-zero only at n=1n=1, with value 33.)

The result is non-zero only for n=1≥0n=1\ge0: S\mathcal S is causal; ∑n∣h(n)∣=3<∞\sum_n|h(n)|=3<\infty: stable. Notice that S2\mathcal S_2 is not causal and yet the series is causal: the advance of one step in S2\mathcal S_2 is compensated by the delay of two steps in S1\mathcal S_1. Stable systems in series stay stable.

Point 5: response to the sum of two cosines. First the input is rewritten in canonical form, Acos⁡(θn+φ)A\cos(\theta n+\varphi) with A>0A>0 and θ∈[0,π]\theta\in[0,\pi] (see Discrete-Time Complex Exponentials and Periodicitydiscrete-time complex exponentials x(k) = C lambda^k, when e^{j theta k} is periodic (theta/2pi rational), fundamental period, harmonic relations and the periodicity rules for sums of signals.Discrete-Time Complex Exponentials and Periodicity →). In discrete time nn is an integer, so multiples of 2π2\pi can be added to the frequency (they multiply nn by an integer multiple of 2π2\pi) and to the phase:

  • −27.2π=−28π+0.8π-27.2\pi=-28\pi+0.8\pi and 579π=6π+13π\frac{57}9\pi=6\pi+\frac13\pi, so cos⁡ ⁣(−27.2πn+579π)=cos⁡ ⁣(45πn+13π)(θ1=45π).\cos\!\left(-27.2\pi n+\tfrac{57}9\pi\right)=\cos\!\left(\tfrac45\pi n+\tfrac13\pi\right)\qquad\left(\theta_1=\tfrac45\pi\right).
  • 4813π=4π−413π\frac{48}{13}\pi=4\pi-\frac4{13}\pi, so cos⁡ ⁣(10−5πn+4813π)=cos⁡ ⁣(1100000πn−413π)(θ2=π100000).\cos\!\left(10^{-5}\pi n+\tfrac{48}{13}\pi\right)=\cos\!\left(\tfrac1{100000}\pi n-\tfrac4{13}\pi\right)\qquad\left(\theta_2=\tfrac\pi{100000}\right).

Now the system is simple: H(ω)=3e−jωH(\omega)=3e^{-j\omega}, with ∣H(ω)∣=3|H(\omega)|=3 and ∠H(ω)=−ω\angle H(\omega)=-\omega. A cosine input cos⁡(θn+φ)\cos(\theta n+\varphi) gives ∣H(θ)∣cos⁡(θn+φ+∠H(θ))|H(\theta)|\cos(\theta n+\varphi+\angle H(\theta)) (real hh, Eigenfunctions and Frequency Response of LTI Systemsfor a BIBO stable convolutional LTI system the complex exponential e^{j w t} is an eigenfunction and the frequency response H(jw), the Fourier transform of the impulse response, is its eigenvalue; for real h the response to a cosine is a scaled and phase-shifted cosine.Eigenfunctions and Frequency Response of LTI Systems →), so each sinusoid is multiplied by 33 and its phase decreases by its own frequency: y(n)=3cos⁡ ⁣(45πn+13π−45π)+3cos⁡ ⁣(1100000πn−413π−1100000π).y(n)=3\cos\!\left(\tfrac45\pi n+\tfrac13\pi-\tfrac45\pi\right)+3\cos\!\left(\tfrac1{100000}\pi n-\tfrac4{13}\pi-\tfrac1{100000}\pi\right). With common denominators, 13−45=5−1215=−715\frac13-\frac45=\frac{5-12}{15}=-\frac7{15} and 413+1100000=400000+131300000=4000131300000\frac4{13}+\frac1{100000}=\frac{400000+13}{1300000}=\frac{400013}{1300000}: y(n)=3cos⁡ ⁣(45πn−715π)+3cos⁡ ⁣(1100000πn−4000131300000π).y(n)=3\cos\!\left(\tfrac45\pi n-\tfrac7{15}\pi\right)+3\cos\!\left(\tfrac1{100000}\pi n-\tfrac{400013}{1300000}\pi\right).

Second method (no frequency response needed). Since h(n)=3δ(n−1)h(n)=3\delta(n-1), the output is y(n)=3x(n−1)y(n)=3x(n-1): replace nn by n−1n-1 in the canonical form, 3cos⁡ ⁣[45π(n−1)+13π]+3cos⁡ ⁣[1100000π(n−1)−413π]3\cos\!\left[\frac45\pi(n-1)+\frac13\pi\right]+3\cos\!\left[\frac1{100000}\pi(n-1)-\frac4{13}\pi\right], which gives the same phases. Both forms were compared numerically with the original input for n∈[−300,300]n\in[-300,300] (difference below 10−1010^{-10}).

Typical mistakes: not reducing the frequency to [0,π][0,\pi] before writing the canonical form (the input has frequencies −27.2π-27.2\pi outside the interval); forgetting that the delay changes the phase by −θ-\theta (different for each tone); applying the gain 33 to the phase.

Exercise 2 (points 7)

Fourier transform of continuous-time signals. Consider the signals shown in Figures 1a and 1b. The signals are identically zero outside the interval shown in the figure.

  • Figure 1a, signal x1(t)x_1(t): zero for t≤−2t\le-2; it grows linearly from 00 at t=−2t=-2 to 12\frac12 at t=−1t=-1; it is constant, equal to 12\frac12, for −1≤t≤1-1\le t\le1; it decreases linearly from 12\frac12 at t=1t=1 to 00 at t=2t=2; zero for t≥2t\ge2.
  • Figure 1b, signal x2(t)x_2(t): zero for ∣t∣≥2|t|\ge2; piecewise linear through the points (−2,0)(-2,0), (−1,12)(-1,\frac12), (0,−1)(0,-1), (1,12)(1,\frac12), (2,0)(2,0).

Grafico interattivo: Figure 1a (redrawn): x1(t)

Grafico interattivo: Figure 1b (redrawn): x2(t)

  1. Express x1x_1 and x2x_2 through the function Λ(t)=(1−∣t∣) rect ⁣(t2)\Lambda(t)=(1-|t|)\,\mathrm{rect}\!\left(\frac t2\right).
  2. Observing that Λ(t)=rect∗rect(t)\Lambda(t)=\mathrm{rect}*\mathrm{rect}(t), compute the continuous-time Fourier transform of x1x_1 and x2x_2.
  3. Let Y(ω)=sinc ⁣(ω2π)Y(\omega)=\mathrm{sinc}\!\left(\frac\omega{2\pi}\right). Compute z(t)=F−1[Y(ω)∗X1(ω)](t)z(t)=\mathcal F^{-1}\big[Y(\omega)*X_1(\omega)\big](t) (F−1\mathcal F^{-1} is the inverse Fourier transform).
Show the result
  1. Two equivalent expressions for each signal: x1(t)=Λ ⁣(t2)−12Λ(t)=12Λ(t+1)+12Λ(t)+12Λ(t−1),x_1(t)=\Lambda\!\left(\tfrac t2\right)-\tfrac12\Lambda(t)=\tfrac12\Lambda(t+1)+\tfrac12\Lambda(t)+\tfrac12\Lambda(t-1), x2(t)=Λ ⁣(t2)−2Λ(t)=12Λ(t+1)−Λ(t)+12Λ(t−1).x_2(t)=\Lambda\!\left(\tfrac t2\right)-2\Lambda(t)=\tfrac12\Lambda(t+1)-\Lambda(t)+\tfrac12\Lambda(t-1).
  2. X1(ω)=2 sinc2 ⁣(ωπ)−12sinc2 ⁣(ω2π)=12 sinc2 ⁣(ω2π)[1+2cos⁡ω]X_1(\omega)=2\,\mathrm{sinc}^2\!\left(\frac\omega\pi\right)-\frac12\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right)=\frac12\,\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right)\left[1+2\cos\omega\right]; X2(ω)=2 sinc2 ⁣(ωπ)−2 sinc2 ⁣(ω2π)=sinc2 ⁣(ω2π)[cos⁡ω−1]X_2(\omega)=2\,\mathrm{sinc}^2\!\left(\frac\omega\pi\right)-2\,\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right)=\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right)\left[\cos\omega-1\right].
  3. z(t)=π rect(t)z(t)=\pi\,\mathrm{rect}(t).
Show the full solution

Point 1: expressing the signals with Λ\Lambda. Λ(t)\Lambda(t) is the unit triangle: height 11 at t=0t=0, base [−1,1][-1,1]. Then Λ ⁣(t2)\Lambda\!\left(\frac t2\right) is the triangle stretched to base [−2,2][-2,2] (height still 11); at t=±1t=\pm1 it equals 12\frac12.

  • x1x_1 is a trapezoid. Take the big triangle Λ ⁣(t2)\Lambda\!\left(\frac t2\right) and cut off its top above height 12\frac12: the removed cap is a triangle of height 12\frac12 and base [−1,1][-1,1], i.e. 12Λ(t)\frac12\Lambda(t). So x1(t)=Λ ⁣(t2)−12Λ(t)x_1(t)=\Lambda\!\left(\frac t2\right)-\frac12\Lambda(t). Check: at t=0t=0, 1−12=121-\frac12=\frac12 (plateau); at t=±1t=\pm1, 12−0=12\frac12-0=\frac12; at t=±2t=\pm2, 00.
  • x2x_2 has the same outer edges (00 at ±2\pm2, 12\frac12 at ±1\pm1) and a sharp dip to −1-1 at t=0t=0: subtract from the big triangle a triangle of height 22 and base [−1,1][-1,1]: x2(t)=Λ ⁣(t2)−2Λ(t)x_2(t)=\Lambda\!\left(\frac t2\right)-2\Lambda(t). Check: at 00, 1−2=−11-2=-1; at ±1\pm1, 12\frac12; at ±2\pm2, 00.

A second description uses three shifted triangles of base [−1,1][-1,1] centred at −1,0,1-1,0,1 (they overlap on half-bases and add up): x1=12Λ(t+1)+12Λ(t)+12Λ(t−1),x2=12Λ(t+1)−Λ(t)+12Λ(t−1).x_1=\tfrac12\Lambda(t+1)+\tfrac12\Lambda(t)+\tfrac12\Lambda(t-1),\qquad x_2=\tfrac12\Lambda(t+1)-\Lambda(t)+\tfrac12\Lambda(t-1). Check for x1x_1: at t=0t=0 the neighbours vanish (Λ(±1)=0\Lambda(\pm1)=0), so x1(0)=12Λ(0)=12x_1(0)=\frac12\Lambda(0)=\frac12; at t=1t=1, 12Λ(2)+12Λ(1)+12Λ(0)=12\frac12\Lambda(2)+\frac12\Lambda(1)+\frac12\Lambda(0)=\frac12. The representation is not unique: any correct one is accepted. Both forms were checked numerically on [−3,3][-3,3] (identical to machine precision).

Point 2: transforms. From F[rect](ω)=sinc ⁣(ω2π)\mathcal F[\mathrm{rect}](\omega)=\mathrm{sinc}\!\left(\frac\omega{2\pi}\right) (Fourier Transform of Common SignalsFourier transform of periodic signals through the transform of the complex exponential as a Dirac impulse, and a catalogue of computed transforms: cosine, sine, constant, causal exponential, two-sided exponential, rectangle and sinc, sign function, unit step and 1/t.Fourier Transform of Common Signals →) and the convolution theorem (Properties of the Fourier TransformProperties of the Fourier transform with proofs: time shift, modulation, rescaling, convolution theorem, temporal product, time-frequency duality, symmetries, derivative, integral and multiplication by t, followed by worked exercises on a ramp-times-rectangle and on the squared sinc.Properties of the Fourier Transform →), Λ=rect∗rect\Lambda=\mathrm{rect}*\mathrm{rect} has F[Λ](ω)=sinc2 ⁣(ω2π).\mathcal F[\Lambda](\omega)=\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right). Time rescaling, F[x(at)]=1∣a∣X ⁣(ωa)\mathcal F[x(at)]=\frac1{|a|}X\!\left(\frac\omega a\right) with a=12a=\frac12, gives F ⁣[Λ ⁣(t2)]=2 sinc2 ⁣(2ω2π)=2 sinc2 ⁣(ωπ)\mathcal F\!\left[\Lambda\!\left(\frac t2\right)\right]=2\,\mathrm{sinc}^2\!\left(\frac{2\omega}{2\pi}\right)=2\,\mathrm{sinc}^2\!\left(\frac\omega\pi\right). Time shifts Λ(t±1)\Lambda(t\pm1) multiply by e±jωe^{\pm j\omega} (shift property). By linearity:

  • first form: X1(ω)=2 sinc2 ⁣(ωπ)−12sinc2 ⁣(ω2π)X_1(\omega)=2\,\mathrm{sinc}^2\!\left(\frac\omega\pi\right)-\frac12\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right);  X2(ω)=2 sinc2 ⁣(ωπ)−2 sinc2 ⁣(ω2π)\ X_2(\omega)=2\,\mathrm{sinc}^2\!\left(\frac\omega\pi\right)-2\,\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right);
  • second form: X1(ω)=12sinc2 ⁣(ω2π)(ejω+1+e−jω)=12sinc2 ⁣(ω2π)[1+2cos⁡ω]X_1(\omega)=\frac12\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right)\left(e^{j\omega}+1+e^{-j\omega}\right)=\frac12\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right)\left[1+2\cos\omega\right];  X2(ω)=sinc2 ⁣(ω2π)(12ejω−1+12e−jω)=sinc2 ⁣(ω2π)[cos⁡ω−1]\ X_2(\omega)=\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right)\left(\frac12e^{j\omega}-1+\frac12e^{-j\omega}\right)=\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right)\left[\cos\omega-1\right].

The two expressions of each transform are equal. Proof for X1X_1: sinc2 ⁣(ωπ)=sin⁡2ωω2\mathrm{sinc}^2\!\left(\frac\omega\pi\right)=\frac{\sin^2\omega}{\omega^2} and sinc2 ⁣(ω2π)=4sin⁡2(ω/2)ω2\mathrm{sinc}^2\!\left(\frac\omega{2\pi}\right)=\frac{4\sin^2(\omega/2)}{\omega^2}; with sin⁡2ω=4sin⁡2ω2cos⁡2ω2\sin^2\omega=4\sin^2\frac\omega2\cos^2\frac\omega2 and 4cos⁡2ω2=2(1+cos⁡ω)4\cos^2\frac\omega2=2(1+\cos\omega), 2 sin⁡2ωω2−12⋅4sin⁡2ω2ω2=2sin⁡2ω2ω2[4cos⁡2ω2−1]=2sin⁡2ω2ω2[1+2cos⁡ω]=12sinc2 ⁣(ω2π)[1+2cos⁡ω].2\,\frac{\sin^2\omega}{\omega^2}-\frac12\cdot\frac{4\sin^2\frac\omega2}{\omega^2}=\frac{2\sin^2\frac\omega2}{\omega^2}\left[4\cos^2\tfrac\omega2-1\right]=\frac{2\sin^2\frac\omega2}{\omega^2}\left[1+2\cos\omega\right]=\frac12\mathrm{sinc}^2\!\left(\tfrac\omega{2\pi}\right)\left[1+2\cos\omega\right]. The same steps with −2-2 instead of −12-\frac12 give X2X_2: 2sin⁡2ω2ω2[4cos⁡2ω2−4]\frac{2\sin^2\frac\omega2}{\omega^2}\left[4\cos^2\frac\omega2-4\right] with 4cos⁡2ω2−4=−4sin⁡2ω2=2cos⁡ω−24\cos^2\frac\omega2-4=-4\sin^2\frac\omega2=2\cos\omega-2, i.e. sinc2(⋅)[cos⁡ω−1]\mathrm{sinc}^2(\cdot)[\cos\omega-1]. Sanity checks: X1(0)=12⋅1⋅3=32X_1(0)=\frac12\cdot1\cdot3=\frac32, the area of the trapezoid; X2(0)=0X_2(0)=0, because x2x_2 has zero area (the positive parts compensate the negative dip). All four expressions were also verified by numerical integration of the definition at six values of ω\omega (agreement to 10−1610^{-16}).

Point 3: the convolution in frequency. The product theorem says F[v(t)w(t)]=12π V(ω)∗W(ω)\mathcal F[v(t)w(t)]=\frac1{2\pi}\,V(\omega)*W(\omega), hence Y∗X1=2π F[y x1]Y*X_1=2\pi\,\mathcal F[y\,x_1], where y=F−1[Y]y=\mathcal F^{-1}[Y]. Therefore z(t)=F−1[Y∗X1](t)=2π x1(t) y(t).z(t)=\mathcal F^{-1}\big[Y*X_1\big](t)=2\pi\,x_1(t)\,y(t). Since Y(ω)=sinc ⁣(ω2π)=F[rect]Y(\omega)=\mathrm{sinc}\!\left(\frac\omega{2\pi}\right)=\mathcal F[\mathrm{rect}], we have y(t)=rect(t)y(t)=\mathrm{rect}(t), which is non-zero only for ∣t∣<12|t|<\frac12. There x1(t)=12x_1(t)=\frac12 (it is on the plateau [−1,1][-1,1]). So z(t)=2π⋅12 rect(t)=π rect(t).z(t)=2\pi\cdot\frac12\,\mathrm{rect}(t)=\pi\,\mathrm{rect}(t). Numerical check: (Y∗X1)(ω)=π sinc ⁣(ω2π)(Y*X_1)(\omega)=\pi\,\mathrm{sinc}\!\left(\frac\omega{2\pi}\right) (the transform of π rect\pi\,\mathrm{rect}) at ω=0,1,2.5\omega=0,1,2.5, by direct numerical convolution. Typical mistakes: forgetting the factor 2π2\pi of the product theorem; computing the convolution Y∗X1Y*X_1 by hand instead of using the theorem.

Exercise 3 (points 7)

Sampling. Consider the following signals: x(t)x(t) is a band-limited signal with maximum angular frequency ωmax⁡=2\omega_{\max}=2, whose Fourier transform magnitude is plotted in Figure 2; the signal y(t)y(t) is obtained as a modulation of xx, y(t)=x(t)cos⁡(ω0t)y(t)=x(t)\cos(\omega_0t) with ω0>0\omega_0>0; then v(n)=y(nT1)v(n)=y(nT_1) with T1>0T_1>0 and w(n)=v(3n)w(n)=v(3n).

Figure 2 (magnitude of the Fourier transform of xx): an even, arch-shaped curve with maximum 11 at ω=0\omega=0, about 0.870.87 at ω=±1\omega=\pm1, decreasing to 00 at ω=±2\omega=\pm2, and zero for ∣ω∣≥2|\omega|\ge2 (the horizontal axis goes from −4-4 to 44).

Grafico interattivo: Figure 2 (redrawn, approximate shape read from the plot): |X(w)|

  1. Compute Y(ω)Y(\omega) as a function of X(ω)X(\omega).
  2. Sketch Y(ω)Y(\omega), distinguishing the cases according to the value of ω0\omega_0.
  3. Let z(t)=y(t)cos⁡(ω0t)z(t)=y(t)\cos(\omega_0t). Compute Z(ω)Z(\omega) as a function of X(ω)X(\omega).
  4. In which cases can xx be recovered by an ideal low-pass filtering of zz? What must the cut-off angular frequency of the filter be (i.e. the maximum angular frequency for which the frequency response of the filter is non-zero)?
  5. Is it possible to recover xx from vv? Under which conditions?
  6. Is it possible to recover xx from ww? Under which conditions?
Show the result
  1. Y(ω)=12X(ω+ω0)+12X(ω−ω0)Y(\omega)=\frac12X(\omega+\omega_0)+\frac12X(\omega-\omega_0).
  2. Two copies of XX with half height, centred at ±ω0\pm\omega_0, each of support width 44: for ω0<2\omega_0<2 they overlap in [ω0−2, 2−ω0][\omega_0-2,\,2-\omega_0] and add up; for ω0=2\omega_0=2 they touch only at ω=0\omega=0, where both vanish; for ω0>2\omega_0>2 they are disjoint, with supports [ω0−2,ω0+2][\omega_0-2,\omega_0+2] and [−ω0−2,−ω0+2][-\omega_0-2,-\omega_0+2].
  3. Z(ω)=12X(ω)+14X(ω+2ω0)+14X(ω−2ω0)Z(\omega)=\frac12X(\omega)+\frac14X(\omega+2\omega_0)+\frac14X(\omega-2\omega_0).
  4. Exactly when ω0≥2\omega_0\ge2. Cut-off ωc\omega_c with 2≤ωc≤2ω0−22\le\omega_c\le2\omega_0-2 (for example the midpoint ωc=ω0\omega_c=\omega_0); the passband gain must be 22 to recover xx exactly (the central part of ZZ is 12X\frac12X).
  5. Yes, if ω0≥2\omega_0\ge2 and T1<πω0+2T_1<\dfrac\pi{\omega_0+2}.
  6. Yes, if ω0≥2\omega_0\ge2 and T1<π3(ω0+2)T_1<\dfrac\pi{3(\omega_0+2)}.
Show the full solution

Point 1. Write cos⁡(ω0t)=12(ejω0t+e−jω0t)\cos(\omega_0t)=\frac12\left(e^{j\omega_0t}+e^{-j\omega_0t}\right) and use the modulation property, F ⁣[x(t)ejω0t]=X(ω−ω0)\mathcal F\!\left[x(t)e^{j\omega_0t}\right]=X(\omega-\omega_0) (Properties of the Fourier TransformProperties of the Fourier transform with proofs: time shift, modulation, rescaling, convolution theorem, temporal product, time-frequency duality, symmetries, derivative, integral and multiplication by t, followed by worked exercises on a ramp-times-rectangle and on the squared sinc.Properties of the Fourier Transform →). By linearity: Y(ω)=12X(ω−ω0)+12X(ω+ω0).Y(\omega)=\frac12X(\omega-\omega_0)+\frac12X(\omega+\omega_0). Modulation moves the spectrum to the carrier: half of XX goes to +ω0+\omega_0 and half to −ω0-\omega_0.

Point 2. The copy 12X(ω−ω0)\frac12X(\omega-\omega_0) is the arch of Figure 2 with height 12\frac12, centred at +ω0+\omega_0, with support [ω0−2,ω0+2][\omega_0-2,\omega_0+2]; the copy 12X(ω+ω0)\frac12X(\omega+\omega_0) is its mirror image centred at −ω0-\omega_0, with support [−ω0−2,−ω0+2][-\omega_0-2,-\omega_0+2]. They intersect when ω0−2<−ω0+2\omega_0-2<-\omega_0+2, i.e. ω0<2\omega_0<2. As in the official figure, XX is taken real and non-negative, so that in the overlap the two copies simply add up.

  • ω0<2\omega_0<2: overlap on [ω0−2, 2−ω0][\omega_0-2,\,2-\omega_0] (around the origin); YY is a single bump on [−ω0−2,ω0+2][-\omega_0-2,\omega_0+2], with a higher central part where the two arches sum.
  • ω0=2\omega_0=2: the arches touch at ω=0\omega=0. Since X(±2)=0X(\pm2)=0 (continuity), they do not sum there: YY has two arches with a dip to 00 in the middle.
  • ω0>2\omega_0>2: two disjoint arches with a gap (−(ω0−2), ω0−2)\left(-(\omega_0-2),\,\omega_0-2\right) where Y=0Y=0.

Illustrations with the model arch X(ω)=1−ω2/4X(\omega)=\sqrt{1-\omega^2/4} for ∣ω∣<2|\omega|<2 (only to show the three situations):

Grafico interattivo: Y(w) for w0 = 1 < 2: the two arches overlap near the origin and sum

Grafico interattivo: Y(w) for w0 = 2: the arches touch at w = 0, where both vanish

Grafico interattivo: Y(w) for w0 = 3 > 2: two separate arches centred at -3 and 3

Point 3. Apply the result of point 1 to yy in place of xx (modulation by the same carrier): Z(ω)=12Y(ω−ω0)+12Y(ω+ω0)Z(\omega)=\frac12Y(\omega-\omega_0)+\frac12Y(\omega+\omega_0), i.e. Z(ω)=14[X(ω−2ω0)+X(ω)]+14[X(ω)+X(ω+2ω0)]=12X(ω)+14X(ω−2ω0)+14X(ω+2ω0).Z(\omega)=\frac14\big[X(\omega-2\omega_0)+X(\omega)\big]+\frac14\big[X(\omega)+X(\omega+2\omega_0)\big]=\frac12X(\omega)+\frac14X(\omega-2\omega_0)+\frac14X(\omega+2\omega_0). Equivalent in time: z=xcos⁡2(ω0t)=12x+12xcos⁡(2ω0t)z=x\cos^2(\omega_0t)=\frac12x+\frac12x\cos(2\omega_0t). So ZZ contains the original spectrum, halved, around the origin (support [−2,2][-2,2]), plus two replicas, with a quarter of the height, around ±2ω0\pm2\omega_0 (support [2ω0−2,2ω0+2][2\omega_0-2,2\omega_0+2] and its mirror image).

Point 4: demodulation. An ideal low-pass filter keeps 12X(ω)\frac12X(\omega) if the replicas do not intrude in its passband, i.e. if the supports of the replicas do not overlap the support [−2,2][-2,2] of the central term: 2ω0−2≥22\omega_0-2\ge2, i.e. ω0≥2\omega_0\ge2. (For ω0<2\omega_0<2 the replicas overlap the central part and no filter can separate them.) The cut-off must keep the whole central term and discard the replicas: 2≤ωc≤2ω0−2,2\le\omega_c\le2\omega_0-2, for example the midpoint ωc=ω0\omega_c=\omega_0. The output is 12x\frac12x; to obtain xx the filter needs gain 22: HLP(ω)=2 rect ⁣(ω2ωc)H_{LP}(\omega)=2\,\mathrm{rect}\!\left(\frac\omega{2\omega_c}\right).

It is wrong to speak of aliasing here: nothing is sampled, the overlap of the copies is due to modulation and demodulation.

Official solution slip: it says "for example the midpoint of the interval, ωc=12ω0\omega_c=\frac12\omega_0". The midpoint of [2, 2ω0−2][2,\,2\omega_0-2] is ω0\omega_0, not 12ω0\frac12\omega_0; and 12ω0\frac12\omega_0 belongs to the interval only if ω0≥4\omega_0\ge4 (for ω0=2\omega_0=2 it would be 1<21<2 and would cut part of xx). Verified numerically with a band-limited test signal: for ω0=2\omega_0=2 and ω0=3\omega_0=3 the cut-off 12ω0\frac12\omega_0 leaves a relative error of 39%39\% and 14%14\%, while ωc=ω0\omega_c=\omega_0 recovers xx to 10−510^{-5} (numerical precision); with gain 11 instead of 22 the error is 50%50\%.

Point 5: recovering xx from vv. Two steps, both needed (Sampling and the Sampling TheoremSampling multiplies a continuous-time signal by a pulse train, which replicates its spectrum every omega_s; if the signal is band-limited with maximum angular frequency omega_M and omega_s exceeds 2 omega_M, an ideal low-pass filter recovers it exactly (Shannon theorem and sinc interpolation formula).Sampling and the Sampling Theorem →, Aliasing and Anti-Aliasing FiltersAliasing is the overlap of spectral replicas that occurs when the band-limited or Nyquist assumptions of the sampling theorem fail; an anti-aliasing low-pass filter with cut-off omega_s/2 applied before sampling removes it at the price of losing the high frequencies; two worked exercises.Aliasing and Anti-Aliasing Filters →):

  1. Recover yy from its samples v(n)=y(nT1)v(n)=y(nT_1). yy is band-limited, with maximum angular frequency ωmax⁡(y)=ω0+2\omega_{\max}^{(y)}=\omega_0+2 (the right end of the support of YY). By the sampling theorem it is recovered if ωs=2πT1>2(ω0+2)\omega_s=\frac{2\pi}{T_1}>2(\omega_0+2), i.e. T1<πω0+2.T_1<\frac\pi{\omega_0+2}. The ideal reconstruction filter has gain T1T_1 and cut-off between ω0+2\omega_0+2 and ωs−ω0−2\omega_s-\omega_0-2.
  2. Recover xx from yy. By point 4 this is possible (multiplication by cos⁡(ω0t)\cos(\omega_0t) and low-pass filtering with gain 22) if ω0≥2\omega_0\ge2.

Conclusion: xx can be recovered from vv if and only if both conditions hold (in the scheme of the course): {ω0≥2T1<πω0+2\begin{cases}\omega_0\ge2\\[2pt] T_1<\dfrac\pi{\omega_0+2}\end{cases} Remark (out of syllabus): if ω0\omega_0 is large, yy is a band-pass signal and sampling slower than πω0+2\frac\pi{\omega_0+2} without overlap of the replicas is possible (numerically, for ω0=10\omega_0=10 the replicas do not overlap up to about T1=0.52T_1=0.52, twice the Nyquist limit 0.260.26), but the reconstruction then needs a band-pass filter instead of the low-pass one; the expected answer is the Nyquist condition on the highest frequency.

Point 6: recovering xx from ww. w(n)=v(3n)=y(3nT1)w(n)=v(3n)=y(3nT_1) is the sampling of yy with period 3T13T_1 in place of T1T_1. The condition of point 5 holds with T1T_1 replaced by 3T13T_1: {ω0≥23T1<πω0+2  ⟺  T1<π3(ω0+2)\begin{cases}\omega_0\ge2\\[2pt] 3T_1<\dfrac\pi{\omega_0+2}\iff T_1<\dfrac\pi{3(\omega_0+2)}\end{cases} Taking one sample out of three is a coarser sampling, so the allowed T1T_1 is three times smaller.

Theory 1 (points 4)

Fourier transform of continuous-time signals.

  1. Recall the analysis and synthesis formulas of the continuous-time Fourier transform.
  2. Recall and prove the modulation and translation properties.
  3. Express the continuous-time Fourier transform of a periodic signal in terms of the coefficients of its Fourier series.
Show the result
  1. Analysis: X(ω)=∫−∞+∞x(t)e−jωt dtX(\omega)=\displaystyle\int_{-\infty}^{+\infty}x(t)e^{-j\omega t}\,dt. Synthesis: x(t)=12π∫−∞+∞X(ω)ejωt dωx(t)=\dfrac1{2\pi}\displaystyle\int_{-\infty}^{+\infty}X(\omega)e^{j\omega t}\,d\omega.
  2. F ⁣[x(t)ejω0t](ω)=X(ω−ω0)\mathcal F\!\left[x(t)e^{j\omega_0t}\right](\omega)=X(\omega-\omega_0) (modulation); F[x(t−t0)](ω)=X(ω)e−jωt0\mathcal F[x(t-t_0)](\omega)=X(\omega)e^{-j\omega t_0} (translation).
  3. If xx has period T>0T>0 and Fourier coefficients aka_k, x(t)=∑kakejk2πTtx(t)=\sum_ka_ke^{jk\frac{2\pi}Tt}, then X(ω)=2π∑k∈Zak δ ⁣(ω−k2πT)X(\omega)=2\pi\displaystyle\sum_{k\in\mathbb Z}a_k\,\delta\!\left(\omega-k\frac{2\pi}T\right).
Show the full solution

Point 1. The transform and its inverse are defined as in Fourier TransformThe Fourier transform extends the Fourier series to aperiodic signals: intuitive derivation from a periodic square wave with growing period, definition of the transform and of its inverse, convergence results in L1 and L2 and the Plancherel and Parseval relation.Fourier Transform →: for x∈L1(R)x\in L^1(\mathbb R) the analysis integral converges for every ω\omega; the synthesis formula returns xx (at the continuity points) under the conditions on convergence of the inverse transform. The factor 12π\frac1{2\pi} sits in the synthesis formula, which is what makes the transform of a product equal to 12π\frac1{2\pi} times the convolution.

Point 2. Let X=F[x]X=\mathcal F[x] (Properties of the Fourier TransformProperties of the Fourier transform with proofs: time shift, modulation, rescaling, convolution theorem, temporal product, time-frequency duality, symmetries, derivative, integral and multiplication by t, followed by worked exercises on a ramp-times-rectangle and on the squared sinc.Properties of the Fourier Transform →).

Modulation. Group the exponentials: F ⁣[x(t)ejω0t]=∫−∞+∞x(t)ejω0te−jωt dt=∫−∞+∞x(t)e−j(ω−ω0)t dt=X(ω−ω0).\mathcal F\!\left[x(t)e^{j\omega_0t}\right]=\int_{-\infty}^{+\infty}x(t)e^{j\omega_0t}e^{-j\omega t}\,dt=\int_{-\infty}^{+\infty}x(t)e^{-j(\omega-\omega_0)t}\,dt=X(\omega-\omega_0). Translation. With the change of variable τ=t−t0\tau=t-t_0 (so t=τ+t0t=\tau+t_0, dt=dτdt=d\tau): F[x(t−t0)]=∫−∞+∞x(t−t0)e−jωt dt=∫−∞+∞x(τ)e−jω(τ+t0) dτ=e−jωt0 X(ω).\mathcal F[x(t-t_0)]=\int_{-\infty}^{+\infty}x(t-t_0)e^{-j\omega t}\,dt=\int_{-\infty}^{+\infty}x(\tau)e^{-j\omega(\tau+t_0)}\,d\tau=e^{-j\omega t_0}\,X(\omega). The two properties are dual: a multiplication by a complex exponential shifts the spectrum; a shift in time multiplies the spectrum by a complex exponential (a pure phase: the modulus does not change).

Point 3. A periodic signal is generally not in L1(R)L^1(\mathbb R), so its transform is a generalized one, built on the transform of the complex exponential (Fourier Transform of Common SignalsFourier transform of periodic signals through the transform of the complex exponential as a Dirac impulse, and a catalogue of computed transforms: cosine, sine, constant, causal exponential, two-sided exponential, rectangle and sinc, sign function, unit step and 1/t.Fourier Transform of Common Signals →). First, the sifting property of the Dirac impulse gives 12π∫−∞+∞2π δ(ω−ω0) ejωt dω=ejω0t,\frac1{2\pi}\int_{-\infty}^{+\infty}2\pi\,\delta(\omega-\omega_0)\,e^{j\omega t}\,d\omega=e^{j\omega_0t}, which is exactly the synthesis formula with X(ω)=2π δ(ω−ω0)X(\omega)=2\pi\,\delta(\omega-\omega_0). Hence F ⁣[ejω0t]=2π δ(ω−ω0)\mathcal F\!\left[e^{j\omega_0t}\right]=2\pi\,\delta(\omega-\omega_0) (for ω0=0\omega_0=0: F[1]=2πδ(ω)\mathcal F[1]=2\pi\delta(\omega); the modulation property gives the same result). Now expand the periodic signal in its Fourier series (Continuous-Time Fourier SeriesA periodic continuous-time signal is written as a combination of harmonics e^{jn w0 t} whose coefficients a_n are projections of the signal onto each harmonic; coefficients have symmetries that mirror those of the signal.Continuous-Time Fourier Series →) and use linearity, with ω0=2πT\omega_0=\frac{2\pi}T the fundamental angular frequency: x(t)=∑k∈Zakejkω0t ⟹ X(ω)=∑k∈Zak F ⁣[ejkω0t]=2π∑k∈Zak δ ⁣(ω−kω0).x(t)=\sum_{k\in\mathbb Z}a_ke^{jk\omega_0t}\ \Longrightarrow\ X(\omega)=\sum_{k\in\mathbb Z}a_k\,\mathcal F\!\left[e^{jk\omega_0t}\right]=2\pi\sum_{k\in\mathbb Z}a_k\,\delta\!\left(\omega-k\omega_0\right). The transform is a train of Dirac impulses at the multiples of the fundamental angular frequency, with area 2πak2\pi a_k. Check on the cosine: cos⁡(ω0t)\cos(\omega_0t) has a±1=12a_{\pm1}=\frac12, so X(ω)=π[δ(ω−ω0)+δ(ω+ω0)]X(\omega)=\pi\left[\delta(\omega-\omega_0)+\delta(\omega+\omega_0)\right], the known result.

Slip in the official solution: its last formula is ∑kak δ ⁣(ω−k2πT)\sum_ka_k\,\delta\!\left(\omega-k\frac{2\pi}T\right), without the factor 2π2\pi: the integral ∫ejkω0te−jωtdt\int e^{jk\omega_0t}e^{-j\omega t}dt is 2πδ(ω−kω0)2\pi\delta(\omega-k\omega_0), not δ(ω−kω0)\delta(\omega-k\omega_0). The correct weight is 2πak2\pi a_k.

Theory 2 (points 4)

Laplace transform.

  1. Give the definition of a function with a Laplace transform and the formula of the transform.
  2. Recall the five different types of region of convergence (ROC) and, for each case, discuss the causality properties of the signal in the time domain.
  3. Show an example of a function of the complex variable ss that, depending on the ROC, is the Laplace transform of two different signals (carry out the necessary calculations).
Show the result
  1. xx has a Laplace transform if there is s0∈Cs_0\in\mathbb C such that x(t)e−s0t∈L1(R)x(t)e^{-s_0t}\in L^1(\mathbb R). Then X(s)=∫−∞+∞x(t)e−st dtX(s)=\displaystyle\int_{-\infty}^{+\infty}x(t)e^{-st}\,dt on the region of convergence (ROC), the set of ss where the integral converges.

  2. The ROC depends only on Re⁡(s)\operatorname{Re}(s) and is always a vertical strip {λ1<Re⁡(s)<λ2}\{\lambda_1<\operatorname{Re}(s)<\lambda_2\}, with λ1,λ2∈R∪{±∞}\lambda_1,\lambda_2\in\mathbb R\cup\{\pm\infty\}. Five types:

    • (a) ∅\emptyset: xx causal, anticausal or non-causal;
    • (b) C\mathbb C: xx causal, anticausal or non-causal;
    • (c) right half-plane Re⁡(s)>λ\operatorname{Re}(s)>\lambda: xx causal or non-causal (right-sided);
    • (d) left half-plane Re⁡(s)<λ\operatorname{Re}(s)<\lambda: xx anticausal or non-causal (left-sided);
    • (e) strip λ1<Re⁡(s)<λ2\lambda_1<\operatorname{Re}(s)<\lambda_2: xx non-causal (two-sided).

    Equivalently: a causal signal has ROC {Re⁡(s)>λ}\{\operatorname{Re}(s)>\lambda\} with λ∈R∪{±∞}\lambda\in\mathbb R\cup\{\pm\infty\}; an anticausal one has {Re⁡(s)<λ}\{\operatorname{Re}(s)<\lambda\}; a non-causal one has a strip.

  3. 1s\dfrac1s is the transform of x(t)=u(t)x(t)=u(t) with ROC Re⁡(s)>0\operatorname{Re}(s)>0, and of y(t)=−u(−t)y(t)=-u(-t) with ROC Re⁡(s)<0\operatorname{Re}(s)<0.

Show the full solution

Point 1: definition. In the notes the transform is introduced in the unilateral form F(s)=∫0−+∞f(t)e−stdtF(s)=\int_{0^-}^{+\infty}f(t)e^{-st}dt, defined for the ss where the integral is finite (The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →, Solving Linear ODEs with the Laplace TransformHow the Laplace transform turns a linear ODE with constant coefficients into an algebraic equation, with its definition, properties and table, the split into natural and forced response, the transfer function, poles and zeros, the impulse response, partial fractions, and the first-order step response.Solving Linear ODEs with the Laplace Transform →, Laplace TransformWhy more transforms are needed beyond the Fourier transform (non-stable poles and initial conditions), and the definition of the bilateral and unilateral Laplace transform with the reason for the lower limit 0-; the Laplace transform is the continuous-time tool for differential equations and the Z-transform is its discrete-time counterpart.Laplace Transform →); Laplace TransformWhy more transforms are needed beyond the Fourier transform (non-stable poles and initial conditions), and the definition of the bilateral and unilateral Laplace transform with the reason for the lower limit 0-; the Laplace transform is the continuous-time tool for differential equations and the Z-transform is its discrete-time counterpart.Laplace Transform → also gives the bilateral version XB(s)=∫−∞+∞x(t)e−stdtX_B(s)=\int_{-\infty}^{+\infty}x(t)e^{-st}dt, which is the one needed here because the question speaks about signals that are not zero for t<0t<0. Write s=σ+jωs=\sigma+j\omega: since ∣e−jωt∣=1|e^{-j\omega t}|=1, the integral converges absolutely if and only if x(t)e−σt∈L1(R)x(t)e^{-\sigma t}\in L^1(\mathbb R). Hence the definition of the paper: xx has a Laplace transform if the integral converges (absolutely) for at least one s0s_0, i.e. x(t)e−s0t∈L1x(t)e^{-s_0t}\in L^1; the set of such ss is the ROC, and on it X(s)=∫−∞+∞x(t)e−stdtX(s)=\int_{-\infty}^{+\infty}x(t)e^{-st}dt. The notes also give a sufficient condition in the unilateral case: if ∣f(t)∣<Meαt|f(t)|<Me^{\alpha t} for t≥0t\ge0 (exponential growth at most), the integral converges for Re⁡(s)>α\operatorname{Re}(s)>\alpha. Typical mistake: giving the formula without the ROC; the transform is the formula together with its region (see point 3).

Point 2: the five ROCs and causality. The notes state the fact for the unilateral transform: if F(s0)F(s_0) exists, then it exists for every ss with Re⁡(s)>Re⁡(s0)\operatorname{Re}(s)>\operatorname{Re}(s_0), so the ROC is the half-plane {Re⁡(s)>σ(f)}\{\operatorname{Re}(s)>\sigma(f)\} (abscissa of convergence σ(f)\sigma(f)). The general bilateral classification below follows the same argument (the five-type classification itself is not written in the Laplace notes; it is the analogue of the five kinds of ROC of the Z-transform in Bilateral Z-TransformThe bilateral Z-transform X_B(z) = sum x(k) z^{-k} is the discrete-time counterpart of the Laplace transform; it converges only on a region of convergence (an annulus-type region), extends the DTFT when the unit circle is in the ROC, has an inversion formula and properties such as linearity, shift, time reversal and convolution.Bilateral Z-Transform →).

The ROC is a strip. Convergence depends only on σ=Re⁡(s)\sigma=\operatorname{Re}(s) (the factor e−jωte^{-j\omega t} has modulus 11). If ∣x∣e−σ1t|x|e^{-\sigma_1t} and ∣x∣e−σ2t|x|e^{-\sigma_2t} are integrable and σ1<σ<σ2\sigma_1<\sigma<\sigma_2, then e−σt≤e−σ1t+e−σ2te^{-\sigma t}\le e^{-\sigma_1t}+e^{-\sigma_2t} for every tt, so ∣x∣e−σt|x|e^{-\sigma t} is integrable too: the set of admissible σ\sigma is an interval (λ1,λ2)(\lambda_1,\lambda_2) with λ1,λ2∈[−∞,+∞]\lambda_1,\lambda_2\in[-\infty,+\infty], possibly empty. It gives the five types (a)-(e) of the Result: empty; the whole plane (λ1=−∞,λ2=+∞\lambda_1=-\infty,\lambda_2=+\infty); right half-plane (λ2=+∞\lambda_2=+\infty); left half-plane (λ1=−∞\lambda_1=-\infty); strip.

Causality.

  • If xx is causal (x(t)=0x(t)=0 for t<0t<0) and the integral converges at σ1\sigma_1, then for σ>σ1\sigma>\sigma_1 and t≥0t\ge0 we have ∣x∣e−σt≤∣x∣e−σ1t|x|e^{-\sigma t}\le|x|e^{-\sigma_1t}, so it converges at σ\sigma too: the ROC extends to the right without limit. Therefore a causal signal has ROC ∅\emptyset, C\mathbb C or a right half-plane, never a left half-plane or a bounded strip.
  • Symmetrically, an anticausal signal (x(t)=0x(t)=0 for t>0t>0) has ROC ∅\emptyset, C\mathbb C or a left half-plane.
  • A strip λ1<Re⁡(s)<λ2\lambda_1<\operatorname{Re}(s)<\lambda_2 with both ends finite therefore needs a signal with both a t>0t>0 and a t<0t<0 part that matter: xx is non-causal (and not anticausal).
  • A right half-plane can also come from a non-causal signal that is zero for t<t0<0t<t_0<0 (right-sided, for example e−tu(t+1)e^{-t}u(t+1)); likewise a left half-plane from a left-sided signal that is non-anticausal. And ∅\emptyset or C\mathbb C can occur in any of the three cases: for example δ(t)\delta(t) has ROC C\mathbb C, et2u(t)e^{t^2}u(t) has ROC ∅\emptyset.

Point 3: one expression, two signals. Take X(s)=1sX(s)=\dfrac1s.

First signal, x(t)=u(t)x(t)=u(t) (unit step). X(s)=∫−∞+∞u(t)e−stdt=∫0+∞e−stdt=[e−st−s]0+∞.X(s)=\int_{-\infty}^{+\infty}u(t)e^{-st}dt=\int_0^{+\infty}e^{-st}dt=\left[\frac{e^{-st}}{-s}\right]_0^{+\infty}. Now ∣e−st∣=e−Re⁡(s) t|e^{-st}|=e^{-\operatorname{Re}(s)\,t}, which tends to 00 as t→+∞t\to+\infty if and only if Re⁡(s)>0\operatorname{Re}(s)>0. In that case the integral is 0−1−s=1s0-\frac{1}{-s}=\frac1s: X(s)=1sX(s)=\frac1s with ROC Re⁡(s)>0\operatorname{Re}(s)>0 (the same as in the table of the notes for the step).

Second signal, y(t)=−u(−t)y(t)=-u(-t) (equal to −1-1 for t<0t<0 and 00 for t>0t>0). Y(s)=−∫−∞+∞u(−t)e−stdt=−∫−∞0e−stdt=−[e−st−s]−∞0=1s−lim⁡t→−∞e−sts.Y(s)=-\int_{-\infty}^{+\infty}u(-t)e^{-st}dt=-\int_{-\infty}^{0}e^{-st}dt=-\left[\frac{e^{-st}}{-s}\right]_{-\infty}^{0}=\frac1s-\lim_{t\to-\infty}\frac{e^{-st}}{s}. Now e−Re⁡(s)t→0e^{-\operatorname{Re}(s)t}\to0 as t→−∞t\to-\infty if and only if Re⁡(s)<0\operatorname{Re}(s)<0. Then Y(s)=1sY(s)=\frac1s with ROC Re⁡(s)<0\operatorname{Re}(s)<0.

So the formula 1s\frac1s alone does not identify the signal: with ROC Re⁡(s)>0\operatorname{Re}(s)>0 it is the causal step, with ROC Re⁡(s)<0\operatorname{Re}(s)<0 it is the anticausal signal −u(−t)-u(-t), in agreement with point 2 (right half-plane for the causal one, left half-plane for the anticausal one). This is why the ROC is part of the transform, and why the bilateral transform is needed here: the unilateral transform ignores t<0t<0 (Laplace TransformWhy more transforms are needed beyond the Fourier transform (non-stable poles and initial conditions), and the definition of the bilateral and unilateral Laplace transform with the reason for the lower limit 0-; the Laplace transform is the continuous-time tool for differential equations and the Z-transform is its discrete-time counterpart.Laplace Transform →) and would give 00 for −u(−t)-u(-t). The same phenomenon for sequences, with zz−a\frac{z}{z-a}, is in Bilateral Z-TransformThe bilateral Z-transform X_B(z) = sum x(k) z^{-k} is the discrete-time counterpart of the Laplace transform; it converges only on a region of convergence (an annulus-type region), extends the DTFT when the unit circle is in the ROC, has an inversion formula and properties such as linearity, shift, time reversal and convolution.Bilateral Z-Transform →.

Matlab 1 (points 3)

Representation of signals. Consider the signal x(t)=Ae−3tu(t)x(t)=Ae^{-3t}u(t). Write a Matlab script that:

  1. Computes x(t)x(t) on the interval (0,T)(0,T) sampled with step Δ=10−3\Delta=10^{-3}, with A=4A=4, T=10T=10.
  2. Plots in a figure the shape of x(t)x(t) on that interval.
  3. Plots in a second figure the magnitude of X(ω)X(\omega), the continuous-time Fourier transform of xx. Use the FFT with a suitable zero-padding.
  4. Plots in a third figure the theoretical shape of ∣X(ω)∣|X(\omega)|. Note: you must therefore compute the Fourier transform of xx analytically (not in Matlab).
Show the result
  • Samples: t=0:10−3:10t=0:10^{-3}:10, that is 1000110001 samples; x(0)=4x(0)=4, decaying like e−3te^{-3t} (x(10)≈10−12x(10)\approx10^{-12}).
  • Zero-padding: M=23+nextpow2(10001)=217=131072M=2^{3+\mathrm{nextpow2}(10001)}=2^{17}=131072 points; step in angular frequency 2πMΔ≈0.0479\frac{2\pi}{M\Delta}\approx0.0479 rad/s; maximum angular frequency ωmax⁡=πΔ=1000π\omega_{\max}=\frac\pi\Delta=1000\pi rad/s; axis w = -omegaMax:step:(omegaMax-step) (MM values) with fftshift on the modulus, multiplied by Δ\Delta.
  • Theory: X(ω)=A3+jωX(\omega)=\dfrac{A}{3+j\omega}, ∣X(ω)∣=49+ω2|X(\omega)|=\dfrac{4}{\sqrt{9+\omega^2}}: even, maximum 43≈1.333\frac43\approx1.333 at ω=0\omega=0, decreasing like 4∣ω∣\frac4{|\omega|}.
Show the full solution

Script (the one of the official solution).

matlab
%% 1) signal
u = @(t) t>=0;
Delta = 1e-3;
A=4; T=10;
t = 0:Delta:T;
x= A*exp(-3*t).*u(t);
%% 2) plot of x(t)
figure(1);
h=plot(t,x,'LineWidth',2);
grid; xlabel('t'); ylabel('x(t)');

%% 3) modulus of the FT with FFT and zero-padding
M=2^(3+nextpow2(numel(t)));
X = Delta*(abs(fft(x,M)));
figure(2);
omegaMax=pi/Delta;
step = 2/M *omegaMax;
w = -omegaMax:step:(omegaMax-step);
plot(w,fftshift(abs(X)),'LineWidth',3, 'Color','black');
grid;xlabel('\omega'); ylabel('X(\omega)')

%% 4) theoretical modulus
% The FT of x(t) = A e^(-3t) u(t) is X(w)= A/(3+jw)
X_teorico = A./(3+w*1i);
figure(3);
plot(w,abs(X_teorico), 'g-', 'LineWidth',1);

Why each part.

What to expect. The paper shows the two spectra on ∣ω∣≤100|\omega|\le100 (the script as printed has no xlim; over the full range ±1000π\pm1000\pi the peak would look like a thin spike, so in practice add xlim([-100 100])). The numerical curve and the theoretical curve overlap on the plot: the maximum difference, in ∣ω∣≤100|\omega|\le100, is about 2⋅10−32\cdot10^{-3}, i.e. 0.15%0.15\% of the peak. The sources of the (small) difference: the rectangle rule gives X(0)≈Δ∑x(nΔ)=43+Δ x(0)2=1.3353X(0)\approx\Delta\sum x(n\Delta)=\frac43+\frac{\Delta\,x(0)}2=1.3353 instead of 43\frac43 (the first sample counts fully, not half: offset ΔA2=0.002\frac{\Delta A}{2}=0.002); the truncation at t=10t=10 is irrelevant (e−30e^{-30}); the aliasing is small because ∣X(1000π)∣≈1.3⋅10−3|X(1000\pi)|\approx1.3\cdot10^{-3}. Matlab is not available here: the script was reproduced step by step with the equivalent numpy code (numbers above: M=131072M=131072, step 0.04790.0479, peak 1.33531.3353 at ω=0\omega=0, number of values of the axis equal to MM).

Self-assessment grid
Exercise Points What must be there for full marks Typical mistakes
Exercise 1 7 S1\mathcal S_1 causal and stable, S2\mathcal S_2 not causal (h2(−1)≠0h_2(-1)\neq0) but stable (sum 92\frac92); H1H_1 and H2H_2 with the geometric series starting at n=−1n=-1; ∣H1∣2=29(5−3cos⁡ω)\lvert H_1\rvert^2=\frac29(5-3\cos\omega) and ∣H2∣2=8110−6cos⁡ω\lvert H_2\rvert^2=\frac{81}{10-6\cos\omega} with values and sketch; H=3e−jωH=3e^{-j\omega}, h=3δ(n−1)h=3\delta(n-1), causal and stable; input reduced to canonical form and output 3cos⁡(45πn−715π)+3cos⁡(π100000n−4000131300000π)3\cos(\frac45\pi n-\frac7{15}\pi)+3\cos(\frac{\pi}{100000}n-\frac{400013}{1300000}\pi) calling S2\mathcal S_2 unstable; starting the sum of H2H_2 at n=0n=0; forgetting that the product cancels the factor 1−13e−jω1-\frac13e^{-j\omega}; leaving the frequency −27.2π-27.2\pi out of [0,π][0,\pi]; forgetting that the phase shifts by −θ-\theta at each frequency
Exercise 2 7 trapezoid and dip signals written with Λ\Lambda (one valid form each); F[Λ]=sinc2\mathcal F[\Lambda]=\mathrm{sinc}^2 from rect * rect, rescaling and shifts; X1X_1, X2X_2 in a correct form; z=2πx1y=π rectz=2\pi x_1y=\pi\,\mathrm{rect} with y=recty=\mathrm{rect} wrong rescaling of Λ(t/2)\Lambda(t/2) (the transform is 2 sinc2(ω/π)2\,\mathrm{sinc}^2(\omega/\pi): both the factor 22 and the argument matter); sign of −12Λ-\frac12\Lambda or −2Λ-2\Lambda; forgetting the 2π2\pi of the product theorem; computing the convolution directly
Exercise 3 7 Y=12X(ω±ω0)Y=\frac12X(\omega\pm\omega_0) with sketches for the three cases; Z=12X+14X(ω±2ω0)Z=\frac12X+\frac14X(\omega\pm2\omega_0); ω0≥2\omega_0\ge2 and 2≤ωc≤2ω0−22\le\omega_c\le2\omega_0-2 with gain 22; T1<πω0+2T_1<\frac\pi{\omega_0+2} together with ω0≥2\omega_0\ge2; the same with 3T13T_1 for ww forgetting the factor 12\frac12 in YY and the gain 22 of the filter; calling the overlap "aliasing"; Nyquist on ωmax⁡=2\omega_{\max}=2 instead of ω0+2\omega_0+2; forgetting the condition ω0≥2\omega_0\ge2; mistaking T1T_1 and 3T13T_1 in point 6
Theory 1 4 analysis and synthesis formulas with 12π\frac1{2\pi}; proofs of modulation and translation (grouping exponentials, change of variable); X(ω)=2π∑akδ(ω−k2πT)X(\omega)=2\pi\sum a_k\delta(\omega-k\frac{2\pi}T) derived from the transform of ejkω0te^{jk\omega_0t} missing 2π2\pi in the transform of the exponential; sign of the exponent in the translation; not explaining why the transform of a periodic signal is made of impulses
Theory 2 4 definition: xe−s0t∈L1x e^{-s_0t}\in L^1 for some s0s_0 and X(s)=∫xe−stdtX(s)=\int x e^{-st}dt on the ROC; the five ROCs (empty, plane, right half-plane, left half-plane, strip) with the causality of the signal in each case; example 1s\frac1s with u(t)u(t) (ROC Re⁡(s)>0\operatorname{Re}(s)>0) and −u(−t)-u(-t) (ROC Re⁡(s)<0\operatorname{Re}(s)<0), with the two integrals computed formula without ROC; saying that a strip or a left half-plane can belong to a causal signal; forgetting the limit condition (Re⁡(s)>0\operatorname{Re}(s)>0 or <0<0) that makes e−st→0e^{-st}\to0; sign of −u(−t)-u(-t) lost in the second integral
Matlab 1 3 samples with uu and figure of xx; MM with zero-padding; axis −πΔ…πΔ−step-\frac\pi\Delta\dots\frac\pi\Delta-\mathrm{step} in rad/s with fftshift; factor Delta; theoretical A3+jω\frac A{3+j\omega} plotted on the same axis wrong axis (index, -pi:pi, wrong step); missing fftshift or Delta; theoretical modulus with the wrong formula (for example A3+ω\frac A{3+\omega})