Salta al contenuto
Note per Studenti Properties of the Fourier Series - Convolution, Differentiation and Integration Report

Properties of the Fourier Series - Convolution, Differentiation and Integration

In questa pagina 5

Notation used throughout. x(t)x(t) is TT-periodic, ω0:=2π/T\omega_0 := 2\pi/T, [T][T] is any interval of length TT, and X(ω0,n)=1T∫[T]x(t) e−jω0nt dt,x(t)=∑n=−∞+∞X(ω0,n) ejω0nt\mathcal{X}(\omega_0,n)=\frac1T\int_{[T]}x(t)\,e^{-j\omega_0 n t}\,dt,\qquad x(t)=\sum_{n=-\infty}^{+\infty}\mathcal{X}(\omega_0,n)\,e^{j\omega_0 n t} are the Fourier coefficients and the Fourier series. We write x(t)⟼FSX(ω0,n)={an}n=−∞+∞x(t)\overset{\mathcal{F}_S}{\longmapsto}\mathcal{X}(\omega_0,n)=\{a_n\}_{n=-\infty}^{+\infty} for the map that sends a signal to its sequence of coefficients (repT\mathrm{rep}_T is the periodic repetition with period TT). This note is "Properties of FS\mathcal{F}_S (part 2)" of the course; for x∈L2([T])x\in L^2([T]) the coefficient sequence is in ℓ2\ell^2 and FS\mathcal{F}_S is an isometry (Parseval).

Temporal periodic convolution

Let x1,x2∈L2([T])x_1,x_2\in L^2([T]) with the same ω0=2π/T\omega_0=2\pi/T, and define x(t):=repT[x1∗Tx2](t)=repT[∫[T]x1(t−τ) x2(τ) dτ].x(t):=\mathrm{rep}_T\big[x_1*_T x_2\big](t)=\mathrm{rep}_T\left[\int_{[T]}x_1(t-\tau)\,x_2(\tau)\,d\tau\right]. Over bounded sets such as [T][T] one has L2([T])⊆L1([T])L^2([T])\subseteq L^1([T]), hence x1∗Tx2x_1*_Tx_2 exists finite and is well defined.

Let x1↦X1(ω0,n)={a1,n}x_1\mapsto \mathcal{X}_1(\omega_0,n)=\{a_{1,n}\} and x2↦X2(ω0,n)={a2,n}x_2\mapsto\mathcal{X}_2(\omega_0,n)=\{a_{2,n}\}. What is the transform of repT[x1∗Tx2]\mathrm{rep}_T[x_1*_Tx_2]? Compute the nn-th coefficient: 1T∫[T](x1∗Tx2)(t) e−jω0ntdt=1T∫[T]∫[T]x1(τ) x2(t−τ) dτ  e−jω0nt dt=1T∫[T]x1(τ)∫[T]x2(t−τ) e−jω0n(t−τ) e−jω0nτ dt dτ=σ=t−τ1T∫[T]x1(τ)(∫[T]x2(σ) e−jω0nσdσ)e−jω0nτdτ=T⋅(1T∫[T]x1(τ)e−jω0nτdτ)(1T∫[T]x2(σ)e−jω0nσdσ).\begin{aligned} \frac1T\int_{[T]}(x_1*_Tx_2)(t)\,e^{-j\omega_0 nt}dt &=\frac1T\int_{[T]}\int_{[T]}x_1(\tau)\,x_2(t-\tau)\,d\tau\;e^{-j\omega_0 nt}\,dt\\ &=\frac1T\int_{[T]}x_1(\tau)\int_{[T]}x_2(t-\tau)\,e^{-j\omega_0 n(t-\tau)}\,e^{-j\omega_0 n\tau}\,dt\,d\tau\\ &\overset{\sigma=t-\tau}{=}\frac1T\int_{[T]}x_1(\tau)\left(\int_{[T]}x_2(\sigma)\,e^{-j\omega_0 n\sigma}d\sigma\right)e^{-j\omega_0 n\tau}d\tau\\ &=T\cdot\left(\frac1T\int_{[T]}x_1(\tau)e^{-j\omega_0 n\tau}d\tau\right)\left(\frac1T\int_{[T]}x_2(\sigma)e^{-j\omega_0 n\sigma}d\sigma\right). \end{aligned} The exchange of the order of integration is allowed because x1,x2∈L2([T])x_1,x_2\in L^2([T]) (Tonelli theorem for integrals). The factor TT appears because the two 1T\frac1T factors are one too many for a single convolution integral. Hence   repT[x1∗Tx2](t)  ⟼FS  T X1(ω0,n) X2(ω0,n)  \boxed{\;\mathrm{rep}_T\big[x_1*_Tx_2\big](t)\;\overset{\mathcal{F}_S}{\longmapsto}\;T\,\mathcal{X}_1(\omega_0,n)\,\mathcal{X}_2(\omega_0,n)\;}

