Salta al contenuto
Note per Studenti Signals and Systems - Mock Exam 2 Report

Signals and Systems - Mock Exam 2

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

In questa pagina 7

Mock exam built on the model of the written exams of the equivalent Italian-language course (Signals and Systems, Information Engineering, UniPD): it is a simulation, not an official paper. Time: 3 hours (the most recent exam of the course; the two exams of early 2025 gave 2 hours and 30 minutes). No documents allowed. For every question justify the answer and show all the calculations you consider necessary; when asked to sketch a signal, find its support and sketch its shape, even roughly. Structure: 3 exercises of 7 points, 2 theory questions of 4 points, 1 Matlab question of 3 points (total 32 points). To pass you need at least 10 points in the exercises and at least 5 between theory and Matlab.

Conventions. sinc⁡(t)=sin⁡πtπt\operatorname{sinc}(t)=\dfrac{\sin\pi t}{\pi t}; rect⁡(t)=1\operatorname{rect}(t)=1 for ∣t∣<12\lvert t\rvert<\tfrac12 and 00 otherwise; Λ(t)=(1−∣t∣)rect⁡ ⁣(t2)\Lambda(t)=(1-\lvert t\rvert)\operatorname{rect}\!\left(\tfrac t2\right) is the unit triangle supported on [−1,1][-1,1]; 1(t)\mathbb 1(t) is the unit step; ω\omega is the angular frequency in rad/s, f=ω/2πf=\omega/2\pi the frequency in Hz, and X(jω)=∫−∞+∞x(t)e−jωtdt\mathcal X(j\omega)=\int_{-\infty}^{+\infty}x(t)e^{-j\omega t}dt (in Exercise 3, X(f)=∫x(t)e−j2πftdtX(f)=\int x(t)e^{-j2\pi ft}dt).

Exercise 1 (points 7)

Exercise 1: Continuous-time convolution. Let x(t)=rect⁡ ⁣(t−12),h(t)=e−2trect⁡ ⁣(t−12),x(t)=\operatorname{rect}\!\left(\frac{t-1}{2}\right),\qquad h(t)=e^{-2t}\operatorname{rect}\!\left(t-\frac12\right), so that h(t)=e−2th(t)=e^{-2t} for 0<t<10<t<1 and h(t)=0h(t)=0 elsewhere. The signal hh is the impulse response of an LTI system S\mathcal S, and y=h∗xy=h*x is its response to the input xx.

  1. Sketch xx and hh, giving their supports. Without computing any integral, find the support of yy. Is S\mathcal S causal? Is it BIBO stable?
  2. Compute y(t)y(t) for every t∈Rt\in\mathbb R, piece by piece, and sketch it.
  3. Check the result of point 2: compute ∫−∞+∞y(t) dt\int_{-\infty}^{+\infty}y(t)\,dt in a second way, without using the pieces, and find the maximum of yy and where it is attained.
  4. Write the derivative x′(t)x'(t) (Dirac impulses allowed), show that y′(t)=h(t)−h(t−2)y'(t)=h(t)-h(t-2) and verify this against the pieces found in point 2.
