A complex exponential in discrete time is x(k)=ejθk. If we want it periodic of period N we must enforce x(k+N)=x(k):
ejθkejθN=ejθk⟹ejθN=1=ej2πn,∀n∈Z⟹θN=2πn⟹θ=N2πn.
So θ cannot be an arbitrary frequency: θ/π∈Q.
How many distinct signalsx(k)=ejN2πnk exist? Taking n=0,1,…:
n=0: x(k)=1 for all k;
n=1: x(k)=ejN2πk;
⋮
n=N−1: x(k)=ejN2π(N−1)k;
n=N: x(k)=ejN2πNk=1 for all k (same as n=0);
n=N+1: x(k)=ejN2π(N+1)k=ejN2πk (same as n=1);
and so on.
Only N distinct signals ejN2πnk exist. This is a finite-dimensional basis of complex exponentials. A discrete-time signal over one period can be written as a vector with finite components in CN:
x=[x(0)x(1)⋯x(N−1)]T.
Define
ψn(k):=ejN2πnk(n: frequency,k: time),ψn=[ψn(0)ψn(1)⋯ψn(N−1)]T.
Can an N-periodic signal be written with the ψn?
Let x(k) be periodic of period N. To answer, use linear difference equations:
x(k)−x(k−N)=0(Δ).
Its characteristic polynomial is obtained through the delay operator z−1: 1−z−N=0; multiplying by zN: zN−1=0, i.e. λN=1. Equations of the type λN=q, q∈C, are solved by writing q=ρejφ and
λN=ρej(φ+2πn)⟹λn=NρejNφ+2πn=ρ1/Nejφ/NejN2πn.
In our case q=1, so ρ=1, φ=0, and the roots are the N-th roots of unity, equally spaced on the unit circle:
Im(lambda)
| . n=1
. |
------+----+----o-----> Re(lambda) (n=0 at lambda=1)
. |
| . n=N-1
unit circle, N equally spaced points
The solution of (Δ) is x(k)=c0λ0k+c1λ1k+⋯+cN−1λN−1k. The modes associated with (Δ) are exactly ψn(k)=λnk, n=0,…,N−1. A linear combination of the ψn(k) is a discrete-time signal that is periodic of period N, so every N-periodic signal is
x(k)=n=0∑N−1cnψn(k).
The coefficients are found with linear algebra.
Linear-algebra setting
Let SNdt be the set of discrete-time signals that are periodic of period N. There is an isomorphism (one-to-one bijection) SNdt↔CN. In this setting:
energy in SNdt: E[N][x]=∑k=0N−1∣x(k)∣2, which in CN is ∥x∥2;
mutual energy: E[N][x1,x2]=∑k=0N−1x1(k)x2(k), which in CN is ⟨x1,x2⟩=x2∗x1.
Orthogonality of the harmonic exponentials
The set of discrete-time complex exponentials in harmonic relation {ψn(k)}n=0N−1 is orthogonal and can form an orthogonal basis of SNdt↔CN:
Case n=m. Let i:=n−m. With the finite geometric sum ∑ℓ=0Mqℓ=1−q1−qM+1 for all q=1 (here q=ejN2πi=1, M+1=N):
k=0∑N−1ejN2πik=1−ejN2πi1−ejN2πiN=0.Case n=m: each term is ejN2πnke−jN2πnk=1, so the sum is N. #
Therefore ⟨ψn,ψm⟩=Nδ(n−m) (orthogonality condition ψn⊥ψm for n=m).
By the representation lemma the coefficients are
cn=⟨ψn,ψn⟩⟨x,ψn⟩=N1k=0∑N−1x(k)e−jN2πnk,
where the denominator is N.
Definition of the DFT
This was a heuristic derivation of the discrete Fourier transform.
Definition (DFT). Given a discrete-time signal x(k):Z→C periodic of period N, the DFT of x(k) is
X(n)=N1k=0∑N−1x(k)e−jN2πnk
Notation: X(n)=FD[x(k)]. The values X(n) are exactly the coefficients cn, so that x(k)=∑n=0N−1X(n)ejN2πnk.
Periodicity of X(n).X(n+N)=N1k=0∑N−1x(k)e−jN2π(n+N)k=N1k=0∑N−1x(k)e−jN2πnk1e−jN2πNk=X(n).
So X(n) is periodic of period N, exactly as x(k). Hence X(n) can also be represented in CN: X=[X(0)X(1)⋯X(N−1)]T.
DFT operator.F:CN→CN, X=Fx, with F an N×N matrix whose rows are the transposed conjugated vectors ψnT (row n has entries ψn(k)=e−jN2πnk, k=0,1,…,N−1 across the columns), the factor N1 of the definition being included in F. (The scan draws the rows as conjugated ψn(k)T and does not write the factor N1 explicitly in the matrix.)
Versione ripasso
Periodic exponentials:ejθk is N-periodic iff θ=N2πn (so θ/π∈Q). Only N distinct ones: ψn(k)=ejN2πnk, n=0,…,N−1 (index n+N repeats index n).
Why they suffice: an N-periodic x solves x(k)−x(k−N)=0; characteristic equation λN=1 with roots λn=ejN2πn (roots of unity); the modes are ψn(k)=λnk, so x(k)=∑n=0N−1cnψn(k).
Setting:SNdt↔CN (isomorphism); energy ∑∣x(k)∣2=∥x∥2; mutual energy ∑x1x2=⟨x1,x2⟩.
Orthogonality:⟨ψn,ψm⟩=Nδ(n−m) (finite geometric sum 1−q1−qM+1, q=1, with qN=1).
Coefficients and definition:X(n)=cn=N1k=0∑N−1x(k)e−jN2πnk,x(k)=n=0∑N−1X(n)ejN2πnk.X(n) is N-periodic like x(k), so X=Fx with F an N×N matrix built from conjugated ψn (factor N1 as in the definition).
Typical mistakes: forgetting that only N exponentials are distinct (index mod N); putting the N1 in the wrong place (here it is in the analysis formula for X(n)); omitting the conjugate (minus sign in the exponent) when computing the coefficients.