Salta al contenuto
Note per Studenti Energy and Power of Signals Report

Energy and Power of Signals

In questa pagina 6

Motivation: the resistor

Consider a resistor with constant resistance RR, voltage v(t)v(t) and current i(t)i(t). By Ohm's law v(t)=R i(t)v(t) = R\,i(t). The instantaneous power is

p(t)=v(t) i(t)=1Rv2(t).p(t) = v(t)\,i(t) = \frac{1}{R}v^2(t).

Over [t1,t2][t_1, t_2] the dissipated energy is the area of the power (see Continuous-Time and Discrete-Time SignalsMathematical models of signals as functions of a real variable (continuous time) or an integer variable (discrete time), their analytic, graphic and tabular representations, time shift, time reversal, area, mean value and correlation.Continuous-Time and Discrete-Time Signals →):

E[t1,t2]=A[t1,t2][p(t)]=∫t1t2p(τ) dτ=∫t1t21Rv2(τ) dτ,E_{[t_1, t_2]} = \mathcal{A}_{[t_1, t_2]}[p(t)] = \int_{t_1}^{t_2}p(\tau)\,d\tau = \int_{t_1}^{t_2}\frac{1}{R}v^2(\tau)\,d\tau,

and the average power is the mean value of the power:

P[t1,t2]=m[t1,t2][p(t)]=1t2−t1∫t1t21Rv2(τ) dτ.P_{[t_1, t_2]} = m_{[t_1, t_2]}[p(t)] = \frac{1}{t_2 - t_1}\int_{t_1}^{t_2}\frac{1}{R}v^2(\tau)\,d\tau.

Definitions for signals

Drawing inspiration from physics, in Signals and Systems we define the following quantities for signals:

  • energy over a bounded interval, E[t1,t2][x]E_{[t_1, t_2]}[x];
  • average power over a bounded interval, P[t1,t2][x]P_{[t_1, t_2]}[x];
  • energy over the infinite horizon, E∞[x]E_\infty[x];
  • average power over the infinite horizon, P∞[x]P_\infty[x].

These are all real nonnegative quantities (possibly +∞+\infty). In particular:

continuous time discrete time
energy on a bounded interval E[t1,t2][x]:=∫t1t2∣x(τ)∣2dτE_{[t_1, t_2]}[x] := \displaystyle\int_{t_1}^{t_2}\lvert x(\tau)\rvert^2d\tau E[k1,k2][x]:=∑n=k1k2∣x(n)∣2E_{[k_1, k_2]}[x] := \displaystyle\sum_{n = k_1}^{k_2}\lvert x(n)\rvert^2
average power on a bounded interval P[t1,t2][x]:=1t2−t1∫t1t2∣x(τ)∣2dτP_{[t_1, t_2]}[x] := \dfrac{1}{t_2 - t_1}\displaystyle\int_{t_1}^{t_2}\lvert x(\tau)\rvert^2d\tau P[k1,k2][x]:=1k2−k1+1∑n=k1k2∣x(n)∣2P_{[k_1, k_2]}[x] := \dfrac{1}{k_2 - k_1 + 1}\displaystyle\sum_{n = k_1}^{k_2}\lvert x(n)\rvert^2
energy, infinite horizon E∞[x]:=∫−∞+∞∣x(τ)∣2dτE_\infty[x] := \displaystyle\int_{-\infty}^{+\infty}\lvert x(\tau)\rvert^2d\tau E∞[x]:=∑n=−∞+∞∣x(n)∣2E_\infty[x] := \displaystyle\sum_{n = -\infty}^{+\infty}\lvert x(n)\rvert^2
average power, infinite horizon P∞[x]:=lim⁡T→+∞12T∫−TT∣x(τ)∣2dτP_\infty[x] := \displaystyle\lim_{T \to +\infty}\frac{1}{2T}\int_{-T}^{T}\lvert x(\tau)\rvert^2d\tau P∞[x]:=lim⁡K→+∞12K+1∑n=−KK∣x(n)∣2P_\infty[x] := \displaystyle\lim_{K \to +\infty}\frac{1}{2K + 1}\sum_{n = -K}^{K}\lvert x(n)\rvert^2

Note: P∞P_\infty is well defined only if the limit exists.

Definition (finite-energy signal). If E∞[x]E_\infty[x] is finite, the signal {x(t)}\{x(t)\} (or {x(k)}\{x(k)\}) is said to be a finite-energy signal.

Important observation. E∞<+∞E_\infty < +\infty implies P∞=0P_\infty = 0.

Why? Because