Show the result
  1. supp⁡x=(0,2)\operatorname{supp}x=(0,2), supp⁡h=(0,1)\operatorname{supp}h=(0,1), supp⁡y⊆(0,3)\operatorname{supp}y\subseteq(0,3). S\mathcal S is causal and BIBO stable (∥h∥1=1−e−22≈0.432\lVert h\rVert_1=\frac{1-e^{-2}}{2}\approx0.432).
  2. y(t)={0,t≤01−e−2t2,0<t<11−e−22,1≤t≤2e−2(t−2)−e−22,2<t<30,t≥3.y(t)=\begin{cases}0,&t\le0\\[2pt]\dfrac{1-e^{-2t}}{2},&0<t<1\\[6pt]\dfrac{1-e^{-2}}{2},&1\le t\le2\\[6pt]\dfrac{e^{-2(t-2)}-e^{-2}}{2},&2<t<3\\[6pt]0,&t\ge3.\end{cases}
  3. ∫y dt=(∫x)(∫h)=1−e−2≈0.865\int y\,dt=\left(\int x\right)\left(\int h\right)=1-e^{-2}\approx0.865. Maximum 1−e−22≈0.432\frac{1-e^{-2}}{2}\approx0.432, attained for every t∈[1,2]t\in[1,2] (plateau).
  4. x′(t)=δ(t)−δ(t−2)x'(t)=\delta(t)-\delta(t-2), hence y′(t)=h(t)−h(t−2)y'(t)=h(t)-h(t-2): it equals e−2te^{-2t} on (0,1)(0,1), 00 on (1,2)(1,2), −e−2(t−2)-e^{-2(t-2)} on (2,3)(2,3), in agreement with point 2.
Show the full solution

Point 1. The signal x=rect⁡ ⁣(t−12)x=\operatorname{rect}\!\left(\frac{t-1}{2}\right) is a rectangle of height 11 and width 22 centred at t=1t=1: it is 11 for 0<t<20<t<2. The signal hh is a decaying exponential from the value h(0+)=1h(0^+)=1 down to h(1−)=e−2≈0.135h(1^-)=e^{-2}\approx0.135, then it drops to 00 (a jump at t=1t=1).

Grafico interattivo: x(t) = rect((t−1)/2) (continuo, vale 1 tra 0 e 2) e h(t) = e^{−2t} tra 0 e 1 (tratteggiato: parte da 1 e scende fino a e^{−2} ≈ 0,135, poi salta a 0)

Support of yy. By the support rule of Continuous-Time Convolutioncontinuous-time impulse response and the convolution integral for LTI systems, conditions for its existence in L1 and L2, its properties and the step response of the first-order system h(t) = e^{-gamma t} 1(t).Continuous-Time Convolution →: if x1x_1 lives in [a1,b1][a_1,b_1] and x2x_2 in [a2,b2][a_2,b_2] then x1∗x2=0x_1*x_2=0 for t<a1+a2t<a_1+a_2 and for t>b1+b2t>b_1+b_2. Here the sum of the left ends is 0+0=00+0=0 and the sum of the right ends is 2+1=32+1=3, so y=0y=0 outside [0,3][0,3]. (Intuition: the output starts as soon as the flipped hh touches xx and ends when it has left it completely.)

Causality. h(t)=0h(t)=0 for t<0t<0, so the output at time tt depends only on the input at times ≤t\le t: S\mathcal S is causal (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. An LTI system is BIBO stable iff 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 →): ∥h∥1=∫01e−2tdt=[−e−2t2]01=1−e−22≈0.432<+∞.\lVert h\rVert_1=\int_0^1e^{-2t}dt=\left[-\frac{e^{-2t}}{2}\right]_0^1=\frac{1-e^{-2}}{2}\approx0.432<+\infty. Any hh bounded and with finite support is in L1L^1, so stability was clear in advance. Typical mistake: judging stability from the shape of xx instead of hh.

Point 2. Use the definition y(t)=∫−∞+∞h(t−τ) x(τ) dτ.y(t)=\int_{-\infty}^{+\infty}h(t-\tau)\,x(\tau)\,d\tau. Here xx is the constant 11 for 0<τ<20<\tau<2, and h(t−τ)=e−2(t−τ)h(t-\tau)=e^{-2(t-\tau)} when 0<t−τ<10<t-\tau<1, i.e. when t−1<τ<tt-1<\tau<t. The integrand is therefore e−2(t−τ)e^{-2(t-\tau)} on the intersection of (t−1,t)(t-1,t) and (0,2)(0,2), and 00 elsewhere. Sliding the window (t−1,t)(t-1,t) to the right gives the cases:

  • t≤0t\le0: the window is entirely to the left of 00, empty intersection, y=0y=0;
  • 0<t<10<t<1: the intersection is (0,t)(0,t) (the window has entered (0,2)(0,2) only on the right);
  • 1≤t≤21\le t\le2: the window (t−1,t)⊆(0,2)(t-1,t)\subseteq(0,2) is fully inside, the intersection is (t−1,t)(t-1,t);
  • 2<t<32<t<3: the intersection is (t−1,2)(t-1,2) (the window sticks out on the right);
  • t≥3t\ge3: empty intersection, y=0y=0.

An antiderivative of e−2(t−τ)e^{-2(t-\tau)} with respect to τ\tau is e−2(t−τ)2\frac{e^{-2(t-\tau)}}{2} (the derivative in τ\tau of the exponent gives +2+2). Hence:

  • 0<t<10<t<1: y=[e−2(t−τ)2]0t=1−e−2t2\displaystyle y=\left[\frac{e^{-2(t-\tau)}}{2}\right]_{0}^{t}=\frac{1-e^{-2t}}{2};
  • 1≤t≤21\le t\le2: y=[e−2(t−τ)2]t−1t=1−e−22\displaystyle y=\left[\frac{e^{-2(t-\tau)}}{2}\right]_{t-1}^{t}=\frac{1-e^{-2}}{2}, a constant: the whole of hh sits inside the region where x=1x=1;
  • 2<t<32<t<3: y=[e−2(t−τ)2]t−12=e−2(t−2)−e−22\displaystyle y=\left[\frac{e^{-2(t-\tau)}}{2}\right]_{t-1}^{2}=\frac{e^{-2(t-2)}-e^{-2}}{2}.

Continuity check (the convolution of two bounded signals with finite support is continuous): at t=0t=0 the first piece is 00; at t=1t=1 the first piece gives 1−e−22\frac{1-e^{-2}}{2}, equal to the second; at t=2t=2 the third piece gives 1−e−22\frac{1-e^{-2}}{2}, equal to the second; at t=3t=3 the third piece gives e−2−e−22=0\frac{e^{-2}-e^{-2}}{2}=0. All the junctions match.

Grafico interattivo: y(t) = (h*x)(t): sale da 0 con pendenza 1 fino a (1−e^{−2})/2 ≈ 0,432 in t = 1, resta costante fino a t = 2, poi scende a 0 in t = 3; vale 0 fuori da [0, 3]

Typical mistakes: using the wrong limits in the middle region (writing (0,t)(0,t) for all 0<t<20<t<2 gives 1−e−2t2\frac{1-e^{-2t}}{2}, which keeps rising towards 12\frac12 instead of staying flat at 1−e−22\frac{1-e^{-2}}{2}); forgetting that the third piece has a different integrand limit (τ≤2\tau\le2, not τ≤t\tau\le t); leaving the answer as a single formula without the pieces.

Point 3. Area. Exchange the order of integration (valid because x,h∈L1x,h\in L^1, see Continuous-Time Convolutioncontinuous-time impulse response and the convolution integral for LTI systems, conditions for its existence in L1 and L2, its properties and the step response of the first-order system h(t) = e^{-gamma t} 1(t).Continuous-Time Convolution →): ∫−∞+∞y(t) dt=∫−∞+∞x(τ)(∫−∞+∞h(t−τ) dt)dτ=(∫x)(∫h)=2⋅1−e−22=1−e−2≈0.865.\int_{-\infty}^{+\infty}y(t)\,dt=\int_{-\infty}^{+\infty}x(\tau)\left(\int_{-\infty}^{+\infty}h(t-\tau)\,dt\right)d\tau=\left(\int x\right)\left(\int h\right)=2\cdot\frac{1-e^{-2}}{2}=1-e^{-2}\approx0.865. This is also Y(0)=H(0)X(0)\mathcal Y(0)=\mathcal H(0)\mathcal X(0) in the frequency domain (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 →). Integrating the pieces directly gives the same number: ∫011−e−2t2dt=12−1−e−24,∫121−e−22dt=1−e−22,∫23e−2(t−2)−e−22dt=1−e−24−e−22,\int_0^1\frac{1-e^{-2t}}{2}dt=\frac12-\frac{1-e^{-2}}{4},\qquad\int_1^2\frac{1-e^{-2}}{2}dt=\frac{1-e^{-2}}{2},\qquad\int_2^3\frac{e^{-2(t-2)}-e^{-2}}{2}dt=\frac{1-e^{-2}}{4}-\frac{e^{-2}}{2}, and the sum is 12+1−e−22−e−22=1−e−2\frac12+\frac{1-e^{-2}}{2}-\frac{e^{-2}}{2}=1-e^{-2}. The two methods agree.

Maximum. On (0,1)(0,1) the first piece has derivative e−2t>0e^{-2t}>0 (increasing); on [1,2][1,2] yy is constant; on (2,3)(2,3) the derivative is −e−2(t−2)<0-e^{-2(t-2)}<0 (decreasing). So the maximum is 1−e−22≈0.432\frac{1-e^{-2}}{2}\approx0.432, attained on the whole interval [1,2][1,2]. It coincides with ∫h\int h: when the whole hh lies where x≡1x\equiv1, the output is just the area of hh.

Point 4. The derivative of the rectangle: xx jumps from 00 to 11 at t=0t=0 (contributing +δ(t)+\delta(t)) and from 11 to 00 at t=2t=2 (contributing −δ(t−2)-\delta(t-2)), and it is constant in between (Continuous-Time Unit Step and Dirac Impulsethe continuous unit step and the Dirac impulse defined as a generalized function through the sifting property, three constructions as limits (rectangular, Gaussian, sinc), the convergence theorem for continuous signals and the properties of the impulse.Continuous-Time Unit Step and Dirac Impulse →, Derivatives of the Dirac Impulsethe unit doublet and higher-order derivatives of the Dirac impulse defined through integration by parts, the product formula between a derivative of the impulse and a signal, and worked exercises on derivatives of discontinuous signals.Derivatives of the Dirac Impulse →): x′(t)=δ(t)−δ(t−2).x'(t)=\delta(t)-\delta(t-2). Convolution commutes with differentiation, (h∗x)′=h∗x′(h*x)'=h*x', and the Dirac impulse is the neutral element, h∗δ(⋅−t0)=h(⋅−t0)h*\delta(\cdot-t_0)=h(\cdot-t_0): y′(t)=h∗[δ(t)−δ(t−2)]=h(t)−h(t−2).y'(t)=h*\bigl[\delta(t)-\delta(t-2)\bigr]=h(t)-h(t-2). Compare with the pieces: on (0,1)(0,1) only h(t)=e−2th(t)=e^{-2t} is non-zero, and ddt1−e−2t2=e−2t\frac{d}{dt}\frac{1-e^{-2t}}{2}=e^{-2t} ✓; on (1,2)(1,2) both h(t)h(t) and h(t−2)h(t-2) vanish, and the plateau has zero derivative ✓; on (2,3)(2,3) only −h(t−2)=−e−2(t−2)-h(t-2)=-e^{-2(t-2)} survives, and ddte−2(t−2)−e−22=−e−2(t−2)\frac{d}{dt}\frac{e^{-2(t-2)}-e^{-2}}{2}=-e^{-2(t-2)} ✓. As yy is continuous, y′y' has no Dirac impulses, consistent with the absence of impulses in h(t)−h(t−2)h(t)-h(t-2) (the jumps of h(t)h(t) at t=0,1t=0,1 and of h(t−2)h(t-2) at t=2,3t=2,3 are jumps of y′y', not impulses).

Another check. Since x=1(t)−1(t−2)x=\mathbb 1(t)-\mathbb 1(t-2), y(t)=s(t)−s(t−2)y(t)=s(t)-s(t-2) with ss the step response of S\mathcal S: s(t)=1−e−2t2s(t)=\frac{1-e^{-2t}}{2} for 0<t<10<t<1 and 1−e−22\frac{1-e^{-2}}{2} for t≥1t\ge1. Subtracting the copy delayed by 22 gives exactly the three pieces above.

Exercise 2 (points 7)

Exercise 2: Fourier transform. Consider the signal x(t)=sinc⁡(t)cos⁡(3πt).x(t)=\operatorname{sinc}(t)\cos(3\pi t).

  1. Compute the Fourier transform X(jω)\mathcal X(j\omega) of xx using the properties of the transform, and sketch X\mathcal X. Say whether xx is real and/or even, whether X\mathcal X is real and/or even, and whether xx is band-limited; if so, find ωM\omega_M and the band of xx.
  2. Compute the energy ExE_x of xx using Parseval's relation, and check the value in the time domain.
  3. Let y(t)=ddt x(t−1)y(t)=\dfrac{d}{dt}\,x(t-1). Compute Y(jω)\mathcal Y(j\omega), its modulus and phase, the integral ∫−∞+∞y(t) dt\int_{-\infty}^{+\infty}y(t)\,dt and the energy EyE_y.
  4. Find the signal w(t)w(t) whose Fourier transform is W(jω)=x(ω)=sinc⁡(ω)cos⁡(3πω)\mathcal W(j\omega)=x(\omega)=\operatorname{sinc}(\omega)\cos(3\pi\omega).
