How to numerically solve the Schrodinger equation for the hydrogen atom?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












From the analytical solution for the hydrogen atom I remember that the energies were obtained by boundary conditions and then the energy depends on n*n in which n is interpreted as different energy levels.



I am confused about solving Schrodinger equation numerically. Since we do not know the energy E, it appears as a non-numerical value in the Schrodinger equation. How can we solve the Schrodinger equation numerically?










share|cite|improve this question























  • More on SE & numerical methods.
    – Qmechanic♦
    4 hours ago














up vote
2
down vote

favorite












From the analytical solution for the hydrogen atom I remember that the energies were obtained by boundary conditions and then the energy depends on n*n in which n is interpreted as different energy levels.



I am confused about solving Schrodinger equation numerically. Since we do not know the energy E, it appears as a non-numerical value in the Schrodinger equation. How can we solve the Schrodinger equation numerically?










share|cite|improve this question























  • More on SE & numerical methods.
    – Qmechanic♦
    4 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











From the analytical solution for the hydrogen atom I remember that the energies were obtained by boundary conditions and then the energy depends on n*n in which n is interpreted as different energy levels.



I am confused about solving Schrodinger equation numerically. Since we do not know the energy E, it appears as a non-numerical value in the Schrodinger equation. How can we solve the Schrodinger equation numerically?










share|cite|improve this question















From the analytical solution for the hydrogen atom I remember that the energies were obtained by boundary conditions and then the energy depends on n*n in which n is interpreted as different energy levels.



I am confused about solving Schrodinger equation numerically. Since we do not know the energy E, it appears as a non-numerical value in the Schrodinger equation. How can we solve the Schrodinger equation numerically?







quantum-mechanics schroedinger-equation computational-physics hydrogen






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 4 hours ago









Qmechanic♦

98.2k121721066




98.2k121721066










asked 5 hours ago









MOON

423315




423315











  • More on SE & numerical methods.
    – Qmechanic♦
    4 hours ago
















  • More on SE & numerical methods.
    – Qmechanic♦
    4 hours ago















More on SE & numerical methods.
– Qmechanic♦
4 hours ago




More on SE & numerical methods.
– Qmechanic♦
4 hours ago










1 Answer
1






active

oldest

votes

















up vote
3
down vote













The hydrogen atom, in the rest frame of the proton, has as its only nontrivial component a single electron, with wavefunction $psi(vecr,t)$. The Hamiltonian will contain a kinetic-energy term for the electron and a Coulomb potential term:



$$H=frachatvecp^22m-frace^24piepsilon_0 hatr$$



We can write these operators in the position basis, since we have chosen to represent the electron's state with a position wavefunction:



$$H=frac-hbar^22mnabla^2-frace^24piepsilon_0 r$$



At this point, we can write down the Schrodinger equation $Hpsi=ihbarfracpartial psipartial t$:



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=ihbarfracpartial psipartial t$$



Numerically solving this equation for initial conditions $psi(vecr,0)$ will give you the time evolution of your initial wavefunction.




Now that it is clear that what was actually asked for was the solution of the time-independent Schrodinger equation $Hpsi=Epsi$, the answer is no longer simply using the nearest PDE solver on the above equation. In position space, the equation is now, for a time-independent wavefunction $psi(vecr)$,



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=Epsi$$



where we know neither $E$ nor $psi$. There are generally two ways to start solving this - either start with a guess for $E$ and solve for $psi$, or start with a guess for $psi$ and solve for $E$.



If you're making a guess for $E$, then you proceed by solving the above PDE for $psi$ and checking if the wavefunction is "sensible" (the conditions for "sensible" depend on the situation; for the hydrogen atom, we might include "vanishes at infinity" in our definition of "sensible," because hydrogen atoms have finite spatial extent). If the wavefunction is not "sensible," then, based on the particular way that $psi$ is not "sensible," you make another guess for $E$ that is more likely to make the wavefunction "sensible" (for example, in the hydrogen atom, if the wavefunction grows indefinitely with distance, we might choose a lower value of energy in the next iteration). Repeat this process enough times, and you may zero in on a value of $E$ that produces a wavefunction $psi$ that fits the necessary conditions.



