Create compound fourier series that returns the product of 2 periodic functions