Show the result
  1. X(jω)=12[rect⁡ ⁣(ω−3π2π)+rect⁡ ⁣(ω+3π2π)]\mathcal X(j\omega)=\frac12\left[\operatorname{rect}\!\left(\frac{\omega-3\pi}{2\pi}\right)+\operatorname{rect}\!\left(\frac{\omega+3\pi}{2\pi}\right)\right]: equal to 12\frac12 for 2π<∣ω∣<4π2\pi<\lvert\omega\rvert<4\pi, 00 elsewhere. xx is real and even, X\mathcal X is real and even. xx is band-limited with ωM=4π\omega_M=4\pi rad/s (fM=2f_M=2 Hz); band [2π,4π][2\pi,4\pi] (a band-pass signal).
  2. Ex=12E_x=\frac12.
  3. Y(jω)=jω e−jω X(jω)\mathcal Y(j\omega)=j\omega\,e^{-j\omega}\,\mathcal X(j\omega); ∣Y∣=∣ω∣2\lvert\mathcal Y\rvert=\frac{\lvert\omega\rvert}{2} for 2π<∣ω∣<4π2\pi<\lvert\omega\rvert<4\pi (and 00 elsewhere); ∠Y=π2−ω\angle\mathcal Y=\frac\pi2-\omega for ω>0\omega>0 and −π2−ω-\frac\pi2-\omega for ω<0\omega<0 (inside the band). ∫y dt=Y(0)=0\int y\,dt=\mathcal Y(0)=0. Ey=14π23≈46.06E_y=\frac{14\pi^2}{3}\approx46.06.
  4. w(t)=14π[rect⁡ ⁣(t−3π2π)+rect⁡ ⁣(t+3π2π)]w(t)=\dfrac{1}{4\pi}\left[\operatorname{rect}\!\left(\dfrac{t-3\pi}{2\pi}\right)+\operatorname{rect}\!\left(\dfrac{t+3\pi}{2\pi}\right)\right].
Show the full solution

Point 1. From 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 →, F[sinc⁡(t)]=rect⁡ ⁣(ω2π)\mathcal F[\operatorname{sinc}(t)]=\operatorname{rect}\!\left(\frac{\omega}{2\pi}\right) (the rectangle has width 2π2\pi in ω\omega). Write the cosine with Euler's formula, cos⁡(3πt)=12(ej3πt+e−j3πt)\cos(3\pi t)=\frac12\left(e^{j3\pi t}+e^{-j3\pi t}\right), and use the modulation property (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 →): F[x0(t)ejω0t]=X0(j(ω−ω0))\mathcal F[x_0(t)e^{j\omega_0t}]=\mathcal X_0(j(\omega-\omega_0)), which shifts the spectrum. With x0=sinc⁡x_0=\operatorname{sinc} and ω0=±3π\omega_0=\pm3\pi: X(jω)=12[rect⁡ ⁣(ω−3π2π)+rect⁡ ⁣(ω+3π2π)].\mathcal X(j\omega)=\frac12\left[\operatorname{rect}\!\left(\frac{\omega-3\pi}{2\pi}\right)+\operatorname{rect}\!\left(\frac{\omega+3\pi}{2\pi}\right)\right]. The first rectangle is 11 when ∣ω−3π∣<π\lvert\omega-3\pi\rvert<\pi, i.e. 2π<ω<4π2\pi<\omega<4\pi; the second is 11 for −4π<ω<−2π-4\pi<\omega<-2\pi. They do not overlap (there is a gap (−2π,2π)(-2\pi,2\pi) between them), so X\mathcal X is a pair of blocks of height 12\frac12. (At the four edges the transform takes the midpoint value 14\frac14.)

Grafico interattivo: X(jω): due blocchi di altezza 1/2 sulle bande 2π < |ω| < 4π (reale e pari); nulla per |ω| > 4π e nella zona centrale |ω| < 2π

Symmetries (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 →): xx is the product of two real even signals, so it is real and even; consequently X\mathcal X is real and even, as the figure shows. Band: X(jω)=0\mathcal X(j\omega)=0 for ∣ω∣>4π\lvert\omega\rvert>4\pi, so xx is band-limited, with ωM=sup⁡{ω:X(jω)≠0}=4π\omega_M=\sup\{\omega:\mathcal X(j\omega)\neq0\}=4\pi rad/s, i.e. fM=2f_M=2 Hz; the band is [2π,4π][2\pi,4\pi] on the positive axis (the signal has no low-frequency content, it is band-pass). Note that sinc⁡∉L1\operatorname{sinc}\notin L^1, so the pair above holds in the L2L^2 sense (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 →); the properties used are valid anyway.

Typical mistakes: centring the rectangles at ±3\pm3 instead of ±3π\pm3\pi; forgetting the factor 12\frac12 coming from cos⁡\cos (the amplitude would be 11); writing the width of the rectangle as 11 instead of 2π2\pi.

Point 2. Parseval's relation in ω\omega (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 →, Energy and Power of SignalsEnergy and average power of continuous- and discrete-time signals over finite and infinite horizons, finite-energy signals, mutual energy as a scalar product, and the Lebesgue spaces L2 and l2 of finite-energy signals.Energy and Power of Signals →): Ex=12π∫−∞+∞∣X(jω)∣2dωE_x=\frac1{2\pi}\int_{-\infty}^{+\infty}\lvert\mathcal X(j\omega)\rvert^2d\omega. The integrand is 14\frac14 on two intervals of length 2π2\pi: Ex=12π⋅14⋅(2π+2π)=12.E_x=\frac1{2\pi}\cdot\frac14\cdot(2\pi+2\pi)=\frac12. Check in time. x2(t)=sinc⁡2(t)cos⁡2(3πt)=12sinc⁡2(t)[1+cos⁡(6πt)]x^2(t)=\operatorname{sinc}^2(t)\cos^2(3\pi t)=\frac12\operatorname{sinc}^2(t)\bigl[1+\cos(6\pi t)\bigr], so Ex=12∫sinc⁡2(t) dt+12∫sinc⁡2(t)cos⁡(6πt) dt.E_x=\frac12\int\operatorname{sinc}^2(t)\,dt+\frac12\int\operatorname{sinc}^2(t)\cos(6\pi t)\,dt. The first integral is the energy of the sinc: by Parseval, 12π∫rect⁡2 ⁣(ω2π)dω=2π2π=1\frac1{2\pi}\int\operatorname{rect}^2\!\left(\frac{\omega}{2\pi}\right)d\omega=\frac{2\pi}{2\pi}=1, which gives 12\frac12. The second integral is the transform of sinc⁡2\operatorname{sinc}^2 evaluated at the frequency f=3f=3 Hz (the integral of z(t)cos⁡(2πf0t)z(t)\cos(2\pi f_0t) is Z(f0)Z(f_0) for even real zz); since F[sinc⁡2(t)]=Λ(f)\mathcal F[\operatorname{sinc}^2(t)]=\Lambda(f) is zero for ∣f∣>1\lvert f\rvert>1, it is 00. Total: Ex=12+0=12E_x=\frac12+0=\frac12 ✓. Typical mistake: forgetting the factor 12π\frac1{2\pi} and obtaining Ex=πE_x=\pi.