If you're making a guess for $psi$, then you can evaluate the left-hand side of the equation, determine how similar it is to $psi$, adjust your guess in the direction that your result indicates, and evaluate again. Eventually you will get a wavefunction for which the left-hand side looks very close to a scaled version of $psi$ (or equivalently, for which the left-hand side after normalization looks very close to $psi$). This wavefunction is the stationary state, and the scaling factor is the energy.






share|cite|improve this answer






















  • How can we know the initial condition and how can we know this initial condition is the eigen function of the Hamiltonian so that what we get as the expectation value of Hamiltonian is the energy corresponding to one of the energy levels?
    – MOON
    4 hours ago










  • @MOON You have to choose your initial condition. If you choose it to be an eigenfunction of the Hamiltonian, then the time evolution will be as follows: $psi(vecr,t)=e^-iEtpsi(vecr,0)$. If you want to find the eigenfunctions of the Hamiltonian, then that requires numerically solving the time-independent Schrodinger equation, which is an entirely different problem.
    – probably_someone
    3 hours ago










  • Could you please also add to your answer how we can solve the time-independent Schrodinger equation? Because in the time-independent Schrodinger equation we do not know the energy E.
    – MOON
    3 hours ago










Your Answer




StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "151"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fphysics.stackexchange.com%2fquestions%2f435743%2fhow-to-numerically-solve-the-schrodinger-equation-for-the-hydrogen-atom%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote













The hydrogen atom, in the rest frame of the proton, has as its only nontrivial component a single electron, with wavefunction $psi(vecr,t)$. The Hamiltonian will contain a kinetic-energy term for the electron and a Coulomb potential term:



$$H=frachatvecp^22m-frace^24piepsilon_0 hatr$$



We can write these operators in the position basis, since we have chosen to represent the electron's state with a position wavefunction:



$$H=frac-hbar^22mnabla^2-frace^24piepsilon_0 r$$



At this point, we can write down the Schrodinger equation $Hpsi=ihbarfracpartial psipartial t$:



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=ihbarfracpartial psipartial t$$



Numerically solving this equation for initial conditions $psi(vecr,0)$ will give you the time evolution of your initial wavefunction.




Now that it is clear that what was actually asked for was the solution of the time-independent Schrodinger equation $Hpsi=Epsi$, the answer is no longer simply using the nearest PDE solver on the above equation. In position space, the equation is now, for a time-independent wavefunction $psi(vecr)$,



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=Epsi$$



where we know neither $E$ nor $psi$. There are generally two ways to start solving this - either start with a guess for $E$ and solve for $psi$, or start with a guess for $psi$ and solve for $E$.



If you're making a guess for $E$, then you proceed by solving the above PDE for $psi$ and checking if the wavefunction is "sensible" (the conditions for "sensible" depend on the situation; for the hydrogen atom, we might include "vanishes at infinity" in our definition of "sensible," because hydrogen atoms have finite spatial extent). If the wavefunction is not "sensible," then, based on the particular way that $psi$ is not "sensible," you make another guess for $E$ that is more likely to make the wavefunction "sensible" (for example, in the hydrogen atom, if the wavefunction grows indefinitely with distance, we might choose a lower value of energy in the next iteration). Repeat this process enough times, and you may zero in on a value of $E$ that produces a wavefunction $psi$ that fits the necessary conditions.



If you're making a guess for $psi$, then you can evaluate the left-hand side of the equation, determine how similar it is to $psi$, adjust your guess in the direction that your result indicates, and evaluate again. Eventually you will get a wavefunction for which the left-hand side looks very close to a scaled version of $psi$ (or equivalently, for which the left-hand side after normalization looks very close to $psi$). This wavefunction is the stationary state, and the scaling factor is the energy.






