Please help using the fast Fourier theorem
Fast Fourier Transform (FFT) (20 points) In this question we will see a basic example of using FFT to multiply two polynomials. Our polynomials here will be f(x) = 2 + x and g(x) = 1 - x + 12. Recall that ω means that the Ath roots of unity are 1, i, -1, and -i (each of these complex numbers raised to the Ath power is 1). Show your work for all parts.
Part A (10 points) Compute the FFT (i.e. the value representation) of f(x) and g(x) by evaluating them at the Ath roots of unity. You can just leave your answer as a tuple of complex numbers. For example, the FFT of 1 + x would be (2, 1 + i, 1 - i) (No need to do the actual recursive method, simply evaluating by hand is fine).
Part B (10 points) Now take the element-wise product of the two FFTs you computed above (that is, multiply element FFT(f(x)) with element of FFT(g(x))). Element 2 with element 2, etc. Then, separately, compute the product of the two polynomials h(x) = f(x) * g(x) (just with normal polynomial multiplication). Compute the FFT of h(x). It should match the element-wise product from earlier.