0≤P∞[x]=lim⁡T→+∞12T∫−TT∣x(τ)∣2dτ≤lim⁡T→+∞12TE∞[x]=0,0 \le P_\infty[x] = \lim_{T \to +\infty}\frac{1}{2T}\int_{-T}^{T}|x(\tau)|^2d\tau \le \lim_{T \to +\infty}\frac{1}{2T}E_\infty[x] = 0,

where the inequality holds because E∞E_\infty is already defined over (−∞,+∞)(-\infty, +\infty) and ∣x(t)∣2≥0|x(t)|^2 \ge 0 (so the integral over [−T,T][-T, T] cannot exceed the integral over the whole line). In the discrete case the same argument gives

0≤P∞[x]=lim⁡K→+∞12K+1∑n=−KK∣x(n)∣2≤lim⁡K→+∞12K+1E∞[x]=0.0 \le P_\infty[x] = \lim_{K \to +\infty}\frac{1}{2K + 1}\sum_{n = -K}^{K}|x(n)|^2 \le \lim_{K \to +\infty}\frac{1}{2K + 1}E_\infty[x] = 0.

Examples

Rectangular pulse function. Define

rect(t):={1,if ∣t∣≤120,otherwise\mathrm{rect}(t) := \begin{cases}1, & \text{if } |t| \le \frac{1}{2} \\ 0, & \text{otherwise}\end{cases}

(mathematicians leave it undefined at t=±12t = \pm\frac{1}{2}). The signal rect(t−T0/2T0)\mathrm{rect}\left(\frac{t - T_0/2}{T_0}\right) is equal to 11 for 0≤t≤T00 \le t \le T_0 and 00 elsewhere; its area is A=T0\mathcal{A} = T_0.

 rect((t - T0/2)/T0)

   1 +--------+
     |        |
 ----+--------+-----> t
     0        T0

E∞=∫−∞+∞∣rect(τ−T0/2T0)∣2dτ=∫0T0∣1∣2dτ=T0−0=T0 ⟹ P∞=0.E_\infty = \int_{-\infty}^{+\infty}\left|\mathrm{rect}\left(\frac{\tau - T_0/2}{T_0}\right)\right|^2d\tau = \int_0^{T_0}|1|^2d\tau = T_0 - 0 = T_0 \ \Longrightarrow\ P_\infty = 0.

The same thing happens in the discrete case.

Constant signal. x(t)≡1x(t) \equiv 1 has area A=+∞\mathcal{A} = +\infty, so E∞=+∞E_\infty = +\infty, and

P∞=lim⁡T→+∞12T∫−TT∣1∣2dτ=lim⁡T→+∞12T⋅2T=1.P_\infty = \lim_{T \to +\infty}\frac{1}{2T}\int_{-T}^{T}|1|^2d\tau = \lim_{T \to +\infty}\frac{1}{2T}\cdot 2T = 1.

Observation. There exist signals for which E∞=+∞E_\infty = +\infty and P∞=+∞P_\infty = +\infty, for instance x(t)=tx(t) = t or x(k)=kx(k) = k.

So there are three possible behaviors: finite energy (and zero power), infinite energy and finite power, infinite energy and infinite power.

Worked exercises

Determine E∞E_\infty and P∞P_\infty of:

a) x(t)={e−2t,t≥00,t<0x(t) = \begin{cases}e^{-2t}, & t \ge 0 \\ 0, & t < 0\end{cases}

E∞[x]=∫−∞0∣0∣2dτ+∫0+∞∣e−2τ∣2dτ=∫0+∞e−4τdτ=e−4τ−4∣0+∞=0−(e−4⋅0−4)=14.E_\infty[x] = \int_{-\infty}^{0}|0|^2d\tau + \int_0^{+\infty}|e^{-2\tau}|^2d\tau = \int_0^{+\infty}e^{-4\tau}d\tau = \left.\frac{e^{-4\tau}}{-4}\right|_0^{+\infty} = 0 - \left(\frac{e^{-4\cdot 0}}{-4}\right) = \frac{1}{4}.

P∞[x]=lim⁡T→+∞12T(∫−T0∣0∣2dτ+∫0T∣e−2τ∣2dτ)=lim⁡T→+∞12Te−4τ−4∣0T=lim⁡T→+∞e−4T−1−8T=0.P_\infty[x] = \lim_{T \to +\infty}\frac{1}{2T}\left(\int_{-T}^{0}|0|^2d\tau + \int_0^{T}|e^{-2\tau}|^2d\tau\right) = \lim_{T \to +\infty}\frac{1}{2T}\left.\frac{e^{-4\tau}}{-4}\right|_0^T = \lim_{T \to +\infty}\frac{e^{-4T} - 1}{-8T} = 0.

This second computation was actually pointless: we already know that E∞<+∞⇒P∞=0E_\infty < +\infty \Rightarrow P_\infty = 0.

b) x(k)=cos⁡(π4k)x(k) = \cos\left(\frac{\pi}{4}k\right)

