Docsity

Worksheet “Shooting Method”, Study notes of Particle Physics

Toggle sidebar
bg1
PHYSICS 250 Spring 2005 P. NELSON
The Shooting Method
In this illustration I show how to solve the harmonic oscillator energy levels numerically. We begin by
defining the potential energy function. Since computers don't use units I have selected units where the
mass and spring constant, and hbar, all have numerical parts equal to one. (So the expected energy
levels (n+1/2)*hbar*omega are just 1/2, 3/2, ...)
VHO:=x->x^2/2;
:= VHO →x1
2x2
Next I define the Schrodinger equation for energy level ET
> Schr:=-diff(psi(x),x$2)/2+(VHO(x)-ET)*psi(x)=0;
:= Schr =−+
1
2
∂
∂2
x2()ψx
−
1
2x2ET ()ψx0
Now I need initial conditions to solve this equation. It's second order, so I need two conditions,
one on psi and one on psi'.
It turns out (ask me if you're curious) that half the solutions will be symmetric functions; that
is, psi(-x)=psi(x). This implies that psi'(0)=0.
I'm not interested in the normalization of psi, so any symmetric solution can be scaled until psi(0)=1.
So the initial conditions for the symmetric solutions are
> ICsym:=psi(0)=1,D(psi)(0)=0;
:= ICsym , =()ψ01 =()()Dψ00
I need a certain package:
> with(plots):
Now I call a long gobbledygook (which you don't need to understand) to solve the equation for
a chosen value of energy and plot the answer. I just happen to know the exact solution to this
special problem, so I put in the right ET=0.5. Note the colon at the end suppresses the output.
> P1:=odeplot(dsolve({subs(ET=0.5,Schr),ICsym},psi(x),numeric),[x,psi(x)],
- 1 -
pf3
pf4

Partial preview of the text

Download Worksheet “Shooting Method” and more Study notes Particle Physics in PDF only on Docsity!

PHYSICS 250The Shooting Method Spring 2005 P. NELSON

In this illustration I show how to solve the harmonic oscillator energy levels numerically. We begin bydefining the potential energy function. Since computers don't use units I have selected units where the mass and spring constant, and hbar, all have numerical parts equal to one. (So the expected energylevels (n+1/2)hbaromega are just 1/2, 3/2, ...) VHO:=x->x^2/2;

VHO := x →^12 x^2

Next I define the Schrodinger equation for energy level ET

Schr:=-diff(psi(x),x$2)/2+(VHO(x)-ET)*psi(x)=0;

Schr :=− 12  ∂∂ x^2 2 ψ( x )+ 12 x^2 − ET ψ( x )= 0

Now I need initial conditions to solve this equation. It's second order, so I need two conditions,one on psi and one on psi'. It turns out (ask me if you're curious) that half the solutions will be symmetric functions; thatis, psi(-x)=psi(x). This implies that psi'(0)=0. I'm not interested in the normalization of psi, so any symmetric solution can be scaled until psi(0)=1.So the initial conditions for the symmetric solutions are

ICsym:=psi(0)=1,D(psi)(0)=0;

ICsym :=ψ( 0 )= 1 , D( ψ )( 0 )= 0

I need a certain package:

with(plots): Now I call a long gobbledygook (which you don't need to understand) to solve the equation fora chosen value of energy and plot the answer. I just happen to know the exact solution to this special problem, so I put in the right ET=0.5. Note the colon at the end suppresses the output. P1:=odeplot(dsolve({subs(ET=0.5,Schr),ICsym},psi(x),numeric),[x,psi(x)], - 1 -

0..3,0..2,title=E=0.5,color=blue): The solution is in blue below.For reference I'll also plot the energy (black) and a line at ET (red). I scaled them both by a factor of 3 so they'd fit nicely. The thing to notice is that these lines cross at x=1, so any nonzeropsi beyond that point is classically forbidden.

P2:=plot({VHO(x)/3,0.5/3},x=0..3,y=0..2): display({P1,P2});

00 0.5 1 1.5x 2 2.

y

0

E=0.

So there's lots of probability outside the classical turning point -- tunneling is possible. Next I showwhat happens if our guess for the energy value is a bit high:

odeplot(dsolve({subs(ET=0.55,Schr),ICsym},psi(x),numeric),[x,psi(x)],0..3,-2..2,title=0.55); Error, (in dsolve) invalid arguments

(^00 12) x 3 4 5

y

0

E=8.

You may also notice that the amplitude of the wavy part increases towards the edge of theclassically forbidden region. That is, the probability to be found there increases. That makes sense -- classically the particle pauses at its turning points, so it spendsmore time there and is more likely to be found there at any instant!