Once we have computed:
: , where
, our final step is to convert back to , the polynomial coefficients of . We call this reversing operation the inverse FFT.
Given an -degree polynomial , the forward FFT process is computationally equivalent to evaluating the polynomial at distinct -th roots of unity as follows:
The above evaluation is equivalent to computing the following matrix-vector multiplication:
, where ,
We denote each element of as: . The inverse FFT is a process of reversing the above computation. For this inversion, our goal is to find an inverse matrix such that . As a solution, we propose the inverse matrix as follows: . Now, we will show why .
Each element of is computed as:
In order for to be , the following should hold:
If , the above condition holds, because .
In the case of , we will leverage the Geometric Sum formula (the proof is provided below):
Theorem A-16.4 Geometric Sum Formula
Let the geometric sum
Then,
# with the constraint that
Our goal is to compute . Leveraging the Geometric Sum formula ,
# since the order of is
# Here, the denominator can’t be 0, since and (as and )
Thus, is 1 if , and 0 if . Therefore, the inverse FFT can be computed as follows:
, where
The above inverse FFT computation is equivalent to evaluating the polynomial at , which is equivalent to evaluating at . For this evaluation, we can use the same optimization technique explained in the forward FFT process (§A-16.2.2) whose time complexity is .