Salta al contenuto
Note per Studenti Signals and Systems - Exam of 16 February 2026 Report

Signals and Systems - Exam of 16 February 2026

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

In questa pagina 7

Exam of Signals and Systems, second session (appello of 16 February 2026, Engineering, University of Padova). This is the exam of the equivalent Italian-language Signals and Systems course of the University of Padova, translated into English, because the English-taught course does not publish its exams. Duration 3 hours, no documents allowed. Three exercises worth 7 points each, two theory questions worth 4 points each and one Matlab question worth 3 points (32 points in total). To pass, at least 10 points in the exercises and at least 5 between theory and Matlab are needed. Instructions on the sheet: justify every answer and report all the calculations; when asked to sketch a signal, identify its support and sketch its behaviour, even roughly.

Conventions: uu is the unit step, rect⁡(x)\operatorname{rect}(x) is the indicator function of (−12,12)\left(-\frac12,\frac12\right) and sinc⁡(x)=sin⁡(πx)πx\operatorname{sinc}(x)=\frac{\sin(\pi x)}{\pi x}. The exam writes the frequency response as H(ω)H(\omega) and the discrete-time angular frequency as ω\omega; the course notes write H(jω)H(j\omega) and use θ\theta in discrete time, so H(ω)H(\omega) here is H(jω)H(j\omega) of the notes and the discrete-time ω\omega is the θ\theta of the notes. The step is written 1(t)\mathbb 1(t) in the notes. The Laplace transform of Exercise 3 is the unilateral one, with the notation of the Control Systems notes (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 →).

Exercise 1 (points 7)

Fourier series and filtering. Consider the periodic signal x(t)x(t) defined as the periodic replica of period T=4T=4 of the signal rect⁡(t2)\operatorname{rect}\left(\frac t2\right). This signal enters an LTI system L\mathcal L with frequency response H(ω)=rect⁡(ω7)H(\omega)=\operatorname{rect}\left(\frac\omega7\right), producing the output y=L[x]y=\mathcal L[x].

  1. Sketch x(t)x(t).
  2. Compute the impulse response h(t)h(t) of the system L\mathcal L and discuss stability and causality. Say whether the system is low-pass, high-pass or band-pass.
  3. Compute the fundamental angular frequency ω0\omega_0 and the coefficients aka_k of the exponential Fourier series of the signal x(t)x(t).
  4. Determine which harmonics of the signal pass through the filter H(ω)H(\omega) and determine the analytic expression in the time domain of the output signal y(t)y(t). yy must be expressed in trigonometric form.
  5. For both signals xx and yy say whether it is possible to reconstruct them from their samples and, if so, what the minimum sampling frequency is.
Show the result
  1. x(t)=1x(t)=1 for t∈(4m−1,4m+1)t\in(4m-1,4m+1) and x(t)=0x(t)=0 for t∈(4m+1,4m+3)t\in(4m+1,4m+3), m∈Zm\in\mathbb Z: a train of rectangles of height 11 and width 22, repeated every 44.
  2. h(t)=72πsinc⁡(7t2π)=sin⁡(72t)πth(t)=\dfrac{7}{2\pi}\operatorname{sinc}\left(\dfrac{7t}{2\pi}\right)=\dfrac{\sin\left(\frac72t\right)}{\pi t}. The system is not causal, not BIBO stable (h∉L1h\notin L^1) and it is an ideal low-pass filter with cut-off angular frequency ωc=72\omega_c=\frac72 rad/s.
  3. ω0=π2\omega_0=\dfrac\pi2 rad/s; a0=12a_0=\dfrac12 and ak=sin⁡(kπ2)kπ=12sinc⁡(k2)a_k=\dfrac{\sin\left(k\frac\pi2\right)}{k\pi}=\dfrac12\operatorname{sinc}\left(\dfrac k2\right) for k≠0k\ne0 (the formula also holds for k=0k=0); ak=0a_k=0 for even k≠0k\ne0.
  4. The harmonics with ∣k∣≤2\lvert k\rvert\le2 pass, but a±2=0a_{\pm2}=0, so only k=0,±1k=0,\pm1 survive: b0=12b_0=\frac12, b±1=1πb_{\pm1}=\frac1\pi, bk=0b_k=0 otherwise, and y(t)=12+2πcos⁡(π2t)y(t)=\dfrac12+\dfrac2\pi\cos\left(\dfrac\pi2t\right).
  5. xx cannot be reconstructed from its samples (it is not band-limited). yy can: ωM=π2\omega_M=\frac\pi2 rad/s (fM=14f_M=\frac14 Hz), so the sampling frequency must satisfy fc>12f_c>\frac12 Hz (Tc<2T_c<2 s); the value 12\frac12 Hz is the limit.
Show the full solution

Theory used: Periodic SignalsPeriodic continuous- and discrete-time signals, fundamental period, periodicity of sums, periodic repetition, bounded-support signals, and the energy and average power of periodic signals.Periodic Signals →, 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 →, Fourier Series Applied to LTI SystemsA BIBO-stable convolutional LTI system maps a T-periodic finite-energy input to a T-periodic finite-energy output whose Fourier coefficients are the input coefficients multiplied by the frequency response sampled at n omega_0, which is why such systems act as filters.Fourier Series Applied to LTI Systems →, Frequency-Selective FiltersA convolutional LTI system filters by multiplying the input spectrum by H(j omega); ideal low-pass and high-pass filters, first-order RC implementations, distortion-free transmission (Heaviside conditions), why the ideal low-pass filter is not realizable, and the practical design parameters.Frequency-Selective Filters →, 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 →, 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 →, 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 →.

(1) The graph of xx. One period is the interval (−2,2)(-2,2), where x(t)=rect⁡(t2)x(t)=\operatorname{rect}\left(\frac t2\right). Since t2∈(−12,12)  ⟺  t∈(−1,1)\frac t2\in\left(-\frac12,\frac12\right)\iff t\in(-1,1), the signal is 11 on (−1,1)(-1,1) and 00 on the rest of the period (in (−2,−1)(-2,-1) and (1,2)(1,2)). The replicas are shifted by multiples of T=4T=4, so x=1x=1 on (4m−1,4m+1)(4m-1,4m+1) and x=0x=0 in between: rectangles of width 22 centred at 0,±4,±8,…0,\pm4,\pm8,\dots separated by gaps of width 22 (duty cycle 12\frac12). The value at the jump points (12\frac12 with the convention of rect⁡\operatorname{rect}) does not matter for any integral below.

Grafico interattivo: x(t): periodic replica of rect(t/2) with period 4 (equal to 1 on (4m-1, 4m+1), 0 elsewhere)

(2) Impulse response, causality, stability, type of filter. H(ω)=rect⁡(ω7)H(\omega)=\operatorname{rect}\left(\frac\omega7\right) equals 11 for ∣ω∣<72\lvert\omega\rvert<\frac72 and 00 for ∣ω∣>72\lvert\omega\rvert>\frac72: it lets through the low frequencies and cuts the others completely, with a sharp edge, so the system is an ideal low-pass filter with cut-off ωc=72\omega_c=\frac72 rad/s.

Grafico interattivo: H(w) = rect(w/7): ideal low-pass filter with cut-off 7/2 = 3.5 rad/s

Impulse response by the inversion formula. h(t)=12π∫−∞+∞H(ω)ejωtdω=12π∫−7/27/2ejωtdωh(t)=\frac1{2\pi}\int_{-\infty}^{+\infty}H(\omega)e^{j\omega t}d\omega=\frac1{2\pi}\int_{-7/2}^{7/2}e^{j\omega t}d\omega. For t≠0t\ne0: h(t)=12π[ejωtjt]−7/27/2=12π⋅ej72t−e−j72tjt=sin⁡(72t)πt,h(t)=\frac1{2\pi}\left[\frac{e^{j\omega t}}{jt}\right]_{-7/2}^{7/2}=\frac1{2\pi}\cdot\frac{e^{j\frac72t}-e^{-j\frac72t}}{jt}=\frac{\sin\left(\frac72t\right)}{\pi t}, and h(0)=12π⋅7=72πh(0)=\frac1{2\pi}\cdot7=\frac7{2\pi} (the limit of sin⁡(7t/2)πt\frac{\sin(7t/2)}{\pi t} at 00).

The same with the table of transforms. The pair sinc⁡(t)↔rect⁡(ω2π)\operatorname{sinc}(t)\leftrightarrow\operatorname{rect}\left(\frac\omega{2\pi}\right) and the rescaling z(at)↔1∣a∣Z(ωa)z(at)\leftrightarrow\frac1{\lvert a\rvert}Z\left(\frac\omega a\right) (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 →) give ωcπsinc⁡(ωctπ)↔rect⁡(ω2ωc)\frac{\omega_c}\pi\operatorname{sinc}\left(\frac{\omega_ct}\pi\right)\leftrightarrow\operatorname{rect}\left(\frac\omega{2\omega_c}\right). With ωc=72\omega_c=\frac72 we get rect⁡(ω7)\operatorname{rect}\left(\frac\omega7\right) and h(t)=72πsinc⁡(7t2π)=72π⋅sin⁡(72t)72t=sin⁡(72t)πt,h(t)=\frac7{2\pi}\operatorname{sinc}\left(\frac{7t}{2\pi}\right)=\frac7{2\pi}\cdot\frac{\sin\left(\frac72t\right)}{\frac72t}=\frac{\sin\left(\frac72t\right)}{\pi t}, the same function.

Grafico interattivo: h(t) = sin(3.5 t)/(pi t): ideal low-pass impulse response, nonzero for t < 0 and not absolutely integrable

Causality. An LTI system is causal if and only if h(t)=0h(t)=0 for t<0t<0. Here h(t)=sin⁡(7t/2)πth(t)=\frac{\sin(7t/2)}{\pi t} is nonzero for t<0t<0: for instance h(−1)=sin⁡(−7/2)−π=sin⁡(7/2)π≈−0.11≠0h(-1)=\frac{\sin(-7/2)}{-\pi}=\frac{\sin(7/2)}{\pi}\approx-0.11\ne0. The system is not causal (it responds before the input arrives, which is why an ideal filter cannot be built).