E∞[x]=∑n=−∞+∞∣cos⁡(π4n)∣2=+∞E_\infty[x] = \sum_{n = -\infty}^{+\infty}\left|\cos\left(\frac{\pi}{4}n\right)\right|^2 = +\infty. Proof: lim⁡n→∞∣cos⁡(π4n)∣2≠0\lim_{n \to \infty}\left|\cos\left(\frac{\pi}{4}n\right)\right|^2 \ne 0 (the general term does not tend to zero), so the series does not converge.

For P∞[x]P_\infty[x] one first checks only that it is finite:

0≤P∞[x]≤lim⁡K→+∞12K+1∑n=−KK1=lim⁡K→+∞2K+12K+1=1,0 \le P_\infty[x] \le \lim_{K \to +\infty}\frac{1}{2K + 1}\sum_{n = -K}^{K}1 = \lim_{K \to +\infty}\frac{2K + 1}{2K + 1} = 1,

so P∞[x]P_\infty[x] is finite. Its exact value is computed in Periodic SignalsPeriodic continuous- and discrete-time signals, fundamental period, periodicity of sums, periodic repetition, bounded-support signals, and the energy and average power of periodic signals.Periodic Signals → (P∞=12P_\infty = \frac{1}{2}).

Mutual energy and finite-energy signals

The infinite-horizon mutual energy (it can of course be defined over finite intervals too, and extended to power):

cont.: E∞[x1,x2]:=∫−∞+∞x1(τ)x2(τ)‾ dτ∈C,disc.: E∞[x1,x2]:=∑n=−∞+∞x1(n)x2(n)‾∈C.\text{cont.: } E_\infty[x_1, x_2] := \int_{-\infty}^{+\infty}x_1(\tau)\overline{x_2(\tau)}\,d\tau \in \mathbb{C}, \qquad \text{disc.: } E_\infty[x_1, x_2] := \sum_{n = -\infty}^{+\infty}x_1(n)\overline{x_2(n)} \in \mathbb{C}.

Does this remind you of something? In the discrete case, E∞[x1,x2]=∑nx1(n)x2(n)‾E_\infty[x_1, x_2] = \sum_nx_1(n)\overline{x_2(n)} looks like the scalar product ⟨x1(⋅),x2(⋅)⟩\langle x_1(\cdot), x_2(\cdot)\rangle of Vector Spaces, Scalar Product and NormsReview of geometry for signals: vector spaces over a field, the scalar product and norm in complex vector spaces, p-norms, orthogonality, and the generalized Pythagorean theorem.Vector Spaces, Scalar Product and Norms →. So perhaps mutual energy ≈\approx scalar product. And if this is true then

E∞[x]=∑n=−∞+∞∣x(n)∣2=∑n=−∞+∞x(n)x(n)‾=?⟨x(⋅),x(⋅)⟩=∥x(⋅)∥2,E_\infty[x] = \sum_{n = -\infty}^{+\infty}|x(n)|^2 = \sum_{n = -\infty}^{+\infty}x(n)\overline{x(n)} \overset{?}{=} \langle x(\cdot), x(\cdot)\rangle = \|x(\cdot)\|^2,

so perhaps energy ≈\approx squared norm. The answer is: yes, kind of. A signal x(k)x(k) with kk from −∞-\infty to +∞+\infty is like a vector with an infinite amount of components,

x(⋅)=[⋮x(−1)x(0)x(1)⋮].x(\cdot) = \begin{bmatrix}\vdots \\ x(-1) \\ x(0) \\ x(1) \\ \vdots\end{bmatrix}.

Danger. When we deal with infinite amounts of components we must always put extreme focus on what we are doing or stating: quantities such as ⟨x1(⋅),x2(⋅)⟩\langle x_1(\cdot), x_2(\cdot)\rangle or ∥x(⋅)∥2\|x(\cdot)\|^2 may not even exist or may diverge, because they involve the computation of a limit over infinitely many components.

But if such limits exist finite, we can state without worry that

⟨x1(⋅),x2(⋅)⟩=E∞[x1,x2],∥x(⋅)∥2=E∞[x].\langle x_1(\cdot), x_2(\cdot)\rangle = E_\infty[x_1, x_2], \qquad \|x(\cdot)\|^2 = E_\infty[x].

