Salta al contenuto
Note per Studenti Periodic Signals Report

Periodic Signals

In questa pagina 7

Definition

Definition (periodic signal). A signal x(⋅)x(\cdot) is said to be periodic if there exists T∈RT \in \mathbb{R}, T>0T > 0 (continuous time) or K‾∈N∖{0}\underline{K} \in \mathbb{N}\setminus\{0\} (discrete time) such that

cont.: x(t+T)=x(t)  ∀t∈R,disc.: x(k+K‾)=x(k)  ∀k∈Z.\text{cont.: } x(t + T) = x(t) \ \ \forall t \in \mathbb{R}, \qquad \text{disc.: } x(k + \underline{K}) = x(k) \ \ \forall k \in \mathbb{Z}.

TT (or K‾\underline{K}) is called a period.

Example (mass-spring system). A mass mm hangs from a spring of constant KK; x(t)x(t) is the displacement from the rest position. With x˙(t)=ddtx(t)\dot{x}(t) = \frac{d}{dt}x(t) and x¨(t)=d2dt2x(t)\ddot{x}(t) = \frac{d^2}{dt^2}x(t), the dynamics is mx¨(t)+Kx(t)=0m\ddot{x}(t) + Kx(t) = 0. For initial conditions t0=0t_0 = 0, x(t0)=x0x(t_0) = x_0, x˙(t0)=0\dot{x}(t_0) = 0, the solution is

x(t)=x0cos⁡(Km t),x(t) = x_0\cos\left(\sqrt{\frac{K}{m}}\,t\right),

with period

T=2πK/m=2πmK.T = \frac{2\pi}{\sqrt{K/m}} = 2\pi\sqrt{\frac{m}{K}}.

Continuous-time case: fundamental period

Definition (fundamental period). It is the smallest T0>0T_0 > 0 for which x(t)x(t) is still periodic.

Caveat. If x(t)≡constantx(t) \equiv \text{constant} then T0T_0 is indeterminate, but still we can say that x(t)x(t) is somewhat "periodic of any period".

Definition (aperiodic signal). A signal having no period is called aperiodic.

Example (aperiodic signal).

