If m=n: T1∫0Tejmω0τe−jnω0τdτ=T1j(m−n)ω0ej(m−n)ω0τ0T=0, because ejω00=ejω0T (so ej(m−n)ω0T=1). ■
Applying the fact to u(t)=∑m=N1N2amψm(t):
T1⟨u,ψn⟩[T]=T1∫0Tu(τ)e−jnω0τdτ=T1m=N1∑N2am∫0Tejmω0τe−jnω0τdτ=an.
The n-th Fourier coefficient
In this procedure we projected u(t) onto ψn(t) (over a period T): an describes how large the projection of u(t) along the n-th harmonic ejω0nt is. The idea is to express periodic signals as combinations of harmonics such that
the harmonics ejω0ntbehave like unit vectors (orthogonal);
the coefficients anare projections of u(t) onto ejω0nt.
Definition (n-th Fourier coefficient). Let x(t) be a periodic signal that can be expressed as a finite linear combination of exponentials. The quantity
an:=T1∫[T]x(t)e−jnω0tdt
is called the n-th Fourier coefficient of x with respect to the basis {ψn(t)}, n∈Z.
Existence. If x∈L1([T]), then ∣an∣=T1∫0Tx(t)e−jnω0tdt≤T1∫0T∣x(t)∣dt<+∞: all Fourier coefficients are well defined for the class of absolutely integrable signals over a period.
Find the Fourier coefficients of x(t)=1+sin(ω0t)+2cos(ω0t)+cos(2ω0t+4π). The fundamental period is T=∣ω0∣2π, with ψn(t)=ejnω0t. Use Euler's formulas:
x(t)=1+2jejω0t−e−jω0t+22ejω0t+e−jω0t+2ej(2ω0t+4π)+e−j(2ω0t+4π)=21e−j4πe−j2ω0t+(−2j1+1)e−jω0t+1+(2j1+1)ejω0t+21ej4πej2ω0t.
Reading off the coefficients:
a−2=21e−j4π=21(22−j22)=42−j42,a−1=−2j1+1=1+j21,a0=1,a1=2j1+1=1−j21=a−1,a2=21ej4π=42+j42=a−2,an=0∀n∈Z∖{−2,−1,0,1,2}.
Notice that the coefficients can be found even without the integral definition: be smart, work less. Important: if x(t) is real, we do not need to compute all an, n∈Z: half of the computations are not required, because Hermitian symmetry holds for an.
Symmetries of the Fourier coefficients
Fact.x(t) real ⟺an Hermitian (a−n=an) for all n∈Z.
Proof (⇒).x(t)∈R for all t:
a−n=T1∫[T]x(t)e−jω0(−n)tdt=T1∫[T]x(t)e−jω0ntdt=an.
(⇐) is a very easy exercise.
Fact.x(t) Hermitian ⟺an real for all n∈Z.
Proof (⇒).an∈R⟺Im(an)=0⟺an=an. With x(−t)=x(t) and the change of variable τ=−t:
an=T1∫0Tx(t)∗ejω0ntdt=T1∫0Tx(−t)ejω0ntdt=−T1∫0−Tx(τ)e−jω0nτdτ=T1∫−T0x(τ)e−jω0nτdτ=an,
where x(t)∗ denotes the complex conjugate of x(t). (⇐) is left as an exercise.
Fact.x(t) even ⟺an even for all n∈Z.
Proof (⇒).x even means x(−t)=x(t). With τ=−t: a−n=T1∫0Tx(t)e−jω0(−n)tdt=−T1∫0−Tx(−τ)e−jω0nτdτ=T1∫−T0x(−τ)e−jω0nτdτ=an. (⇐) is an exercise.
Special case: constants. Constant signals are periodic of any period T>0, so we do not know how to determine ω0. If x(t)=Ω for all t, it is self-evident that a0=T1∫[T]Ωdt=Ω and an=0 for all n=0.
Observation.a0=T1∫[T]x(t)e−jω0⋅0⋅tdt=T1∫[T]x(t)dt=m[T][x], the mean value of x over a period.
Alternative formulas for the Fourier series
Recall an=T1∫[T]x(t)e−jω0ntdt and x(t)"="∑nanejω0nt, where ω0=T2π is tied to the fundamental period of x(t); the equality holds in different senses depending on the properties of x(t) and on the type of convergence wanted.
Polar form. Let x(t)∈C and set an=Anejφn. Then x(t)=∑n=−∞+∞Anej(ω0nt+φn).
Real signals. If x(t)∈R, then an=a−n (Hermitian), which means A−n=An and φ−n=−φn. Using cosz=2ejz+e−jz and sinz=2jejz−e−jz,
x(t)=a0+n=1∑+∞An[ej(ω0nt+φn)+e−j(ω0nt+φn)],x(t)=m[T][x]+2n=1∑+∞Ancos(ω0nt+φn)x(t)∈R,
where a0=T1∫[T]x(t)dt is the mean value over [T].
Harmonics:ψn(t)=ejnω0t, n∈Z, T=2π/∣ω0∣; n=0 constant, n=±1 first harmonic, n=±2 second harmonic. Output of a BIBO stable LTI system: y=∑anH(jnω0)ejnω0t, same period T.
Analysis:an=T1∫[T]x(t)e−jnω0tdt (projection onto the n-th harmonic). Synthesis:x(t)=∑n=−∞+∞anejω0nt (meaning depends on regularity). Exists finite if x∈L1([T]).
a0=m[T][x] (mean value); a constant Ω has a0=Ω, an=0 for n=0. Energy over a period E[T]=T∑∣an∣2.
Symmetries:x real ⟺an Hermitian (a−n=an); x Hermitian ⟺an real; x even ⟺an even; x odd ⟺an odd; imaginary ⟺ anti-Hermitian; real and even ⟺ real and even; real and odd ⟺ imaginary and odd.
Real x, polar form:an=Anejφn, A−n=An, φ−n=−φn, x(t)=m[T][x]+2∑n≥1Ancos(nω0t+φn).
Trigonometric form:an=21(Bn−jCn), Bn=T2∫xcos(nω0t), Cn=T2∫xsin(nω0t); real x: x=2B0+∑n≥1[Bncos(nω0t)+Cnsin(nω0t)].
Example:x=1+sinω0t+2cosω0t+cos(2ω0t+4π): a0=1, a±1=1∓2j, a±2=21e±jπ/4, others 0. Get them from Euler's formulas, not from the integral.
Typical mistakes: dropping the T1; forgetting the minus sign in e−jnω0t; computing negative-n coefficients of a real signal instead of conjugating; using ω0 for a constant (any T works).