In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the discrete Fourier transform over a ring generalizes the
discrete Fourier transform
In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced Sampling (signal processing), samples of a function (mathematics), function into a same-length sequence of equally-spaced samples of the discre ...
(DFT), of a function whose values are commonly
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s, over an arbitrary
ring
(The) Ring(s) may refer to:
* Ring (jewellery), a round band, usually made of metal, worn as ornamental jewelry
* To make a sound with a bell, and the sound made by a bell
Arts, entertainment, and media Film and TV
* ''The Ring'' (franchise), a ...
.
Definition
Let be any
ring
(The) Ring(s) may refer to:
* Ring (jewellery), a round band, usually made of metal, worn as ornamental jewelry
* To make a sound with a bell, and the sound made by a bell
Arts, entertainment, and media Film and TV
* ''The Ring'' (franchise), a ...
, let
be an integer, and let
be a
principal ''n''th root of unity, defined by:
[Martin Fürer,]
Faster Integer Multiplication
, STOC 2007 Proceedings, pp. 57–66. Section 2: The Discrete Fourier Transform.
The discrete Fourier transform maps an
''n''-tuple of elements of to another ''n''-tuple
of elements of according to the following formula:
By convention, the tuple
is said to be in the ''time domain'' and the index is called ''time''. The tuple
is said to be in the ''frequency domain'' and the index is called ''frequency''. The tuple
is also called the ''
spectrum
A spectrum (: spectra or spectrums) is a set of related ideas, objects, or properties whose features overlap such that they blend to form a continuum. The word ''spectrum'' was first used scientifically in optics to describe the rainbow of co ...
'' of
. This terminology derives from the applications of Fourier transforms in
signal processing
Signal processing is an electrical engineering subfield that focuses on analyzing, modifying and synthesizing ''signals'', such as audio signal processing, sound, image processing, images, Scalar potential, potential fields, Seismic tomograph ...
.
If is an
integral domain
In mathematics, an integral domain is a nonzero commutative ring in which the product of any two nonzero elements is nonzero. Integral domains are generalizations of the ring of integers and provide a natural setting for studying divisibilit ...
(which includes
fields
Fields may refer to:
Music
*Fields (band), an indie rock band formed in 2006
* Fields (progressive rock band), a progressive rock band formed in 1971
* ''Fields'' (album), an LP by Swedish-based indie rock band Junip (2010)
* "Fields", a song by ...
), it is sufficient to choose
as a
primitive ''n''th root of unity, which replaces the condition () by:
:
for
Another simple condition applies in the case where ''n'' is a power of two: () may be replaced by
.
Inverse
The inverse of the discrete Fourier transform is given as:
where
is the multiplicative inverse of in (if this inverse does not exist, the DFT cannot be inverted).
Matrix formulation
Since the discrete Fourier transform is a
linear operator
In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that pr ...
, it can be described by
matrix multiplication
In mathematics, specifically in linear algebra, matrix multiplication is a binary operation that produces a matrix (mathematics), matrix from two matrices. For matrix multiplication, the number of columns in the first matrix must be equal to the n ...
. In matrix notation, the discrete Fourier transform is expressed as follows:
:
The matrix for this transformation is called the
DFT matrix
In applied mathematics, a DFT matrix is a ''square matrix'' as an expression of a discrete Fourier transform (DFT) as a transformation matrix, which can be applied to a signal through matrix multiplication.
Definition
An ''N''-point DFT is expres ...
.
Similarly, the matrix notation for the inverse Fourier transform is
:
Polynomial formulation
Sometimes it is convenient to identify an -tuple
with a formal polynomial
:
By writing out the summation in the definition of the discrete Fourier transform (), we obtain:
:
This means that
is just the value of the polynomial
for
, i.e.,
The Fourier transform can therefore be seen to relate the ''coefficients'' and the ''values'' of a polynomial: the coefficients are in the time-domain, and the values are in the frequency domain. Here, of course, it is important that the polynomial is evaluated at the th roots of unity, which are exactly the powers of
.
Similarly, the definition of the inverse Fourier transform () can be written:
With
:
this means that
:
We can summarize this as follows: if the ''values'' of
are the ''coefficients'' of
, then the ''values'' of
are the ''coefficients'' of
, up to a scalar factor and reordering.
Special cases
Complex numbers
If
is the field of complex numbers, then the
th roots of unity can be visualized as points on the
unit circle
In mathematics, a unit circle is a circle of unit radius—that is, a radius of 1. Frequently, especially in trigonometry, the unit circle is the circle of radius 1 centered at the origin (0, 0) in the Cartesian coordinate system in the Eucli ...
of the
complex plane
In mathematics, the complex plane is the plane (geometry), plane formed by the complex numbers, with a Cartesian coordinate system such that the horizontal -axis, called the real axis, is formed by the real numbers, and the vertical -axis, call ...
. In this case, one usually takes
:
which yields the usual formula for the
complex discrete Fourier transform:
:
Over the complex numbers, it is often customary to normalize the formulas for the DFT and inverse DFT by using the scalar factor
in both formulas, rather than
in the formula for the DFT and
in the formula for the inverse DFT. With this normalization, the DFT matrix is then unitary.
Note that
does not make sense in an arbitrary field.
Finite fields
If
is a
finite field
In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field (mathematics), field that contains a finite number of Element (mathematics), elements. As with any field, a finite field is a Set (mathematics), s ...
, where is a
prime
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways ...
power, then the existence of a primitive th root automatically implies that
divides
In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a '' multiple'' of m. An integer n is divisible or evenly divisibl ...
, because the
multiplicative order
In number theory, given a positive integer ''n'' and an integer ''a'' coprime to ''n'', the multiplicative order of ''a'' modulo ''n'' is the smallest positive integer ''k'' such that a^k\ \equiv\ 1 \pmod n.
In other words, the multiplicative orde ...
of each element must divide the size of the
multiplicative group
In mathematics and group theory, the term multiplicative group refers to one of the following concepts:
*the group under multiplication of the invertible elements of a field, ring, or other structure for which one of its operations is referre ...
of , which is
. This in particular ensures that
is invertible, so that the notation
in () makes sense.
An application of the discrete Fourier transform over
is the reduction of
Reed–Solomon codes to
BCH code
In coding theory, the Bose–Chaudhuri–Hocquenghem codes (BCH codes) form a class of cyclic error-correcting codes that are constructed using polynomials over a finite field (also called a '' Galois field''). BCH codes were invented in ...
s in
coding theory
Coding theory is the study of the properties of codes and their respective fitness for specific applications. Codes are used for data compression, cryptography, error detection and correction, data transmission and computer data storage, data sto ...
. Such transform can be carried out efficiently with proper fast algorithms, for example,
cyclotomic fast Fourier transform The cyclotomic fast Fourier transform is a type of fast Fourier transform algorithm over finite fields.S.V. Fedorenko and P.V. Trifonov, This algorithm first decomposes a DFT into several circular convolutions, and then derives the DFT results from ...
.
Polynomial formulation without nth root
Suppose
. If
, it may be the case that
. This means we cannot find an
root of unity in
. We may view the Fourier transform as an isomorphism
for some polynomials
, in accordance with
Maschke's theorem
In mathematics, Maschke's theorem, named after Heinrich Maschke, is a theorem in group representation theory that concerns the decomposition of representations of a finite group into irreducible pieces. Maschke's theorem allows one to make gener ...
. The map is given by the
Chinese remainder theorem
In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of thes ...
, and the inverse is given by applying
Bézout's identity
In mathematics, Bézout's identity (also called Bézout's lemma), named after Étienne Bézout who proved it for polynomials, is the following theorem:
Here the greatest common divisor of and is taken to be . The integers and are called B� ...
for polynomials.
, a product of cyclotomic polynomials. Factoring
in