As I’m an electrician I did the Fourier transformations of some wave shapes that are mainly interesting in the Electrical Engineering
The base formulation to build the Fourier transformation of the function f(x) which is periodic to 2π is:
And for the backward transformation:
C# Demo Project Fourier signals