Stability. A convolutional LTI system is BIBO stable if and only if h∈L1h\in L^1, that is ∫∣h∣<∞\int\lvert h\rvert<\infty. Here the integral diverges. On each half period [kπ7/2,(k+1)π7/2]\left[\frac{k\pi}{7/2},\frac{(k+1)\pi}{7/2}\right] of the sine we have ∫∣sin⁡(72t)∣dt=27/2\int\lvert\sin\left(\tfrac72t\right)\rvert dt=\frac2{7/2} and 1πt≥7/2π2(k+1)\frac1{\pi t}\ge\frac{7/2}{\pi^2(k+1)}, so that interval contributes at least 2π2(k+1)\frac2{\pi^2(k+1)} and the series ∑k1k+1\sum_k\frac1{k+1} diverges (harmonic series): ∫−∞+∞∣h∣=+∞\int_{-\infty}^{+\infty}\lvert h\rvert=+\infty. The system is not BIBO stable. A second way to see it: the Fourier transform of an L1L^1 function is continuous, while H=rect⁡(ω7)H=\operatorname{rect}\left(\frac\omega7\right) has jumps at ±72\pm\frac72, hence h∉L1h\notin L^1.

Typical mistake: concluding "stable" because h→0h\to0 at infinity: hh decays only like 1∣t∣\frac1{\lvert t\rvert}, and this is not enough.

(3) Fundamental angular frequency and Fourier coefficients. The fundamental angular frequency is ω0=2πT=2π4=π2\omega_0=\frac{2\pi}T=\frac{2\pi}4=\frac\pi2 rad/s. The analysis formula is ak=1T∫−T/2T/2x(t)e−jkω0tdta_k=\frac1T\int_{-T/2}^{T/2}x(t)e^{-jk\omega_0t}dt. On (−2,2)(-2,2) the signal is 11 only in (−1,1)(-1,1), so ak=14∫−11e−jkπ2tdt.a_k=\frac14\int_{-1}^{1}e^{-jk\frac\pi2t}dt.

  • k=0k=0 (mean value): a0=14∫−11dt=24=12a_0=\frac14\int_{-1}^1dt=\frac24=\frac12 (the signal is 11 for half of the time).
  • k≠0k\ne0: ak=14[e−jkπ2t−jkπ2]−11=14⋅1jkπ2(ejkπ2−e−jkπ2)=14⋅2jkπ⋅2jsin⁡(kπ2)=sin⁡(kπ2)kπ.a_k=\frac14\left[\frac{e^{-jk\frac\pi2t}}{-jk\frac\pi2}\right]_{-1}^{1}=\frac14\cdot\frac1{jk\frac\pi2}\left(e^{jk\frac\pi2}-e^{-jk\frac\pi2}\right)=\frac14\cdot\frac{2}{jk\pi}\cdot2j\sin\left(k\frac\pi2\right)=\frac{\sin\left(k\frac\pi2\right)}{k\pi}. Since sinc⁡(k2)=sin⁡(kπ/2)kπ/2\operatorname{sinc}\left(\frac k2\right)=\frac{\sin(k\pi/2)}{k\pi/2}, this is ak=12sinc⁡(k2)a_k=\frac12\operatorname{sinc}\left(\frac k2\right), and the value at k=0k=0 is also correct (12sinc⁡(0)=12\frac12\operatorname{sinc}(0)=\frac12). The coefficients are real and even in kk because xx is real and even. For even k=2m≠0k=2m\ne0, sin⁡(mπ)=0\sin(m\pi)=0, so the even harmonics are absent. The first values: a0=12a_0=\frac12, a±1=1πa_{\pm1}=\frac1\pi, a±2=0a_{\pm2}=0, a±3=−13πa_{\pm3}=-\frac1{3\pi}, a±4=0a_{\pm4}=0, a±5=15πa_{\pm5}=\frac1{5\pi}, and in general ∣ak∣=1∣k∣π\lvert a_k\rvert=\frac1{\lvert k\rvert\pi} for odd kk (the amplitude decays only like 1k\frac1k).

Grafico interattivo: Fourier coefficients a_k = (1/2) sinc(k/2): 1/2 at k = 0, 1/pi at k = 1, zero for even k, alternating sign and 1/(k pi) decay for odd k

(4) Which harmonics pass and the output. For a BIBO stable system the coefficients of the output are bk=H(kω0)akb_k=H(k\omega_0)a_k (Fourier Series Applied to LTI SystemsA BIBO-stable convolutional LTI system maps a T-periodic finite-energy input to a T-periodic finite-energy output whose Fourier coefficients are the input coefficients multiplied by the frequency response sampled at n omega_0, which is why such systems act as filters.Fourier Series Applied to LTI Systems →). The system is not BIBO stable (h∉L1h\notin L^1), but the relation still holds here: the frequency response H(ω)=rect⁡(ω7)H(\omega)=\operatorname{rect}\left(\frac\omega7\right) is bounded and, by definition, L\mathcal L multiplies the exponential ejωte^{j\omega t} by H(ω)H(\omega) (only finitely many harmonics are involved in the output, so no convergence issue arises). The harmonic kk has angular frequency kπ2k\frac\pi2 and passes if ∣kπ2∣<72\left\lvert k\frac\pi2\right\rvert<\frac72, that is ∣k∣<7π≈2.23\lvert k\rvert<\frac7\pi\approx2.23, i.e. ∣k∣≤2\lvert k\rvert\le2:

  • k=0k=0: H(0)=1H(0)=1;
  • k=±1k=\pm1: H(±π2)=1H\left(\pm\frac\pi2\right)=1 because π2≈1.57<3.5\frac\pi2\approx1.57<3.5;
  • k=±2k=\pm2: H(±π)=1H(\pm\pi)=1 because π≈3.14<3.5\pi\approx3.14<3.5 (the harmonic passes, but a±2=0a_{\pm2}=0 so nothing comes out);
  • ∣k∣≥3\lvert k\rvert\ge3: 3⋅π2≈4.71>3.53\cdot\frac\pi2\approx4.71>3.5, so H=0H=0 and bk=0b_k=0 (the odd harmonics k=±3,±5,…k=\pm3,\pm5,\dots are cut).

Hence b0=a0=12b_0=a_0=\frac12, b±1=a±1=1πb_{\pm1}=a_{\pm1}=\frac1\pi, and all the others are 00: y(t)=12+1πejπ2t+1πe−jπ2t=12+2πcos⁡(π2t),y(t)=\frac12+\frac1\pi e^{j\frac\pi2t}+\frac1\pi e^{-j\frac\pi2t}=\frac12+\frac2\pi\cos\left(\frac\pi2t\right), by the Euler formula ejα+e−jα=2cos⁡αe^{j\alpha}+e^{-j\alpha}=2\cos\alpha. It is a cosine with amplitude 2π≈0.64\frac2\pi\approx0.64 around the mean value 12\frac12: the filter keeps the mean value and the first harmonic of the rectangular wave.

Grafico interattivo: y(t) = 1/2 + (2/pi) cos(pi t/2): mean value plus first harmonic only (period 4)

(Checked numerically: the sum of the harmonics with ∣k∣≤2\lvert k\rvert\le2 coincides with the formula, with an error of order 10−1610^{-16}, and aka_k computed by numerical integration coincides with sin⁡(kπ/2)kπ\frac{\sin(k\pi/2)}{k\pi} for ∣k∣≤6\lvert k\rvert\le6.)

(5) Sampling.

Remark on the official solution. It gives the "minimum sampling frequency" fmin⁡=12f_{\min}=\frac12 Hz (Tmax⁡=2T_{\max}=2 s). Strictly, the theorem needs the strict inequality fc>12f_c>\frac12 Hz: the value 12\frac12 Hz is the infimum, not an attainable minimum. At exactly fc=12f_c=\frac12 Hz (Tc=2T_c=2) the samples of cos⁡(π2t+φ)\cos\left(\frac\pi2t+\varphi\right) are cos⁡(kπ+φ)=(−1)kcos⁡φ\cos\left(k\pi+\varphi\right)=(-1)^k\cos\varphi: the phase is lost (for example φ=0\varphi=0 and φ=1\varphi=1 give the same samples up to a factor), so yy cannot be reconstructed (this is the edge case of 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 →).

Typical mistakes. Taking hh causal because it looks like the filter of the previous exam; saying the harmonic k=2k=2 "is cut" (it passes, π<3.5\pi<3.5, but its coefficient is 00); forgetting a0=12a_0=\frac12 in yy; writing the output with complex exponentials when the trigonometric form is asked; deciding that xx can be sampled because it is periodic.

Exercise 2 (points 7)

