8

I am a newcomer in signal processing. I saw that the $L^2$-norm of a signal is also applied as its energy! How is this concept illustrated for those ones who are working in pure math.

ABB
  • 367
  • 1
  • 8

4 Answers4

8

Yes, the square of the $L_2$ norm of a signal is also by definition its energy $\mathcal{E}_x$.

The concept of signal energy :

$$ \mathcal{E}_x = \int_{-\infty}^{ \infty } x(t)^2 dt\tag{1} $$

is fundamentally based on the concept of energy (or work) in physics, as the Kinetic Energy of a particle with mass $m$ and velocity $v$ given by

$$ K = \frac{1}{2} m v^2 \tag{2}$$

There is also the concept of power defined as the time-rate of work $W(t)$.

$$ p(t) = \frac{dW(t)}{dt} \tag{3} $$

The relation between instantaneous power $p(t)$ and the energy is :

$$ \mathcal{E} = \int_{-\infty}^{\infty} p(t) dt \tag{4} $$

Electrical engineers ignore the mechanical roots, and rely on an electrical analog of energy as heat loss in an Ohmic resistor defined to be:

$$ \mathcal{E} = \int_{-\infty}^{\infty} p(t) dt \tag{5} $$

Where $p(t)$ is the instantaneous electric power associated with a current $i(t)$ passing through a linear time-invariant resistor $R$ , and is given by :

$$ p(t) = R \cdot i^2(t) \tag{6} $$

( $p(t) = v^2(t)/R $ is also an equivalent expression, based on Ohm's law $v(t) = R i(t)$)

Then the energy of the current, passing through a linear time-invariant system denoted by an Ohmic resistor $R$, is given by :

$$ \mathcal{E} = \int_{-\infty}^{\infty} R \cdot i^2(t) dt \tag{7}$$

Ignoring the resistor $R$ (or setting it to be $R=1$), and replacing the current variable $i(t)$ with a general unitless $x(t)$, we arrive at the mathematical definition of signal energy of as:

$$ \mathcal{E} = \int_{-\infty}^{\infty} x^2(t) dt \tag{8}$$

That being stated, in a parallel course, the study of normed linear Hilbert spaces also consider mathematical p-th Euclidean norm of a complex valued vector as :

$$ L_p = \left( \int_{-\infty}^{\infty} |x(t)|^p dt \right)^{1/p} \tag{9}$$

And you can see that the square of the case $p=2$ corresponds to the signal energy as defined in Eq.(8).

All of these can similarly be transferred to discrete-time domain.

Fat32
  • 28,152
  • 3
  • 24
  • 50
  • 1
    Your explanations are so nice. It was really impressed me. Thanks a lot. – ABB Oct 26 '20 at 14:47
  • You may add an absolute value for $L_p$ – Laurent Duval Oct 28 '20 at 01:20
  • @LaurentDuval I stated it for a real signal but why not include the complex case ;-) – Fat32 Oct 28 '20 at 11:18
  • Even for reals, for odd powers, and not integer ones – Laurent Duval Oct 28 '20 at 11:20
  • It's been 1.5 years? I'll die of age – OverLordGoldDragon Apr 05 '22 at 19:14
  • 1
    @OverLordGoldDragon So say we all. – Peter K. Apr 05 '22 at 20:07
  • @OverLordGoldDragon couldn't get the joke ? 1.5 years for what ? – Fat32 Apr 05 '22 at 20:14
  • 1
    @Fat32 Since this question was asked, which is roughly when I first started with this network and signal processing. Hoped to finish a thing a biiit sooner. – OverLordGoldDragon Apr 05 '22 at 20:22
  • 1
    @OverLordGoldDragon haa yes should be so, good luck... ;-) – Fat32 Apr 05 '22 at 20:25
  • It's worth mentioning energy and signal energy are not the same in spite their formulas are similar, this can be confusing. Price variations have energy in $\small$^2$ units, but no energy in joules. "Energy" of signals describing a physical quantity may be converted to J, by an operation depending on the nature of the signal. E.g. "energy" of DC current samples in $\small A^2$ is converted to joules by a multiplication by impedance Z. But "energy" of a voltage signal in $\small V^2$ requires a division by Z. – mins May 09 '23 at 14:14
  • 1
    @mins indeed it "is" mentioned in the text, yet a bit not cleary.. – Fat32 May 09 '23 at 22:27
7

From physics, energy is a term often used as a quantitative property. In other words, energy is a quantity that is preserved under some actions, transformations, etc. In signal processing (where physics vanish), this often takes the shape of a sum or an integral of a squared quantity for reals, or its modulus for complex data. We can write it symbolically for discrete or continuous time ($\cdot^H$ denotes the complex conjugate) by $\sum x[n]x^H[n]$ or $\int x(t)x^H(t)$. When they are well-defined (convergence, etc.), such quantities are mostly proportional to the square of some $L^2$ or $\ell^2$ norm. As said in other answers, energy and squared $L^2$ or $\ell^2$ norms are related by definition, they are at the center of complex Hilbert spaces.

Now, why are these concepts so important in signal processing? Because the linearity of systems is strongly linked to energy: minimizing an energy often results in linear equations, from simple averaging to generic convolution, with a special connection with Gaussian noises.

The crux of the squared norm use in DSP is related to orthogonality and unitarity: in signal and image processing, we pretend that some representations can preserve the energy (or up to a factor, or approximately), and be way more efficient for some processing methods: smoothing, adaptive filtering, separation, inversion, restoration, reconstruction, etc. Fourier, short-time Fourier, spectrograms, wavelets and other perform this energy conservation.

Lastly, energy preservation also plays a role in algorithmic stability.

Laurent Duval
  • 31,850
  • 3
  • 33
  • 101
  • Nice illustrations. Thanks – ABB Oct 26 '20 at 14:36
  • Indeed I am looking forward tow points concerning this issue: 1) To compute the energy why does taking integral make sense? 2) Why in $L^2$-norm? I mean that why the others like $L^p$-norms are not used?! – ABB Oct 26 '20 at 14:43
  • 2
  • One usually considers the energy of the whole data. Hence the sum or the integral. The latter is a kind if continuous sum (the sign looks like a big elongated S, from Summe, or sum in German. The $L^2$ is quite common for many possible reasons. One prominent is that it is relatively easy to "minimize" or "bound". Yet, other $L^p$ norms or quasinorms are increasingly used, because they better model some properties, or now are equiped with efficient algorithms, esp. in optimization
  • – Laurent Duval Oct 26 '20 at 15:29