Periodicity
If z is a primitive nth root of unity, then the sequence of powers
- …, z−1, z0, z1, …
is n-periodic (because z j+n = z j·zn = z j·1 = z j for all values of j), and the n sequences of powers
- sk: …, zk·(−1), zk·0, zk·1, …
for k = 1, …, n are all n-periodic (because zk·(j+n) = zk·j). Furthermore, the set {s1, …, sn} of these sequences is a basis of the linear space of all n-periodic sequences. This means that any n-periodic sequence of complex numbers
- …, x−1, x0, x1, …
can be expressed as a linear combination of powers of a primitive nth root of unity:
- xj = ∑k Xk·zk·j = X1·z1·j + ··· + Xn·zn·j
for some complex numbers X1, …, Xn and every integer j.
This is a form of Fourier analysis. If j is a (discrete) time variable, then k is a frequency and Xk is a complex amplitude.
Choosing for the primitive nth root of unity
- z = e2πi/n = cos(2π/n) + i·sin(2π/n)
allows xj to be expressed as a linear combination of cos and sin:
- xj = ∑k Ak·cos(2π·j·k/n) + ∑k Bk·sin(2π·j·k/n).
This is a discrete Fourier transform.
Read more about this topic: Root Of Unity