I am trying to solve the linear Schrödinger equation with the Fourier transform. I have difficulty making the corresponding graph when I solve the problem numerically. Can you explain to me what is my mistake in the following code?
\!\(\*OverscriptBox[\(u\), \(^\)]\)[\[Omega]_, t_] = -((
2 E^(-I t v \[Omega]^2) (-T0 +
E^(I t v \[Omega]^2)
T0 + \[Omega] DawsonF[\[Omega]/2]))/\[Omega])
u[x_, t_] = InverseFourierSinTransform[
\!\(\*OverscriptBox[\(u\), \(^\)]\)[\[Omega], t], \[Omega], x,
FourierParameters -> {1, -1}, Assumptions -> {x > 0}]
Then I tried to create the graph
T0 = 1;
Plot[Abs[u[x, t]]^2, {x, 0, 20}, PlotRange -> All]
You can download the notebook of my project from Wolfram Community
ps. Consider using this input as more readable (edit by Nasser)
OverHat[u][ω_, t_] = -((2*(-T0 + E^(I*t*v*ω^2)*T0 + ω*DawsonF[ω/2]))/E^(I*t*v*ω^2)/ω)
u[x_, t_] = InverseFourierSinTransform[OverHat[u][ω, t], ω, x, FourierParameters -> {1, -1}, Assumptions -> {x > 0}]
InverseFourierSinTransform
only, which did not evaluate and that why the plot did not work. Do you need all the other definitions of ode and plot commands to show this? I do not think so. This will make your question easier to understand and more chance of getting help. $\endgroup$