This is very good news: we can apply the properties of linear vector spaces to finite-energy signals. For the continuous-time case the same equivalence between a linear vector space and the space of finite-energy signals holds as well.

Fact (Cauchy-Schwarz for energies).

∣E∞[x1,x2]∣≤E∞[x1]⋅E∞[x2].|E_\infty[x_1, x_2]| \le \sqrt{E_\infty[x_1]\cdot E_\infty[x_2]}.

Proof. It is the Cauchy-Schwarz inequality (Orthogonal Projections and Cauchy-Schwarz InequalitySubspaces, span, generators, bases and dimension; the orthogonal projection of a vector onto a subspace and its uniqueness; the Cauchy-Schwarz inequality proved through the projection onto a line.Orthogonal Projections and Cauchy-Schwarz Inequality →). ■\blacksquare

Classic exercise. Prove that if E∞[xi]<+∞E_\infty[x_i] < +\infty, i=1,2i = 1, 2, then E∞[x1+x2]<+∞E_\infty[x_1 + x_2] < +\infty.

Proof. Use geometry! It is super-effective against signals.

E∞[x1+x2]=⟨x1(⋅)+x2(⋅),x1(⋅)+x2(⋅)⟩=∥x1(⋅)+x2(⋅)∥2=∥x1(⋅)∥2+∥x2(⋅)∥2+2 Re(⟨x1(⋅),x2(⋅)⟩),E_\infty[x_1 + x_2] = \langle x_1(\cdot) + x_2(\cdot), x_1(\cdot) + x_2(\cdot)\rangle = \|x_1(\cdot) + x_2(\cdot)\|^2 = \|x_1(\cdot)\|^2 + \|x_2(\cdot)\|^2 + 2\,\mathrm{Re}\left(\langle x_1(\cdot), x_2(\cdot)\rangle\right),

where the last step is the generalized Pythagorean theorem. Since the modulus of z=a+jbz = a + jb is ∣z∣=a2+b2≥∣a∣|z| = \sqrt{a^2 + b^2} \ge |a| (nested mini-proof: a2+b2≥a2a^2 + b^2 \ge a^2 for all a,b∈Ra, b \in \mathbb{R}), we get

E∞[x1+x2]≤∥x1(⋅)∥2+∥x2(⋅)∥2+2∣⟨x1(⋅),x2(⋅)⟩∣=E∞[x1]+E∞[x2]+2∣E∞[x1,x2]∣.E_\infty[x_1 + x_2] \le \|x_1(\cdot)\|^2 + \|x_2(\cdot)\|^2 + 2\left|\langle x_1(\cdot), x_2(\cdot)\rangle\right| = E_\infty[x_1] + E_\infty[x_2] + 2|E_\infty[x_1, x_2]|.

Applying the Cauchy-Schwarz inequality:

E∞[x1+x2]≤E∞[x1]+E∞[x2]+2E∞[x1] E∞[x2],E_\infty[x_1 + x_2] \le E_\infty[x_1] + E_\infty[x_2] + 2\sqrt{E_\infty[x_1]\,E_\infty[x_2]},

which is finite if E∞[x1]E_\infty[x_1] and E∞[x2]E_\infty[x_2] are finite. ■\blacksquare

Lebesgue spaces of finite-energy signals

Energy of signals: continuous, E∞[x]=∫−∞+∞∣x(τ)∣2dτE_\infty[x] = \int_{-\infty}^{+\infty}|x(\tau)|^2d\tau; discrete, E∞[x]=∑n=−∞+∞∣x(n)∣2E_\infty[x] = \sum_{n = -\infty}^{+\infty}|x(n)|^2. The sets of finite-energy signals are

L2=L2(R):={{x(t)}∣E∞[x]<+∞}(cont.),ℓ2:={{x(k)}∣E∞[x]<+∞}(disc.).L^2 = L^2(\mathbb{R}) := \left\{\{x(t)\} \mid E_\infty[x] < +\infty\right\} \quad \text{(cont.)}, \qquad \ell^2 := \left\{\{x(k)\} \mid E_\infty[x] < +\infty\right\} \quad \text{(disc.)}.

L2L^2 and ℓ2\ell^2 are the Lebesgue spaces of finite-energy signals. They behave as linear vector spaces, with

scalar product↔mutual energy,norm↔energy.\text{scalar product} \leftrightarrow \text{mutual energy}, \qquad \text{norm} \leftrightarrow \text{energy}.