Remark. Product and convolution are dual operations with respect to time and frequency: a convolution in time is a (scaled) product of coefficients in frequency.

Even-odd decomposition for real signals

Let x(t)∈Rx(t)\in\mathbb{R}. Then its coefficients are Hermitian: X(ω0,n)=X(ω0,−n)‾\mathcal{X}(\omega_0,n)=\overline{\mathcal{X}(\omega_0,-n)}. Define xe(t):=x(t)+x(−t)2,xo(t):=x(t)−x(−t)2,x(t)=xe(t)+xo(t).x_e(t):=\frac{x(t)+x(-t)}{2},\qquad x_o(t):=\frac{x(t)-x(-t)}{2},\qquad x(t)=x_e(t)+x_o(t). Use linearity and the time-reversal property (x(−t)↦X(ω0,−n)x(-t)\mapsto\mathcal{X}(\omega_0,-n)):

  • even part: X(ω0,n)+X(ω0,−n)2=X(ω0,n)+X(ω0,n)‾2\dfrac{\mathcal{X}(\omega_0,n)+\mathcal{X}(\omega_0,-n)}{2}=\dfrac{\mathcal{X}(\omega_0,n)+\overline{\mathcal{X}(\omega_0,n)}}{2},
  • odd part: X(ω0,n)−X(ω0,−n)2=X(ω0,n)−X(ω0,n)‾2\dfrac{\mathcal{X}(\omega_0,n)-\mathcal{X}(\omega_0,-n)}{2}=\dfrac{\mathcal{X}(\omega_0,n)-\overline{\mathcal{X}(\omega_0,n)}}{2}.

Therefore, for x(t)∈Rx(t)\in\mathbb{R}:   xe(t)⟼FSRe[X(ω0,n)],xo(t)⟼FSj Im[X(ω0,n)]  \boxed{\;x_e(t)\overset{\mathcal{F}_S}{\longmapsto}\mathrm{Re}\big[\mathcal{X}(\omega_0,n)\big],\qquad x_o(t)\overset{\mathcal{F}_S}{\longmapsto}j\,\mathrm{Im}\big[\mathcal{X}(\omega_0,n)\big]\;} (a real even signal has real coefficients, a real odd signal has purely imaginary coefficients).

Temporal differentiation

Given x(t)⟼FSX(ω0,n)x(t)\overset{\mathcal{F}_S}{\longmapsto}\mathcal{X}(\omega_0,n), what is the transform of x˙(t)\dot x(t)?

Trick: do not try to compute the Fourier coefficients of x˙\dot x; differentiate the series term by term. x˙(t)=ddt[∑n=−∞+∞X(ω0,n)ejω0nt]=cheating∑n=−∞+∞X(ω0,n)ddt[ejω0nt]=∑n∈Z∖{0}X(ω0,n) jω0n ejω0nt.\dot x(t)=\frac{d}{dt}\left[\sum_{n=-\infty}^{+\infty}\mathcal{X}(\omega_0,n)e^{j\omega_0nt}\right] \overset{\text{cheating}}{=}\sum_{n=-\infty}^{+\infty}\mathcal{X}(\omega_0,n)\frac{d}{dt}\big[e^{j\omega_0nt}\big] =\sum_{n\in\mathbb{Z}\setminus\{0\}}\mathcal{X}(\omega_0,n)\,j\omega_0n\,e^{j\omega_0nt}. It is "cheating" because we do not know yet whether FS[x˙(t)]\mathcal{F}_S[\dot x(t)] exists (we swapped derivative and infinite sum without justification). Still, X(ω0,n)\mathcal{X}(\omega_0,n) exists by assumption and so does the product X(ω0,n) jω0n\mathcal{X}(\omega_0,n)\,j\omega_0n. Hence   x˙(t)⟼FSX(1)(ω0,n):=jω0n X(ω0,n)  \boxed{\;\dot x(t)\overset{\mathcal{F}_S}{\longmapsto}\mathcal{X}^{(1)}(\omega_0,n):=j\omega_0n\,\mathcal{X}(\omega_0,n)\;} FS\mathcal{F}_S is still an isometry only if {X(1)(ω0,n)}∈ℓ2\{\mathcal{X}^{(1)}(\omega_0,n)\}\in\ell^2.

