Compare with x(t)=repT[rect(2T1t−t0)]: here t0=T/4 and T1=T/4. Then
ω0=T2π,δc=T2T1=T24T=21=50%.
Using the coefficients of a rectangular wave, X(ω0,n)=e−jω0nt0δcsinc(δcn):
X(ω0,n)=e−jT2πn4T2sinc(n/2)=e−j2πn2sinc(n/2)=2jnsinc(n/2).
Here e−j2πn=1,−j,−1,j,… for n=0,1,2,3,…, which equals 1/jn.
Notes on the scan:
The page notes Re[X(ω0,n)]=0 and −X(ω0,n)=X(ω0,−n), "because x(t) is odd and real". Checking the formula: this holds for n=0 (for odd n the coefficient is purely imaginary, for even n=0 it is 0 since sinc(n/2)=0), while X(ω0,0)=21 is the nonzero mean. So the oddness refers to x(t) minus its mean.
Find the Fourier coefficients of x(t), ω0=2π/T. A wise choice for [T] is [−T/2,T/2], which contains exactly one impulse:
X(ω0,n)=T1∫−T/2T/2δ(t)e−jω0ntdt=T1e−jω0n⋅0=2πω0,∀n∈Z.
Easy... or is it? n=−∞∑+∞2πω02=+∞, so {X(ω0,n)}∈/ℓ2. What is going wrong?
∫[T]∣x(τ)∣2dτ=∫−T/2T/2∣δ(τ)∣2dτ=∫−T/2T/2δ(τ)⋅δ(τ)dτ=siftingδ(0)⟶+∞.
So x∈/L2([T]): the pulse train does not have finite energy over a period, and {X(ω0,n)}∈/ℓ2 is consistent with the Riesz-Fischer theorem. Anyway, we can sweep the dust under the carpet and say that
m=−∞∑+∞δ(t−mT)⟼FS2πω0
in a "generalized" sense (FS is not an isometry in the proper sense here). Not so easy, actually.
Exercise 3 - power bound for a derivative
The Fourier coefficients of x(t) are
X(ω0,n)=⎩⎨⎧jω0n31,42,∀n=0n=0.
Find an upper bound for the average power of x˙(t) over its fundamental period.
By the differentiation rule, X(1)(ω0,n)=jω0nX(ω0,n):
X(1)(ω0,n)=⎩⎨⎧n21,0,∀n=0n=0.
Using the Parseval identity and ∑n=1+∞n21=6π2:
P[T][x˙]=n∈Z∖{0}∑n41=2n=1∑+∞n41≤2n=1∑+∞n21=26π2=3π2≃3.29.
(The bound uses 1/n4≤1/n2.) By the way, the exact value is P[T][x˙]=2⋅90π4=45π4≃2.16≤3.29.
Exercise 4 - the "generic" square wave
Find the Fourier coefficients of the square wave x(t) of amplitude A∈R that equals A for t∈[T1,T2] and 0 for the rest of the period, repeated with period T; assume T1<T2, 0<T2−T1<T, ω0=2π/T. The offset is =0.
x(t)
A | ___ ___
| | | | |
0 +-----+---+-------+---+-----> t
T1 T2 T+T1 T+T2
dx/dt: impulses +A delta(t-T1) and -A delta(t-T2) (up/down arrows), repeated every T
The derivative is a train of impulses: x˙(t)=A[δ(t−T1)−δ(t−T2)] in each period. Therefore
X(1)(ω0,n)=T1∫[T]x˙(t)e−jω0ntdt=T1∫0TA[δ(t−T1)−δ(t−T2)]e−jω0ntdt=TA(z1e−jω0nT1−z2e−jω0nT2).
Remember: we need to check whether X(1)∈ℓ2. However X(1)∈/ℓ2, since limn→∞∣X(1)(ω0,n)∣2=0 (a necessary condition for convergence of the series): the points z1,z2 on the unit circle keep a constant phase difference =0 for every n. But we have seen that pulse trains "behave well", and x˙(t) is just a linear combination of a couple of pulse trains.
Now use the integration formula for Fourier coefficients (note that X(1)(ω0,0)=0). For all n=0:
X(ω0,n)=jω0nX(1)(ω0,n)=TAjω0ne−jω0nT1−e−jω0nT2=A2jπne−jω0nT1−e−jω0nT2.Symmetric caseT1=−T0, T2=T0>0, so δc=T2T0, ω0=T2π:
X(ω0,n)=Aπnsin(ω0nT0)=δcAδcπnsin(T2πT0n)=δcAsinc(δcn)("thanks universe!").The coefficient n=0. Differentiation lost it, so it comes from linearity of the Fourier map and the offset of x(t) (like a "+C" for the integral):
X(ω0,0)=0+TA(T2−T1)=Aδc(the area of the pulse over the period).
Exercise 5 - the sawtooth wave
Let saw(t)=repT[tooth(t)] with
tooth(t)={A(t−T1)+B1,0,t∈[T1,T2]otherwise,A=T2−T1B2−B1,ω0=2π/T, 0<T2−T1<T, B1,B2∈R, B1<B2. The tooth is a ramp from B1 at T1 to B2 at T2 (see the sketch).
B2 | . (T2,B2)
| /
| / slope A = (B2-B1)/(T2-T1)
B1 | (T1,B1) then drops to 0 and repeats every T
Mean value (n=0).X(ω0,0)=T1∫T1T2[A(t−T1)+B1]dt=T1[A2(t−T1)2+B1t]T1T2=T1(2A(T2−T1)2+B1T2−B1T1)=T1(2(B2−B1)(T2−T1)+B1(T2−T1))=2T1(T2−T1)(B2−B1+2B1)=4πω0(T2−T1)(B2+B1)=4πω0A(B2−B1)(B2+B1).
For n=0, integrate by parts:
X(ω0,n)=T1∫T1T2[A(t−T1)+B1]e−jω0ntdt=T1[[A(t−T1)+B1]−jω0ne−jω0ntT1T2−∫T1T2A−jω0ne−jω0ntdt]=T1[[A(T2−T1)+B1]−jω0ne−jω0nT2−B1−jω0ne−jω0nT1−A(−ω02n2e−jω0nT2−e−jω0nT1)]=(−j2πnB2+2πω0n2A)e−jω0nT2+(j2πnB1−2πω0n2A)e−jω0nT1
(using A(T2−T1)+B1=B2 and 1/T=ω0/2π).
Special caseT1=0, T2=T, B1=0 (so A=B2/T; rising ramp from 0 to B2):
X(ω0,n)=⎩⎨⎧4πω0AB22,−j2πnB2,n=0n=0.Special caseT1=0, T2=T, B2=0 (so A=−B1/T; falling ramp from B1 to 0):
X(ω0,n)=⎩⎨⎧−4πω0AB12,j2πnB1,n=0n=0.
(The scan writes A=B2/T2 and A=−B1/T2 here; with T1=0,T2=T the denominator is the period T.)
Exercise 6 - a triangular wave and the sum of 1/n2
Write the Fourier series of this particular triangular wave:
with period T=4, so ω0=T2π=42π=2π. It rises from 0 at t=0 to 1 at t=2 and falls back to 0 at t=4 (and mirrored for negative times). Break it down into two sawtooth waves.
First wave:T1=0, T2=2, T=4, B1=0, B2=1, so A=T2−T1B2−B1=21.
X1(2π,0)=4πω0A(B2−B1)(B2+B1)=4π⋅22π⋅1⋅1=41.
For n=0:
X1(2π,n)=(−j2πn1+4π2πn21)e−j2πn⋅2+(0−4π2πn21)⋅1=(−j2πn1+2π2n21)(−1)n−2π2n21.Second wave:T1=2, T2=4, T=4, B1=1, B2=0, so A=4−20−1=−21.
X2(2π,0)=4πω0A(B2−B1)(B2+B1)=4π⋅2−2π(−1)⋅1=41.
For n=0:
X2(2π,n)=(0−4π2πn21)e−j2πn⋅4+(j2πn1+4π2πn21)e−j2πn⋅2=−2π2n21+(j2πn1+2π2n21)(−1)n.Recombine (linearity): X(2π,0)=41+41=21 and, for n=0,
X(2π,n)=X1+X2=−π2n21+π2n2(−1)n=π2n2(−1)n−1(even and real, as expected).
The Fourier series:x(t)=n=−∞∑+∞X(2π,n)ej2πnt=21+n=0∑π2n2(−1)n−1ej2πnt=21−π22m=1∑+∞(2m−1)21(e−j2π(2m−1)t+ej2π(2m−1)t)=21−π24m=1∑+∞(2m−1)2cos(2π(2m−1)t).
(Even n give 0; odd n=±(2m−1) give −2/(π2n2).)
Legendary consequence. Evaluate at t=2, where x(2)=1 and cos(2π(2m−1)⋅2)=cos((2m−1)π)=−1:
1=21−π24m=1∑+∞(2m−1)2−1⇒214π2=m=1∑+∞(2m−1)21=121+321+521+⋯=8π2.
Let S=∑n=1+∞n21. Splitting even and odd terms, ∑m=1+∞(2m)21=41S, so
even terms41S+odd terms8π2=S⇒n=1∑+∞n21=6π2
Versione ripasso
Tools: X(ω0,n)=T1∫[T]xe−jω0ntdt; rectangular wave repT[rect(2T1t−t0)] has X=e−jω0nt0δcsinc(δcn), δc=2T1/T, sinc(x)=sin(πx)/(πx).
Shifted rect (t0=T1=T/4, δc=50%): X=2jnsinc(n/2); imaginary for n=0, X(ω0,0)=1/2.
Pulse train∑δ(t−mT): X=ω0/2π for all n, not in ℓ2 because x∈/L2([T]) (δ(0)=∞); valid only in a generalized sense.
Power of x˙:X(1)=1/n2 (n=0), 0 at n=0; P[T][x˙]=∑n=0n−4≤π2/3≈3.29 (exact π4/45≈2.16).
Square wave (height A on [T1,T2]): differentiate to get two pulse trains, X(1)=TA(e−jω0nT1−e−jω0nT2) (not in ℓ2 but fine), integrate back for n=0: X=A2jπne−jω0nT1−e−jω0nT2; X(ω0,0)=Aδc comes from the offset. Symmetric case: δcAsinc(δcn).
Sawtooth (A=T2−T1B2−B1): X(ω0,0)=4πω0A(B2−B1)(B2+B1); for n=0: (−j2πnB2+2πω0n2A)e−jω0nT2+(j2πnB1−2πω0n2A)e−jω0nT1. Ramp 0→B2 over a period: −j2πnB2; ramp B1→0: j2πnB1.
Triangular wave (T=4, ω0=π/2): sum of two sawtooth waves, X(2π,0)=21, X(2π,n)=π2n2(−1)n−1; x(t)=21−π24∑m≥1(2m−1)2cos(2π(2m−1)t). At t=2: ∑(2m−1)21=8π2, then 41S+8π2=S⇒∑n21=6π2.
Typical mistakes: forgetting the n=0 coefficient after integrating; applying Parseval to a signal not in L2([T]); wrong sign of the phase e−jω0nt0 for a shifted wave; forgetting that X(1)∈/ℓ2 for discontinuous waves (it is a pulse train, not an error).