Question 2.55: Find the ground state energy of the harmonic oscillator, to ...

Find the ground state energy of the harmonic oscillator, to five significant digits, by the “wag-the-dog” method. That is, solve Equation 2.73 numerically, varying K until you get a wave function that goes to zero at large ξ. In Mathematica, appropriate input code would be

\frac{d^{2} \psi}{d \xi^{2}}=\left(\xi^{2}-K\right) \psi .      (2.73)

Plot[

Evaluate[

u[x] /.

NDSolve [

\left\{ u \prime \prime [ x ]-\left( x ^{2}- K \right)^{*} u [ x ]==0, u [0]==1, u\prime [0]==0\right\} ,

u [ x ],\{ x , 0, b \}

]

],

\{ x , a , b \}, \text { PlotRange }->\{ c , d \}

]

(Here (a,b) is the horizontal range of the graph, and (c,d) is the vertical range—start with a = 0 , b =10 , c = -10 , d = 10 ) We know that the correct solution is K = 2 n + 1 , so you might start with a “guess” of K= 0.9. Notice what the “tail” of the wave function does. Now try K= 1.1 , and note that the tail flips over. Somewhere in between those values lies the correct solution. Zero in on it by bracketing K tighter and tighter. As you do so, you may want to adjust a, b, c, and d, to zero in on the cross-over point.

The Blue Check Mark means that this solution has been answered and checked by an expert. This guarantees that the final answer is accurate.
Learn more on how we answer questions.

I’ll just show the first two graphs, and the last two. Evidently K lies between 0.9999 and 1.0001.

\text { Plot [ Evaluate }[ u [ x ] / .

  \operatorname{ND Solve}\left[\left\{u^{\prime \prime} [x]-\left(x^{\wedge} 2-0.9\right) * u[x]==0, u[0]=1\right.\right. ,

\left.u^{\prime}[0]==0\right\}, u[x],\left\{x, 10^{-8}, 10\right\} ,

\text { Max Steps }->10000]],\{ x , 0,10\} ,

\text { Plot Range }->\{ -10 ,10\}],

\text { Plot [ Evaluate }[ u [ x ] / .

  \operatorname{ND Solve}\left[\left\{u^{\prime \prime} [x]-\left(x^{\wedge} 2-1.1\right) * u[x]==0, u[0]=1\right.\right. ,

\left.u^{\prime}[0]==0\right\}, u[x],\left\{x, 10^{-8}, 10\right\} ,

\text { Max Steps }->10000]],\{ x , 0,10\} ,

\text { Plot Range }->\{ -10 ,10\}],

\text { Plot [ Evaluate }[ u [ x ] / .

  \operatorname{ND Solve}\left[\left\{u^{\prime \prime} [x]-\left(x^{\wedge} 2-0.9999\right) * u[x]==0, u[0]=1\right.\right. ,

\left.u^{\prime}[0]==0\right\}, u[x],\left\{x, 10^{-8}, 10\right\} ,    \text { Max Steps }->10000]] ,

\{x, 4,5.5\}, \text { PlotRange } \rightarrow\{-1,10\}] ,

\text { Plot [ Evaluate }[ u [ x ] / .

  \operatorname{ND Solve}\left[\left\{u^{\prime \prime} [x]-\left(x^{\wedge} 2-1.0001\right) * u[x]==0, u[0]=1\right.\right. ,

\left.u^{\prime}[0]==0\right\}, u[x],\left\{x, 10^{-8}, 10\right\} ,    \text { Max Steps }->10000]] ,

\{x, 4,5.5\}, \text { PlotRange } \rightarrow\{-10,1\}] ;

30
31
32
33

Related Answered Questions