Physics Forums

## Best way to solve Schrodinger's wave equation numerically.

I have been trying to research the best way to solve the Schrodinger wave equation numerically so that I can plot and animate it in Maple. I'd also like to animate as it is affected by a potential. I have been trying for weeks to do this and I don't feel any closer than when I started. I have looked at finite difference method but I get so far and don't know what to do next.

Any help would be greatly appreciated.

The sort of thing I'm looking for is like in this presentation on youtube, especially at 11s leading onto something like the animation at 13s.

Thanks you very much

PhysOrg.com  physics news on PhysOrg.com  >> Promising doped zirconia>> New X-ray method shows how frog embryos could help thwart disease>> Bringing life into focus

Recognitions:      Gold Member  Can you give more detail?  What is the Hamiltonian?  In how many dimensions?    And there is no link to the YouTube video.

Hi, sorry for not posting the link, I was very tired when making this post, definitely an oversight on my part. I will be able to post the link in just over an hour.   With regards to dimensions in would only be in 1 dimension along x. Regarding the hamiltonian I am trying to solve the equation as i x hbar x diff(psi, t) = -(hbar^2)/2m x diff(psi, x\$2) + V(x) x psi where psi = psi(x, t).   Thank you for replying.

Recognitions:
Gold Member

## Best way to solve Schrodinger's wave equation numerically.

Since your potential is time independent, the fastest way to solve your problem is to first find the eigenfunctions of the Hamiltonian
[tex]
H \phi_i = E_i \phi_i
[/tex]
To do this, discretize space and write the Hamiltonian as a matrix. As you said, you can use a finite difference approximation for the momentum operator.

Once you have the $\phi_i$, find the initial coefficients of your wave function in this basis,
[tex]
\psi(x,t=0) = \sum_i c_i \phi_i(x)
[/tex]
by calculating
[tex]
c_i = \int \phi_i^*(x) \psi(x,t=0) dx
[/tex]

Then, the wave function at any time time is simply given by
[tex]
\psi(x,t) = \sum_i c_i \phi_i(x) \exp(-i E_i t / \hbar)
[/tex]
By advancing $t$ and refreshing the plot, you will get your animation. I have no idea how to do this in Maple

Blog Entries: 1
Recognitions:
Science Advisor

I have been trying to research the best way to solve the Schrodinger wave equation numerically so that I can plot and animate it in Maple. I'd also like to animate as it is affected by a potential. I have been trying for weeks to do this and I don't feel any closer than when I started. I have looked at finite difference method but I get so far and don't know what to do next.
Slide rule, Why not ask this question over on the Diff Eq forum.

Tags
maple, numerical pde, pde, pde wave, quantum mechanics

Thread Tools

|                                                                                 |                                    |         |
|---------------------------------------------------------------------------------|------------------------------------|---------|
| Similar Threads for: Best way to solve Schrodinger's wave equation numerically. |                                    |         |
| Thread                                                                          | Forum                              | Replies |
|                                                                                 | Math & Science Software            | 6       |
|                                                                                 | Quantum Physics                    | 0       |
|                                                                                 | Differential Equations             | 10      |
|                                                                                 | Atomic, Solid State, Comp. Physics | 0       |
|                                                                                 | Programming & Comp Sci             | 7       |
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 2, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9221542477607727, "perplexity_flag": "middle"}