Observation. The lecture draws signals x1,x2,x3,…x_1, x_2, x_3, \dots that are the same rectangular pulse and differ only in the values taken at the endpoints of the pulse. They are the same signal in the L2L^2 sense: to prove it just show that ∫−∞+∞∣xi(τ)−xj(τ)∣2dτ=0\int_{-\infty}^{+\infty}|x_i(\tau) - x_j(\tau)|^2d\tau = 0. In general, two signals xi≠xjx_i \ne x_j differing by at most a finite amount of values can be considered the "same signal" in the L2L^2 sense, if xi,xj∈L2x_i, x_j \in L^2.

Versione ripasso

  • Resistor: p(t)=v(t)i(t)=v2(t)/Rp(t) = v(t)i(t) = v^2(t)/R; energy = area of pp, average power = mean value of pp.
  • Energy E[t1,t2][x]=∫t1t2∣x∣2E_{[t_1, t_2]}[x] = \int_{t_1}^{t_2}|x|^2; E[k1,k2][x]=∑n=k1k2∣x(n)∣2E_{[k_1, k_2]}[x] = \sum_{n = k_1}^{k_2}|x(n)|^2. Average power = energy divided by the length (t2−t1t_2 - t_1, or k2−k1+1k_2 - k_1 + 1).
  • Infinite horizon: E∞[x]=∫−∞+∞∣x∣2E_\infty[x] = \int_{-\infty}^{+\infty}|x|^2 (or ∑−∞+∞\sum_{-\infty}^{+\infty}); P∞[x]=lim⁡T→∞12T∫−TT∣x∣2P_\infty[x] = \lim_{T\to\infty}\frac{1}{2T}\int_{-T}^{T}|x|^2 (or lim⁡K→∞12K+1∑−KK\lim_{K\to\infty}\frac{1}{2K + 1}\sum_{-K}^{K}), defined only if the limit exists. All are real and nonnegative.
  • Finite-energy signal: E∞<+∞E_\infty < +\infty. Then P∞=0P_\infty = 0 (since 0≤P∞≤lim⁡E∞2T=00 \le P_\infty \le \lim\frac{E_\infty}{2T} = 0).
  • Examples: rect(t−T0/2T0)\mathrm{rect}\left(\frac{t - T_0/2}{T_0}\right) has E∞=T0E_\infty = T_0, P∞=0P_\infty = 0; x≡1x \equiv 1 has E∞=+∞E_\infty = +\infty, P∞=1P_\infty = 1; x(t)=tx(t) = t or x(k)=kx(k) = k has E∞=P∞=+∞E_\infty = P_\infty = +\infty; e−2te^{-2t} for t≥0t \ge 0 (zero for t<0t < 0) has E∞=14E_\infty = \frac{1}{4}, P∞=0P_\infty = 0; cos⁡(π4k)\cos\left(\frac{\pi}{4}k\right) has E∞=+∞E_\infty = +\infty and finite P∞P_\infty (=12= \frac{1}{2}).
  • Mutual energy E∞[x1,x2]=∫x1x2‾E_\infty[x_1, x_2] = \int x_1\overline{x_2} (or ∑x1(n)x2(n)‾\sum x_1(n)\overline{x_2(n)}) =⟨x1(⋅),x2(⋅)⟩= \langle x_1(\cdot), x_2(\cdot)\rangle when finite; E∞[x]=∥x(⋅)∥2E_\infty[x] = \|x(\cdot)\|^2. Cauchy-Schwarz: ∣E∞[x1,x2]∣≤E∞[x1]E∞[x2]|E_\infty[x_1, x_2]| \le \sqrt{E_\infty[x_1]E_\infty[x_2]}.
  • Sum of finite-energy signals has finite energy: E∞[x1+x2]≤E∞[x1]+E∞[x2]+2E∞[x1]E∞[x2]E_\infty[x_1 + x_2] \le E_\infty[x_1] + E_\infty[x_2] + 2\sqrt{E_\infty[x_1]E_\infty[x_2]} (Carnot + Re z≤∣z∣\mathrm{Re}\,z \le |z| + Cauchy-Schwarz).
  • L2(R)L^2(\mathbb{R}) (continuous) and ℓ2\ell^2 (discrete) = Lebesgue spaces of finite-energy signals: linear vector spaces with scalar product = mutual energy, norm = energy. Signals differing at finitely many values are the same in L2L^2.
  • Typical mistakes: treating infinite-component sums like finite vector sums without checking convergence; computing P∞P_\infty of a finite-energy signal (it is 00 automatically); forgetting the conjugate in the mutual energy.

Teoria collegata