Point 3. A delay gives x(t−1)↔e−jωX(jω)x(t-1)\leftrightarrow e^{-j\omega}\mathcal X(j\omega) and the derivative gives a factor jωj\omega (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 →). The two operations commute, so Y(jω)=jω e−jω X(jω).\mathcal Y(j\omega)=j\omega\,e^{-j\omega}\,\mathcal X(j\omega). Modulus: ∣Y∣=∣ω∣ ∣X∣=∣ω∣2\lvert\mathcal Y\rvert=\lvert\omega\rvert\,\lvert\mathcal X\rvert=\frac{\lvert\omega\rvert}{2} in the band 2π<∣ω∣<4π2\pi<\lvert\omega\rvert<4\pi (it grows linearly from π\pi at ω=2π\omega=2\pi to 2π2\pi at ω=4π\omega=4\pi, and is even). Phase: for ω>0\omega>0, jω=∣ω∣ejπ/2j\omega=\lvert\omega\rvert e^{j\pi/2}, so ∠Y=π2−ω\angle\mathcal Y=\frac\pi2-\omega (the term −ω-\omega is the delay); for ω<0\omega<0, jω=∣ω∣e−jπ/2j\omega=\lvert\omega\rvert e^{-j\pi/2}, so ∠Y=−π2−ω\angle\mathcal Y=-\frac\pi2-\omega. The phase is odd, as it must be for a real signal yy (Hermitian symmetry).

Integral. ∫y dt=Y(0)=0\int y\,dt=\mathcal Y(0)=0, because X(0)=0\mathcal X(0)=0 (00 is not in the band). It agrees with ∫y dt=x(+∞)−x(−∞)=0\int y\,dt=x(+\infty)-x(-\infty)=0.

Energy. The delay changes only the phase, the derivative multiplies the modulus by ∣ω∣\lvert\omega\rvert: Ey=12π∫ω2∣X∣2dω=12π⋅2∫2π4πω24 dω=14π[ω33]2π4π=14π⋅64π3−8π33=14π23≈46.06.E_y=\frac1{2\pi}\int\omega^2\lvert\mathcal X\rvert^2d\omega=\frac1{2\pi}\cdot2\int_{2\pi}^{4\pi}\frac{\omega^2}{4}\,d\omega=\frac1{4\pi}\left[\frac{\omega^3}{3}\right]_{2\pi}^{4\pi}=\frac1{4\pi}\cdot\frac{64\pi^3-8\pi^3}{3}=\frac{14\pi^2}{3}\approx46.06. Typical mistakes: writing ∣Y∣=∣X∣\lvert\mathcal Y\rvert=\lvert\mathcal X\rvert (the derivative is not an all-pass operation); forgetting the phase term −ω-\omega of the delay; forgetting the factor 22 from the two symmetric bands.

Point 4. Use duality (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 →): F[X(jt)]=2π x(−ω)\mathcal F[\mathcal X(jt)]=2\pi\,x(-\omega). We want W(jω)=x(ω)\mathcal W(j\omega)=x(\omega) and xx is even, so x(ω)=x(−ω)x(\omega)=x(-\omega) and w(t)=12π X(jt)=14π[rect⁡ ⁣(t−3π2π)+rect⁡ ⁣(t+3π2π)]:w(t)=\frac{1}{2\pi}\,\mathcal X(jt)=\frac1{4\pi}\left[\operatorname{rect}\!\left(\frac{t-3\pi}{2\pi}\right)+\operatorname{rect}\!\left(\frac{t+3\pi}{2\pi}\right)\right]: two rectangles of height 14π\frac1{4\pi} and width 2π2\pi, centred in t=±3πt=\pm3\pi. Check: W(0)=∫w dt=14π(2π+2π)=1=x(0)\mathcal W(0)=\int w\,dt=\frac1{4\pi}(2\pi+2\pi)=1=x(0) ✓. Typical mistake: forgetting the factor 12π\frac1{2\pi} that the duality introduces.

Exercise 3 (points 7)

Exercise 3: Sampling. Let x(t)=6sinc⁡2(3t)x(t)=6\operatorname{sinc}^2(3t) (tt in seconds). The sampling is ideal (impulse train): xp(t)=∑nx(nTs) δ(t−nTs)x_p(t)=\sum_nx(nT_s)\,\delta(t-nT_s), with fs=1/Tsf_s=1/T_s.

  1. Compute the Fourier transform X(f)X(f) of xx and sketch it. Is xx band-limited? Give fMf_M and the values of fsf_s for which xx can be perfectly reconstructed from its samples.
  2. Let fs=8f_s=8 Hz. Write and sketch the spectrum Xp(f)X_p(f) of the sampled signal; explain why there is no aliasing. Design the ideal low-pass reconstruction filter (gain and range of the cut-off fcf_c) and, for fc=4f_c=4 Hz, write its impulse response hr(t)h_r(t).
  3. Now let fs=5f_s=5 Hz, with no anti-aliasing filter, and reconstruct with an ideal low-pass filter of gain TsT_s and cut-off fs/2f_s/2. Compute Xp(f)X_p(f) for 2≤f≤32\le f\le3 and the spectrum Xr(f)X_r(f) of the reconstructed signal xrx_r for ∣f∣<2.5\lvert f\rvert<2.5. Is xr=xx_r=x? Compute the energy of the error e=xr−xe=x_r-x.
  4. The signal s(t)=cos⁡ ⁣(14πt+π3)s(t)=\cos\!\left(14\pi t+\frac\pi3\right) is sampled with fs=10f_s=10 Hz and reconstructed with the ideal low-pass filter of gain TsT_s and cut-off 55 Hz. Find the reconstructed signal sr(t)s_r(t).
Show the result
  1. X(f)=2Λ ⁣(f3)X(f)=2\Lambda\!\left(\frac f3\right): a triangle of height 22 supported on ∣f∣<3\lvert f\rvert<3. Band-limited, fM=3f_M=3 Hz (ωM=6π\omega_M=6\pi rad/s). Perfect reconstruction for fs>6f_s>6 Hz.
  2. Xp(f)=8∑nX(f−8n)=16∑nΛ ⁣(f−8n3)X_p(f)=8\sum_nX(f-8n)=16\sum_n\Lambda\!\left(\frac{f-8n}{3}\right): triangles of height 1616 centred in 8n8n and supported on [8n−3,8n+3][8n-3,8n+3], no overlap. Filter: gain Ts=18T_s=\frac18, 3<fc<53<f_c<5 Hz; for fc=4f_c=4 Hz hr(t)=sinc⁡(8t)h_r(t)=\operatorname{sinc}(8t), and xr=xx_r=x.
  3. Xp(f)=103X_p(f)=\frac{10}{3} (constant) for 2≤∣f∣≤32\le\lvert f\rvert\le3. Xr(f)=2(1−∣f∣3)X_r(f)=2\left(1-\frac{\lvert f\rvert}{3}\right) for ∣f∣<2\lvert f\rvert<2, Xr(f)=23X_r(f)=\frac23 for 2≤∣f∣<2.52\le\lvert f\rvert<2.5, 00 otherwise. xr≠xx_r\ne x. Error energy Ee=227≈0.0741E_e=\frac{2}{27}\approx0.0741.
  4. sr(t)=cos⁡ ⁣(6πt−π3)s_r(t)=\cos\!\left(6\pi t-\frac\pi3\right) (alias at 33 Hz, with the phase sign changed).
Show the full solution

Point 1. The pair sinc⁡2(t)↔Λ(f)\operatorname{sinc}^2(t)\leftrightarrow\Lambda(f) comes from sinc⁡(t)↔rect⁡(f)\operatorname{sinc}(t)\leftrightarrow\operatorname{rect}(f) and the product theorem: rect⁡∗rect⁡=Λ\operatorname{rect}*\operatorname{rect}=\Lambda (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 →, Exercise 2 of that note). Rescaling by 33 (x(at)↔1∣a∣X(f/a)x(at)\leftrightarrow\frac1{\lvert a\rvert}X(f/a)): sinc⁡2(3t) ↔ 13Λ ⁣(f3)⟹X(f)=6⋅13Λ ⁣(f3)=2Λ ⁣(f3).\operatorname{sinc}^2(3t)\ \leftrightarrow\ \frac13\Lambda\!\left(\frac f3\right)\quad\Longrightarrow\quad X(f)=6\cdot\frac13\Lambda\!\left(\frac f3\right)=2\Lambda\!\left(\frac f3\right). Check: x(0)=6=∫X(f) df=12⋅6⋅2x(0)=6=\int X(f)\,df=\frac12\cdot6\cdot2 (area of a triangle of base 66 and height 22) ✓.

Grafico interattivo: X(f) = 2Λ(f/3): triangolo di altezza 2 e base 6 Hz (|f| < 3)