Discrete-time systems. Consider a discrete-time LTI system described by the following input-output relation: y(n)=x(n)−x(n−2).y(n)=x(n)-x(n-2).

  1. Determine the analytic formula of the impulse response hh of the system and sketch this signal. Discuss stability and causality of the system.
  2. Compute the frequency response H(ω)H(\omega) and sketch ∣H(ω)∣\lvert H(\omega)\rvert in the interval −π≤ω≤π-\pi\le\omega\le\pi. Hint: express H(ω)H(\omega) in terms of sin⁡ω\sin\omega using the Euler formula sin⁡ω=ejω−e−jω2j\sin\omega=\frac{e^{j\omega}-e^{-j\omega}}{2j}. What type of filter is it (low-pass, high-pass, etc.)?
  3. Consider now a sinusoidal signal in canonical form w(n)=Acos⁡(2πνn+ϕ)w(n)=A\cos(2\pi\nu n+\phi). For which numerical frequencies ν∈[0,1/2]\nu\in[0,1/2] is the output h∗wh*w zero?
  4. Consider the finite-duration input signal x(n)x(n) defined as x(n)={n+1if n∈{0,1,2}0otherwise.x(n)=\begin{cases}n+1&\text{if }n\in\{0,1,2\}\\0&\text{otherwise.}\end{cases} Sketch xx and compute the output yy corresponding to this input. Hint: first determine the support of yy through the properties of the convolution, and then compute the values only in the support.
Show the result
  1. h(n)=δ(n)−δ(n−2)h(n)=\delta(n)-\delta(n-2): h(0)=1h(0)=1, h(1)=0h(1)=0, h(2)=−1h(2)=-1, h(n)=0h(n)=0 elsewhere. The system is causal and BIBO stable (∑∣h∣=2\sum\lvert h\rvert=2, FIR).
  2. H(ω)=1−e−j2ω=2jsin⁡ω e−jωH(\omega)=1-e^{-j2\omega}=2j\sin\omega\,e^{-j\omega}, ∣H(ω)∣=2∣sin⁡ω∣\lvert H(\omega)\rvert=2\lvert\sin\omega\rvert: zero at ω=0\omega=0 and ω=±π\omega=\pm\pi, maximum 22 at ω=±π2\omega=\pm\frac\pi2. It is a band-pass filter.
  3. The output is zero for ν=0\nu=0 and ν=12\nu=\frac12.
  4. x=(1,2,3)x=(1,2,3) on n=0,1,2n=0,1,2; the support of yy is {0,…,4}\{0,\dots,4\} and y(0)=1y(0)=1, y(1)=2y(1)=2, y(2)=2y(2)=2, y(3)=−2y(3)=-2, y(4)=−3y(4)=-3, y(n)=0y(n)=0 elsewhere.
Show the full solution

Theory used: Discrete-Time Unit Step and Kronecker Impulsedefinition of the discrete unit step and the Kronecker impulse, their relation as discrete derivative and accumulation, and the unit-area, sampling and sifting properties of the impulse.Discrete-Time Unit Step and Kronecker Impulse →, LTI Systems and Discrete-Time ConvolutionLTI systems are completely described by their impulse response; the output is the discrete convolution of impulse response and input, valid for convolutional LTI systems, with step response, BIBO example and the l1 existence theorem.LTI Systems and Discrete-Time Convolution →, 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 →, Properties of Systemsdefinitions of static, dynamic, time-invariant, causal, anticausal, acausal, omnicausal, linear and BIBO-stable systems, with examples, counterexamples and a long set of worked classification exercises.Properties of 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 →, Discrete-Time Fourier TransformThe DTFT of an aperiodic discrete-time signal is the 2pi-periodic function X(e^{j theta}) = sum x(k) e^{-j theta k}; it is obtained as the envelope of the DFT of the N-periodic repetition when N tends to infinity, and has translation, modulation, convolution and Parseval properties.Discrete-Time Fourier Transform →, FIR and IIR FiltersDiscrete-time (digital) filters are described by ARMA difference equations; FIR filters have finite impulse response (moving average, no auto-regression), IIR filters have auto-regression and a rational frequency response; worked examples of a first-order IIR low-pass/high-pass filter and a moving-average FIR low-pass filter.FIR and IIR Filters →, 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 →.

(1) Impulse response, causality, stability. The impulse response is the output when x(n)=δ(n)x(n)=\delta(n) (Kronecker impulse, 11 at n=0n=0 and 00 elsewhere): h(n)=δ(n)−δ(n−2),h(0)=1, h(1)=0, h(2)=−1, h(n)=0 for n<0 and n>2.h(n)=\delta(n)-\delta(n-2),\qquad h(0)=1,\ h(1)=0,\ h(2)=-1,\ h(n)=0\text{ for }n<0\text{ and }n>2. It has finite support {0,1,2}\{0,1,2\}: a FIR filter (FIR and IIR FiltersDiscrete-time (digital) filters are described by ARMA difference equations; FIR filters have finite impulse response (moving average, no auto-regression), IIR filters have auto-regression and a rational frequency response; worked examples of a first-order IIR low-pass/high-pass filter and a moving-average FIR low-pass filter.FIR and IIR Filters →) with coefficients b0=1b_0=1, b1=0b_1=0, b2=−1b_2=-1.

Grafico interattivo: h(n) = delta(n) - delta(n-2): 1 at n = 0, 0 at n = 1, -1 at n = 2

Causality: h(n)=0h(n)=0 for n<0n<0 (equivalently, the output at time nn depends only on x(n)x(n) and x(n−2)x(n-2), present and past): causal. Stability: ∑n∣h(n)∣=1+0+1=2<∞\sum_n\lvert h(n)\rvert=1+0+1=2<\infty, so h∈ℓ1h\in\ell^1 and the system is BIBO stable (every FIR filter with finite coefficients is).

(2) Frequency response and type of filter. The DTFT of hh is H(ω)=∑nh(n)e−jωn=1−e−j2ωH(\omega)=\sum_nh(n)e^{-j\omega n}=1-e^{-j2\omega} (the delay n−2n-2 gives the factor e−j2ωe^{-j2\omega}). Following the hint, factor out e−jωe^{-j\omega}, the middle exponent: H(ω)=e−jω(ejω−e−jω)=e−jω⋅2jsin⁡ω.H(\omega)=e^{-j\omega}\left(e^{j\omega}-e^{-j\omega}\right)=e^{-j\omega}\cdot2j\sin\omega. Since ∣e−jω∣=∣j∣=1\lvert e^{-j\omega}\rvert=\lvert j\rvert=1, the modulus is ∣H(ω)∣=2∣sin⁡ω∣\lvert H(\omega)\rvert=2\lvert\sin\omega\rvert. The phase is ∠H=π2−ω\angle H=\frac\pi2-\omega where sin⁡ω>0\sin\omega>0 (and shifted by π\pi where sin⁡ω<0\sin\omega<0): a delay of one sample plus a constant phase.

In [−π,π][-\pi,\pi]: ∣H∣=0\lvert H\rvert=0 at ω=0\omega=0 and at ω=±π\omega=\pm\pi (the DC component and the fastest oscillation (−1)n(-1)^n are cancelled); the maximum 22 is at ω=±π2\omega=\pm\frac\pi2. Remember that the low frequencies are near ω=0\omega=0 and the high ones near ω=±π\omega=\pm\pi (Discrete-Time Fourier TransformThe DTFT of an aperiodic discrete-time signal is the 2pi-periodic function X(e^{j theta}) = sum x(k) e^{-j theta k}; it is obtained as the envelope of the DFT of the N-periodic repetition when N tends to infinity, and has translation, modulation, convolution and Parseval properties.Discrete-Time Fourier Transform →): the filter blocks both and keeps the middle band, so it is a band-pass filter (not low-pass: the gain at ω=0\omega=0 is 00; not high-pass: the gain at ±π\pm\pi is 00).

Grafico interattivo: |H(w)| = 2|sin w| on [-pi, pi]: zero at w = 0 and w = +-pi, maximum 2 at w = +-pi/2 (band-pass)

(3) Zeros of the output for a sinusoid. For a real hh, a cosine goes through the system as a cosine with the gain and the phase of the frequency response at its frequency (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 →; the discrete-time version is the same: write cos⁡\cos as a half sum of e±jωne^{\pm j\omega n}, the factors are H(ω)H(\omega) and H(−ω)=H(ω)‾H(-\omega)=\overline{H(\omega)}): w(n)=Acos⁡(2πνn+ϕ) ⟼ A ∣H(2πν)∣cos⁡(2πνn+ϕ+∠H(2πν)),w(n)=A\cos(2\pi\nu n+\phi)\ \longmapsto\ A\,\lvert H(2\pi\nu)\rvert\cos\left(2\pi\nu n+\phi+\angle H(2\pi\nu)\right), because the angular frequency of ww is ω=2πν\omega=2\pi\nu. The output is zero (for A≠0A\ne0) if and only if ∣H(2πν)∣=2∣sin⁡(2πν)∣=0\lvert H(2\pi\nu)\rvert=2\lvert\sin(2\pi\nu)\rvert=0, i.e. 2πν=mπ2\pi\nu=m\pi, ν=m2\nu=\frac m2, m∈Zm\in\mathbb Z. In [0,12][0,\frac12]: ν=0\nu=0 and ν=12\nu=\frac12.

Direct check. ν=0\nu=0: w(n)=Acos⁡ϕw(n)=A\cos\phi is constant, so y(n)=w(n)−w(n−2)=0y(n)=w(n)-w(n-2)=0. ν=12\nu=\frac12: w(n)=Acos⁡(πn+ϕ)=Acos⁡ϕ (−1)nw(n)=A\cos(\pi n+\phi)=A\cos\phi\,(-1)^n and (−1)n−2=(−1)n(-1)^{n-2}=(-1)^n, so y(n)=0y(n)=0. For the other frequencies the gain is positive: for instance ν=14\nu=\frac14 (ω=π2\omega=\frac\pi2, the maximum) gives y=2wy=2w (checked numerically).

(4) The output for x=(1,2,3)x=(1,2,3). The values are x(0)=0+1=1x(0)=0+1=1, x(1)=1+1=2x(1)=1+1=2, x(2)=2+1=3x(2)=2+1=3 and 00 elsewhere.

Grafico interattivo: x(n) = n + 1 for n = 0, 1, 2 (values 1, 2, 3), zero elsewhere

Support of y=h∗xy=h*x. The convolution of two finite signals has support from the sum of the left ends to the sum of the right ends (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 →): supp⁡x=[0,2]\operatorname{supp}x=[0,2] and supp⁡h=[0,2]\operatorname{supp}h=[0,2], so supp⁡y=[0+0,2+2]=[0,4]\operatorname{supp}y=[0+0,2+2]=[0,4], which has 3+3−1=53+3-1=5 samples. Outside, y(n)=0y(n)=0.

Values. The simplest way is the input-output relation y(n)=x(n)−x(n−2)y(n)=x(n)-x(n-2):

  • y(0)=x(0)−x(−2)=1−0=1y(0)=x(0)-x(-2)=1-0=1,
  • y(1)=x(1)−x(−1)=2−0=2y(1)=x(1)-x(-1)=2-0=2,
  • y(2)=x(2)−x(0)=3−1=2y(2)=x(2)-x(0)=3-1=2,
  • y(3)=x(3)−x(1)=0−2=−2y(3)=x(3)-x(1)=0-2=-2,
  • y(4)=x(4)−x(2)=0−3=−3y(4)=x(4)-x(2)=0-3=-3.

Grafico interattivo: y(n): values 1, 2, 2, -2, -3 on n = 0, ..., 4 (support [0, 4])

Checks. The sum of the samples is H(0)∑x=0H(0)\sum x=0: 1+2+2−2−3=01+2+2-2-3=0 (the filter blocks the DC component). The alternating sum ∑y(n)(−1)n=1−2+2+2−3=0\sum y(n)(-1)^n=1-2+2+2-3=0 is Y(π)=H(π)X(π)=0Y(\pi)=H(\pi)X(\pi)=0. The convolution computed with a program gives y=(1,2,2,−2,−3)y=(1,2,2,-2,-3).

Remark on the official solution. The numbers are correct. On the official sheet the caption under the plot of hh reads "Signal x(n)x(n)" and the caption of the plot of ∣H∣\lvert H\rvert reads "Frequency response H(ω)H(\omega)": they are captions of h(n)h(n) and of ∣H(ω)∣\lvert H(\omega)\rvert.

Typical mistakes. Forgetting that the support of yy has 3+3−1=53+3-1=5 samples; reading x(n−2)x(n-2) as an advance; calling the filter high-pass because ∣H(±π)∣\lvert H(\pm\pi)\rvert looks like the end of the plot (it is 00 there); writing ν=14\nu=\frac14 (maximum gain) as the answer of point 3.

Exercise 3 (points 7)

ODE with constant coefficients and Laplace transform. Consider the causal continuous-time LTI system associated with the following linear ordinary differential equation with constant coefficients: y′′+5y′+6y=x′−x.y''+5y'+6y=x'-x.

  1. Determine the transfer function H(s)H(s) and specify its Region of Convergence (ROC).
  2. Compute the impulse response h(t)h(t) of the system by inverse transforming H(s)H(s). Discuss the stability of the system.
  3. Suppose we observe exactly the following output signal: y(t)=(1−e−t)u(t).y(t)=\left(1-e^{-t}\right)u(t). Compute the Laplace transform Y(s)Y(s) of the output signal and its ROC.
  4. Determine the analytic expression of the input x(t)x(t) that produces the output y(t)y(t) defined in the previous point.
Show the result
  1. H(s)=s−1s2+5s+6=s−1(s+2)(s+3)H(s)=\dfrac{s-1}{s^2+5s+6}=\dfrac{s-1}{(s+2)(s+3)}, poles −2-2 and −3-3, zero 11; ROCH={Re⁡(s)>−2}\text{ROC}_H=\{\operatorname{Re}(s)>-2\}.
  2. h(t)=(4e−3t−3e−2t)u(t)h(t)=\left(4e^{-3t}-3e^{-2t}\right)u(t). The system is BIBO stable (poles with negative real part, ROC containing the imaginary axis).
  3. Y(s)=1s−1s+1=1s(s+1)Y(s)=\dfrac1s-\dfrac1{s+1}=\dfrac1{s(s+1)}, ROCY={Re⁡(s)>0}\text{ROC}_Y=\{\operatorname{Re}(s)>0\}.
  4. X(s)=(s+2)(s+3)s(s+1)(s−1)X(s)=\dfrac{(s+2)(s+3)}{s(s+1)(s-1)} and x(t)=(−6+e−t+6et)u(t)x(t)=\left(-6+e^{-t}+6e^{t}\right)u(t).
Show the full solution

Theory used: the Laplace transform, its properties and table, the transfer function, the ROC and the inversion by partial fractions are in 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 → (Control Systems), 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 → (Control Systems Laboratory) and 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 → (this course); the stability of the system in BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models → and Stability of Dynamical SystemsFor an LTI system the response to a perturbation of an equilibrium does not depend on the equilibrium or on the perturbation amplitude, so stability reduces to the free evolution being bounded (stable) or vanishing (asymptotically stable), decided by the roots of the characteristic polynomial, and is related to BIBO stability.Stability of Dynamical Systems →; the time-domain methods used for the cross-checks in Linear Constant-Coefficient Differential EquationsContinuous-time LTI convolutional systems are described by linear constant-coefficient ODEs whose general solution is a homogeneous part, a combination of modes t^m e^{pt} built from the roots of the characteristic polynomial, plus a particular part; boundary conditions pick one solution of the family.Linear Constant-Coefficient Differential Equations →, Natural and Forced Response of Causal LTI SystemsThe solution of a causal ODE with boundary conditions at t_0 splits uniquely into a natural response, a homogeneous solution fixed by the boundary conditions through the Wronskian matrix, and a forced response, the convolution of a causal impulse response with a switch-on input, which is zero before t_0.Natural and Forced Response of Causal LTI Systems →, Impulse Matching MethodThe impulse matching method finds the causal impulse response h_+(t) of a continuous-time ODE system by writing h_+ as modes times a step plus impulses, then matching the impulse terms of the equation at t = 0 through a linear system for the coefficients q.Impulse Matching Method →, 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 → and 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 Laplace transform used below is the unilateral one, F(s)=∫0−+∞f(t)e−stdtF(s)=\int_{0^-}^{+\infty}f(t)e^{-st}dt, whose ROC is a right half-plane Re⁡(s)>σ(f)\operatorname{Re}(s)>\sigma(f) (σ(f)\sigma(f) is the abscissa of convergence).

(1) Transfer function and ROC. The system is causal and LTI, so it is at rest before the input (zero initial conditions) and yy is the forced response. Transform both sides with the derivative property L[f′]=sF(s)−f(0−)\mathcal L[f']=sF(s)-f(0^-), applied twice to yy (the initial terms vanish because y(0−)=y′(0−)=0y(0^-)=y'(0^-)=0 and x(0−)=0x(0^-)=0): s2Y(s)+5sY(s)+6Y(s)=sX(s)−X(s) ⟹ A(s)Y(s)=B(s)X(s),A(s)=s2+5s+6, B(s)=s−1.s^2Y(s)+5sY(s)+6Y(s)=sX(s)-X(s)\ \Longrightarrow\ A(s)Y(s)=B(s)X(s),\quad A(s)=s^2+5s+6,\ B(s)=s-1. Hence H(s)=Y(s)X(s)=B(s)A(s)=s−1s2+5s+6=s−1(s+2)(s+3).H(s)=\frac{Y(s)}{X(s)}=\frac{B(s)}{A(s)}=\frac{s-1}{s^2+5s+6}=\frac{s-1}{(s+2)(s+3)}. The coefficients of the numerator are those of the right-hand side of the equation and the ones of the denominator are those of the left-hand side. The degrees are M=1<N=2M=1<N=2: HH is strictly proper (physically realizable). The poles are the roots of A(s)A(s): s=−5±12s=\frac{-5\pm1}2, i.e. −2-2 and −3-3; the zero is the root of B(s)B(s), s=1s=1 (in the right half-plane). There is no common factor between BB and AA, so no pole-zero cancellation.

ROC. HH is the transform of the impulse response hh (L[δ]=1\mathcal L[\delta]=1 gives Yf=HY_f=H), and hh is a sum of the exponentials e−2te^{-2t} and e−3te^{-3t} (point 2): the transform converges for Re⁡(s)>−2\operatorname{Re}(s)>-2, the slowest of the two decay rates. So ROCH={s:Re⁡(s)>−2}\text{ROC}_H=\{s:\operatorname{Re}(s)>-2\}: the half-plane to the right of the pole with the largest real part (as always for a causal system). It contains the imaginary axis.

(2) Impulse response by the inverse Laplace transform. Since deg⁡B<deg⁡A\deg B<\deg A and the poles are distinct, use the partial fractions decomposition: H(s)=As+2+Bs+3,A=(s+2)H(s)∣s=−2=−31=−3,B=(s+3)H(s)∣s=−3=−4−1=4.H(s)=\frac A{s+2}+\frac B{s+3},\qquad A=\left.(s+2)H(s)\right\rvert_{s=-2}=\frac{-3}{1}=-3,\qquad B=\left.(s+3)H(s)\right\rvert_{s=-3}=\frac{-4}{-1}=4. From the table, L−1[1s−σ]=eσt\mathcal L^{-1}\left[\frac1{s-\sigma}\right]=e^{\sigma t} (here σ=−2,−3\sigma=-2,-3), so h(t)=(−3e−2t+4e−3t)u(t).h(t)=\left(-3e^{-2t}+4e^{-3t}\right)u(t).

Second way, with the Fourier transform and the time-domain methods of this course. The system is stable (see below), so the Fourier transform of hh exists and, applying F\mathcal F to the equation with ddt↦jω\frac{d}{dt}\mapsto j\omega (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 →; it is H(s)H(s) with s=jωs=j\omega, which is allowed because the ROC contains the imaginary axis): ((jω)2+5jω+6)Y=(jω−1)X ⇒ H(ω)=jω−1(jω)2+5jω+6=jω−1(jω+2)(jω+3).\left((j\omega)^2+5j\omega+6\right)Y=\left(j\omega-1\right)X\ \Rightarrow\ H(\omega)=\frac{j\omega-1}{(j\omega)^2+5j\omega+6}=\frac{j\omega-1}{(j\omega+2)(j\omega+3)}. The denominator is factored first, from the characteristic equation p2+5p+6=0p^2+5p+6=0, p=−5±12p=\frac{-5\pm1}2, i.e. p1=−2p_1=-2 and p2=−3p_2=-3 (the modes of the system are e−2te^{-2t} and e−3te^{-3t}). The numerator has degree 11, lower than the degree 22 of the denominator, so partial fractions apply: jω−1(jω+2)(jω+3)=Ajω+2+Bjω+3,\frac{j\omega-1}{(j\omega+2)(j\omega+3)}=\frac A{j\omega+2}+\frac B{j\omega+3}, A=jω−1jω+3∣jω=−2=−31=−3,B=jω−1jω+2∣jω=−3=−4−1=4.A=\left.\frac{j\omega-1}{j\omega+3}\right\rvert_{j\omega=-2}=\frac{-3}{1}=-3,\qquad B=\left.\frac{j\omega-1}{j\omega+2}\right\rvert_{j\omega=-3}=\frac{-4}{-1}=4. With F[e−atu(t)]=1a+jω\mathcal F\left[e^{-at}u(t)\right]=\frac1{a+j\omega} for a>0a>0 (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 hh causal because the system is causal: h(t)=(−3e−2t+4e−3t)u(t).h(t)=\left(-3e^{-2t}+4e^{-3t}\right)u(t).

Check with the impulse matching method (Impulse Matching MethodThe impulse matching method finds the causal impulse response h_+(t) of a continuous-time ODE system by writing h_+ as modes times a step plus impulses, then matching the impulse terms of the equation at t = 0 through a linear system for the coefficients q.Impulse Matching Method →). The causal impulse response has the form h(t)=g(t)u(t)h(t)=g(t)u(t) with g=c1e−2t+c2e−3tg=c_1e^{-2t}+c_2e^{-3t} (modes times the step; no impulse term, since the order 22 of the equation exceeds the order 11 of the right-hand side). Then h′=g′u+g(0)δh'=g'u+g(0)\delta and h′′=g′′u+g′(0)δ+g(0)δ′h''=g''u+g'(0)\delta+g(0)\delta', and h′′+5h′+6h=(g′′+5g′+6g)u+g(0)δ′+(g′(0)+5g(0))δ.h''+5h'+6h=\left(g''+5g'+6g\right)u+g(0)\delta'+\left(g'(0)+5g(0)\right)\delta. The first term is zero because gg is a combination of modes; the equation requires the right-hand side δ′−δ\delta'-\delta, so g(0)=1g(0)=1 and g′(0)+5g(0)=−1g'(0)+5g(0)=-1, i.e. g(0)=1g(0)=1 and g′(0)=−6g'(0)=-6. For g=−3e−2t+4e−3tg=-3e^{-2t}+4e^{-3t}: g(0)=−3+4=1g(0)=-3+4=1 and g′(0)=6−12=−6g'(0)=6-12=-6. Both conditions hold.

