Signals and Systems - Exam of 10 February 2025
Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.
In questa pagina 7
Exam paper of Signals and Systems, second session (appello) of 10 February 2025 (academic year 2024-25, Engineering, UniPD). The course taught in English does not publish its exams, so this is the paper of the equivalent Italian-language Signals and Systems course of the Engineering degrees at the University of Padova, translated into English. Time: 2 hours 30 minutes; no documents allowed; the paper is solved on squared sheets, every answer must be justified and all calculations reported; when asked to plot a signal, find its support and draw its shape, even roughly. Points: three exercises of 7 points, two theory questions of 4 points and one Matlab question of 3 points. To pass, at least 10 points in the exercises and at least 5 between theory and Matlab are needed.
Conventions used in the paper (the same as in the notes): , for and for , , , and .
Exercise 1 (points 7)
Discrete-time LTI systems. Let and be two discrete-time LTI systems with impulse responses
where if and otherwise. Let be the system formed by the series of and , and let be the impulse response of this new system.
- Discuss stability and causality of and .
- Compute the frequency responses and of and .
- Sketch and , even roughly. Hint. Sketch and use the result to sketch .
- Determine the frequency response of and deduce its impulse response. Deduce whether this system is causal and stable.
- Determine the response of to the input Express as a sum of sinusoids in canonical form.
Show the result
- : causal and BIBO stable (). : not causal () but BIBO stable ().
- , .
- , between (at ) and (at ); , between (at ) and (at ).
- , so : is causal and BIBO stable ().
- .
Show the full solution
Point 1: stability and causality. The systems are convolutional LTI, so both properties are read directly from the impulse response (Properties of Convolutional LTI SystemsA convolutional LTI system is completely described by its impulse response h (or by its step response), and BIBO stability, staticity, causality and series or parallel interconnection are all read directly from h.Properties of Convolutional LTI Systems →, Stability of LTI Systems - BIBO and Internal StabilityCharacterization of BIBO (external) stability and of internal stability of LTI convolutional systems through the mode functions: stability zones in the complex plane, asymptotic, marginal and unstable behaviour of the natural response, and an example of an externally stable but internally unstable system with a zero-pole cancellation.Stability of LTI Systems - BIBO and Internal Stability →): the system is causal if and only if for all , and BIBO stable if and only if .
- is non-zero only at and , so for : is causal. Its sum is : stable.
- is non-zero for every ; in particular : is not causal (its output at time depends on the input at time ). Its sum, with the first term taken apart, is stable.
Typical mistake: deducing instability from the "growing" factor at negative . Here the sequence starts at , so only one term is "large"; the tail is , which decays. Non-causality does not affect stability.
(The official solution labels the second sum : it is a typing slip for ; the value is the correct one.)
Point 2: frequency responses. Both systems are stable, so the frequency response exists and is the DTFT of the impulse response, (Eigenfunctions and Frequency Response of LTI Systemsfor a BIBO stable convolutional LTI system the complex exponential e^{j w t} is an eigenfunction and the frequency response H(jw), the Fourier transform of the impulse response, is its eigenvalue; for real h the response to a cosine is a scaled and phase-shifted cosine.Eigenfunctions and Frequency Response of LTI Systems →, Frequency Response of LTI SystemsApplying the Fourier transform to LTI convolutional systems described by ODEs: the frequency response H(jw) is the transform of the impulse response, equals Y/U, is a ratio of polynomials in jw, and can be inverted by partial fractions to get h(t), with a warning about causality when the system is not asymptotically stable.Frequency Response of LTI Systems →; in the notes it is written ).
For put , so that and . The sum starts at : (The official solution splits off the term , , and sums the rest: ; since the numerator becomes : same result.)
Point 3: squared moduli. Since for every real , the exponential factors do not matter: It is a cosine "upside down" (minimum at ), -periodic and even: it oscillates between at and at . attenuates the low frequencies and amplifies the high ones (a high-pass behaviour).
For , the numerator has modulus and the denominator is exactly the factor of , so It is the reciprocal of the previous curve, scaled by : maximum at , minimum at (a low-pass behaviour). Sketches on :
Grafico interattivo: |H1(w)|^2 = 10/9 - (2/3)cos(w): minimum 4/9 at w = 0, maximum 16/9 at w = ±pi
Grafico interattivo: |H2(w)|^2 = 81/(10 - 6cos(w)): maximum 81/4 at w = 0, minimum 81/16 at w = ±pi
Point 4: the series. The series of two LTI systems has impulse response (Properties of Convolutional LTI SystemsA convolutional LTI system is completely described by its impulse response h (or by its step response), and BIBO stability, staticity, causality and series or parallel interconnection are all read directly from h.Properties of Convolutional LTI Systems →), and by the convolution theorem its frequency response is the product (it is enough that both systems are stable): The factor cancels. Since is the frequency response of a unit delay, , uniqueness of the DTFT gives Check in the time domain (Properties of Discrete-Time Convolutionalgebraic properties of the discrete convolution (time invariance, commutativity, associativity, bilinearity, neutral element, support), its link with correlation and a set of worked examples including the rectangle-by-rectangle graphical method.Properties of Discrete-Time Convolution →): convolving with delays by , so because and at . (Check made also numerically: the convolution of the two truncated sequences is non-zero only at , with value .)
The result is non-zero only for : is causal; : stable. Notice that is not causal and yet the series is causal: the advance of one step in is compensated by the delay of two steps in . Stable systems in series stay stable.
Point 5: response to the sum of two cosines. First the input is rewritten in canonical form, with and (see Discrete-Time Complex Exponentials and Periodicitydiscrete-time complex exponentials x(k) = C lambda^k, when e^{j theta k} is periodic (theta/2pi rational), fundamental period, harmonic relations and the periodicity rules for sums of signals.Discrete-Time Complex Exponentials and Periodicity →). In discrete time is an integer, so multiples of can be added to the frequency (they multiply by an integer multiple of ) and to the phase:
- and , so
- , so
Now the system is simple: , with and . A cosine input gives (real , Eigenfunctions and Frequency Response of LTI Systemsfor a BIBO stable convolutional LTI system the complex exponential e^{j w t} is an eigenfunction and the frequency response H(jw), the Fourier transform of the impulse response, is its eigenvalue; for real h the response to a cosine is a scaled and phase-shifted cosine.Eigenfunctions and Frequency Response of LTI Systems →), so each sinusoid is multiplied by and its phase decreases by its own frequency: With common denominators, and :
Second method (no frequency response needed). Since , the output is : replace by in the canonical form, , which gives the same phases. Both forms were compared numerically with the original input for (difference below ).
Typical mistakes: not reducing the frequency to before writing the canonical form (the input has frequencies outside the interval); forgetting that the delay changes the phase by (different for each tone); applying the gain to the phase.
Exercise 2 (points 7)
Fourier transform of continuous-time signals. Consider the signals shown in Figures 1a and 1b. The signals are identically zero outside the interval shown in the figure.
- Figure 1a, signal : zero for ; it grows linearly from at to at ; it is constant, equal to , for ; it decreases linearly from at to at ; zero for .
- Figure 1b, signal : zero for ; piecewise linear through the points , , , , .
Grafico interattivo: Figure 1a (redrawn): x1(t)
Grafico interattivo: Figure 1b (redrawn): x2(t)
- Express and through the function .
- Observing that , compute the continuous-time Fourier transform of and .
- Let . Compute ( is the inverse Fourier transform).
Show the result
- Two equivalent expressions for each signal:
- ; .
- .
Show the full solution
Point 1: expressing the signals with . is the unit triangle: height at , base . Then is the triangle stretched to base (height still ); at it equals .
- is a trapezoid. Take the big triangle and cut off its top above height : the removed cap is a triangle of height and base , i.e. . So . Check: at , (plateau); at , ; at , .
- has the same outer edges ( at , at ) and a sharp dip to at : subtract from the big triangle a triangle of height and base : . Check: at , ; at , ; at , .
A second description uses three shifted triangles of base centred at (they overlap on half-bases and add up): Check for : at the neighbours vanish (), so ; at , . The representation is not unique: any correct one is accepted. Both forms were checked numerically on (identical to machine precision).
Point 2: transforms. 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 →) and the convolution theorem (Properties of the Fourier TransformProperties of the Fourier transform with proofs: time shift, modulation, rescaling, convolution theorem, temporal product, time-frequency duality, symmetries, derivative, integral and multiplication by t, followed by worked exercises on a ramp-times-rectangle and on the squared sinc.Properties of the Fourier Transform →), has Time rescaling, with , gives . Time shifts multiply by (shift property). By linearity:
- first form: ; ;
- second form: ; .
The two expressions of each transform are equal. Proof for : and ; with and , The same steps with instead of give : with , i.e. . Sanity checks: , the area of the trapezoid; , because has zero area (the positive parts compensate the negative dip). All four expressions were also verified by numerical integration of the definition at six values of (agreement to ).
Point 3: the convolution in frequency. The product theorem says , hence , where . Therefore Since , we have , which is non-zero only for . There (it is on the plateau ). So Numerical check: (the transform of ) at , by direct numerical convolution. Typical mistakes: forgetting the factor of the product theorem; computing the convolution by hand instead of using the theorem.
Exercise 3 (points 7)
Sampling. Consider the following signals: is a band-limited signal with maximum angular frequency , whose Fourier transform magnitude is plotted in Figure 2; the signal is obtained as a modulation of , with ; then with and .
Figure 2 (magnitude of the Fourier transform of ): an even, arch-shaped curve with maximum at , about at , decreasing to at , and zero for (the horizontal axis goes from to ).
Grafico interattivo: Figure 2 (redrawn, approximate shape read from the plot): |X(w)|
- Compute as a function of .
- Sketch , distinguishing the cases according to the value of .
- Let . Compute as a function of .
- In which cases can be recovered by an ideal low-pass filtering of ? What must the cut-off angular frequency of the filter be (i.e. the maximum angular frequency for which the frequency response of the filter is non-zero)?
- Is it possible to recover from ? Under which conditions?
- Is it possible to recover from ? Under which conditions?
Show the result
- .
- Two copies of with half height, centred at , each of support width : for they overlap in and add up; for they touch only at , where both vanish; for they are disjoint, with supports and .
- .
- Exactly when . Cut-off with (for example the midpoint ); the passband gain must be to recover exactly (the central part of is ).
- Yes, if and .
- Yes, if and .
Show the full solution
Point 1. Write 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 →). By linearity: Modulation moves the spectrum to the carrier: half of goes to and half to .
Point 2. The copy is the arch of Figure 2 with height , centred at , with support ; the copy is its mirror image centred at , with support . They intersect when , i.e. . As in the official figure, is taken real and non-negative, so that in the overlap the two copies simply add up.
- : overlap on (around the origin); is a single bump on , with a higher central part where the two arches sum.
- : the arches touch at . Since (continuity), they do not sum there: has two arches with a dip to in the middle.
- : two disjoint arches with a gap where .
Illustrations with the model arch for (only to show the three situations):
Grafico interattivo: Y(w) for w0 = 1 < 2: the two arches overlap near the origin and sum
Grafico interattivo: Y(w) for w0 = 2: the arches touch at w = 0, where both vanish
Grafico interattivo: Y(w) for w0 = 3 > 2: two separate arches centred at -3 and 3
Point 3. Apply the result of point 1 to in place of (modulation by the same carrier): , i.e. Equivalent in time: . So contains the original spectrum, halved, around the origin (support ), plus two replicas, with a quarter of the height, around (support and its mirror image).
Point 4: demodulation. An ideal low-pass filter keeps if the replicas do not intrude in its passband, i.e. if the supports of the replicas do not overlap the support of the central term: , i.e. . (For the replicas overlap the central part and no filter can separate them.) The cut-off must keep the whole central term and discard the replicas: for example the midpoint . The output is ; to obtain the filter needs gain : .
It is wrong to speak of aliasing here: nothing is sampled, the overlap of the copies is due to modulation and demodulation.
Official solution slip: it says "for example the midpoint of the interval, ". The midpoint of is , not ; and belongs to the interval only if (for it would be and would cut part of ). Verified numerically with a band-limited test signal: for and the cut-off leaves a relative error of and , while recovers to (numerical precision); with gain instead of the error is .
Point 5: recovering from . Two steps, both needed (Sampling and the Sampling TheoremSampling multiplies a continuous-time signal by a pulse train, which replicates its spectrum every omega_s; if the signal is band-limited with maximum angular frequency omega_M and omega_s exceeds 2 omega_M, an ideal low-pass filter recovers it exactly (Shannon theorem and sinc interpolation formula).Sampling and the Sampling Theorem →, Aliasing and Anti-Aliasing FiltersAliasing is the overlap of spectral replicas that occurs when the band-limited or Nyquist assumptions of the sampling theorem fail; an anti-aliasing low-pass filter with cut-off omega_s/2 applied before sampling removes it at the price of losing the high frequencies; two worked exercises.Aliasing and Anti-Aliasing Filters →):
- Recover from its samples . is band-limited, with maximum angular frequency (the right end of the support of ). By the sampling theorem it is recovered if , i.e. The ideal reconstruction filter has gain and cut-off between and .
- Recover from . By point 4 this is possible (multiplication by and low-pass filtering with gain ) if .
Conclusion: can be recovered from if and only if both conditions hold (in the scheme of the course): Remark (out of syllabus): if is large, is a band-pass signal and sampling slower than without overlap of the replicas is possible (numerically, for the replicas do not overlap up to about , twice the Nyquist limit ), but the reconstruction then needs a band-pass filter instead of the low-pass one; the expected answer is the Nyquist condition on the highest frequency.
Point 6: recovering from . is the sampling of with period in place of . The condition of point 5 holds with replaced by : Taking one sample out of three is a coarser sampling, so the allowed is three times smaller.
Theory 1 (points 4)
Fourier transform of continuous-time signals.
- Recall the analysis and synthesis formulas of the continuous-time Fourier transform.
- Recall and prove the modulation and translation properties.
- Express the continuous-time Fourier transform of a periodic signal in terms of the coefficients of its Fourier series.
Show the result
- Analysis: . Synthesis: .
- (modulation); (translation).
- If has period and Fourier coefficients , , then .
Show the full solution
Point 1. The transform and its inverse are defined as in Fourier TransformThe Fourier transform extends the Fourier series to aperiodic signals: intuitive derivation from a periodic square wave with growing period, definition of the transform and of its inverse, convergence results in L1 and L2 and the Plancherel and Parseval relation.Fourier Transform →: for the analysis integral converges for every ; the synthesis formula returns (at the continuity points) under the conditions on convergence of the inverse transform. The factor sits in the synthesis formula, which is what makes the transform of a product equal to times the convolution.
Modulation. Group the exponentials: Translation. With the change of variable (so , ): The two properties are dual: a multiplication by a complex exponential shifts the spectrum; a shift in time multiplies the spectrum by a complex exponential (a pure phase: the modulus does not change).
Point 3. A periodic signal is generally not in , so its transform is a generalized one, built on the transform of the complex exponential (Fourier Transform of Common SignalsFourier transform of periodic signals through the transform of the complex exponential as a Dirac impulse, and a catalogue of computed transforms: cosine, sine, constant, causal exponential, two-sided exponential, rectangle and sinc, sign function, unit step and 1/t.Fourier Transform of Common Signals →). First, the sifting property of the Dirac impulse gives which is exactly the synthesis formula with . Hence (for : ; the modulation property gives the same result). Now expand the periodic signal in its Fourier series (Continuous-Time Fourier SeriesA periodic continuous-time signal is written as a combination of harmonics e^{jn w0 t} whose coefficients a_n are projections of the signal onto each harmonic; coefficients have symmetries that mirror those of the signal.Continuous-Time Fourier Series →) and use linearity, with the fundamental angular frequency: The transform is a train of Dirac impulses at the multiples of the fundamental angular frequency, with area . Check on the cosine: has , so , the known result.
Slip in the official solution: its last formula is , without the factor : the integral is , not . The correct weight is .
Theory 2 (points 4)
Laplace transform.
- Give the definition of a function with a Laplace transform and the formula of the transform.
- Recall the five different types of region of convergence (ROC) and, for each case, discuss the causality properties of the signal in the time domain.
- Show an example of a function of the complex variable that, depending on the ROC, is the Laplace transform of two different signals (carry out the necessary calculations).
Show the result
has a Laplace transform if there is such that . Then on the region of convergence (ROC), the set of where the integral converges.
The ROC depends only on and is always a vertical strip , with . Five types:
- (a) : causal, anticausal or non-causal;
- (b) : causal, anticausal or non-causal;
- (c) right half-plane : causal or non-causal (right-sided);
- (d) left half-plane : anticausal or non-causal (left-sided);
- (e) strip : non-causal (two-sided).
Equivalently: a causal signal has ROC with ; an anticausal one has ; a non-causal one has a strip.
is the transform of with ROC , and of with ROC .
Show the full solution
Point 1: definition. In the notes the transform is introduced in the unilateral form , defined for the where the integral is finite (The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →, Solving Linear ODEs with the Laplace TransformHow the Laplace transform turns a linear ODE with constant coefficients into an algebraic equation, with its definition, properties and table, the split into natural and forced response, the transfer function, poles and zeros, the impulse response, partial fractions, and the first-order step response.Solving Linear ODEs with the Laplace Transform →, Laplace TransformWhy more transforms are needed beyond the Fourier transform (non-stable poles and initial conditions), and the definition of the bilateral and unilateral Laplace transform with the reason for the lower limit 0-; the Laplace transform is the continuous-time tool for differential equations and the Z-transform is its discrete-time counterpart.Laplace Transform →); Laplace TransformWhy more transforms are needed beyond the Fourier transform (non-stable poles and initial conditions), and the definition of the bilateral and unilateral Laplace transform with the reason for the lower limit 0-; the Laplace transform is the continuous-time tool for differential equations and the Z-transform is its discrete-time counterpart.Laplace Transform → also gives the bilateral version , which is the one needed here because the question speaks about signals that are not zero for . Write : since , the integral converges absolutely if and only if . Hence the definition of the paper: has a Laplace transform if the integral converges (absolutely) for at least one , i.e. ; the set of such is the ROC, and on it . The notes also give a sufficient condition in the unilateral case: if for (exponential growth at most), the integral converges for . Typical mistake: giving the formula without the ROC; the transform is the formula together with its region (see point 3).
Point 2: the five ROCs and causality. The notes state the fact for the unilateral transform: if exists, then it exists for every with , so the ROC is the half-plane (abscissa of convergence ). The general bilateral classification below follows the same argument (the five-type classification itself is not written in the Laplace notes; it is the analogue of the five kinds of ROC of the Z-transform in Bilateral Z-TransformThe bilateral Z-transform X_B(z) = sum x(k) z^{-k} is the discrete-time counterpart of the Laplace transform; it converges only on a region of convergence (an annulus-type region), extends the DTFT when the unit circle is in the ROC, has an inversion formula and properties such as linearity, shift, time reversal and convolution.Bilateral Z-Transform →).
The ROC is a strip. Convergence depends only on (the factor has modulus ). If and are integrable and , then for every , so is integrable too: the set of admissible is an interval with , possibly empty. It gives the five types (a)-(e) of the Result: empty; the whole plane (); right half-plane (); left half-plane (); strip.
Causality.
- If is causal ( for ) and the integral converges at , then for and we have , so it converges at too: the ROC extends to the right without limit. Therefore a causal signal has ROC , or a right half-plane, never a left half-plane or a bounded strip.
- Symmetrically, an anticausal signal ( for ) has ROC , or a left half-plane.
- A strip with both ends finite therefore needs a signal with both a and a part that matter: is non-causal (and not anticausal).
- A right half-plane can also come from a non-causal signal that is zero for (right-sided, for example ); likewise a left half-plane from a left-sided signal that is non-anticausal. And or can occur in any of the three cases: for example has ROC , has ROC .
Point 3: one expression, two signals. Take .
First signal, (unit step). Now , which tends to as if and only if . In that case the integral is : with ROC (the same as in the table of the notes for the step).
Second signal, (equal to for and for ). Now as if and only if . Then with ROC .
So the formula alone does not identify the signal: with ROC it is the causal step, with ROC it is the anticausal signal , in agreement with point 2 (right half-plane for the causal one, left half-plane for the anticausal one). This is why the ROC is part of the transform, and why the bilateral transform is needed here: the unilateral transform ignores (Laplace TransformWhy more transforms are needed beyond the Fourier transform (non-stable poles and initial conditions), and the definition of the bilateral and unilateral Laplace transform with the reason for the lower limit 0-; the Laplace transform is the continuous-time tool for differential equations and the Z-transform is its discrete-time counterpart.Laplace Transform →) and would give for . The same phenomenon for sequences, with , is in Bilateral Z-TransformThe bilateral Z-transform X_B(z) = sum x(k) z^{-k} is the discrete-time counterpart of the Laplace transform; it converges only on a region of convergence (an annulus-type region), extends the DTFT when the unit circle is in the ROC, has an inversion formula and properties such as linearity, shift, time reversal and convolution.Bilateral Z-Transform →.
Matlab 1 (points 3)
Representation of signals. Consider the signal . Write a Matlab script that:
- Computes on the interval sampled with step , with , .
- Plots in a figure the shape of on that interval.
- Plots in a second figure the magnitude of , the continuous-time Fourier transform of . Use the FFT with a suitable zero-padding.
- Plots in a third figure the theoretical shape of . Note: you must therefore compute the Fourier transform of analytically (not in Matlab).
Show the result
- Samples: , that is samples; , decaying like ().
- Zero-padding: points; step in angular frequency rad/s; maximum angular frequency rad/s; axis
w = -omegaMax:step:(omegaMax-step)( values) withfftshifton the modulus, multiplied by . - Theory: , : even, maximum at , decreasing like .
Show the full solution
Script (the one of the official solution).
%% 1) signal
u = @(t) t>=0;
Delta = 1e-3;
A=4; T=10;
t = 0:Delta:T;
x= A*exp(-3*t).*u(t);
%% 2) plot of x(t)
figure(1);
h=plot(t,x,'LineWidth',2);
grid; xlabel('t'); ylabel('x(t)');
%% 3) modulus of the FT with FFT and zero-padding
M=2^(3+nextpow2(numel(t)));
X = Delta*(abs(fft(x,M)));
figure(2);
omegaMax=pi/Delta;
step = 2/M *omegaMax;
w = -omegaMax:step:(omegaMax-step);
plot(w,fftshift(abs(X)),'LineWidth',3, 'Color','black');
grid;xlabel('\omega'); ylabel('X(\omega)')
%% 4) theoretical modulus
% The FT of x(t) = A e^(-3t) u(t) is X(w)= A/(3+jw)
X_teorico = A./(3+w*1i);
figure(3);
plot(w,abs(X_teorico), 'g-', 'LineWidth',1);Why each part.
- Step 1.
0:Delta:Thas samples. The signal is zero for , and the interval starts at , sou(t)equals everywhere here; keeping it makes the formula equal to the definition of . - Step 3: what the FFT computes. The samples give a Riemann-sum approximation of the Fourier integral: (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 →, 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 sum is the DTFT of the samples, evaluated at , which is periodic of period in , i.e. of period in . So the axis that can be read is with . Matlab's
fft(x,M)computes the sum at , (no factor , unlike the DFT of the notes: 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 →); multiplying by gives the approximation of . - Zero-padding.
fft(x,M)pads with zeros up to samples. It does not add information, but it samples the same spectrum more finely: the step falls from rad/s (no padding) to rad/s, so the curve is smooth. is a power of two (fast FFT) equal to times the first power of two not smaller than . - The axis.
fftreturns in the order (first half), then the negative frequencies (second half).fftshiftreorders them with zero at the centre; the matching axis isw = -omegaMax:step:(omegaMax-step), which has values, step . In Matlab the colon operator tolerates rounding and produces exactly values; if in doubt,w = (-M/2:M/2-1)*stepis equivalent and has values by construction. Typical mistakes: plotting against the index; using-pi:pi(that is the normalized angular frequency ); usinglinspace(-omegaMax,omegaMax,M)(wrong step); forgettingfftshift; forgetting the factorDelta, which would make the values times too big. - Step 4. The transform of the causal exponential is (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 →);
A./(3+w*1i)evaluates it on the same axis, so the green curve can be compared with the black one.
What to expect. The paper shows the two spectra on (the script as printed has no xlim; over the full range the peak would look like a thin spike, so in practice add xlim([-100 100])). The numerical curve and the theoretical curve overlap on the plot: the maximum difference, in , is about , i.e. of the peak. The sources of the (small) difference: the rectangle rule gives instead of (the first sample counts fully, not half: offset ); the truncation at is irrelevant (); the aliasing is small because . Matlab is not available here: the script was reproduced step by step with the equivalent numpy code (numbers above: , step , peak at , number of values of the axis equal to ).
Self-assessment grid
| Exercise | Points | What must be there for full marks | Typical mistakes |
|---|---|---|---|
| Exercise 1 | 7 | causal and stable, not causal () but stable (sum ); and with the geometric series starting at ; and with values and sketch; , , causal and stable; input reduced to canonical form and output | calling unstable; starting the sum of at ; forgetting that the product cancels the factor ; leaving the frequency out of ; forgetting that the phase shifts by at each frequency |
| Exercise 2 | 7 | trapezoid and dip signals written with (one valid form each); from rect * rect, rescaling and shifts; , in a correct form; with | wrong rescaling of (the transform is : both the factor and the argument matter); sign of or ; forgetting the of the product theorem; computing the convolution directly |
| Exercise 3 | 7 | with sketches for the three cases; ; and with gain ; together with ; the same with for | forgetting the factor in and the gain of the filter; calling the overlap "aliasing"; Nyquist on instead of ; forgetting the condition ; mistaking and in point 6 |
| Theory 1 | 4 | analysis and synthesis formulas with ; proofs of modulation and translation (grouping exponentials, change of variable); derived from the transform of | missing in the transform of the exponential; sign of the exponent in the translation; not explaining why the transform of a periodic signal is made of impulses |
| Theory 2 | 4 | definition: for some and on the ROC; the five ROCs (empty, plane, right half-plane, left half-plane, strip) with the causality of the signal in each case; example with (ROC ) and (ROC ), with the two integrals computed | formula without ROC; saying that a strip or a left half-plane can belong to a causal signal; forgetting the limit condition ( or ) that makes ; sign of lost in the second integral |
| Matlab 1 | 3 | samples with and figure of ; with zero-padding; axis in rad/s with fftshift; factor Delta; theoretical plotted on the same axis |
wrong axis (index, -pi:pi, wrong step); missing fftshift or Delta; theoretical modulus with the wrong formula (for example ) |