XX vanishes for ∣f∣≥3\lvert f\rvert\ge3 Hz, so xx is band-limited with fM=3f_M=3 Hz. The sampling theorem (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 →) requires fs>2fM=6f_s>2f_M=6 Hz, i.e. Ts<16T_s<\frac16 s (strict inequality). Typical mistake: using the null-to-null width 66 as if it were fMf_M (the Nyquist rate is 2fM=62f_M=6 Hz, not 1212 Hz).

Point 2. Ideal sampling replicates the spectrum, Xp(f)=1Ts∑nX(f−nfs)=fs∑nX(f−nfs)X_p(f)=\frac1{T_s}\sum_nX(f-nf_s)=f_s\sum_nX(f-nf_s) (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 →; the same result in ω\omega is 1Ts∑X(j(ω−nωs))\frac1{T_s}\sum X(j(\omega-n\omega_s))). With fs=8f_s=8: Xp(f)=8∑n2Λ ⁣(f−8n3)=16∑nΛ ⁣(f−8n3).X_p(f)=8\sum_{n}2\Lambda\!\left(\frac{f-8n}{3}\right)=16\sum_n\Lambda\!\left(\frac{f-8n}{3}\right).

Grafico interattivo: X_p(f) per f_s = 8 Hz: triangoli di altezza 16 centrati in 8n, con base da 8n−3 a 8n+3; tra un triangolo e il successivo resta uno spazio libero di 2 Hz (da 3 a 5): nessuna sovrapposizione

The central triangle occupies [−3,3][-3,3] and the first replica [5,11][5,11]: there is a free gap (3,5)(3,5), so the replicas do not overlap (the condition is fs−fM=5>fM=3f_s-f_M=5>f_M=3) and there is no aliasing. To isolate the central replica and bring it back to the height of XX, use an ideal low-pass filter Hr(f)=Tsrect⁡ ⁣(f2fc),Ts=18,fM=3<fc<fs−fM=5 Hz.H_r(f)=T_s\operatorname{rect}\!\left(\frac{f}{2f_c}\right),\qquad T_s=\frac18,\qquad f_M=3<f_c<f_s-f_M=5\ \text{Hz}. The gain TsT_s compensates the factor 1Ts\frac1{T_s} of the replicas. The best choice is the middle of the range, fc=fs2=4f_c=\frac{f_s}{2}=4 Hz. Its impulse response is the inverse transform of the rectangle (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 →): Ts⋅2fcsinc⁡(2fct)T_s\cdot2f_c\operatorname{sinc}(2f_ct), that is, for fc=4f_c=4, hr(t)=18⋅8sinc⁡(8t)=sinc⁡(8t)=sinc⁡ ⁣(tTs).h_r(t)=\frac18\cdot8\operatorname{sinc}(8t)=\operatorname{sinc}(8t)=\operatorname{sinc}\!\left(\frac{t}{T_s}\right). Then Xr=HrXp=XX_r=H_rX_p=X and xr=xx_r=x: it is the Shannon interpolation x(t)=∑nx(nTs)sinc⁡ ⁣(t−nTsTs)x(t)=\sum_nx(nT_s)\operatorname{sinc}\!\left(\frac{t-nT_s}{T_s}\right). Typical mistakes: forgetting the replica height fsf_s (writing 22 instead of 1616); choosing fc>5f_c>5 Hz, which lets the first replica through.

Point 3. With fs=5f_s=5 Hz the replicas are Xp(f)=5∑n2Λ ⁣(f−5n3)=10∑nΛ ⁣(f−5n3)X_p(f)=5\sum_n2\Lambda\!\left(\frac{f-5n}{3}\right)=10\sum_n\Lambda\!\left(\frac{f-5n}{3}\right). The central triangle (up to 33) and the replica centred in 55 (from 22) overlap in [2,3][2,3]: aliasing, since fs=5<2fM=6f_s=5<2f_M=6. In 2≤f≤32\le f\le3 only these two triangles are non-zero: Xp(f)=10[(1−f3)+(1−5−f3)]=10⋅(3−f)+(f−2)3=103,X_p(f)=10\left[\left(1-\frac f3\right)+\left(1-\frac{5-f}{3}\right)\right]=10\cdot\frac{(3-f)+(f-2)}{3}=\frac{10}{3}, a constant (the two descending and ascending edges add up exactly). By evenness the same holds in [−3,−2][-3,-2].

Grafico interattivo: X_p(f) per f_s = 5 Hz: i triangoli (altezza 10, base 6) centrati in 5n si sovrappongono; nelle zone 2 ≤ |f| ≤ 3 la somma vale esattamente 10/3, il picco in f = 0 resta 10

The filter of gain Ts=15T_s=\frac15 and cut-off 2.52.5 Hz keeps ∣f∣<2.5\lvert f\rvert<2.5 and divides by 55: Xr=15XpX_r=\frac15X_p there. For ∣f∣<2\lvert f\rvert<2 the replicas do not reach (they start at 22), so Xr(f)=X(f)=2(1−∣f∣3)X_r(f)=X(f)=2\left(1-\frac{\lvert f\rvert}{3}\right); for 2≤∣f∣<2.52\le\lvert f\rvert<2.5, Xr=15⋅103=23X_r=\frac15\cdot\frac{10}{3}=\frac23. Hence xr≠xx_r\ne x: in 2≤∣f∣<2.52\le\lvert f\rvert<2.5 the spectrum is wrong (for instance at f=2.4f=2.4 Hz, Xr=23≈0.667X_r=\frac23\approx0.667 while X=25X=\frac25) and the part 2.5<∣f∣<32.5<\lvert f\rvert<3 is lost.

Error energy. E(f)=Xr(f)−X(f)E(f)=X_r(f)-X(f) is: 00 for ∣f∣<2\lvert f\rvert<2; for 2≤f<2.52\le f<2.5, E=23−2(1−f3)=2(f−2)3E=\frac23-2\left(1-\frac f3\right)=\frac{2(f-2)}{3} (from 00 up to 13\frac13); for 2.5≤f<32.5\le f<3, E=−X(f)=−2(3−f)3E=-X(f)=-\frac{2(3-f)}{3} (from −13-\frac13 back to 00); the same on the negative side. By Plancherel, ∫∣e∣2dt=∫∣E∣2df\int\lvert e\rvert^2dt=\int\lvert E\rvert^2df (no 2π2\pi in ff): Ee=2[∫22.54(f−2)29df+∫2.534(3−f)29df]=2[49⋅(0.5)33+49⋅(0.5)33]=227≈0.0741.E_e=2\left[\int_2^{2.5}\frac{4(f-2)^2}{9}df+\int_{2.5}^3\frac{4(3-f)^2}{9}df\right]=2\left[\frac49\cdot\frac{(0.5)^3}{3}+\frac49\cdot\frac{(0.5)^3}{3}\right]=\frac{2}{27}\approx0.0741. Typical mistakes: forgetting the gain TsT_s (spectrum five times too large); thinking that aliasing only affects the band where the replicas overlap (the filter also cuts 2.5<∣f∣<32.5<\lvert f\rvert<3, which is lost for good); adding the energies of XrX_r and XX instead of using the difference.

Point 4. Spectrum of the sinusoid: S(f)=12[ejπ/3δ(f−7)+e−jπ/3δ(f+7)]S(f)=\frac12\left[e^{j\pi/3}\delta(f-7)+e^{-j\pi/3}\delta(f+7)\right], with f0=7f_0=7 Hz >fs2=5>\frac{f_s}{2}=5 Hz: the sampling theorem is violated (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 →). The replicas Sp(f)=10∑nS(f−10n)S_p(f)=10\sum_nS(f-10n) have lines at ±7+10n\pm7+10n; those falling in ∣f∣<5\lvert f\rvert<5 are:

  • from δ(f−7)\delta(f-7) with n=1n=1: a line at f=−3f=-3 with weight 12ejπ/3\frac12e^{j\pi/3};
  • from δ(f+7)\delta(f+7) with n=−1n=-1: a line at f=+3f=+3 with weight 12e−jπ/3\frac12e^{-j\pi/3}.

