The signal energy of is

The square ensures the integrand is always nonnegative — a signal that wiggles between positive and negative doesn’t have its energy cancel. The absolute value handles complex-valued signals.

The terminology is borrowed from physics: for a voltage signal across a 1 Ω resistor, instantaneous power is , and the integral is the energy delivered in joules. For abstract signals we just call this the “signal energy” and don’t worry about units.

Worked example: triangular pulse

Find the signal energy of for , zero otherwise — a triangle of height 3 centered at the origin, going to zero at .

The integrand is even (squaring a symmetric function), so

So joules-if-you-like.

Worked example: stepped rectangles

Find the energy of

The step is zero for and 1 for . So the signal is zero before and the bracketed expression afterward. The bracket has two rectangles: is height 2 on , and is height 4 on .

Squaring:

Each (values are only 0 or 1). The cross-term product is 1 only on the intersection . Integrating each piece on :

(The second integral goes from not because of the factor.) So .

Notice that no hard integrals were involved — the work was bookkeeping the intervals and heights. This is the typical shape of an energy calculation.

Energy vs power

Some signals — sinusoids, periodic signals in general — have infinite energy. For those we use average signal power instead. The signals split cleanly into energy signals (finite, nonzero energy) and power signals (finite, nonzero average power), with neither type belonging to the other.

In the frequency domain, total energy can also be computed by Parseval’s theorem:

with the Fourier transform of . The two integrals must give the same number — useful as a sanity check.