# Need help with plotting a probability distribution

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}]

• 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? – JimB Oct 10 at 5:13