Observation. The derivative of a constant is 00, so if X(1)(ω0,n)\mathcal{X}^{(1)}(\omega_0,n) exists it must satisfy X(1)(ω0,0)=0\mathcal{X}^{(1)}(\omega_0,0)=0 for every x∈L2([T])x\in L^2([T]) (this is automatic from the factor nn).

Temporal integration

Trick: by the fundamental theorem of calculus, integration is the "converse" operation of differentiation. Given x(t)⟼FSX(ω0,n)x(t)\overset{\mathcal{F}_S}{\longmapsto}\mathcal{X}(\omega_0,n), find X(−1)(ω0,n)\mathcal{X}^{(-1)}(\omega_0,n), the coefficients of ∫−∞tx(τ)dτ\int_{-\infty}^{t}x(\tau)d\tau.

  • If n≠0n\neq0: X(−1)(ω0,n)=X(ω0,n)jω0n\displaystyle\mathcal{X}^{(-1)}(\omega_0,n)=\frac{\mathcal{X}(\omega_0,n)}{j\omega_0n}.
  • What about n=0n=0? Assuming convergence (discussed below), ∫−∞tx(τ)dτ=∫−∞t∑nX(ω0,n)ejω0nτdτ=∑n∫−∞tX(ω0,n)ejω0nτdτ  ⇒  X(−1)(ω0,0)=∫−∞tX(ω0,0) dτ.\int_{-\infty}^{t}x(\tau)d\tau=\int_{-\infty}^{t}\sum_{n}\mathcal{X}(\omega_0,n)e^{j\omega_0n\tau}d\tau=\sum_{n}\int_{-\infty}^{t}\mathcal{X}(\omega_0,n)e^{j\omega_0n\tau}d\tau \;\Rightarrow\;\mathcal{X}^{(-1)}(\omega_0,0)=\int_{-\infty}^{t}\mathcal{X}(\omega_0,0)\,d\tau . However ∫−∞tX(ω0,0) dτ=X(ω0,0)⋅lim⁡τ→−∞(t−τ)={0,if X(ω0,0)=0diverges,otherwise.\int_{-\infty}^{t}\mathcal{X}(\omega_0,0)\,d\tau=\mathcal{X}(\omega_0,0)\cdot\lim_{\tau\to-\infty}(t-\tau)= \begin{cases}0,&\text{if }\mathcal{X}(\omega_0,0)=0\\ \text{diverges},&\text{otherwise.}\end{cases}

Hence   ∫−∞tx(τ)dτ⟼FSX(−1)(ω0,n):={0,n=0X(ω0,n)jω0n,n≠0ONLY IF X(ω0,0)=0.  \boxed{\;\int_{-\infty}^{t}x(\tau)d\tau\overset{\mathcal{F}_S}{\longmapsto}\mathcal{X}^{(-1)}(\omega_0,n):=\begin{cases}0,&n=0\\[2pt]\dfrac{\mathcal{X}(\omega_0,n)}{j\omega_0n},&n\neq0\end{cases}\qquad\text{ONLY IF }\mathcal{X}(\omega_0,0)=0.\;}

Key observation: periodic integration of zero-mean signals

Recall X(ω0,0)=m[T][x]\mathcal{X}(\omega_0,0)=m_{[T]}[x], the mean value of xx over one period. The condition X(ω0,0)=0\mathcal{X}(\omega_0,0)=0 says xx has zero mean. For a zero-mean TT-periodic signal define the periodic integral X[T](t):=∫t∗tx(τ) dτ,t=t(s)=t∗+s, s∈[0,T].X_{[T]}(t):=\int_{t_*}^{t}x(\tau)\,d\tau,\qquad t=t(s)=t_*+s,\ s\in[0,T]. Relation with the classic integral X(t):=∫−∞tx(τ)dτX(t):=\int_{-\infty}^{t}x(\tau)d\tau. Write t=t0+MT+st=t_0+MT+s for some M∈NM\in\mathbb{N}: X(t)=lim⁡t0→−∞∫t0t0+MT+sx(τ)dτ=lim⁡t0→−∞∫t0t0+MTx(τ)dτ⏟M times 0+lim⁡t0→−∞∫t0+MTt0+MT+sx(τ)dτ.X(t)=\lim_{t_0\to-\infty}\int_{t_0}^{t_0+MT+s}x(\tau)d\tau =\underbrace{\lim_{t_0\to-\infty}\int_{t_0}^{t_0+MT}x(\tau)d\tau}_{M\text{ times }0}+\lim_{t_0\to-\infty}\int_{t_0+MT}^{t_0+MT+s}x(\tau)d\tau . Setting v:=τ−(t0+MT)+t∗v:=\tau-(t_0+MT)+t_* the last integral becomes ∫t∗t∗+sx(v+(t0+MT)−t∗)dv\int_{t_*}^{t_*+s}x\big(v+(t_0+MT)-t_*\big)dv. Since t∗t_* is arbitrary, choose t∗:=t0+MTt_*:=t_0+MT (taking MM as large as you wish); then by periodicity the integral is ∫t∗tx(v)dv=X[T](t)\int_{t_*}^{t}x(v)dv=X_{[T]}(t), and there is no longer a dependence on t0t_0 because MM was chosen accordingly.

Conclusion: we can use the same integration rule for repT[X[T]]\mathrm{rep}_T\big[X_{[T]}\big].

Remark on the condition X(ω0,0)=0\mathcal{X}(\omega_0,0)=0

The condition is quite restrictive but it reflects the impossibility of determining the so-called offset a0a_0 while integrating. Suppose F(τ)F(\tau) is a zero-mean primitive of f(τ)f(\tau) over (−∞,t](-\infty,t]. Then ∫−∞tf(τ)dτ=[F(τ)+constant]−∞t,\int_{-\infty}^{t}f(\tau)d\tau=\Big[F(\tau)+\text{constant}\Big]_{-\infty}^{t}, and we cannot know this constant, except in cases where a primitive F0(τ)=F(τ)+constantF_0(\tau)=F(\tau)+\text{constant} is already determined by a boundary condition F0(T)=f0∈CF_0(T)=f_0\in\mathbb{C} given at τ=T\tau=T.

Convergence analysis

If X(ω0,n)∈ℓ2\mathcal{X}(\omega_0,n)\in\ell^2 and X(ω0,0)=0\mathcal{X}(\omega_0,0)=0 there are no convergence issues. Indeed, by Cauchy-Schwarz (∣⟨v,w⟩∣2≤∥v∥2∥w∥2|\langle v,w\rangle|^2\le\|v\|^2\|w\|^2 with v≈[…1jω0n… ]Tv\approx[\dots\frac{1}{j\omega_0n}\dots]^T and w≈[…X(ω0,n)… ]Tw\approx[\dots\mathcal{X}(\omega_0,n)\dots]^T): ∣∑n=−∞+∞X(−1)(ω0,n)∣2=∣∑n≠0X(ω0,n)jω0n∣2≤(1ω02∑n≠01n2)⏟=2ω02π26<+∞(∑n≠0∣X(ω0,n)∣2)⏟<+∞ since X∈ℓ2.\left|\sum_{n=-\infty}^{+\infty}\mathcal{X}^{(-1)}(\omega_0,n)\right|^2=\left|\sum_{n\ne0}\frac{\mathcal{X}(\omega_0,n)}{j\omega_0n}\right|^2 \le\underbrace{\left(\frac1{\omega_0^2}\sum_{n\neq0}\frac1{n^2}\right)}_{=\frac{2}{\omega_0^2}\frac{\pi^2}{6}<+\infty}\underbrace{\left(\sum_{n\ne0}|\mathcal{X}(\omega_0,n)|^2\right)}_{<+\infty\text{ since }\mathcal{X}\in\ell^2}.

Summary of the operations

time domain                         coefficients X(w0,n)
x1 *_T x2 (rep_T)           <->     T * X1(w0,n) * X2(w0,n)
x_e(t)  (x real)            <->     Re[ X(w0,n) ]
x_o(t)  (x real)            <->     j Im[ X(w0,n) ]
d x / dt                    <->     j w0 n X(w0,n)
integral_{-inf}^{t} x       <->     X(w0,n)/(j w0 n), n != 0 ; 0 for n = 0   (needs X(w0,0)=0)

Applications of these rules are in Fourier Series ExercisesWorked Fourier-series exercises for a shifted rectangular wave, the pulse train, a power bound for a derivative, a generic square wave, the sawtooth and a triangular wave, ending with the sum of 1/n^2 equal to pi^2/6.Fourier Series Exercises →; the effect of a convolutional system on a periodic input is in Fourier Series Applied to LTI SystemsA BIBO-stable convolutional LTI system maps a T-periodic finite-energy input to a T-periodic finite-energy output whose Fourier coefficients are the input coefficients multiplied by the frequency response sampled at n omega_0, which is why such systems act as filters.Fourier Series Applied to LTI Systems →.

Versione ripasso

Setting: xx TT-periodic, ω0=2π/T\omega_0=2\pi/T, X(ω0,n)=1T∫[T]x(t)e−jω0ntdt\mathcal{X}(\omega_0,n)=\frac1T\int_{[T]}x(t)e^{-j\omega_0nt}dt.

  • Periodic convolution (x1,x2∈L2([T])x_1,x_2\in L^2([T]), well defined because L2([T])⊆L1([T])L^2([T])\subseteq L^1([T])): repT[x1∗Tx2]↦T X1(ω0,n)X2(ω0,n)\mathrm{rep}_T[x_1*_Tx_2]\mapsto T\,\mathcal{X}_1(\omega_0,n)\mathcal{X}_2(\omega_0,n). Proof: swap integrals (Tonelli), substitute σ=t−τ\sigma=t-\tau. Product and convolution are dual. Typical mistake: forgetting the factor TT.
  • Real signals: X(ω0,n)=X(ω0,−n)‾\mathcal{X}(\omega_0,n)=\overline{\mathcal{X}(\omega_0,-n)}; xe↦Re[X]x_e\mapsto\mathrm{Re}[\mathcal{X}], xo↦j Im[X]x_o\mapsto j\,\mathrm{Im}[\mathcal{X}], x=xe+xox=x_e+x_o.
  • Differentiation: x˙↦jω0n X(ω0,n)\dot x\mapsto j\omega_0n\,\mathcal{X}(\omega_0,n) (term-by-term derivative); X(1)(ω0,0)=0\mathcal{X}^{(1)}(\omega_0,0)=0; FS\mathcal{F}_S is an isometry for x˙\dot x only if {X(1)}∈ℓ2\{\mathcal{X}^{(1)}\}\in\ell^2.
  • Integration: ∫−∞tx↦X(ω0,n)/(jω0n)\int_{-\infty}^tx\mapsto\mathcal{X}(\omega_0,n)/(j\omega_0n) for n≠0n\ne0 and 00 for n=0n=0, only if X(ω0,0)=m[T][x]=0\mathcal{X}(\omega_0,0)=m_{[T]}[x]=0 (otherwise the integral diverges: X(ω0,0)lim⁡(t−τ)\mathcal{X}(\omega_0,0)\lim(t-\tau)). The zero-mean case gives a periodic integral X[T](t)=∫t∗txX_{[T]}(t)=\int_{t_*}^tx; the offset (the constant a0a_0) cannot be recovered by integration alone.
  • Convergence: if X∈ℓ2\mathcal{X}\in\ell^2 and X(ω0,0)=0\mathcal{X}(\omega_0,0)=0, Cauchy-Schwarz with ∑n≠01/n2=π2/3\sum_{n\ne0}1/n^2=\pi^2/3 shows the integrated coefficients are summable.
  • Typical mistakes: integrating a signal with nonzero mean; applying the differentiation rule without checking ℓ2\ell^2; forgetting that the n=0n=0 coefficient of a derivative is always 00.

Teoria collegata