Other checks: ∫0∞h=−32+43=−16=H(0)=−12⋅3\int_0^{\infty}h=-\frac32+\frac43=-\frac16=H(0)=\frac{-1}{2\cdot3}; the function hh changes sign once, at t=ln⁡43≈0.29t=\ln\frac43\approx0.29 (it comes from the zero of HH at jω=1j\omega=1); the frequency response computed by numerical integration of h(t)e−jωth(t)e^{-j\omega t} agrees with jω−1(jω+2)(jω+3)\frac{j\omega-1}{(j\omega+2)(j\omega+3)} at several ω\omega.

Grafico interattivo: h(t) = (4 e^(-3t) - 3 e^(-2t)) u(t): jumps to 1 at t = 0, becomes negative after t = ln(4/3) = 0.29 and decays to 0

Stability. A convolutional LTI system is BIBO stable if and only if h∈L1h\in L^1 (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 →). Here ∫0∞∣h∣≤4∫0∞e−3tdt+3∫0∞e−2tdt=43+32<∞\int_0^\infty\lvert h\rvert\le4\int_0^\infty e^{-3t}dt+3\int_0^\infty e^{-2t}dt=\frac43+\frac32<\infty, so the system is stable. The same conclusion comes from the poles (the roots of the characteristic polynomial, −2-2 and −3-3) having strictly negative real part: all the modes decay; equivalently, the ROC Re⁡(s)>−2\operatorname{Re}(s)>-2 contains the imaginary axis (BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models →).

