# The Discrete Fourier Transform: Useful maths

A handful of mathematical tools are particularly useful in understanding the structure and use of the Discrete Fourier Transform (DFT), and signal processing in general. Several of them are gathered together here on a single page.

The other pages within the signals and signal processing section use this page as essential background.

## Inner product

#### Inner product in real space

In regular 3D real space, the inner product (equivalent to the dot product), between two vectors and can be thought of as multiplying the lengths of the two vectors together with the cosine of the angle between them

(1)

where means the Euclidian length of .

The result, a scalar number , will be 0 if the vectors are orthogonal, and nonzero otherwise. In slightly woolly language, it tells us something about how much `overlaps’ , and vice versa (since ).

If we take the inner product of the vector with itself, we obtain

(2)

from which it is easy to see that the strict `length’ of overlap of with itself, i.e., its effective length regardess of direction, is given by

(3)

#### Inner product for discrete time signals (N-length, complex valued)

Consider a pair of -length complex valued discrete signals, say and , specified at integer sample time indices . Each signal comprises samples, and therefore runs from . The signals can be viewed as a pair of -dimensional vectors in space.

The inner product between and , which we’ll call , is written as

(4)

where denotes the complex conjugate. As with the real space dot product, the extension to renders a (complex valued) scalar that tells us about the `amount of overlap’ between the signals.

If we take the inner product of the signal with itself, we obtain

(5)

The quantity is referred to as the *total energy* of the signal. It’s also sometimes called the `squared L2-norm’. Notice the conceptual similarity with the real space example in equation 2 above.

## Length and the L2-norm (Euclidian norm) for discrete signals

Analogous with the real space example of equation 3, an -length complex valued discrete signal, , can be thought of as having an -dimensional `length’. This is usually defined in terms of the L2-norm (aka Euclidian norm), , as

(6)

using the definition in equation 5. Sometimes is written as , to be explicit, but in general where is written we assume reference to the L2-norm.

Elsewhere (such as here, and here) we will see how useful it is to have strict definitions of `energy’ and `length’ when it comes to comparing real-world signals expressed in the discrete time vs. discrete frequency domains.