Pulses and Spectra
Open Applet in new Tab Deutsche Version Öffnen
Contents
Applet Description
Time-limited symmetric signals ⇒ "pulses" x(t) and the corresponding spectral functions X(f) are considered, namely
- Gaussian pulse,
- rectangular pulse,
- triangular pulse,
- trapezoidal pulse,
- raised cosine pulse,
- cosine square pulse.
Further it is to be noted:
- The functions x(t) resp. X(f) are shown for up to two parameter sets in one diagram each.
- The red curves and numbers apply to the left parameter set, the blue ones to the right parameter set.
- The abscissas t (time) and f (frequency) as well as the ordinates x(t) (signal values) and X(f) (spectral values) are normalized.
Theoretical Background
Relationship x(t)⇔X(f)
- The relationship between the time function x(t) and the spectrum X(f) is given by the "first Fourier integral" :
- X(f)=FT[x(t)]=∫+∞−∞x(t)⋅e−j2πftdtFT: Fourier transform.
- In order to calculate the time function x(f) from the spectral function x(t) one needs the "second Fourier integral":
- x(t)=IFT[X(f)]=∫+∞−∞X(f)⋅e+j2πftdfIFT:Inverse Fourier transform.
- In all examples we use real and even functions. Thus:
- x(t)=∫+∞−∞X(f)⋅cos(2πft)df ∘−−−∙ X(f)=∫+∞−∞x(t)⋅cos(2πft)dt.
- x(t) and X(f) have different units, for example x(t) in V, X(f) in V/Hz.
- The relationship between this module and the similarly constructed applet "Frequency response & Impulse response" is based on the "Duality Theorem".
- All times are normalized to a time T and all frequencies are normalized to 1/T ⇒ the spectral values X(f) still have to be multiplied by the normalization time T .
Example: If one sets a rectangular pulse with amplitude A1=1 and equivalent pulse duration Δt1=1 then x1(t) in the range −0.5<t<+0.5 equal to one and outside this range equal to zero. The spectral function X1(f) proceeds si–shaped with X1(f=0)=1 and the first zero at f=1.
- If a rectangular pulse with A=K=3 V and δt=T=2 ms is to be simulated with this setting, then all signal values with K=3 V and all spectral values with K⋅T=0.006 V/Hz to be multiplied by.
- The maximum spectral value is then X(f=0)=0.006 V/Hz and the first zero is at f=1/T=0.5 kHz.
Gaussian Pulse
- The time function of the Gaussian pulse with height K and (equivalent) duration Δt is:
- x(t)=K⋅e−π⋅(t/Δt)2.
- The equivalent time duration Δt is obtained from the rectangle of equal area.
- The value at t=Δt/2 is smaller than the value at t=0 by the factor 0.456 .
- For the spectral function we get according to the Fourier transform:
- X(f)=K⋅Δt⋅e−π(f⋅Δt)2.
- The smaller the equivalent time duration Δt is, the wider and lower the spectrum ⇒ "Reciprocity law of bandwidth and pulse duration".
- Both x(t) and X(f) are not exactly zero at any f– or t–value, respectively.
- For practical applications, however, the Gaussian pulse can be assumed to be limited in time and frequency. For example, x(t) has already dropped to less than 0.1% of the maximum at t=1.5δt .
Rectangular Pulse
- The time function of the rectangular pulse with height K and (equivalent) duration Δt is:
- x(t)={KK/20forforfor|t|<T/2,|t|=T/2,|t|>T/2.
- The ±Δt/2 value lies midway between the left- and right-hand limits.
- For the spectral function one obtains according to the laws of the Fourier transform (1st Fourier integral):
- X(f)=K⋅Δt⋅si(π⋅Δt⋅f)with si(x)=sin(x)x.
- The spectral value at f=0 is equal to the rectangular area of the time function.
- The spectral function has zeros at equidistant distances 1/δt.
- The integral over the spectral function X(f) is equal to the signal value at time t=0, i.e. the pulse height K.
Triangular Pulse
- The time function of the triangular pulse with height K and (equivalent) duration Δt is:
- x(t)={K⋅(1−|t|/Δt)0forfor|t|<Δt,|t|≥Δt.
- The absolute time duration is 2⋅Δt; this is twice as large as that of the rectangle.
- For the spectral function, we obtain according to the Fourier transform:
- X(f)=K⋅Δf⋅si2(π⋅Δt⋅f)withsi(x)=sin(x)x.
- The above time function is equal to the convolution of two rectangular pulses, each with width δt.
- From this follows: X(f) contains instead of the si-function the si2-function.
- X(f) thus also has zeros at equidistant intervals 1/f .
- The asymptotic decay of X(f) occurs here with 1/f2, while for comparison the rectangular pulse decays with 1/f .
Trapezoidal Pulse
The time function of the trapezoidal pulse with height K and time parameters t1 and t2 is:
- x(t)={KK⋅t2−|t|t2−t10forforfor|t|≤t1,t1≤|t|≤t2,|t|≥t2.
- For the equivalent pulse duration (rectangle of equal area) holds: Δt=t1+t2.
- The rolloff factor (in the time domain) characterizes the slope:
- r=t2−t1t2+t1.
- The special case r=0 corresponds to the rectangular pulse and the special case r=1 to the triangular pulse.
- For the spectral function one obtains according to the Fourier transform:
- X(f)=K⋅Δt⋅si(π⋅Δt⋅f)⋅si(π⋅r⋅Δt⋅f)withsi(x)=sin(x)x.
- The asymptotic decay of X(f) lies between 1/f (for rectangle, r=0) and 1/f2 (for triangle, r=1).
Raised cosine Pulse
The time function of the raised cosine pulse with height K and time parameters t1 and t2 is:
- x(t)={KK⋅cos2(|t|−t1t2−t1⋅π/2)0forforfor|t|≤t1,t1≤|t|≤t2,|t|≥t2.
- For the equivalent pulse duration (rectangle of equal area) holds: Δt=t1+t2.
- The rolloff factor (in the time domain) characterizes the slope:
- r=t2−t1t2+t1.
- The special case r=0 corresponds to the square pulse and the special case r=1 to the cosine square pulse.
- For the spectral function one obtains according to the Fourier transform:
- X(f)=K⋅Δt⋅cos(π⋅r⋅Δt⋅f)1−(2⋅r⋅Δt⋅f)2⋅si(π⋅Δt⋅f).
- The larger the rolloff factor r is, the faster X(f) decreases asymptotically with f .
Cosine square Pulse
- This is a special case of the raised cosine pulse and results for r=1⇒t1=0, t2=Δt:
- x(t)={K⋅cos2(|t|⋅π2⋅Δt)0forfor|t|<Δt,|t|≥Δt.
- For the spectral function, we obtain according to the Fourier transform:
- X(f)=K⋅Δf⋅π4⋅[si(π(Δt⋅f+0.5))+si(π(Δt⋅f−0.5))]⋅si(π⋅Δt⋅f).
- Because of the last si-function is X(f)=0 for all multiples of F=1/δt. The equidistant zero crossings of the raised cosine pulse are preserved.
- Because of the bracket expression, X(f) now exhibits further zero crossings at f=±1.5F, ±2.5F, ±3.5F, ... .
- For frequency f=±F/2 the spectral values K⋅Δt/2 are obtained.
- The asymptotic decay of X(f) runs in this special case with 1/f3.
Exercises
- First select the number (1,...,7) of the exercise. The number 0 corresponds to a "Reset": Same setting as at program start.
- A task description is displayed. The parameter values are adjusted. Solution after pressing "Show solution".
- "Red" refers to the first parameter set ⇒ x1(t)∘−−−∙ X1(f), "Blue" refers to the second parameter set ⇒ x2(t)∘−−−∙ X2(f).
- Values with magnitude less than 0.0005 are output in the program as "zero".
(1) Compare the red Gaussian pulse (A1=1,Δt1=1) with the blue rectangular pulse (A2=1,Δt2=1) ⇒ default setting.
What are the differences in the time and frequency domain?
- The Gaussian pulse theoretically reaches infinity in the time as well as in the frequency domain.
- Practically x1(t) for |t|>1.5 and X1(f) for |f|>1.5 are almost zero.
- The rectangle is strictly limited in time: x2(|t|>0.5)≡0. X2(f) has shares in a much larger range than X1(f).
- It holds X1(f=0)=X2(f=0) since the integral over the Gaussian pulse x1(t) is equal to the integral over the rectangular pulse x2(t).
(2) Compare the red Gaussian pulse (A1=1,Δt1=1) with the blue rectangular pulse (A2=1,Δt2).
Vary the equivalent pulse duration Δt2 between 0.5 and 2. Interpret the displayed graphs.
- One can recognize the reciprocity law of bandwidth and pulse duration. The greater Δt2, the higher and narrower the spectral function X2(f).
- For each setting of Δt2, x1(t=0) and x2(t=0) are equal ⇒ Also, the integrals over X1(f) and X2(f) are identical.
(3) Compare the red Gaussian pulse (A1=1,Δt1=1) with the blue rectangular pulse (A2=1,Δt2=0.5).
Vary Δt2 between 0.05 and 2. Interpret the displayed graphs and extrapolate the result.
- The blue spectrum is now twice as wide as the red one, but only half as high. First zero of X1(f) at f=1, of X2(f) at f=2.
- Reduction of Δt2: X2(f) lower and wider. Very flat course at Δt2=0.05: X2(f=0)=0.05, X2(f=±3)=0.048.
- If one choose Δt2=ε→0 (not possible in the program), the result would be the almost constant, very small spectrum X2(f)=A⋅ε→0.
- Increasing the amplitude to A=1/ε results in the constant spectral function X2(f)=1 of the Dirac function δ(t). That means:
- δ(t) is approximated by a rectangle (width Δt=ε→0, height A=1/ε→∞). The weight of the Dirac function is one: x(t)=1⋅δ(t).
(4) Compare the rectangular pulse (A1=1,Δt1=1) with the triangular pulse (A2=1,Δt2=1). Interpret the spectral functions.
- The (normalized) spectrum of the rectangle x1(t) with the (normalized) parameters A1=1, Δt1=1 is: X1(f)=si(π⋅f)=sinc(f).
- The convolution of the rectangle x1(t) with itself gives the triangle x2(t)=x1(t)⋆x1(t). By the convolution theorem: X2(f)=X1(f)2.
- By squaring the sinc(f)–shaped spectral function X1(f) the zeros of X2(f) remain unchanged. But now it holds that: X2(f)≥0.
(5) Compare the trapezoidal pulse (A1=1,Δt1=1,r1=0.5) with the
triangular pulse (A2=1,Δt2=1).
Vary r1 between 0 and 1. Interpret the spectral function X1(f).
- The trapezoidal pulse with roll–off factor r1=0 is identical to the rectangular pulse. The "normalized spectrum" is X1(f)=sinc(f).
- The trapezoidal pulse with roll–off factor r1=1 is identical to the triangular pulse. The "normalized spectrum" is X1(f)=sinc2(f).
- In both cases X1(f) has equidistant zeros at ±1, ±2, ... (none else); 0<r1<1: depending on r1 further zeros.
(6) Compare this trapezoidal pulse with the cosine roll-off pulse
(A2=1, Δt2=1.0, r2=0.5).
Vary r2 between 0 and 1. Interpret the spectral function X2(f) for r2=0.7.
- With the same r=0.5 the cosine roll-off pulse X2(f) is for f>1 greater in magnitude than the trapezoidal pulse.
- With the same roll-off factor (r1=r2=0.5) the drop of X2(f) around the frequency f=0.5 is steeper than the drop of X1(f).
- With r1=0.5 and r2=0.7 x1(t)≈x2(t) is valid and therefore also X1(f)≈X2(f). Comparable edge steepness.
(7) Compare the red trapezoidal pulse (A1=1,Δt1=1, r1=1) with the blue cosine roll-off pulse (A2=1, Δt2=1.0, r2=1).
Interpret the time function x2(t) and the spectral function X2(f) system theoretically.
- x2(t)=cos2(|t|⋅π/2) for |t|≤1 is the cosine square pulse. Zeros at f=±1, ±2, ...
- For the frequency f=±0.5 one obtains the spectral values X2(f)=0.5. The asymptotic decline is shown here with 1/f3.
Applet Manual
(A) Theme (changeable graphical user interface design)
- Dark: dark background (recommended by the authors)
- Bright: white background (recommended for beamers and printouts)
- Deuteranopia: for users with pronounced green visual impairment
- Protanopia: for users with pronounced red visual impairment
(B) Preselection for pulse shape x1(t) ⇒ red curve
(C) Parameter definition for x1(t)
(D) Numeric output for x1(t∗) and X1(f∗)
(E) Preselection for pulse shape x2(t) ⇒ blue curve
(F) Parameter definition for x2(t)
(G) Numeric output for x2(t∗) and X2(f∗)
(H) Setting the time t∗ for the numeric output
(I) Setting the frequency f∗ for the numeric output
(J) Graphic field for the time domain
(K) Graphic field for the frequency domain
(L) Selection of the exercise according to the numbers
(M) Task description and questions
(N) Show and hide sample solution
About the Authors
This interactive calculation tool was designed and implemented at the Institute for Communications Engineering at the Technical University of Munich.
- The first version was created in 2005 by Ji Li as part of her diploma thesis with “FlashMX – Actionscript” (Supervisor: Günter Söder).
- In 2017 the program was redesigned by David Jobst (Ingenieurspraxis_Math, Supervisor: Tasnád Kernetzky ) via "HTML5".
- Last revision and English version 2020 by Carolin Mirschina in the context of a working student activity.