(3) Laplace transform of the output and its ROC. The output is y(t)=u(t)−e−tu(t)y(t)=u(t)-e^{-t}u(t). With the table (u↔1su\leftrightarrow\frac1s and eσt↔1s−σe^{\sigma t}\leftrightarrow\frac1{s-\sigma} with σ=−1\sigma=-1) and linearity: Y(s)=1s−1s+1=(s+1)−ss(s+1)=1s(s+1).Y(s)=\frac1s-\frac1{s+1}=\frac{(s+1)-s}{s(s+1)}=\frac1{s(s+1)}. ROC. The first term converges for Re⁡(s)>0\operatorname{Re}(s)>0 and the second for Re⁡(s)>−1\operatorname{Re}(s)>-1; the sum converges where both do, so ROCY={Re⁡(s)>0}\text{ROC}_Y=\{\operatorname{Re}(s)>0\} (the abscissa of convergence is 00 because y(t)→1y(t)\to1, which does not decay: s=0s=0 is excluded). Checks with the initial and final value theorems: lim⁡s→∞sY(s)=0=y(0+)\lim_{s\to\infty}sY(s)=0=y(0^+) and lim⁡s→0sY(s)=1=lim⁡t→∞y(t)\lim_{s\to0}sY(s)=1=\lim_{t\to\infty}y(t) (the limit exists and is finite).

(4) The input. The system is at rest and causal, so Y(s)=H(s)X(s)Y(s)=H(s)X(s) and the input is obtained by solving for XX: X(s)=Y(s)H(s)=1s(s+1)⋅(s+2)(s+3)s−1=(s+2)(s+3)s(s+1)(s−1).X(s)=\frac{Y(s)}{H(s)}=\frac1{s(s+1)}\cdot\frac{(s+2)(s+3)}{s-1}=\frac{(s+2)(s+3)}{s(s+1)(s-1)}. The numerator has degree 22 and the denominator degree 33, with the distinct poles 0,−1,10,-1,1: partial fractions X(s)=as+bs+1+cs−1,a=(s+2)(s+3)(s+1)(s−1)∣s=0=6−1=−6,b=(s+2)(s+3)s(s−1)∣s=−1=22=1,c=(s+2)(s+3)s(s+1)∣s=1=122=6.X(s)=\frac{a}s+\frac b{s+1}+\frac c{s-1},\quad a=\left.\frac{(s+2)(s+3)}{(s+1)(s-1)}\right\rvert_{s=0}=\frac{6}{-1}=-6,\quad b=\left.\frac{(s+2)(s+3)}{s(s-1)}\right\rvert_{s=-1}=\frac{2}{2}=1,\quad c=\left.\frac{(s+2)(s+3)}{s(s+1)}\right\rvert_{s=1}=\frac{12}{2}=6. By the table, x(t)=(−6+e−t+6et)u(t).x(t)=\left(-6+e^{-t}+6e^{t}\right)u(t). The ROC of XX is Re⁡(s)>1\operatorname{Re}(s)>1 (the abscissa of convergence is 11 because of the term ete^{t}), so XX has a smaller ROC than Y=HXY=HX (Re⁡(s)>0\operatorname{Re}(s)>0): in the product the zero of HH at s=1s=1 cancels the pole of XX at s=1s=1, and the ROC of the product is larger than the intersection of the two ROCs.

Checks. The initial value theorem gives x(0+)=lim⁡s→∞sX(s)=1x(0^+)=\lim_{s\to\infty}sX(s)=1, as in −6+1+6=1-6+1+6=1. The convolution h∗x=∫0th(τ)x(t−τ)dτh*x=\int_0^th(\tau)x(t-\tau)d\tau computed symbolically gives exactly 1−e−t1-e^{-t} for t>0t>0, and at t=0+t=0^+ the equation is satisfied: y′′(0+)+5y′(0+)+6y(0+)=−1+5+0=4y''(0^+)+5y'(0^+)+6y(0^+)=-1+5+0=4 and x′(0+)−x(0+)=5−1=4x'(0^+)-x(0^+)=5-1=4. Remark: the input grows like ete^{t} but the output stays bounded: the component 6et6e^{t} is annihilated by the right-hand side x′−xx'-x (for ete^t, derivative minus itself is 00), which corresponds to the zero of HH at s=1s=1. This does not contradict the BIBO stability of the system, which concerns bounded inputs. Recovering xx from yy is a legitimate calculation here but the inverse system 1H(s)\frac1{H(s)} is not stable (it has the pole s=1s=1): this is why the input obtained is unbounded. The results coincide with the official solution (no misprint in this exercise).

Typical mistakes. Scrambling the residues (AA is computed at the root −2-2 and goes with e−2te^{-2t}, BB at −3-3 with e−3te^{-3t}); omitting u(t)u(t); forgetting that the numerator x′−xx'-x makes h(0+)=1≠0h(0^+)=1\ne0 (the order of the right-hand side is lower than the order of the left-hand side by one, so hh jumps); giving the ROC of HH as Re⁡(s)>−3\operatorname{Re}(s)>-3 (it is to the right of the pole with the largest real part, −2-2); giving Re⁡(s)>−1\operatorname{Re}(s)>-1 for YY (the term 1s\frac1s forces Re⁡(s)>0\operatorname{Re}(s)>0); in point 4, dividing by HH with numerator and denominator inverted.

Theory 1 (points 4)

Linear ordinary differential equations with constant coefficients. Recall the definition of linear ordinary differential equation with constant coefficients (LCCODE), the definition of characteristic polynomial a(s)a(s), and the algebraic structure of the set YO\mathcal Y_O of solutions of the associated homogeneous equation. Express a basis in terms of the roots of the characteristic polynomial.

