To obtain the lineshape, we take the Fourier transform of which gives the distribution of frequencies in the electric field. Integration becomes simple if we write as a complex function