$ (1/T)*\int|x(t)|^2 = \sum|ak|^2 $
The integral is taken over the interval T. The sum is taken from $ -\inf to \inf $