Show the result
  • LCCODE: ∑k=0naky(k)(t)=∑k=0mbkx(k)(t)\sum_{k=0}^na_ky^{(k)}(t)=\sum_{k=0}^mb_kx^{(k)}(t) with constant coefficients ak,bka_k,b_k (independent of tt), an≠0a_n\ne0. Characteristic polynomial: a(s)=a0+a1s+⋯+ansna(s)=a_0+a_1s+\dots+a_ns^n, of degree nn.
  • YO\mathcal Y_O is a vector space of dimension nn.
  • If a(s)a(s) has the distinct roots λ1,…,λr\lambda_1,\dots,\lambda_r with multiplicities n1,…,nrn_1,\dots,n_r (n1+⋯+nr=nn_1+\dots+n_r=n), a basis of YO\mathcal Y_O is {tmeλit: i=1,…,r; m=0,…,ni−1}\left\{t^me^{\lambda_it}:\ i=1,\dots,r;\ m=0,\dots,n_i-1\right\}.
Show the full solution

Theory used: Linear Constant-Coefficient Differential EquationsContinuous-time LTI convolutional systems are described by linear constant-coefficient ODEs whose general solution is a homogeneous part, a combination of modes t^m e^{pt} built from the roots of the characteristic polynomial, plus a particular part; boundary conditions pick one solution of the family.Linear Constant-Coefficient Differential Equations →, Natural and Forced Response of Causal LTI SystemsThe solution of a causal ODE with boundary conditions at t_0 splits uniquely into a natural response, a homogeneous solution fixed by the boundary conditions through the Wronskian matrix, and a forced response, the convolution of a causal impulse response with a switch-on input, which is zero before t_0.Natural and Forced Response of Causal LTI Systems →.

Definition. Given an input xx (possibly a generalized signal, with impulses and derivatives of impulses), the LCCODE asks for the signals yy such that ∑k=0naky(k)(t)=∑k=0mbkx(k)(t),\sum_{k=0}^na_ky^{(k)}(t)=\sum_{k=0}^mb_kx^{(k)}(t), where y(k)y^{(k)} is the derivative of order kk, n≥1n\ge1 and mm are integers, and the coefficients ak,bka_k,b_k are constants (they do not depend on tt), real or, in general, complex, with an≠0a_n\ne0 (the notes normalize an=1a_n=1). Its order is nn.

Characteristic polynomial. It is the polynomial of degree nn built with the coefficients of the left-hand side: a(s)=a0+a1s+a2s2+⋯+ansn.a(s)=a_0+a_1s+a_2s^2+\dots+a_ns^n. (The notes call the variable pp.) It comes from looking for exponential solutions of the homogeneous equation ∑kaky(k)=0\sum_ka_ky^{(k)}=0: for ψ(t)=Cest\psi(t)=Ce^{st} we have ψ(k)=skψ\psi^{(k)}=s^k\psi, so ∑kakskψ(t)=a(s)ψ(t)\sum_ka_ks^k\psi(t)=a(s)\psi(t), and ψ\psi is a solution if and only if a(s)=0a(s)=0.

Structure of YO\mathcal Y_O. The homogeneous equation is linear: if y1,y2y_1,y_2 are solutions and c1,c2c_1,c_2 are constants then c1y1+c2y2c_1y_1+c_2y_2 is a solution (derivatives are linear). So YO\mathcal Y_O is a vector space. Its dimension is nn: fixed t0t_0, for every vector of initial conditions (y(t0),y′(t0),…,y(n−1)(t0))∈Cn\left(y(t_0),y'(t_0),\dots,y^{(n-1)}(t_0)\right)\in\mathbb C^n there is exactly one solution of the homogeneous equation with those initial conditions (existence and uniqueness of the Cauchy problem, theorem quoted in Natural and Forced Response of Causal LTI SystemsThe solution of a causal ODE with boundary conditions at t_0 splits uniquely into a natural response, a homogeneous solution fixed by the boundary conditions through the Wronskian matrix, and a forced response, the convolution of a causal impulse response with a switch-on input, which is zero before t_0.Natural and Forced Response of Causal LTI Systems →); the map "solution ↦\mapsto initial conditions" is then a linear bijection between YO\mathcal Y_O and Cn\mathbb C^n, so dim⁡YO=n\dim\mathcal Y_O=n. Consequence: any nn linearly independent solutions are a basis.

Basis from the roots. Let λ1,…,λr\lambda_1,\dots,\lambda_r be the distinct roots of a(s)a(s) and nin_i the multiplicity of λi\lambda_i, so a(s)=an∏i=1r(s−λi)nia(s)=a_n\prod_{i=1}^r(s-\lambda_i)^{n_i} and ∑ini=n\sum_in_i=n (fundamental theorem of algebra). The nn functions (the modes) eλ1t,teλ1t,…,tn1−1eλ1teλ2t,teλ2t,…,tn2−1eλ2t⋮eλrt,teλrt,…,tnr−1eλrt\begin{array}{llll}e^{\lambda_1t},&te^{\lambda_1t},&\dots,&t^{n_1-1}e^{\lambda_1t}\\ e^{\lambda_2t},&te^{\lambda_2t},&\dots,&t^{n_2-1}e^{\lambda_2t}\\ &&\vdots&\\ e^{\lambda_rt},&te^{\lambda_rt},&\dots,&t^{n_r-1}e^{\lambda_rt}\end{array} are a basis of YO\mathcal Y_O, so every homogeneous solution is yO(t)=∑i=1r∑m=0ni−1ci,mtmeλity_O(t)=\sum_{i=1}^r\sum_{m=0}^{n_i-1}c_{i,m}t^me^{\lambda_it} with constants ci,m∈Cc_{i,m}\in\mathbb C fixed by the initial conditions.

Why they are solutions. Write D=ddtD=\frac d{dt} and a(D)=∑kakDka(D)=\sum_ka_kD^k. Since a(D)est=a(s)esta(D)e^{st}=a(s)e^{st} for every ss, differentiating mm times with respect to ss and setting s=λs=\lambda gives a(D)[tmeλt]=∑j=0m(mj)a(j)(λ) tm−jeλt.a(D)\left[t^me^{\lambda t}\right]=\sum_{j=0}^m\binom mj a^{(j)}(\lambda)\,t^{m-j}e^{\lambda t}. If λ\lambda is a root of multiplicity nin_i then a(λ)=a′(λ)=⋯=a(ni−1)(λ)=0a(\lambda)=a'(\lambda)=\dots=a^{(n_i-1)}(\lambda)=0, so for m≤ni−1m\le n_i-1 all the terms vanish: tmeλtt^me^{\lambda t} is a solution. They are n1+⋯+nr=nn_1+\dots+n_r=n functions and they are linearly independent (distinct exponentials multiplied by polynomials have different growth; this is the part that the notes state without proof), so, since dim⁡YO=n\dim\mathcal Y_O=n, they are a basis. (Verified symbolically for a(s)=(s+2)3(s+1)a(s)=(s+2)^3(s+1): e−te^{-t}, e−2te^{-2t}, te−2tte^{-2t}, t2e−2tt^2e^{-2t} are annihilated and t3e−2tt^3e^{-2t} is not.)

Remarks and examples. For real coefficients the complex roots come in conjugate pairs σ±jω\sigma\pm j\omega and the pair e(σ±jω)te^{(\sigma\pm j\omega)t} can be replaced by the real functions eσtcos⁡ωte^{\sigma t}\cos\omega t, eσtsin⁡ωte^{\sigma t}\sin\omega t. Examples: y′′+5y′+6y=0y''+5y'+6y=0 has roots −2,−3-2,-3, YO=span⁡{e−2t,e−3t}\mathcal Y_O=\operatorname{span}\{e^{-2t},e^{-3t}\}; y′′+4y′+4y=0y''+4y'+4y=0 has the double root −2-2 and YO=span⁡{e−2t,te−2t}\mathcal Y_O=\operatorname{span}\{e^{-2t},te^{-2t}\}. The behaviour of the modes (Re⁡λ<0\operatorname{Re}\lambda<0: decay; =0=0: bounded or growing like a power; >0>0: exponential growth) decides the stability of the system.

Theory 2 (points 4)

Sampling theorem. With reference to the Sampling Theorem:

  1. Under which hypotheses on the signal x(t)x(t) and on the sampling frequency fc=1Tcf_c=\frac1{T_c} is it possible to reconstruct xx from the samples x(nTc)x(nT_c)?
  2. Briefly explain what aliasing is and why, in a real acquisition system, it is necessary to use an anti-aliasing filter before the sampler.
Show the result
  1. xx must be band-limited: its Fourier transform satisfies X(ω)=0X(\omega)=0 for ∣ω∣>ωM\lvert\omega\rvert>\omega_M (with xx real and a Fourier transform in the generalized sense, so that sinusoids are allowed), and the sampling frequency must satisfy the Nyquist criterion fc>2fMf_c>2f_M, i.e. ωs=2πTc>2ωM\omega_s=\frac{2\pi}{T_c}>2\omega_M.
  2. Sampling in time repeats the spectrum with period ωs\omega_s: Xp(ω)=1Tc∑nX(ω−nωs)X_p(\omega)=\frac1{T_c}\sum_nX(\omega-n\omega_s). If ωs≤2ωM\omega_s\le2\omega_M (or xx is not band-limited) the replicas overlap and sum: this is aliasing, and the original spectrum can no longer be recovered. Real signals are never exactly band-limited, so a low-pass anti-aliasing filter with cut-off at most ωs2\frac{\omega_s}2 (i.e. fc2\frac{f_c}2) is applied before the sampler, which enforces the hypothesis.
Show the full solution

Theory used: 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 →, 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 →, Frequency-Selective FiltersA convolutional LTI system filters by multiplying the input spectrum by H(j omega); ideal low-pass and high-pass filters, first-order RC implementations, distortion-free transmission (Heaviside conditions), why the ideal low-pass filter is not realizable, and the practical design parameters.Frequency-Selective Filters →.

1. Hypotheses. On the signal: xx is band-limited: there exists ωM<∞\omega_M<\infty such that X(ω)=0X(\omega)=0 for all ∣ω∣>ωM\lvert\omega\rvert>\omega_M; the smallest such ωM\omega_M is the maximum angular frequency of the signal (fM=ωM2πf_M=\frac{\omega_M}{2\pi}). This is a strong assumption. Mild technical assumptions complete it: xx real-valued (so XX is Hermitian and the negative frequencies carry no further information) and with a Fourier transform, if needed in the generalized sense (for example x∈L1x\in L^1 or L2L^2, but also bounded signals such as sinusoids, whose transform consists of impulses).

On the sampling frequency: the Nyquist criterion ωs=2πTc>2ωM⟺fc>2fM⟺Tc<πωM.\omega_s=\frac{2\pi}{T_c}>2\omega_M\quad\Longleftrightarrow\quad f_c>2f_M\quad\Longleftrightarrow\quad T_c<\frac\pi{\omega_M}. The inequality must be strict: with ωs=2ωM\omega_s=2\omega_M the replicas touch at the edge of the band, and if the spectrum has impulses there (for example x=cos⁡(ωMt)x=\cos(\omega_Mt) sampled at fc=2fMf_c=2f_M, whose samples are cos⁡(πn)\cos(\pi n) and lose the phase) the reconstruction fails.

Then: xx is uniquely determined by its samples and recovered exactly by an ideal low-pass filter with gain TcT_c and cut-off ωc\omega_c such that ωM<ωc<ωs−ωM\omega_M<\omega_c<\omega_s-\omega_M (for instance ωc=ωs2\omega_c=\frac{\omega_s}2) applied to the impulse train ∑nx(nTc)δ(t−nTc)\sum_nx(nT_c)\delta(t-nT_c), i.e. by the Shannon interpolation formula x(t)=∑nx(nTc)sinc⁡(t−nTcTc)x(t)=\sum_nx(nT_c)\operatorname{sinc}\left(\frac{t-nT_c}{T_c}\right).

2. Aliasing. Multiplying xx by the impulse train p(t)=∑nδ(t−nTc)p(t)=\sum_n\delta(t-nT_c) (impulsive sampling) multiplies in time and, in frequency, convolves with P(ω)=2πTc∑nδ(ω−nωs)P(\omega)=\frac{2\pi}{T_c}\sum_n\delta(\omega-n\omega_s). The spectrum of the sampled signal is Xp(ω)=1Tc∑n=−∞+∞X(ω−nωs):X_p(\omega)=\frac1{T_c}\sum_{n=-\infty}^{+\infty}X\left(\omega-n\omega_s\right): the spectrum of xx repeated with period ωs\omega_s and scaled by 1Tc\frac1{T_c}. If ωs>2ωM\omega_s>2\omega_M the replicas are separate and the low-pass filter extracts the central one. If ωs≤2ωM\omega_s\le2\omega_M, or xx is not band-limited, neighbouring replicas overlap and the values add up: the filter cannot separate them and the signal rebuilt from the samples contains frequencies that were not in xx (high frequencies are folded into low ones and "disguised" as them). This is aliasing. Example from the course: x(t)=cos⁡(4πt)x(t)=\cos(4\pi t) (ωM=4π\omega_M=4\pi) sampled with ωs=6π<8π\omega_s=6\pi<8\pi has a replica at 6π−4π=2π6\pi-4\pi=2\pi inside the band and the reconstruction is cos⁡(4πt)+cos⁡(2πt)≠x(t)\cos(4\pi t)+\cos(2\pi t)\ne x(t).

Why the anti-aliasing filter. A real signal is never strictly band-limited: it has a limited duration or contains noise, so its spectrum has tails that never vanish exactly (a signal of finite duration cannot be band-limited), and the sampling hardware also acquires a limited number of samples. If these tails are sampled at a finite fcf_c, they fold onto the band of interest. Raising fcf_c without limit is not an option, because converters with high sampling frequency are expensive. So, before the sampler, a low-pass filter HAA(ω)=rect⁡(ω2ωA)H_{AA}(\omega)=\operatorname{rect}\left(\frac\omega{2\omega_A}\right) with ωA≤ωs2\omega_A\le\frac{\omega_s}2 is inserted: it removes the content above ωA\omega_A and enforces the hypothesis of the theorem. The best choice is ωA=ωs2\omega_A=\frac{\omega_s}2, because it keeps as much of the signal as possible. The price is the loss of the frequencies above the cut-off, but this is a controlled and acceptable loss, whereas aliasing is an uncontrolled distortion that cannot be undone after sampling.

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) in the interval (0,T)(0,T) sampled at step Δ=10−3\Delta=10^{-3}, with A=2A=2, T=20T=20;
  2. plots in a figure the behaviour of x(t)x(t) in the above interval;
  3. plots in a second figure the behaviour of the modulus of X(ω)X(\omega), the CTFT of xx. Use the FFT with a suitable zero-padding. Pay attention to the correct labelling of the abscissa axis;
  4. plots, always in the second figure, the theoretical behaviour of ∣X(ω)∣\lvert X(\omega)\rvert (to be computed analytically, not in the Matlab script).
