Salta al contenuto
Note per Studenti Discrete-Time Complex Exponentials and Periodicity Report

Discrete-Time Complex Exponentials and Periodicity

In questa pagina 6

Complex exponential signals (discrete time)

A discrete-time complex exponential is

x(k)=C λk,C,λ∈C.x(k) = C\,\lambda^{k}, \qquad C,\lambda \in \mathbb{C}.

For C,λ∈RC,\lambda \in \mathbb{R} there are four qualitatively different cases (sketched as stems with an envelope):

C>0, lambda>1         : stems all positive, growing with k (exponential growth)
C>0, 0<lambda<1       : stems all positive, decaying with k
-1<lambda<0           : stems alternate in sign, envelope decays (alternating decay)
lambda<-1             : stems alternate in sign, envelope grows (alternating growth)

The two most popular discrete-time signals of this kind are:

  • x(k)=ejθ0k=cos⁡(θ0k)+jsin⁡(θ0k)x(k) = e^{j\theta_0 k} = \cos(\theta_0 k) + j\sin(\theta_0 k), i.e. λ=ejθ0\lambda = e^{j\theta_0}. Here kk is dimensionless and θ0\theta_0 is measured in rad.
  • x(k)=Acos⁡(θ0k+ϕ)x(k) = A\cos(\theta_0 k + \phi), with ϕ\phi in rad, A∈RA \in \mathbb{R}, A>0A > 0.

Observation (infinite-horizon energy and power):

E∞ ⁣[ejθ0k]=+∞,P∞ ⁣[ejθ0k]<+∞,E∞ ⁣[Acos⁡(θ0k+ϕ)]=+∞,P∞ ⁣[Acos⁡(θ0k+ϕ)]<+∞.E_\infty\!\left[e^{j\theta_0 k}\right] = +\infty, \quad P_\infty\!\left[e^{j\theta_0 k}\right] < +\infty, \qquad E_\infty\!\left[A\cos(\theta_0 k+\phi)\right] = +\infty, \quad P_\infty\!\left[A\cos(\theta_0 k+\phi)\right] < +\infty.

Periodicity of ejθ0ke^{j\theta_0 k}

The signal is periodic with period Kˉ\bar{K} if

ejθ0(k+Kˉ)=ejθ0k∀k∈Z  ⟺  ejθ0Kˉ=1  ⟺  θ0Kˉ=2πp, p∈Ze^{j\theta_0 (k+\bar{K})} = e^{j\theta_0 k} \quad \forall k \in \mathbb{Z} \;\Longleftrightarrow\; e^{j\theta_0 \bar{K}} = 1 \;\Longleftrightarrow\; \theta_0 \bar{K} = 2\pi p, \ p \in \mathbb{Z}

(the integer pp, written kk in the lecture, does not represent time). Hence

θ02π=pKˉ∈Q.\frac{\theta_0}{2\pi} = \frac{p}{\bar{K}} \in \mathbb{Q}.

Result. x(k)=ejθ0kx(k) = e^{j\theta_0 k} is periodic if and only if θ0/2π\theta_0/2\pi is a rational number.

If p/Kˉp/\bar{K} is reduced to lowest terms and Kˉ>0\bar{K} > 0, then K0=KˉK_0 = \bar{K} is the fundamental period:

K0={2π∣pθ0∣,θ0≠01,otherwisesubject to θ02π=pKˉ∈Q, gcd⁡(Kˉ,p)=1.K_0 = \begin{cases} 2\pi \left|\dfrac{p}{\theta_0}\right|, & \theta_0 \neq 0 \\[2mm] 1, & \text{otherwise} \end{cases} \qquad \text{subject to } \frac{\theta_0}{2\pi} = \frac{p}{\bar{K}} \in \mathbb{Q},\ \gcd(\bar{K},p)=1 .

Observation: ej(θ0+2π)k=ejθ0kej2πk=ejθ0ke^{j(\theta_0 + 2\pi)k} = e^{j\theta_0 k}e^{j2\pi k} = e^{j\theta_0 k}, so adding 2π2\pi to θ0\theta_0 gives the same signal. It is therefore wise to restrict θ0\theta_0 to [0,2π[[0, 2\pi[.

Special case. ejπk=(ejπ)k=(−1)ke^{j\pi k} = (e^{j\pi})^k = (-1)^k, equal to 11 for kk even and −1-1 for kk odd. It has the highest possible frequency among discrete non-constant signals (K0=2K_0 = 2).

Examples: fundamental period (continuous vs discrete)

signal computation result
x1(t)=cos⁡ ⁣(2π12t)x_1(t) = \cos\!\left(\frac{2\pi}{12}t\right) 2π∣ω0∣=2π⋅122π=12\frac{2\pi}{\lvert\omega_0\rvert} = 2\pi\cdot\frac{12}{2\pi} = 12 T0=12T_0 = 12
x1(k)=cos⁡ ⁣(2π12k)x_1(k) = \cos\!\left(\frac{2\pi}{12}k\right) 2π∣θ0∣=12\frac{2\pi}{\lvert\theta_0\rvert} = 12 K0=12K_0 = 12
x2(t)=cos⁡ ⁣(8π31t)x_2(t) = \cos\!\left(\frac{8\pi}{31}t\right) 2π⋅318π=3142\pi\cdot\frac{31}{8\pi} = \frac{31}{4} T0=31/4T_0 = 31/4
x2(k)=cos⁡ ⁣(8π31k)x_2(k) = \cos\!\left(\frac{8\pi}{31}k\right) 2π⋅318π=3142\pi\cdot\frac{31}{8\pi} = \frac{31}{4}, multiply by p=4p=4 to get an integer K0=31K_0 = 31
x3(t)=cos⁡ ⁣(t6)x_3(t) = \cos\!\left(\frac{t}{6}\right) 2π⋅6=12π2\pi\cdot 6 = 12\pi T0=12πT_0 = 12\pi
x3(k)=cos⁡ ⁣(k6)x_3(k) = \cos\!\left(\frac{k}{6}\right) 2π⋅6=12π∉Q2\pi \cdot 6 = 12\pi \notin \mathbb{Q} aperiodic

Exercise: sum of two exponentials

Find the fundamental period of x(k)=ej(2π3k)+ej(3π4k)x(k) = e^{j\left(\frac{2\pi}{3}k\right)} + e^{j\left(\frac{3\pi}{4}k\right)}.

  • First term (θ1=2π/3\theta_1 = 2\pi/3): 2πθ1=2π⋅32π=3⇒Kˉ1=3\frac{2\pi}{\theta_1} = 2\pi\cdot\frac{3}{2\pi} = 3 \Rightarrow \bar{K}_1 = 3.
  • Second term (θ2=3π/4\theta_2 = 3\pi/4): 2πθ2=2π⋅43π=83⇒Kˉ2=8\frac{2\pi}{\theta_2} = 2\pi\cdot\frac{4}{3\pi} = \frac{8}{3} \Rightarrow \bar{K}_2 = 8.
  • Hence Kˉ=lcm⁡(Kˉ1,Kˉ2)=24\bar{K} = \operatorname{lcm}(\bar{K}_1,\bar{K}_2) = 24, and K0=24K_0 = 24 because Kˉ1\bar{K}_1 and Kˉ2\bar{K}_2 are fundamental periods.

Harmonic relations

Define the family

ψn(k)=ejn2πKˉk,n∈Z,\psi_n(k) = e^{jn\frac{2\pi}{\bar{K}}k}, \qquad n \in \mathbb{Z},

with common period Kˉ\bar{K}, i.e. θn=n2πKˉ\theta_n = n\frac{2\pi}{\bar{K}}. If θn2π=nKˉ∈Q\frac{\theta_n}{2\pi} = \frac{n}{\bar{K}} \in \mathbb{Q}, then every ψn\psi_n is periodic of period Kˉ\bar{K}, ∀n∈Z\forall n \in \mathbb{Z}.

The first members are ψ0(k)=1\psi_0(k) = 1, ψ1(k)=ej2πKˉk\psi_1(k) = e^{j\frac{2\pi}{\bar{K}}k}, …\dots, ψKˉ−1(k)=ej(Kˉ−1)2πKˉk\psi_{\bar{K}-1}(k) = e^{j(\bar{K}-1)\frac{2\pi}{\bar{K}}k}, and then

ψKˉ(k)=ejKˉ2πKˉk=ej2πk=1k=1=ψ0(k).\psi_{\bar{K}}(k) = e^{j\bar{K}\frac{2\pi}{\bar{K}}k} = e^{j2\pi k} = 1^k = 1 = \psi_0(k).

In other words, there are exactly Kˉ\bar{K} distinct elements in the family ψn(k)\psi_n(k).

Energy and average power over one period

E[K0] ⁣[ejθ0k]=∑m=0K0−1∣ejθ0m∣2=K0,P[K0] ⁣[ejθ0k]=1K0∑m=0K0−1∣ejθ0m∣2=1=P∞ ⁣[ejθ0k].E_{[K_0]}\!\left[e^{j\theta_0 k}\right] = \sum_{m=0}^{K_0-1}\left|e^{j\theta_0 m}\right|^2 = K_0, \qquad P_{[K_0]}\!\left[e^{j\theta_0 k}\right] = \frac{1}{K_0}\sum_{m=0}^{K_0-1}\left|e^{j\theta_0 m}\right|^2 = 1 = P_\infty\!\left[e^{j\theta_0 k}\right].

Summary of periodicity analysis (to be learnt by heart)

complex exponential, cosine, sine sum, product, etc. of periodic signals
continuous time ejω0te^{j\omega_0 t} is always periodic, T0=2π∣ω0∣T_0 = \dfrac{2\pi}{\lvert\omega_0\rvert} (if ω0≠0\omega_0\neq 0) periodic   ⟺  T1T2=nm∈Q\iff \dfrac{T_1}{T_2} = \dfrac{n}{m} \in \mathbb{Q} (plus minimal assumptions); then T0=mT1=nT2T_0 = mT_1 = nT_2
discrete time ejθ0ke^{j\theta_0 k} is periodic   ⟺  θ02π∈Q\iff \dfrac{\theta_0}{2\pi}\in\mathbb{Q}; K0=2π∣pθ0∣K_0 = 2\pi\left\lvert\dfrac{p}{\theta_0}\right\rvert for θ0≠0\theta_0\ne0, 11 otherwise, subject to θ02π=pKˉ∈Q\dfrac{\theta_0}{2\pi}=\dfrac{p}{\bar K}\in\mathbb{Q}, gcd⁡(Kˉ,p)=1\gcd(\bar K,p)=1 periodic   ⟺  θ12π∈Q\iff \dfrac{\theta_1}{2\pi}\in\mathbb{Q} and θ22π∈Q\dfrac{\theta_2}{2\pi}\in\mathbb{Q}, with Kˉ1,2\bar K_{1,2} as above; Kˉ=lcm⁡(Kˉ1,Kˉ2)\bar K = \operatorname{lcm}(\bar K_1,\bar K_2) (in general K0K_0 has to be checked manually)

The lecturer adds that the rule for Kˉ1,2\bar K_{1,2} in the last cell is needed only when two complex-exponential signals are considered, and that a few weeks later we will see why fundamental periods are so important.

Exercises on periodic signals

Determine whether each signal is periodic and find its fundamental period if it exists.

  1. x1(t)=j ej10tx_1(t) = j\,e^{j10t}: T0=2π10=π5T_0 = \frac{2\pi}{10} = \frac{\pi}{5}.
  2. x2(t)=e(−1+j)t=e−tejtx_2(t) = e^{(-1+j)t} = e^{-t}e^{jt}: ∣x2(t)∣=e−t|x_2(t)| = e^{-t}, so x2(t)x_2(t) is aperiodic.
  3. x1(k)=ej7πk=ej6πkejπk=ejπk=(−1)kx_1(k) = e^{j7\pi k} = e^{j6\pi k}e^{j\pi k} = e^{j\pi k} = (-1)^k: K0=2K_0 = 2.
  4. x2(k)=3ej35(k+12)=3ej310 ej35k=constant⋅ej35kx_2(k) = 3e^{j\frac{3}{5}\left(k+\frac12\right)} = 3e^{j\frac{3}{10}}\,e^{j\frac{3}{5}k} = \text{constant}\cdot e^{j\frac35 k}. Since 2π3/5=10π3∉Q\frac{2\pi}{3/5} = \frac{10\pi}{3}\notin\mathbb{Q}, the signal is aperiodic.
  5. x3(k)=1+ej4π7k−ej2π5kx_3(k) = 1 + e^{j\frac{4\pi}{7}k} - e^{j\frac{2\pi}{5}k}: the three terms have Kˉ1=1\bar K_1 = 1; 2π4π/7=72∈Q⇒Kˉ2=7\frac{2\pi}{4\pi/7} = \frac72 \in \mathbb{Q} \Rightarrow \bar K_2 = 7; 2π2π/5=5⇒Kˉ3=5\frac{2\pi}{2\pi/5} = 5 \Rightarrow \bar K_3 = 5. Then Kˉ=lcm⁡(Kˉ1,Kˉ2,Kˉ3)=35\bar K = \operatorname{lcm}(\bar K_1,\bar K_2,\bar K_3) = 35 and K0=35K_0 = 35.

Versione ripasso

  • Signal: x(k)=Cλkx(k) = C\lambda^k, C,λ∈CC,\lambda\in\mathbb{C}. For λ=ejθ0\lambda = e^{j\theta_0}: ejθ0k=cos⁡(θ0k)+jsin⁡(θ0k)e^{j\theta_0 k} = \cos(\theta_0 k) + j\sin(\theta_0 k), with θ0\theta_0 in rad and kk dimensionless. Always E∞=+∞E_\infty = +\infty, P∞<+∞P_\infty < +\infty.
  • Periodicity: ejθ0ke^{j\theta_0 k} periodic   ⟺  θ0/2π∈Q\iff \theta_0/2\pi \in \mathbb{Q} (because ejθ0Kˉ=1  ⟺  θ0Kˉ=2πpe^{j\theta_0\bar K}=1 \iff \theta_0\bar K = 2\pi p).
  • Fundamental period: write θ0/2π=p/Kˉ\theta_0/2\pi = p/\bar K in lowest terms with Kˉ>0\bar K>0; then K0=Kˉ=2π∣p/θ0∣K_0=\bar K = 2\pi|p/\theta_0| (and K0=1K_0 = 1 if θ0=0\theta_0 = 0).
  • θ0\theta_0 and θ0+2π\theta_0+2\pi give the same signal: restrict to [0,2π[[0,2\pi[. ejπk=(−1)ke^{j\pi k} = (-1)^k has K0=2K_0=2, the fastest non-constant discrete signal.
  • Harmonics: ψn(k)=ejn2πKˉk\psi_n(k) = e^{jn\frac{2\pi}{\bar K}k}; exactly Kˉ\bar K distinct members (ψKˉ=ψ0=1\psi_{\bar K} = \psi_0 = 1).
  • Over one period: E[K0]=K0E_{[K_0]} = K_0, P[K0]=1=P∞P_{[K_0]} = 1 = P_\infty.
  • Sums of signals: continuous time, T1/T2=n/m∈QT_1/T_2 = n/m\in\mathbb{Q} gives T0=mT1=nT2T_0 = mT_1 = nT_2; discrete time, each θi/2π\theta_i/2\pi must be rational and Kˉ=lcm⁡(Kˉ1,Kˉ2)\bar K = \operatorname{lcm}(\bar K_1,\bar K_2) (it is K0K_0 when the Kˉi\bar K_i are fundamental).
  • Continuous time differs: ejω0te^{j\omega_0 t} is always periodic, T0=2π/∣ω0∣T_0 = 2\pi/|\omega_0|. So cos⁡(t/6)\cos(t/6) is periodic (T0=12πT_0 = 12\pi) but cos⁡(k/6)\cos(k/6) is not.
  • Typical mistakes: forgetting to reduce p/Kˉp/\bar K to lowest terms; assuming a discrete cosine is always periodic; treating e−tejte^{-t}e^{jt} as periodic (the modulus decays); forgetting that a constant phase factor does not change the period.
  • Examples: cos⁡(8π31k)\cos(\frac{8\pi}{31}k) has K0=31K_0=31; ej2π3k+ej3π4ke^{j\frac{2\pi}{3}k}+e^{j\frac{3\pi}{4}k} has K0=lcm⁡(3,8)=24K_0=\operatorname{lcm}(3,8)=24; 1+ej4π7k−ej2π5k1+e^{j\frac{4\pi}{7}k}-e^{j\frac{2\pi}{5}k} has K0=lcm⁡(1,7,5)=35K_0 = \operatorname{lcm}(1,7,5)=35.