The lines at ±7\pm7 (and at ±13,…\pm13,\dots) are outside the filter. After the gain Ts=110T_s=\frac1{10}: Sr(f)=12[e−jπ/3δ(f−3)+ejπ/3δ(f+3)] ⇒ sr(t)=cos⁡ ⁣(6πt−π3).S_r(f)=\frac12\left[e^{-j\pi/3}\delta(f-3)+e^{j\pi/3}\delta(f+3)\right]\ \Rightarrow\ s_r(t)=\cos\!\left(6\pi t-\frac\pi3\right). Check on the samples: cos⁡ ⁣(2π⋅7⋅n10+π3)=cos⁡ ⁣(2πn−2π3n10+π3)=cos⁡ ⁣(2π3n10−π3)\cos\!\left(2\pi\cdot7\cdot\frac n{10}+\frac\pi3\right)=\cos\!\left(2\pi n-2\pi\frac{3n}{10}+\frac\pi3\right)=\cos\!\left(2\pi\frac{3n}{10}-\frac\pi3\right), which are exactly the samples of cos⁡(6πt−π3)\cos(6\pi t-\frac\pi3) at t=n10t=\frac n{10}. The alias frequency is ∣7−10∣=3\lvert7-10\rvert=3 Hz and the sign of the phase is reversed (mirror image around fs2\frac{f_s}{2}). Typical mistake: answering cos⁡ ⁣(6πt+π3)\cos\!\left(6\pi t+\frac\pi3\right) (the frequency is found but the phase is not).

Theory 1 (points 4)

Parseval's relation for the Fourier transform.

  1. State Parseval's relation (Plancherel theorem) for the Fourier transform, in its energy form and in its general form for two signals, with the hypotheses.
  2. Prove the general form for two signals x,y∈L1(R)∩L2(R)x,y\in L^1(\mathbb R)\cap L^2(\mathbb R) whose transforms are in L1L^1 and which are continuous, and deduce the energy form.
  3. Give the physical meaning of the relation and show how it is used to compute the energy of a signal in a frequency band.
Show the result
  1. Statement. For x,y∈L1(R)∩L2(R)x,y\in L^1(\mathbb R)\cap L^2(\mathbb R) with transforms X,Y\mathcal X,\mathcal Y: ∫−∞+∞x(t) y(t)‾ dt=12π∫−∞+∞X(jω) Y(jω)‾ dω,and for y=x:Ex=∫∣x∣2dt=12π∫∣X(jω)∣2dω.\int_{-\infty}^{+\infty}x(t)\,\overline{y(t)}\,dt=\frac1{2\pi}\int_{-\infty}^{+\infty}\mathcal X(j\omega)\,\overline{\mathcal Y(j\omega)}\,d\omega,\qquad\text{and for }y=x:\quad E_x=\int\lvert x\rvert^2dt=\frac1{2\pi}\int\lvert\mathcal X(j\omega)\rvert^2d\omega.
  2. Key steps. Write y(t)‾\overline{y(t)} with the inverse transform, exchange the two integrals (Fubini), recognise X(jω)\mathcal X(j\omega) in the inner integral.
  3. ∣X(jω)∣2\lvert\mathcal X(j\omega)\rvert^2 is the energy spectral density: the energy in a band is 12π∫band∣X∣2dω\frac1{2\pi}\int_{\text{band}}\lvert\mathcal X\rvert^2d\omega (both positive and negative frequencies); in ff the factor 12π\frac1{2\pi} disappears.
Show the full solution

1. Statement. (See 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 → and Energy and Power of SignalsEnergy and average power of continuous- and discrete-time signals over finite and infinite horizons, finite-energy signals, mutual energy as a scalar product, and the Lebesgue spaces L2 and l2 of finite-energy signals.Energy and Power of Signals →.) If x∈L1(R)∩L2(R)x\in L^1(\mathbb R)\cap L^2(\mathbb R), then X∈L2(R)\mathcal X\in L^2(\mathbb R) and Ex=∫−∞+∞∣x(t)∣2dt=12π∫−∞+∞∣X(jω)∣2dω.E_x=\int_{-\infty}^{+\infty}\lvert x(t)\rvert^2dt=\frac1{2\pi}\int_{-\infty}^{+\infty}\lvert\mathcal X(j\omega)\rvert^2d\omega. In the frequency f=ω2πf=\frac\omega{2\pi} (dω=2π dfd\omega=2\pi\,df) the relation is ∫∣x∣2dt=∫∣X(f)∣2df\int\lvert x\rvert^2dt=\int\lvert X(f)\rvert^2df, with no constant. The extension to every x∈L2x\in L^2 is obtained by approximating xx with signals of L1∩L2L^1\cap L^2 (the transform of an L2L^2 signal is defined as the L2L^2 limit of the transforms of the approximations, see 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 →); the general form for two signals is the scalar product version, ⟨x,y⟩=12π⟨X,Y⟩\langle x,y\rangle=\frac1{2\pi}\langle\mathcal X,\mathcal Y\rangle (Hilbert SpacesA Hilbert space is a complete scalar-product space; C^N, l^2 and L^2(S) are Hilbert spaces, and the scalar product in l^2 and L^2 is what engineers call mutual energy.Hilbert Spaces →).

2. Proof. Let x,y∈L1∩L2x,y\in L^1\cap L^2, continuous, with Y∈L1\mathcal Y\in L^1. Then the inverse transform holds pointwise (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 →): y(t)=12π∫−∞+∞Y(jω) ejωtdω⇒y(t)‾=12π∫−∞+∞Y(jω)‾ e−jωtdω.y(t)=\frac1{2\pi}\int_{-\infty}^{+\infty}\mathcal Y(j\omega)\,e^{j\omega t}d\omega\quad\Rightarrow\quad\overline{y(t)}=\frac1{2\pi}\int_{-\infty}^{+\infty}\overline{\mathcal Y(j\omega)}\,e^{-j\omega t}d\omega. Substitute in the left-hand side: ∫−∞+∞x(t) y(t)‾ dt=∫−∞+∞x(t)[12π∫−∞+∞Y(jω)‾ e−jωtdω]dt.\int_{-\infty}^{+\infty}x(t)\,\overline{y(t)}\,dt=\int_{-\infty}^{+\infty}x(t)\left[\frac1{2\pi}\int_{-\infty}^{+\infty}\overline{\mathcal Y(j\omega)}\,e^{-j\omega t}d\omega\right]dt. The double integral of ∣x(t)∣ ∣Y(jω)∣\lvert x(t)\rvert\,\lvert\mathcal Y(j\omega)\rvert is ∥x∥1∥Y∥1<∞\lVert x\rVert_1\lVert\mathcal Y\rVert_1<\infty (because x∈L1x\in L^1 and Y∈L1\mathcal Y\in L^1), so Fubini's theorem allows exchanging the order: =12π∫−∞+∞Y(jω)‾[∫−∞+∞x(t) e−jωtdt]dω=12π∫−∞+∞X(jω) Y(jω)‾ dω. ■=\frac1{2\pi}\int_{-\infty}^{+\infty}\overline{\mathcal Y(j\omega)}\left[\int_{-\infty}^{+\infty}x(t)\,e^{-j\omega t}dt\right]d\omega=\frac1{2\pi}\int_{-\infty}^{+\infty}\mathcal X(j\omega)\,\overline{\mathcal Y(j\omega)}\,d\omega.\ \blacksquare The inner integral is, by definition, X(jω)\mathcal X(j\omega). Energy form: take y=xy=x, so that x x‾=∣x∣2x\,\overline{x}=\lvert x\rvert^2 and XX‾=∣X∣2\mathcal X\overline{\mathcal X}=\lvert\mathcal X\rvert^2. (If xx does not satisfy the extra hypotheses on Y=X\mathcal Y=\mathcal X, one applies the relation to the approximating signals and passes to the limit.)

