Plancherel theorem
Using Plancherel theorem, the energy can also be summed in Fourier space