share|cite|improve this answer






















  • How can we know the initial condition and how can we know this initial condition is the eigen function of the Hamiltonian so that what we get as the expectation value of Hamiltonian is the energy corresponding to one of the energy levels?
    – MOON
    4 hours ago










  • @MOON You have to choose your initial condition. If you choose it to be an eigenfunction of the Hamiltonian, then the time evolution will be as follows: $psi(vecr,t)=e^-iEtpsi(vecr,0)$. If you want to find the eigenfunctions of the Hamiltonian, then that requires numerically solving the time-independent Schrodinger equation, which is an entirely different problem.
    – probably_someone
    3 hours ago










  • Could you please also add to your answer how we can solve the time-independent Schrodinger equation? Because in the time-independent Schrodinger equation we do not know the energy E.
    – MOON
    3 hours ago














up vote
3
down vote













The hydrogen atom, in the rest frame of the proton, has as its only nontrivial component a single electron, with wavefunction $psi(vecr,t)$. The Hamiltonian will contain a kinetic-energy term for the electron and a Coulomb potential term:



$$H=frachatvecp^22m-frace^24piepsilon_0 hatr$$



We can write these operators in the position basis, since we have chosen to represent the electron's state with a position wavefunction:



$$H=frac-hbar^22mnabla^2-frace^24piepsilon_0 r$$



At this point, we can write down the Schrodinger equation $Hpsi=ihbarfracpartial psipartial t$:



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=ihbarfracpartial psipartial t$$



Numerically solving this equation for initial conditions $psi(vecr,0)$ will give you the time evolution of your initial wavefunction.




Now that it is clear that what was actually asked for was the solution of the time-independent Schrodinger equation $Hpsi=Epsi$, the answer is no longer simply using the nearest PDE solver on the above equation. In position space, the equation is now, for a time-independent wavefunction $psi(vecr)$,



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=Epsi$$



where we know neither $E$ nor $psi$. There are generally two ways to start solving this - either start with a guess for $E$ and solve for $psi$, or start with a guess for $psi$ and solve for $E$.



If you're making a guess for $E$, then you proceed by solving the above PDE for $psi$ and checking if the wavefunction is "sensible" (the conditions for "sensible" depend on the situation; for the hydrogen atom, we might include "vanishes at infinity" in our definition of "sensible," because hydrogen atoms have finite spatial extent). If the wavefunction is not "sensible," then, based on the particular way that $psi$ is not "sensible," you make another guess for $E$ that is more likely to make the wavefunction "sensible" (for example, in the hydrogen atom, if the wavefunction grows indefinitely with distance, we might choose a lower value of energy in the next iteration). Repeat this process enough times, and you may zero in on a value of $E$ that produces a wavefunction $psi$ that fits the necessary conditions.



If you're making a guess for $psi$, then you can evaluate the left-hand side of the equation, determine how similar it is to $psi$, adjust your guess in the direction that your result indicates, and evaluate again. Eventually you will get a wavefunction for which the left-hand side looks very close to a scaled version of $psi$ (or equivalently, for which the left-hand side after normalization looks very close to $psi$). This wavefunction is the stationary state, and the scaling factor is the energy.






share|cite|improve this answer






















  • How can we know the initial condition and how can we know this initial condition is the eigen function of the Hamiltonian so that what we get as the expectation value of Hamiltonian is the energy corresponding to one of the energy levels?
    – MOON
    4 hours ago










  • @MOON You have to choose your initial condition. If you choose it to be an eigenfunction of the Hamiltonian, then the time evolution will be as follows: $psi(vecr,t)=e^-iEtpsi(vecr,0)$. If you want to find the eigenfunctions of the Hamiltonian, then that requires numerically solving the time-independent Schrodinger equation, which is an entirely different problem.
    – probably_someone
    3 hours ago










  • Could you please also add to your answer how we can solve the time-independent Schrodinger equation? Because in the time-independent Schrodinger equation we do not know the energy E.
    – MOON
    3 hours ago












up vote
3
down vote










up vote
3
down vote









The hydrogen atom, in the rest frame of the proton, has as its only nontrivial component a single electron, with wavefunction $psi(vecr,t)$. The Hamiltonian will contain a kinetic-energy term for the electron and a Coulomb potential term:



$$H=frachatvecp^22m-frace^24piepsilon_0 hatr$$



We can write these operators in the position basis, since we have chosen to represent the electron's state with a position wavefunction:



$$H=frac-hbar^22mnabla^2-frace^24piepsilon_0 r$$



At this point, we can write down the Schrodinger equation $Hpsi=ihbarfracpartial psipartial t$:



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=ihbarfracpartial psipartial t$$



Numerically solving this equation for initial conditions $psi(vecr,0)$ will give you the time evolution of your initial wavefunction.




Now that it is clear that what was actually asked for was the solution of the time-independent Schrodinger equation $Hpsi=Epsi$, the answer is no longer simply using the nearest PDE solver on the above equation. In position space, the equation is now, for a time-independent wavefunction $psi(vecr)$,



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=Epsi$$



where we know neither $E$ nor $psi$. There are generally two ways to start solving this - either start with a guess for $E$ and solve for $psi$, or start with a guess for $psi$ and solve for $E$.



If you're making a guess for $E$, then you proceed by solving the above PDE for $psi$ and checking if the wavefunction is "sensible" (the conditions for "sensible" depend on the situation; for the hydrogen atom, we might include "vanishes at infinity" in our definition of "sensible," because hydrogen atoms have finite spatial extent). If the wavefunction is not "sensible," then, based on the particular way that $psi$ is not "sensible," you make another guess for $E$ that is more likely to make the wavefunction "sensible" (for example, in the hydrogen atom, if the wavefunction grows indefinitely with distance, we might choose a lower value of energy in the next iteration). Repeat this process enough times, and you may zero in on a value of $E$ that produces a wavefunction $psi$ that fits the necessary conditions.



If you're making a guess for $psi$, then you can evaluate the left-hand side of the equation, determine how similar it is to $psi$, adjust your guess in the direction that your result indicates, and evaluate again. Eventually you will get a wavefunction for which the left-hand side looks very close to a scaled version of $psi$ (or equivalently, for which the left-hand side after normalization looks very close to $psi$). This wavefunction is the stationary state, and the scaling factor is the energy.






share|cite|improve this answer














The hydrogen atom, in the rest frame of the proton, has as its only nontrivial component a single electron, with wavefunction $psi(vecr,t)$. The Hamiltonian will contain a kinetic-energy term for the electron and a Coulomb potential term:



$$H=frachatvecp^22m-frace^24piepsilon_0 hatr$$



We can write these operators in the position basis, since we have chosen to represent the electron's state with a position wavefunction:



$$H=frac-hbar^22mnabla^2-frace^24piepsilon_0 r$$



At this point, we can write down the Schrodinger equation $Hpsi=ihbarfracpartial psipartial t$:



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=ihbarfracpartial psipartial t$$



Numerically solving this equation for initial conditions $psi(vecr,0)$ will give you the time evolution of your initial wavefunction.




Now that it is clear that what was actually asked for was the solution of the time-independent Schrodinger equation $Hpsi=Epsi$, the answer is no longer simply using the nearest PDE solver on the above equation. In position space, the equation is now, for a time-independent wavefunction $psi(vecr)$,



$$frac-hbar^22mnabla^2psi - frace^24piepsilon_0 rpsi=Epsi$$



where we know neither $E$ nor $psi$. There are generally two ways to start solving this - either start with a guess for $E$ and solve for $psi$, or start with a guess for $psi$ and solve for $E$.



If you're making a guess for $E$, then you proceed by solving the above PDE for $psi$ and checking if the wavefunction is "sensible" (the conditions for "sensible" depend on the situation; for the hydrogen atom, we might include "vanishes at infinity" in our definition of "sensible," because hydrogen atoms have finite spatial extent). If the wavefunction is not "sensible," then, based on the particular way that $psi$ is not "sensible," you make another guess for $E$ that is more likely to make the wavefunction "sensible" (for example, in the hydrogen atom, if the wavefunction grows indefinitely with distance, we might choose a lower value of energy in the next iteration). Repeat this process enough times, and you may zero in on a value of $E$ that produces a wavefunction $psi$ that fits the necessary conditions.