3. Meaning and use. ExE_x is the total energy, and the relation says that it can be computed in either domain: ∣X(jω)∣2\lvert\mathcal X(j\omega)\rvert^2 is the energy spectral density (energy per unit of angular frequency, up to the factor 12π\frac1{2\pi}). The energy contained in a band BB (positive and negative frequencies together) is 12π∫B∣X∣2dω\frac1{2\pi}\int_B\lvert\mathcal X\rvert^2d\omega. Example with the signal of Exercise 2: X=12\mathcal X=\frac12 on 2π<∣ω∣<4π2\pi<\lvert\omega\rvert<4\pi, so Ex=12π⋅14⋅4π=12E_x=\frac1{2\pi}\cdot\frac14\cdot4\pi=\frac12, with no integral in time. The scalar-product form gives orthogonality in the time domain from disjoint spectra (two signals with non-overlapping supports of X\mathcal X and Y\mathcal Y are orthogonal: ∫xy‾ dt=0\int x\overline y\,dt=0), and, for example, that the translated sincs sinc⁡ ⁣(t−nTT)\operatorname{sinc}\!\left(\frac{t-nT}{T}\right) are mutually orthogonal (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 →). Typical mistakes: forgetting 12π\frac1{2\pi} when working in ω\omega (the energy of the sinc would come out as 2π2\pi instead of 11); integrating only over ω>0\omega>0 without doubling; applying the relation to signals that are not in L2L^2 (periodic signals have infinite energy: for them one uses the power and the 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 →).

Theory 2 (points 4)

The convolution theorem for the Fourier transform.

  1. State the convolution theorem for the Fourier transform of continuous-time signals, with its hypotheses.
  2. Prove it.
  3. Use it to show that a convolutional LTI system with impulse response h∈L1h\in L^1 acts as a multiplication in the frequency domain, and compute the response to ejω0te^{j\omega_0t}.
Show the result
  1. If v,w∈L1(R)v,w\in L^1(\mathbb R) then F[v∗w]=V(jω) W(jω)\mathcal F[v*w]=\mathcal V(j\omega)\,\mathcal W(j\omega).
  2. Proof by exchanging the order of the two integrals (Fubini, allowed because v,w∈L1v,w\in L^1) and the change of variable z=t−τz=t-\tau.
  3. y=h∗x⇒Y(jω)=H(jω)X(jω)y=h*x\Rightarrow\mathcal Y(j\omega)=\mathcal H(j\omega)\mathcal X(j\omega), with H=F[h]\mathcal H=\mathcal F[h] the frequency response; the response to ejω0te^{j\omega_0t} is H(jω0)ejω0t\mathcal H(j\omega_0)e^{j\omega_0t} (it is an eigenfunction).
Show the full solution

1. Statement. Let v(t),w(t)∈L1(R)v(t),w(t)\in L^1(\mathbb R) with transforms V(jω)\mathcal V(j\omega) and W(jω)\mathcal W(j\omega). Then v∗w∈L1(R)v*w\in L^1(\mathbb R) and F[v∗w](jω)=V(jω) W(jω).\mathcal F[v*w](j\omega)=\mathcal V(j\omega)\,\mathcal W(j\omega). The hypothesis L1L^1 guarantees that the convolution exists, that ∥v∗w∥1≤∥v∥1∥w∥1\lVert v*w\rVert_1\le\lVert v\rVert_1\lVert w\rVert_1 (Continuous-Time Convolutioncontinuous-time impulse response and the convolution integral for LTI systems, conditions for its existence in L1 and L2, its properties and the step response of the first-order system h(t) = e^{-gamma t} 1(t).Continuous-Time Convolution →) and that the integrals below can be exchanged.

2. Proof. By definition, F[v∗w](jω)=∫−∞+∞(∫−∞+∞v(t−τ) w(τ) dτ)e−jωtdt.\mathcal F[v*w](j\omega)=\int_{-\infty}^{+\infty}\left(\int_{-\infty}^{+\infty}v(t-\tau)\,w(\tau)\,d\tau\right)e^{-j\omega t}dt. The double integral of ∣v(t−τ)∣ ∣w(τ)∣\lvert v(t-\tau)\rvert\,\lvert w(\tau)\rvert equals ∥v∥1∥w∥1<∞\lVert v\rVert_1\lVert w\rVert_1<\infty, so by Fubini's theorem the order can be exchanged. Writing e−jωt=e−jω(t−τ)e−jωτe^{-j\omega t}=e^{-j\omega(t-\tau)}e^{-j\omega\tau}: =∫−∞+∞w(τ) e−jωτ(∫−∞+∞v(t−τ) e−jω(t−τ)dt)dτ.=\int_{-\infty}^{+\infty}w(\tau)\,e^{-j\omega\tau}\left(\int_{-\infty}^{+\infty}v(t-\tau)\,e^{-j\omega(t-\tau)}dt\right)d\tau. In the inner integral put z=t−τz=t-\tau, dz=dtdz=dt (for fixed τ\tau): it becomes ∫v(z)e−jωzdz=V(jω)\int v(z)e^{-j\omega z}dz=\mathcal V(j\omega), which does not depend on τ\tau and comes out: =V(jω)∫−∞+∞w(τ)e−jωτdτ=V(jω) W(jω). ■=\mathcal V(j\omega)\int_{-\infty}^{+\infty}w(\tau)e^{-j\omega\tau}d\tau=\mathcal V(j\omega)\,\mathcal W(j\omega).\ \blacksquare (See 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 →. The dual statement is F[v w]=12πV∗W\mathcal F[v\,w]=\frac1{2\pi}\mathcal V*\mathcal W, used for the sampling theorem.)