x(t)={sin⁡t,t≥0−sin⁡t,t<0x(t) = \begin{cases}\sin t, & t \ge 0 \\ -\sin t, & t < 0\end{cases}

In the plot of the course the graph has a hump of height 11 at t=π2t = \frac{\pi}{2} on [0,π][0, \pi] and the mirror hump on [−π,0][-\pi, 0], then it goes negative beyond ±π\pm\pi. The signal is not periodic (it is the example of an aperiodic signal given in the lecture).

Discrete-time case: fundamental period

Definition (fundamental period). It is the smallest K0∈N∖{0}K_0 \in \mathbb{N}\setminus\{0\} for which x(k)x(k) is still periodic. It may be that K0=1K_0 = 1: if this happens then x(k)x(k) is constant.

Caveat. Discrete-time constant signals have a well-defined period: it is K‾=1\underline{K} = 1.

Sum of periodic signals

Question. Given {x1(t)}\{x_1(t)\}, {x2(t)}\{x_2(t)\} periodic of period T1T_1, T2T_2 respectively, with x1(t)≠constantx_1(t) \ne \text{constant} and x2(t)≠constantx_2(t) \ne \text{constant}, is there a condition to establish whether x(t):=x1(t)+x2(t)x(t) := x_1(t) + x_2(t) is periodic?

Answer. Yes. If there exist m,n∈Zm, n \in \mathbb{Z} such that mT1=nT2mT_1 = nT_2, then {x(t)}\{x(t)\} is periodic of period

T=mT1=nT2.\boxed{T = mT_1 = nT_2}.

A sufficient condition to establish periodicity of the sum is

T1T2=nm∈Q,\boxed{\frac{T_1}{T_2} = \frac{n}{m} \in \mathbb{Q}},

where Q\mathbb{Q} is the set of rational numbers. It is also a necessary condition if we further assume that one of the two signals is continuous, in the sense of lim⁡t→t0x(t)=x(t0)\lim_{t \to t_0}x(t) = x(t_0) for all t0∈Dom(x)t_0 \in \mathrm{Dom}(x), provided that Dom(x)\mathrm{Dom}(x) is nondegenerate.

Example. x1(t)x_1(t) periodic ⇒\Rightarrow x2(t)=−x1(t)+constantx_2(t) = -x_1(t) + \text{constant} is periodic.

Exercise (find the fundamental period).

  • x(t)=cos⁡2tx(t) = \cos^2t: T0=πT_0 = \pi.
  • x(t)=sin⁡tcos⁡t=tan⁡tx(t) = \frac{\sin t}{\cos t} = \tan t: T0=πT_0 = \pi.
  • x(t)=2cos⁡(10t−1)−sin⁡(4t+4)x(t) = 2\cos(10t - 1) - \sin(4t + 4): the two terms have periods T1=2π10=π5T_1 = \frac{2\pi}{10} = \frac{\pi}{5} and T2=2π4=π2T_2 = \frac{2\pi}{4} = \frac{\pi}{2}. Observe that 5T1=π=2T25T_1 = \pi = 2T_2, so T0=πT_0 = \pi.

Discrete-time case. Here the situation is completely different! If {x1(k)}\{x_1(k)\} and {x2(k)}\{x_2(k)\} are periodic of period K‾1\underline{K}_1, K‾2\underline{K}_2 respectively, then x(k)=x1(k)+x2(k)x(k) = x_1(k) + x_2(k) is always periodic, because K‾=l.c.m.(K‾1,K‾2)\underline{K} = \mathrm{l.c.m.}(\underline{K}_1, \underline{K}_2) is a period.

Caveat. K‾\underline{K} may or may not be the fundamental period, but many times it is.

Periodic repetition

Definition (periodic repetition). Given x(⋅)={x(t)∣−∞<t<+∞}x(\cdot) = \{x(t) \mid -\infty < t < +\infty\}, its periodic repetition is

repT[x]=∑n=−∞+∞x(t−nT),T∈R, T>0.\mathrm{rep}_T[x] = \sum_{n = -\infty}^{+\infty}x(t - nT), \qquad T \in \mathbb{R},\ T > 0.

If the series converges for all t∈Rt \in \mathbb{R}, then repT[x(t)]\mathrm{rep}_T[x(t)] is by construction periodic of period TT.

Definition (support and bounded-support signal). The set {t∣x(t)≠0}\{t \mid x(t) \ne 0\} is called the support of xx. If there exist a,ba, b finite such that x(t)≡0x(t) \equiv 0 for all t∉[a,b]t \notin [a, b], then xx is said to be a bounded-support signal.

If xx has bounded support and T≥(b−a)T \ge (b - a), then the repetitions x(t−nT)x(t - nT) do not "overlap" and repT[x]\mathrm{rep}_T[x] coincides with one of the shifted copies of xx over any interval of length TT.

Example. A signal x(t)x(t) supported on [−1,2][-1, 2] (length 33). Its repetition with T=4T = 4 (the subscript is handwritten and read here as 44, consistent with the copies drawn on [−5,−2][-5, -2], [−1,2][-1, 2], [3,6][3, 6]) is made of non-overlapping copies of xx separated by gaps of length T−(b−a)=1T - (b - a) = 1, where repT[x]\mathrm{rep}_T[x] is zero.

Energy and average power of periodic signals

Assume that {x(t)}\{x(t)\} is periodic of period TT.

Energy over one period:

E[T][x]:=∫ss+T∣x(τ)∣2dτ=∫[T]∣x(τ)∣2dτE_{[T]}[x] := \int_s^{s + T}|x(\tau)|^2d\tau = \int_{[T]}|x(\tau)|^2d\tau

(the starting point ss is arbitrary).

Fact.

E∞[x]={0,if x(t)≡0 "almost everywhere"+∞,otherwiseE_\infty[x] = \begin{cases}0, & \text{if } x(t) \equiv 0 \text{ "almost everywhere"} \\ +\infty, & \text{otherwise}\end{cases}

Proof. Over the window [−nT,nT][-nT, nT] there are 2n2n periods, so

E∞[x]=lim⁡n→+∞∫−nTnT∣x(τ)∣2dτ=lim⁡n→+∞2n∫[T]∣x(τ)∣2dτ,E_\infty[x] = \lim_{n \to +\infty}\int_{-nT}^{nT}|x(\tau)|^2d\tau = \lim_{n \to +\infty}2n\int_{[T]}|x(\tau)|^2d\tau,

which is +∞+\infty unless the energy over one period is 00. ■\blacksquare

Observation. L2(R)L^2(\mathbb{R}) (see Energy and Power of SignalsEnergy and average power of continuous- and discrete-time signals over finite and infinite horizons, finite-energy signals, mutual energy as a scalar product, and the Lebesgue spaces L2 and l2 of finite-energy signals.Energy and Power of Signals →) does not contain periodic signals except for x(t)≡0x(t) \equiv 0.

Average power over one period:

P[T][x]:=1T∫[T]∣x(τ)∣2dτ.P_{[T]}[x] := \frac{1}{T}\int_{[T]}|x(\tau)|^2d\tau.

Fact. P∞=P[T]P_\infty = P_{[T]} for any periodic signal.

Proof.

P∞[x]=lim⁡n→+∞12nT∫−nTnT∣x(τ)∣2dτ=lim⁡n→+∞12nT⋅2n∫[T]∣x(τ)∣2dτ=P[T][x].■P_\infty[x] = \lim_{n \to +\infty}\frac{1}{2nT}\int_{-nT}^{nT}|x(\tau)|^2d\tau = \lim_{n \to +\infty}\frac{1}{2nT}\cdot 2n\int_{[T]}|x(\tau)|^2d\tau = P_{[T]}[x]. \qquad \blacksquare

Observation. For discrete-time signals:

P∞[x]=P[K‾][x]=1K‾∑n=0K‾−1∣x(n)∣2.P_\infty[x] = P_{[\underline{K}]}[x] = \frac{1}{\underline{K}}\sum_{n = 0}^{\underline{K} - 1}|x(n)|^2.

Exercise: P∞[cos⁡(π4k)]P_\infty\left[\cos\left(\frac{\pi}{4}k\right)\right]

Luckily, cos⁡(π4k)\cos\left(\frac{\pi}{4}k\right) is periodic and its fundamental period is K‾0=8\underline{K}_0 = 8. Therefore

P∞[cos⁡(π4k)]=P[8][cos⁡(π4k)]=18∑n=08−1∣cos⁡(π4n)∣2=18∑n=07cos⁡2(π4n).P_\infty\left[\cos\left(\tfrac{\pi}{4}k\right)\right] = P_{[8]}\left[\cos\left(\tfrac{\pi}{4}k\right)\right] = \frac{1}{8}\sum_{n = 0}^{8 - 1}\left|\cos\left(\tfrac{\pi}{4}n\right)\right|^2 = \frac{1}{8}\sum_{n = 0}^{7}\cos^2\left(\tfrac{\pi}{4}n\right).

With the cosine bisection formula cos⁡2α=1+cos⁡2α2\cos^2\alpha = \frac{1 + \cos 2\alpha}{2} the computation is even easier:

=18∑n=071+cos⁡(π2n)2=18(1+12+0+12+1+12+0+12)=12.= \frac{1}{8}\sum_{n = 0}^{7}\frac{1 + \cos\left(\frac{\pi}{2}n\right)}{2} = \frac{1}{8}\left(1 + \frac{1}{2} + 0 + \frac{1}{2} + 1 + \frac{1}{2} + 0 + \frac{1}{2}\right) = \frac{1}{2}.

Versione ripasso

  • Periodic: x(t+T)=x(t)x(t + T) = x(t) for all tt with T>0T > 0 (continuous), or x(k+K‾)=x(k)x(k + \underline{K}) = x(k) for all kk with K‾∈N∖{0}\underline{K} \in \mathbb{N}\setminus\{0\} (discrete). Fundamental period: the smallest such T0T_0 (or K0K_0). Without any period: aperiodic.
  • Constant continuous-time signal: T0T_0 indeterminate (any period). Constant discrete-time signal: K0=1K_0 = 1 (and K0=1K_0 = 1 implies constant).
  • Mass-spring: mx¨+Kx=0m\ddot{x} + Kx = 0 gives x(t)=x0cos⁡(K/m t)x(t) = x_0\cos(\sqrt{K/m}\,t), T=2πm/KT = 2\pi\sqrt{m/K}.
  • Sum, continuous time: if mT1=nT2mT_1 = nT_2 for integers m,nm, n, i.e. T1/T2=n/m∈QT_1/T_2 = n/m \in \mathbb{Q}, then x1+x2x_1 + x_2 is periodic with T=mT1=nT2T = mT_1 = nT_2 (sufficient; also necessary if one signal is continuous). E.g. 2cos⁡(10t−1)−sin⁡(4t+4)2\cos(10t - 1) - \sin(4t + 4): T1=π5T_1 = \frac{\pi}{5}, T2=π2T_2 = \frac{\pi}{2}, 5T1=2T2=π5T_1 = 2T_2 = \pi, T0=πT_0 = \pi. cos⁡2t\cos^2t and tan⁡t\tan t have T0=πT_0 = \pi.
  • Sum, discrete time: always periodic, K‾=lcm(K‾1,K‾2)\underline{K} = \mathrm{lcm}(\underline{K}_1, \underline{K}_2) (not always the fundamental period).
  • Periodic repetition: repT[x]=∑n=−∞+∞x(t−nT)\mathrm{rep}_T[x] = \sum_{n = -\infty}^{+\infty}x(t - nT), periodic of period TT. Support ={t∣x(t)≠0}= \{t \mid x(t) \ne 0\}; bounded support if x≡0x \equiv 0 outside [a,b][a, b]; if T≥b−aT \ge b - a the copies do not overlap.
  • Periodic signals: E[T]=∫[T]∣x∣2E_{[T]} = \int_{[T]}|x|^2; E∞=0E_\infty = 0 if x≡0x \equiv 0 almost everywhere, otherwise +∞+\infty (so L2L^2 contains no nonzero periodic signal). P∞=P[T]=1T∫[T]∣x∣2P_\infty = P_{[T]} = \frac{1}{T}\int_{[T]}|x|^2; discrete: P∞=1K‾∑n=0K‾−1∣x(n)∣2P_\infty = \frac{1}{\underline{K}}\sum_{n = 0}^{\underline{K} - 1}|x(n)|^2.
  • Example: P∞[cos⁡(π4k)]=12P_\infty\left[\cos\left(\frac{\pi}{4}k\right)\right] = \frac{1}{2} (K0=8K_0 = 8, use cos⁡2α=1+cos⁡2α2\cos^2\alpha = \frac{1 + \cos 2\alpha}{2}).
  • Typical mistakes: using the continuous-time rational-ratio test for discrete-time sums; taking a period that is not the smallest as the fundamental one; computing E∞E_\infty of a periodic signal (it is +∞+\infty).

Teoria collegata