If you're making a guess for $psi$, then you can evaluate the left-hand side of the equation, determine how similar it is to $psi$, adjust your guess in the direction that your result indicates, and evaluate again. Eventually you will get a wavefunction for which the left-hand side looks very close to a scaled version of $psi$ (or equivalently, for which the left-hand side after normalization looks very close to $psi$). This wavefunction is the stationary state, and the scaling factor is the energy.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited 3 hours ago

























answered 5 hours ago









probably_someone

14.4k12451




14.4k12451











  • How can we know the initial condition and how can we know this initial condition is the eigen function of the Hamiltonian so that what we get as the expectation value of Hamiltonian is the energy corresponding to one of the energy levels?
    – MOON
    4 hours ago










  • @MOON You have to choose your initial condition. If you choose it to be an eigenfunction of the Hamiltonian, then the time evolution will be as follows: $psi(vecr,t)=e^-iEtpsi(vecr,0)$. If you want to find the eigenfunctions of the Hamiltonian, then that requires numerically solving the time-independent Schrodinger equation, which is an entirely different problem.
    – probably_someone
    3 hours ago










  • Could you please also add to your answer how we can solve the time-independent Schrodinger equation? Because in the time-independent Schrodinger equation we do not know the energy E.
    – MOON
    3 hours ago
















  • How can we know the initial condition and how can we know this initial condition is the eigen function of the Hamiltonian so that what we get as the expectation value of Hamiltonian is the energy corresponding to one of the energy levels?
    – MOON
    4 hours ago










  • @MOON You have to choose your initial condition. If you choose it to be an eigenfunction of the Hamiltonian, then the time evolution will be as follows: $psi(vecr,t)=e^-iEtpsi(vecr,0)$. If you want to find the eigenfunctions of the Hamiltonian, then that requires numerically solving the time-independent Schrodinger equation, which is an entirely different problem.
    – probably_someone
    3 hours ago










  • Could you please also add to your answer how we can solve the time-independent Schrodinger equation? Because in the time-independent Schrodinger equation we do not know the energy E.
    – MOON
    3 hours ago















How can we know the initial condition and how can we know this initial condition is the eigen function of the Hamiltonian so that what we get as the expectation value of Hamiltonian is the energy corresponding to one of the energy levels?
– MOON
4 hours ago




How can we know the initial condition and how can we know this initial condition is the eigen function of the Hamiltonian so that what we get as the expectation value of Hamiltonian is the energy corresponding to one of the energy levels?
– MOON
4 hours ago












@MOON You have to choose your initial condition. If you choose it to be an eigenfunction of the Hamiltonian, then the time evolution will be as follows: $psi(vecr,t)=e^-iEtpsi(vecr,0)$. If you want to find the eigenfunctions of the Hamiltonian, then that requires numerically solving the time-independent Schrodinger equation, which is an entirely different problem.
– probably_someone
3 hours ago




@MOON You have to choose your initial condition. If you choose it to be an eigenfunction of the Hamiltonian, then the time evolution will be as follows: $psi(vecr,t)=e^-iEtpsi(vecr,0)$. If you want to find the eigenfunctions of the Hamiltonian, then that requires numerically solving the time-independent Schrodinger equation, which is an entirely different problem.
– probably_someone
3 hours ago












Could you please also add to your answer how we can solve the time-independent Schrodinger equation? Because in the time-independent Schrodinger equation we do not know the energy E.
– MOON
3 hours ago




Could you please also add to your answer how we can solve the time-independent Schrodinger equation? Because in the time-independent Schrodinger equation we do not know the energy E.
– MOON
3 hours ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fphysics.stackexchange.com%2fquestions%2f435743%2fhow-to-numerically-solve-the-schrodinger-equation-for-the-hydrogen-atom%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

Long meetings (6-7 hours a day): Being “babysat” by supervisor

What does second last employer means? [closed]

One-line joke