Show the result
  • Signal: t = 0:TC:T with TC = 1e-3 (20001 samples) and x = A*exp(-3*t) (the step is not needed because t≥0t\ge0).
  • Spectrum: X = fftshift(TC*fft(x, M)) with M = 2^(nextpow2(N)+3) = 262144 (zero-padding); the factor TC converts the DFT sums into the continuous-time transform.
  • Axis: freq = -FC/2 : FC/M : FC/2 - FC/M in Hz with FC = 1/TC, and omega = 2*pi*freq in rad/s; plot abs(X) against omega, label \omega [rad/s].
  • Theory: X(ω)=23+jωX(\omega)=\dfrac{2}{3+j\omega}, ∣X(ω)∣=29+ω2\lvert X(\omega)\rvert=\dfrac2{\sqrt{9+\omega^2}}: maximum 23≈0.667\frac23\approx0.667 at ω=0\omega=0, 33 dB point at ω=3\omega=3 rad/s.
Show the full solution

Theory used: Discrete Fourier TransformHeuristic derivation of the discrete Fourier transform for N-periodic discrete-time signals: complex exponentials with period N, the finite basis of N modes obtained from the difference equation x(k)-x(k-N)=0, orthogonality, the coefficient formula and the definition of the DFT with its periodicity and matrix form.Discrete Fourier Transform →, Discrete-Time Fourier TransformThe DTFT of an aperiodic discrete-time signal is the 2pi-periodic function X(e^{j theta}) = sum x(k) e^{-j theta k}; it is obtained as the envelope of the DFT of the N-periodic repetition when N tends to infinity, and has translation, modulation, convolution and Parseval properties.Discrete-Time Fourier Transform →, 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 →, 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 →.

The theoretical spectrum (point 4). For x(t)=2e−3tu(t)x(t)=2e^{-3t}u(t) (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 →): X(ω)=∫0+∞2e−3te−jωtdt=2[e−(3+jω)t−(3+jω)]0+∞=23+jω,∣X(ω)∣=29+ω2.X(\omega)=\int_0^{+\infty}2e^{-3t}e^{-j\omega t}dt=2\left[\frac{e^{-(3+j\omega)t}}{-(3+j\omega)}\right]_0^{+\infty}=\frac2{3+j\omega},\qquad\lvert X(\omega)\rvert=\frac2{\sqrt{9+\omega^2}}. It is a low-pass shape with maximum ∣X(0)∣=23\lvert X(0)\rvert=\frac23; at ω=3\omega=3 it is 218=2/32\frac2{\sqrt{18}}=\frac{2/3}{\sqrt2} (the 33 dB point). It decays like 2∣ω∣\frac2{\lvert\omega\rvert} and never vanishes: xx is not band-limited (it has a jump at t=0t=0).

Grafico interattivo: Theoretical |X(w)| = 2/sqrt(9 + w^2): maximum 2/3 at w = 0, value 0.47 at the 3 dB point w = 3

From the FFT to the continuous-time transform. Let xn=x(nTC)x_n=x(nT_C), n=0,…,N−1n=0,\dots,N-1, with TC=Δ=10−3T_C=\Delta=10^{-3} s. Matlab's fft(x, M) pads xx with M−NM-N zeros and computes fft(x,M)(k)=∑n=0N−1xne−j2πMkn,k=0,…,M−1\texttt{fft}(x,M)(k)=\sum_{n=0}^{N-1}x_ne^{-j\frac{2\pi}Mkn},\qquad k=0,\dots,M-1 (the DFT of the notes has an extra factor 1M\frac1M, which fft does not have). The sum is the DTFT of the sequence xnx_n, ∑nxne−jθn\sum_nx_ne^{-j\theta n}, evaluated at θk=2πkM\theta_k=\frac{2\pi k}M: with MM larger than NN the zero-padding does not add information, but samples the same DTFT at more points, so the plot is finer (the spacing in θ\theta is 2πM\frac{2\pi}M instead of 2πN\frac{2\pi}N). To go to the continuous-time transform, use the sampling relation: the transform of the impulsive-sampled signal is Xp(ω)=∑nx(nTC)e−jωnTC=1TC∑kX(ω−kωs)X_p(\omega)=\sum_nx(nT_C)e^{-j\omega nT_C}=\frac1{T_C}\sum_kX\left(\omega-k\omega_s\right) with ωs=2πTC\omega_s=\frac{2\pi}{T_C} (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 →). Hence, with ω=θTC\omega=\frac\theta{T_C}, TC⋅fft(x,M)(k)=TCXp(ωk)≈X(ωk),ωk=2πkMTC,T_C\cdot\texttt{fft}(x,M)(k)=T_CX_p\left(\omega_k\right)\approx X(\omega_k),\qquad\omega_k=\frac{2\pi k}{MT_C}, provided that the replicas (k≠0k\ne0) are negligible (no aliasing) and that xx is practically zero outside [0,T][0,T]. This is equivalent to the rectangle-rule approximation of ∫x(t)e−jωtdt\int x(t)e^{-j\omega t}dt.

