# Plotting an expression with a complex-valued exponential [duplicate]

Given the wave function $\Psi\left ( x,t \right ) = \psi\left ( x \right )T\left ( t \right )$ with the spatial component of the wavefunction $\psi(x) = \psi_{0}e^{-ikx}$, I tried

Manipulate[Plot[B Exp[-I k x], {x, 0, 10}], {B, -10, 10}, {k, 0, 10}]


which gives That is not what I'm looking for. Trying

Plot[E^(-I x), {x, 0, 10}]


gives which I find just plain weird.

Am I using the wrong function or is this an inherent 'user' problem?

How do I get the right plot? In any case, I'm trying to plot the left moving wave of the spatial component of the Schrödinger's equation. I do not know how it looks like but, intuitively, it ought to resembles decays.

## marked as duplicate by Jason B., m_goldberg, Öskå, Sjoerd C. de Vries, Karsten 7.Dec 11 '15 at 20:00

Your wave function has real and imaginary parts, so can plot them separately,

wf[x_] := E^(-I x);
Plot[{Re[wf[x]], Im[wf[x]]}, {x, 0, 10},
PlotLegends -> {"Re Ψ", "Im Ψ"}] • The link you provided looks promising. Possible to leave your post as it is? Would like to understand the codes and extrapolate. – Physkid Dec 11 '15 at 13:31
• Definitely - I like to answer when possible even while marking as a duplicate (I feed off the imaginary internet points I get when you click the check mark next to my answer). I can post the code for the Manipulate but you can probably figure that out. – Jason B. Dec 11 '15 at 13:34
• @Physkid, just plotting a wave function like this isn't too interesting, the cool stuff happens when you have superpositions and interference effects. See this post for an example of interference effects in plots. – Jason B. Dec 11 '15 at 13:37
• Definitely speaking to a computational physicists on the other end of the screen. Yes, a plot like the above isn't interests. I will be catching up on the links. – Physkid Dec 11 '15 at 13:44