I looked through the Mathematica directory and could not find a solution that is right for me.

I already solved the mathematics behind this problem, I just need to visualize it in a plot. I am unsure if I am doing this correctly or not. X needs to be an $n$-th value of sorts, as this problem is in quantum mechanics and should show the probability distribution of the wave function. I am unsure how to use X in the code. Any suggestions would be helpful.

Plot[((2/X) Sin[X L]), {L, -10, 10}]
  • 1
    $\begingroup$ I don't know what an $n$-th value is but usually one plots a probability density function that integrates to 1 and is always non-negative. One would want to choose a value for $X$ that makes that happen. However, the function that you've given integrates to 0 no matter what value of $X$ is chosen. Also that function is negative half of the time. Am I misinterpreting what you've written? $\endgroup$ – JimB Oct 10 at 5:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.