Do the assumptions hold? Truncation: x(20)=2e−60≈2⋅10−26x(20)=2e^{-60}\approx2\cdot10^{-26}, negligible. Aliasing: xx is not band-limited, but ωs=2πTC≈6.3⋅103\omega_s=\frac{2\pi}{T_C}\approx6.3\cdot10^3 rad/s is much larger than the width of the spectrum (33 dB at ω=3\omega=3 rad/s), and the replicas, shifted by 62836283 rad/s, have size 26283≈3⋅10−4\frac2{6283}\approx3\cdot10^{-4} near the origin, compared with the maximum 0.6670.667: the effect is negligible.

The axis. After the fft, the frequencies run from 00 up to FC2\frac{F_C}2 and then from −FC2-\frac{F_C}2 up to 00; fftshift reorders them as −FC2,…,FC2−step-\frac{F_C}2,\dots,\frac{F_C}2-\text{step}. The frequency step is FCM\frac{F_C}M Hz with FC=1TC=1000F_C=\frac1{T_C}=1000 Hz and, for even MM, the axis has exactly MM points: freq = -FC/2 : step : FC/2 - step. The transform of xx is a function of ω\omega in rad/s, so the axis must be multiplied by 2π2\pi: omega = 2*pi*freq. With zero-padding the step is 2πMTC≈0.024\frac{2\pi}{MT_C}\approx0.024 rad/s; without it, 2πNTC≈0.314\frac{2\pi}{NT_C}\approx0.314 rad/s. The abscissa of the plot is then ω\omega in rad/s, from −πFC≈−3142-\pi F_C\approx-3142 to +3142+3142 rad/s, and one zooms on the interesting part with xlim.

Script (Matlab). It is the script of the official solution, with three small changes marked in the comments: a stray comma after 1.5 in the second plot (a syntax error in Matlab) is removed, a missing semicolon after the definition of x (which would print 20001 numbers) is added, and the xlim of the zoomed plot (the figure of the official solution is a zoom on ±20\pm20 rad/s) is written explicitly.

matlab
%% ESAME SEGNALI E SISTEMI - DOMANDA MATLAB
clear all; close all; clc;
%% 1. Parameters and computation of the signal
A  = 2;                 % amplitude
T  = 20;                % observation time [s]
TC = 1e-3;              % sampling step [s]

% Time vector
t = 0 : TC : T;
% Signal x(t): the step is not needed because t >= 0
x = A * exp(-3*t);      % (semicolon added)

%% 2. Plot in the time domain
figure(1);
plot(t, x, 'LineWidth', 1.5);
xlabel('t [s]'); ylabel('x(t)'); title('Signal x(t)'); grid on;

%% 3. CTFT with the FFT and zero-padding
N = length(x);                  % number of samples
M = 2^(nextpow2(N)+3);          % zero-padding (M > 8N)
X = fftshift(TC*fft(x, M));     % FFT, then shift

% The minimum frequency is -FC/2, the maximum is FC/2 - step
FC = 1/TC; step = FC/M;
freq = -FC/2 : step : (FC/2 - step);
omega = 2 * pi * freq;

%% Plot of the spectrum (modulus)
figure(2);
plot(omega, abs(X), 'LineWidth', 1.5); hold on;           % (stray comma removed)
%% 4. Theoretical modulus: 2/sqrt(9+omega^2)
plot(omega, 2./sqrt(9+omega.^2), 'LineWidth', 1.5); hold off;
legend('|X(\omega)| estimated with the FFT', '|X(\omega)| theoretical');
xlabel('\omega [rad/s]'); grid on;
xlim([-20 20]);                 % zoom (added)

Why this way. t = 0:TC:T has TTC+1=20001\frac T{T_C}+1=20001 samples; nextpow2(20001) is 1515 (215=32768≥200012^{15}=32768\ge20001), so M = 2^18 = 262144, about 1313 times NN. The factor TC is essential: without it the peak would be ≈667\approx667 instead of ≈0.667\approx0.667 (the DFT sums NN samples, each of which weighs TCT_C in the integral). Without fftshift the spectrum would be drawn with the negative frequencies on the right of the positive ones.

Check. Matlab is not available here; the script was checked with an equivalent in Python with numpy (same vectors, np.fft.fft and np.fft.fftshift). It gives N=20001N=20001, M=262144M=262144 and an axis with MM points from −500-500 Hz to 499.996499.996 Hz, with 00 in position M2\frac M2. Over ∣ω∣≤20\lvert\omega\rvert\le20 rad/s the FFT estimate differs from the theory by at most 1.0⋅10−31.0\cdot10^{-3}, which is the error of the rectangle rule, TC2x(0)=0.001\frac{T_C}2x(0)=0.001 (at ω=0\omega=0 the numerical value is 0.66770.6677 instead of 0.66670.6667); this is why the two curves in the figure of the official solution overlap.

Grafico interattivo: x(t) = 2 e^(-3t) u(t): jumps to 2 at t = 0 and decays with time constant 1/3 s (negligible well before t = T = 20)

Typical mistakes. Forgetting TC (the spectrum is 10001000 times too large) or the fftshift; plotting against the index or against freq labelled as rad/s (a factor 2π2\pi is missing); an axis with a number of points different from M; choosing M ≤N\le N (no zero-padding: the plot is coarse); not limiting the horizontal axis, so that only a flat line is visible up to ±3142\pm3142 rad/s; forgetting to plot the theoretical curve in point 4 on the same figure (hold on).

Self-assessment grid
Exercise Points What must be there for full marks Typical mistakes
Exercise 1 7 xx sketched with the right support (11 on (4m−1,4m+1)(4m-1,4m+1)); h=sin⁡(7t/2)πth=\frac{\sin(7t/2)}{\pi t}, non-causal and not BIBO stable, ideal low-pass; ω0=π2\omega_0=\frac\pi2, ak=sin⁡(kπ/2)kπa_k=\frac{\sin(k\pi/2)}{k\pi}; harmonics k=0,±1k=0,\pm1 survive (the k=±2k=\pm2 harmonic passes but has a±2=0a_{\pm2}=0); y=12+2πcos⁡(π2t)y=\frac12+\frac2\pi\cos\left(\frac\pi2t\right); xx not band-limited, yy band-limited with fc>12f_c>\frac12 Hz hh called causal or stable; harmonic k=2k=2 treated as cut; a0a_0 forgotten; yy not in trigonometric form; xx declared reconstructable
Exercise 2 7 h=δ(n)−δ(n−2)h=\delta(n)-\delta(n-2) sketched, causal and stable; H=1−e−j2ω=2jsin⁡ω e−jωH=1-e^{-j2\omega}=2j\sin\omega\,e^{-j\omega}, ∣H∣=2∣sin⁡ω∣\lvert H\rvert=2\lvert\sin\omega\rvert, band-pass; zeros of the output at ν=0,12\nu=0,\frac12; y=(1,2,2,−2,−3)y=(1,2,2,-2,-3) on {0,…,4}\{0,\dots,4\} support of yy with the wrong length; low-pass or high-pass instead of band-pass; ν=14\nu=\frac14 given as the answer to point 3
Exercise 3 7 H(s)=s−1(s+2)(s+3)H(s)=\frac{s-1}{(s+2)(s+3)} with ROC={Re⁡(s)>−2}\text{ROC}=\{\operatorname{Re}(s)>-2\}; residues −3-3 and 44 and h=(4e−3t−3e−2t)u(t)h=\left(4e^{-3t}-3e^{-2t}\right)u(t), stability (poles −2,−3-2,-3); Y=1s(s+1)Y=\frac1{s(s+1)} with ROC={Re⁡(s)>0}\text{ROC}=\{\operatorname{Re}(s)>0\}; X=YH=(s+2)(s+3)s(s+1)(s−1)X=\frac{Y}{H}=\frac{(s+2)(s+3)}{s(s+1)(s-1)} with residues −6,1,6-6,1,6 and x=(−6+e−t+6et)u(t)x=\left(-6+e^{-t}+6e^{t}\right)u(t) ROC of HH taken to the right of −3-3; residues scrambled; u(t)u(t) omitted; h(0+)=0h(0^+)=0 instead of 11; X=HYX=HY instead of Y/HY/H
Theory 1 4 Definition of the LCCODE; a(s)=∑akska(s)=\sum a_ks^k; YO\mathcal Y_O is a vector space of dimension nn; basis tmeλitt^me^{\lambda_it}, m<nim<n_i, with the reason (a(D)[tmeλt]a(D)[t^me^{\lambda t}] vanishes up to multiplicity) dimension not stated or not justified; multiplicity ignored (missing teλtte^{\lambda t} for a double root)
Theory 2 4 Band-limited signal and strict condition fc>2fMf_c>2f_M; replicas Xp=1Tc∑X(ω−nωs)X_p=\frac1{T_c}\sum X(\omega-n\omega_s) and overlap = aliasing; real signals are not band-limited, so a low-pass filter with cut-off ≤fc2\le\frac{f_c}2 is placed before the sampler non-strict inequality; confusing fcf_c and 2fM2f_M; saying the filter is needed to remove noise only
Matlab 1 3 Time vector and signal; fft(x,M) with M ≫N\gg N; scale TC; fftshift; axis −FC2,…-\frac{F_C}2,\dots with MM points and the factor 2π2\pi to get rad/s; theoretical 29+ω2\frac2{\sqrt{9+\omega^2}} on the same figure TC or fftshift or 2π2\pi missing; axis of the wrong length; no zero-padding

Thresholds: at least 10 points on the three exercises (out of 21) and at least 5 between theory and Matlab (out of 11). For extra practice on the same topics, see the exercises collected in Fourier Series ExercisesWorked Fourier-series exercises for a shifted rectangular wave, the pulse train, a power bound for a derivative, a generic square wave, the sawtooth and a triangular wave, ending with the sum of 1/n^2 equal to pi^2/6.Fourier Series Exercises → and the examples in 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 → and 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 →.