Help graphing wave functions and probability densities.

Click For Summary

Homework Help Overview

The discussion revolves around graphing wave functions and probability densities, particularly in the context of quantum mechanics. Participants express confusion regarding the appropriate methods for plotting these functions, especially in Mathematica, and the relationship between various parameters in the equations provided in their homework.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss their attempts to graph potential functions and express uncertainty about whether to use 2-D or 3-D plots. There are questions about how to incorporate multiple variables into Mathematica and the differences between equations from their textbook and those in the homework.

Discussion Status

Some participants have started using alternative software like Graphmatica, which has made the process easier for them. However, there remains uncertainty about how the potential constant k relates to different energy states and how to properly scale their equations for plotting. Guidance has been offered regarding the use of different software and the scaling of variables, but no consensus has been reached on the best approach.

Contextual Notes

Participants mention a lack of assistance from their instructor and express confusion over the notation and relationships between variables in their equations. There is also uncertainty about which units to use for certain constants in their calculations.

Ascendant78
Messages
327
Reaction score
0

Homework Statement


Screen_Shot004.jpg


Homework Equations



Screen_Shot005.jpg


The Attempt at a Solution



Well, I felt like the first part wasn't too bad and graphed the potential like so:

Screen_Shot002.jpg


However, to be honest, I'm not even sure if I did that right, as I wasn't sure whether he wanted it as a 2-D or 3-D graph (and I can't even figure out how to graph 2-D in Mathematica). I have a group of 7 of us from class that work together and none of us have ever done anything like this, so we are at a loss? We don't know how to go about plugging the multiple variables (wave function) into Mathematica to get what we want and the instructor gave us no assistance at all. The equations from pg 224 are completely different than the ones given on the homework and none of us know why. We are just completely lost and desperately need help.
 
Physics news on Phys.org
Ascendant78 said:
Well, I felt like the first part wasn't too bad and graphed the potential like so:
I don't think you are expect to do a 3D plot (on which you can't see anything). Here, ##k## turns out to be simply a scaling constant. You can plot everything in terms of ##x/\sqrt{k}##.

Ascendant78 said:
We don't know how to go about plugging the multiple variables (wave function) into Mathematica to get what we want and the instructor gave us no assistance at all.
If you mean plotting many curves on the same plot, simply use {} to specify the list of plots, for example:
Code:
Plot[{x^2, x^3},{x,-10,10}]

Ascendant78 said:
The equations from pg 224 are completely different than the ones given on the homework and none of us know why.
Completely different? They are the same. It is time for you to get accustomed to varying (arbitrary) choices of notation. For instance, can you figure out the relationship between ##b## and ##\alpha##?
 
  • Like
Likes   Reactions: Ascendant78
Ok, I'm at a loss as to how 1/2kx^2 would be converted to 1/2x/(sqrt(k)), unless I misunderstood that explanation? Also, I still don't have any idea how to plot in 2-d in Mathematica, nor does anyone else from our group. Is there maybe some free software out there I could do this in that is more user-friendly?

What I meant as far as plotting the wave function, I meant how to plot it with both a variable k and m in the function, as I'm assuming from the homework, he is expecting us to expand b into those components for each of the 3 states? Also, as far as plugging in a value for h, we are not sure whether we should be using the Js value or eVs value of h?

From our best understanding, we think we use the harmonic oscillator function on the quiz and plug in each hermite value for the 3 states. However, we are not sure whether or not we should substitute the "b" value in the exponent with the given value of b=m/k...etc., or just leave b as-is in the function?

Also, yes, we did see what you were saying as far as comparing a to b in the functions. We were just so lost on the graphing concept that we really didn't take the time to try and manipulate the values like that. Thank you for clarifying though.
 
Ok, so now we are using Graphmatica and things got a lot easier. However, we are still unsure what to do with the potential k for each value of n? The book doesn't seem to show the relation of how k changes with respect to each energy state? Can someone help out please?
 
Ascendant78 said:
Ok, I'm at a loss as to how 1/2kx^2 would be converted to 1/2x/(sqrt(k)),
Perhaps DrClaude meant x√k.
 
  • Like
Likes   Reactions: Ascendant78
haruspex said:
Perhaps DrClaude meant x√k.
Yes, indeed.

But I must apologize since I missed the last line of the assignment, which explicitly tells you you can use ##y=bx## to remove the dependency. If you look, this is exactly what is done in the plot you took from a book: the bottom axis is ##\sqrt{\alpha} x##. Do that, and the dependence on ##k## will go away.

Ascendant78 said:
Also, I still don't have any idea how to plot in 2-d in Mathematica, nor does anyone else from our group. Is there maybe some free software out there I could do this in that is more user-friendly?
As I indicated above, plotting in Mathematica is not very complicated. You can also try plotting in Excel. As for free software, you can try gnuplot (although I wouldn't call it more user-friendly than Mathematica) or Grace. The advantage of Mathematica is that you don't need to calculate discrete numerical values for the functions: just give the equation and Mathematica will plot it.

Ascendant78 said:
Also, as far as plugging in a value for h, we are not sure whether we should be using the Js value or eVs value of h?
You want to scale the energy the same way ##x## is scaled. If you take ##y=bx## and use it in the equation for ##V(x)## to get a function of ##y## instead, you can then find what you need to multiply ##V## by to get something dimensionless.
 
  • Like
Likes   Reactions: Ascendant78

Similar threads

  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
10K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K