3. Consequences for LTI systems. For a convolutional LTI system y=h∗xy=h*x with h∈L1h\in L^1 (BIBO stable, 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 theorem gives Y(jω)=H(jω) X(jω),H(jω)=F[h] (frequency response).\mathcal Y(j\omega)=\mathcal H(j\omega)\,\mathcal X(j\omega),\qquad\mathcal H(j\omega)=\mathcal F[h]\ \text{(frequency response)}. Filtering becomes a multiplication: ∣Y∣=∣H∣∣X∣\lvert\mathcal Y\rvert=\lvert\mathcal H\rvert\lvert\mathcal X\rvert and ∠Y=∠H+∠X\angle\mathcal Y=\angle\mathcal H+\angle\mathcal X, and the cascade of two systems has frequency response H1H2\mathcal H_1\mathcal H_2 (and impulse response h1∗h2h_1*h_2) (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 →). For the input x(t)=ejω0tx(t)=e^{j\omega_0t}, directly from the convolution integral, y(t)=∫h(τ) ejω0(t−τ)dτ=ejω0t∫h(τ)e−jω0τdτ=H(jω0) ejω0t,y(t)=\int h(\tau)\,e^{j\omega_0(t-\tau)}d\tau=e^{j\omega_0t}\int h(\tau)e^{-j\omega_0\tau}d\tau=\mathcal H(j\omega_0)\,e^{j\omega_0t}, so complex exponentials are eigenfunctions with eigenvalue H(jω0)\mathcal H(j\omega_0) (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 →). Example: for the system of Exercise 1, ∫y dt=H(0)X(0)=1−e−22⋅2\int y\,dt=\mathcal H(0)\mathcal X(0)=\frac{1-e^{-2}}{2}\cdot2. Typical mistakes: applying the theorem to signals not in L1L^1 without comment (for sinusoids and constants one uses generalised transforms with Dirac impulses); confusing it with the product theorem, which carries the factor 12π\frac1{2\pi}.

Matlab 1 (points 3)

Matlab question: aliasing of a sampled sinusoid. Write a Matlab script that:

  1. generates the sinusoid x(t)=cos⁡(2πf0t)x(t)=\cos(2\pi f_0t) with f0=7f_0=7 Hz on the interval [0,T][0,T], T=4T=4 s, on a fine time grid (step 10−310^{-3} s), to represent the continuous-time signal;
  2. samples it with fs=20f_s=20 Hz and then with fs=10f_s=10 Hz, and for each case draws in one figure the continuous signal together with the samples (over the first second only);
  3. for each fsf_s computes the FFT of the samples and draws the modulus of the spectrum in a second figure, with a correct frequency axis in Hz, so that the position of the peaks can be read;
  4. compares, in the title and on screen, the frequency of the peak with the one predicted by the theory.
Show the result
  • fs=20f_s=20 Hz: N=80N=80 samples, frequency step fsN=0.25\frac{f_s}{N}=0.25 Hz; peaks of height 0.50.5 at ±7\pm7 Hz (no aliasing).
  • fs=10f_s=10 Hz: N=40N=40 samples, same step 0.250.25 Hz; peaks of height 0.50.5 at ±3\pm3 Hz: the apparent frequency is ∣f0−fs⋅round(f0/fs)∣=3\lvert f_0-f_s\cdot\mathrm{round}(f_0/f_s)\rvert=3 Hz (aliasing, 7>fs2=57>\frac{f_s}{2}=5).
  • Frequency axis: f = (-N/2 : N/2-1)*fs/N after fftshift, from −fs2-\frac{f_s}{2} to fs2−fsN\frac{f_s}{2}-\frac{f_s}{N}.
Show the full solution

Recall that for the samples xd(k)=x(kTs)x_d(k)=x(kT_s) the DFT is a sampled version of the spectrum of the signal, with frequency step fsN=1T\frac{f_s}{N}=\frac1T (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 →, Properties of the Discrete Fourier Transformthe DFT with its inverse, translation and modulation properties, the correspondence between cyclic convolution and product, Parseval's relation, and the example of a periodic rectangular pulse train whose DFT is a Dirichlet kernel.Properties of the Discrete Fourier Transform →). fft returns the unnormalised sum ∑kxd(k)e−j2πnk/N\sum_kx_d(k)e^{-j2\pi nk/N} with the frequencies in the order 0,…,N−10,\dots,N-1 (the last half corresponds to the negative frequencies): fftshift puts the zero frequency in the centre, and dividing by NN makes the height of the lines equal to the amplitude of the complex exponentials (0.50.5 for a unit cosine). Here f0T=28f_0T=28 is an integer number of periods and fsT=Nf_s T=N is an integer, so the lines fall exactly on FFT bins (no leakage, no need for zero-padding).

matlab
%% Aliasing of a sampled sinusoid, seen with the FFT
clear all; close all; clc;

%% 1. Parameters and "continuous" signal
f0 = 7;                  % frequency of the sinusoid [Hz]
T  = 4;                  % observation time [s]
fs_list = [20 10];       % sampling frequencies [Hz]: 20 > 2*f0, 10 < 2*f0

tc = 0 : 1e-3 : T;       % very fine time grid: only used to draw x(t)
xc = cos(2*pi*f0*tc);

for i = 1:numel(fs_list)
    fs = fs_list(i);     % sampling frequency
    Ts = 1/fs;           % sampling period
    N  = round(T*fs);    % number of samples in [0, T)
    k  = 0 : N-1;        % sample indices
    t  = k*Ts;           % sampling instants
    xs = cos(2*pi*f0*t); % samples x(k*Ts)

    %% 2. Time domain: signal and samples
    figure(2*i-1);
    plot(tc, xc, 'LineWidth', 1); hold on;
    stem(t, xs, 'filled');
    xlim([0 1]);                          % first second only
    xlabel('t [s]'); ylabel('x(t)'); grid on;
    title(sprintf('f_0 = %g Hz sampled at f_s = %g Hz', f0, fs));
    legend('x(t)', 'samples');

    %% 3. Frequency domain: FFT with a correct axis
    X = fftshift(fft(xs)) / N;            % zero frequency in the centre, normalised
    f = (-N/2 : N/2-1) * fs / N;          % axis in Hz, from -fs/2 to fs/2 - fs/N (N even)

    f_alias = abs(f0 - fs*round(f0/fs));  % predicted apparent frequency

    figure(2*i);
    stem(f, abs(X), 'filled'); grid on;
    xlabel('f [Hz]'); ylabel('|X|');
    title(sprintf('|FFT|, f_s = %g Hz: predicted peaks at +-%g Hz', fs, f_alias));

    %% 4. Peak found vs peak predicted
    fpos = f(f >= 0);
    [~, idx] = max(abs(X(f >= 0)));
    fprintf('fs = %g Hz: peak at %g Hz, predicted %g Hz\n', fs, fpos(idx), f_alias);
end

Expected output: for fs=20f_s=20 Hz the samples follow the cosine well (about three samples per period) and the spectrum has two lines of height 0.50.5 at ±7\pm7 Hz, inside the range [−10,9.75][-10,9.75]; for fs=10f_s=10 Hz the samples (less than 1.51.5 per period) lie on the slower cosine of 33 Hz, which in the first figure seems to pass through all of them, and the spectrum has the two lines at ±3\pm3 Hz: the line that "should" be at 77 Hz has been folded back by fsf_s, because 7−10=−37-10=-3. The theoretical value is printed by fprintf next to the measured one.

Typical mistakes: using fft without fftshift and then plotting against 0:N-1 (axis in bins, not in Hz, and negative frequencies shown on the right); building the axis with linspace(-fs/2, fs/2, N), which has NN points but the wrong step (fsN−1\frac{f_s}{N-1}, and the endpoint +fs2+\frac{f_s}{2} is not a bin); forgetting that the sampling frequency, not f0f_0, sets the width of the axis; drawing the "continuous" signal with the same coarse grid as the samples (the aliasing would not be seen, only a polygonal line).

Self-assessment grid
Exercise Points What must be there for full marks Typical mistakes
Exercise 1 7 Supports of xx, hh, yy and sketches (1 point); causality and stability judged on hh (0.5); correct integration window in the three regions and the three formulas for yy, with a continuity check (3); area as product of areas and maximum on the plateau (1.5); derivative with Dirac impulses and y′=h(t)−h(t−2)y'=h(t)-h(t-2) verified (1) Wrong limits of integration in the middle region; forgetting the plateau; judging stability from xx; no continuity check; wrong sign or position of the Dirac impulses
Exercise 2 7 X\mathcal X by modulation with the correct centres ±3π\pm3\pi, height 12\frac12, symmetries and band (2); Ex=12E_x=\frac12 with the 12π\frac1{2\pi} and the time-domain check (1.5); Y=jωe−jωX\mathcal Y=j\omega e^{-j\omega}\mathcal X with modulus, phase, ∫y=0\int y=0 and Ey=14π23E_y=\frac{14\pi^2}{3} (2.5); dual signal with the factor 12π\frac1{2\pi} (1) Centres at ±3\pm3 instead of ±3π\pm3\pi; missing factor 12\frac12; Ex=πE_x=\pi (no 12π\frac1{2\pi}); derivative treated as not changing the modulus; missing delay phase; factor 2π2\pi in the duality
Exercise 3 7 X(f)=2Λ(f/3)X(f)=2\Lambda(f/3) and fs>6f_s>6 Hz (1); XpX_p with height fs⋅2f_s\cdot2, gap between replicas, filter with gain TsT_s and 3<fc<53<f_c<5, hr=sinc⁡(8t)h_r=\operatorname{sinc}(8t) (2); overlap value 103\frac{10}{3}, XrX_r, xr≠xx_r\ne x and Ee=227E_e=\frac{2}{27} (2.5); alias at 33 Hz and phase −π3-\frac\pi3 (1.5) Replica height without the factor fsf_s; fc>5f_c>5 Hz; forgetting the gain TsT_s; Nyquist rate taken as 1212 Hz; alias with the wrong phase sign
Theory 1 4 Statement with hypotheses, energy form and two-signal form (1); proof with the inverse transform, Fubini and the inner integral recognised as X\mathcal X (2); meaning as energy spectral density and use for the energy in a band (1) Missing factor 12π\frac1{2\pi} in ω\omega; no justification of the exchange of integrals; forgetting the complex conjugate in the two-signal form; applying it to periodic signals (infinite energy)
Theory 2 4 Statement with the L1L^1 hypothesis (1); proof with Fubini and the change of variable z=t−τz=t-\tau (2); consequence Y=HX\mathcal Y=\mathcal H\mathcal X and eigenfunction property (1) Missing justification of the exchange of integrals; wrong change of variable; applying it to constants and sinusoids without generalised transforms; confusing with the product theorem (12π\frac1{2\pi})
Matlab 1 3 Fine grid and samples correct, time plot with stem (1); fft with fftshift, division by NN and axis in Hz from −fs2-\frac{f_s}{2} to fs2−fsN\frac{f_s}{2}-\frac{f_s}{N} (1.5); alias frequency predicted and compared with the peak (0.5) Axis in bins; fft without fftshift; wrong frequency step; continuous signal drawn on the coarse grid

Total: 32 points. Pass: at least 10 points in the three exercises and at least 5 in the two theory questions and the Matlab question together.