I am currently having a lot of difficulty with the following question:
Consider an oscillator whose characteristic frequency is $\omega_0$ and which is excited in such a way as to give out a pulse of Gaussian shape. Its energy state is characterized by the function $E(t)=e^{f(t)}e^{iω_0 t}$ where $$f(t)=[-(t-t_0)^2/2(Δt)^2 ] e^{iω_0 t}$$ The pulse of radiation is centered at $t=t_0$ and has a spread in time of $\Delta t$. measured at the half-amplitude points of the pulse. Find the spectral $E(\omega)$ distribution of this signal. Plot $E(t)$vs $t$, and $E(\omega)$ vs $\omega$.
Any help would be greatly appreciated. All I know is that I must use the Fourier transform, but I am not so sure as of how to apply it.
Here's an example using numpy's discrete Fourier transform (dft) implementation
And for plotting the pulse in frequency-domain just use
If you want it in time-domain
You should get something like this