Professional Documents
Culture Documents
Copyright 2000 Arne Bergström, B&E Scientific Ltd, and Claudia Eberlein, University of Sussex.
If you are not familiar with Maple then read the text (printed in black, like this line), ignore the
Maple commands (printed in red), and just look at the output of Maple's calculations (displayed
plots or formulae printed in blue). If you know Maple then you are encouraged to read also the
Maple commands and try out what happens when you change them. However, you are still
advised first to go through the whole worksheet without changing anything, so that you
understand the aim of the calculation.
Start by putting the cursor anywhere in the command group listed below, and then press
<ENTER>.
O restart: with(PDEtools,dchange):
with(orthopoly):
interface(showassumed=0,imaginaryunit=i):
assume(h_>0,m>0,omega>0):
Proceed by pressing <ENTER>.
Notation
Planck's constant h/2p which is commonly called "h bar" cannot be printed in Maple.
Therefore it is replaced by the symbol h_ throughout the worksheet.
2 d2
h_~ y x
1 dx2
K CV x y x = E y x
2 m~
Please purchase PDFcamp Printer on http://www.verypdf.com/ to remove this watermark.
1 2
V x = m~ w~ x2
2
d2
h_~2 y x
1 dx2 1 2
Eq A1 := K C m~ w~ x2 y x = E y x (1.2.1)
2 m~ 2
As before, we want to simplify the equation because we don't want to carry around all sorts of
parameters. So, we scale the variable x to a new variable u which is the displacement measured in
h_
units of .
mw
O Eq(A2):=x=sqrt(h_/m/omega)*u; Eq(A3):=expand(dchange(Eq
(A2),Eq(A1),[u],params=[h_,m,omega])/h_/omega*2);
h_~
Eq A2 := x = u
m~ w~
d2 2Ey u
Eq A3 := K y u Cu2 y u = (1.2.2)
du 2
h_~ w~
We shift and scale the energy E and express it in terms of the dimensionless variable N, which
simplifies the equation further.
O Eq(A4):= E=h_*omega*(N+1/2); Eq(A5):=subs(%,Eq(A3));
1
Eq A4 := E = h_~ w~ N C
2
2
d 1
Eq A5 := K 2
y u Cu2 y u = 2 N C y u (1.2.3)
du 2
Finally, we can bring the equation into the standard form for differential equations by shuffling
the term on the right-hand side over to the left.
O Eq(A6):= collect(lhs(Eq(A5))-rhs(Eq(A5)),psi(u))=0;
2 d2
Eq A6 := u K2 N K1 y u K y u =0 (1.2.4)
du2
1 2 1 2
K u K u
2 2
Eq B2 := y u = _C1 e C_C2 e erf i u (1.3.2)
Let's plot the solutions one by one to see what they are like. The Gaussian looks like a good
wave function.
O exp(-u^2/2); plot(%,u=-5...5);
1 2
K u
2
e
1
0.8
0.6
0.4
0.2
K4 K2 0 2 4
u
The other solution, the one that contains the error function erf, diverges for large arguments.
O subs(_C1=1,_C2=1,rhs(Eq(B2))-exp(-u^2/2)); plot(%,u=-5...5,
-10..10);
1 2
K u
2
e erf i u
Warning, unable to evaluate the function to numeric values in the
region; see the plotting command's help page to ensure the calling
sequence is correct
Please purchase PDFcamp Printer on http://www.verypdf.com/ to remove this watermark.
10
K4 K2 0 2 4
u
K5
K10
Hence, we must rule out the latter solution as a wave function because if we tried to normalise it
the normalisation integral would diverge.
O Int(abs(psi(x))^2,x=-infinity..infinity)=limit(x,x=
infinity);
N
2
y x dx = N (1.3.3)
KN
So, we gather that asymptotically, for large u, all wave functions must behave like the first
solution, like exp(- ½ u2). How can we use this knowledge for finding the exact solution y u ?
Well, we can factor out the asymptotic behaviour by expressing y u in terms of a new function
h(u).
O Eq(B3):=psi(u)=h(u)*exp(-u^2/2);
1 2
K u
2
Eq B3 := y u = h u e (1.3.4)
Substituting this into Eq(A6), we get an equation for the function h(u).
O Eq(B4):=combine(expand(subs(Eq(B3),exp(u^2/2)*Eq(A6))));
d2 d
Eq B4 := K2 h u N K 2
h u C2 h u u =0 (1.3.5)
du du
Provided that h(u) is reasonably well-behaved at infinity, i e not exponentially rising, the
substitution in Eq(B3) ensures that the wave function has the correct asymptotic behaviour and is
normalisable. This is because an exponential falls off faster than any power, which means that
h(u) could be any combination of powers and the asymptotic behaviour of the wave function
y u would still be alright.
Please purchase PDFcamp Printer on http://www.verypdf.com/ to remove this watermark.
To find the unknown coefficients we simply insert the polynomial Eq(C1) into Eq(B4) for h(u).
Differentiating powers is simple.
O combine(simplify(subs(Eq(C1),Eq(B4)),power));
L L L
v
K
v2
vu 2 >
k= 0
a k u k
C2 >
vu k = 0
ak uk u C
k= 0
>
K2 N ak uk = 0 (1.4.3)
Next we split the sum into two: one with uk and the other with uk K 2. In the latter the terms for k=
0 and k=1 vanish (because the coefficients work out to zero - constants and linear terms
disappear when one differentiates them twice).
O sum(2*(k-N)*a[k]*u^k,k=0..L)-sum(k*(k-1)*a[k]*u^(k-2),k=2..
Please purchase PDFcamp Printer on http://www.verypdf.com/ to remove this watermark.
L)=0;
L L
>2
k= 0
k KN ak u K k
>k
k= 2
k K1 ak uk K 2 = 0 (1.4.4)
Instead of summing k from 2 to L in the second sum we can as well substitute k=j+2 and sum j
from 0 to L-2.
O sum(2*(k-N)*a[k]*u^k,k=0..L)-sum(subs(k=j+2,k*(k-1)*a[k]*u^
(k-2)),j=0..L-2)=0;
L L K2
>2
k= 0
k KN ak u Kk
>
j= 0
j C2 j C1 aj C 2 u j = 0 (1.4.5)
If we replace both k and j by a new index, say, q then we can amalgamate the two sums into one
except for the (L-1)st and the Lth term in the first sum, which we have to write separately.
O Eq(C2):=sum((2*(q-N)*a[q]-(q+1)*(q+2)*a[q+2])*u^q,q=0..L-2)
+ 2*(L-1-N)*a[L-1]*u^(L-1) + 2*(L-N)*a[L]*u^L=0;
aL K 1 uL K 1 L K1 2 aL K 1 uL K 1 L K1 aL uL K 1 L K1 2
Eq C2 := K C K (1.4.6)
u2 u2 u
aL uL K 1 L K1
K
u
C > Ku
q
q K2 2
q aq Cuq K 2 q aq C2 uq aq q K2 uq aq N
K > Ku
q
q K2 2
q aq Cuq K 2 q aq C2 uq aq q K2 uq aq N C2 L
q = L K1 q =0
K1 KN aL K 1 uL K 1 C2 L KN aL uL = 0
Now we have got a sum over powers of u, a polynomial in u, on the left-hand side. The right-
hand side tells us that it must equal zero, and that must be so for all u - because, after all, we
want to find a function h(u) that satisfies the differential equation Eq(B4) for all u and not just for
a few special values of u. The only way to make the left-hand side zero for all u is to have zero as
coefficients in front of all powers of u. So, the coefficient in front of uq must be zero:
O Eq(C3):=2*(q-N)*a[q]-(q+1)*(q+2)*a[q+2]=0;
Eq C3 := 2 q KN aq K q C1 q C2 aq C 2 = 0 (1.4.7)
This equation does not let us evaluate the unknown coefficients ak but it tells us how one depends
on the previous but one. So, the 7th depends on the 5th, the 5th on the 3rd, and the third on the
1st. And the 8th depends on the 6th, the 6th on the 4th, the 4th on the 2nd, the 2nd on the 0th.
O Eq(C4):=a[q+2]=solve(Eq(C3),a[q+2]);
2 Kq CN aq
Eq C4 := aq C 2 = K (1.4.8)
q C1 q C2
Let's look at the remaining two terms. The coefficient of uL in Eq(C2) must be zero. We know
that aL cannot be zero (because then h(u) wouldn't be a polynomial of degree L but of degree L-1
or lower); hence L-N must be zero. Wow, that means that N must be a positive integer. Exactly
what we found numerically in Worksheet 7!
O 2*(L-N)*a[L]=0; Eq(C5):=L-N=0;
2 L KN aL = 0
Eq C5 := L KN = 0 (1.4.9)
Please purchase PDFcamp Printer on http://www.verypdf.com/ to remove this watermark.
And the coefficient of uL K 1 in Eq(C2) must be zero. Since we have just concluded that L=N, we
must have aL K 1 = 0.
O 2*(L-1-N)*a[L-1]=0; Eq(C6):=a[L-1]=0;
2 L K1 KN aL K 1 = 0
Eq C6 := aL K 1 = 0 (1.4.10)
Now we have solved the problem. The solution for h(u) is a polynomial of degree L. The
coefficient aL K 1 of the next lower power uL K 1is zero. Applying Eq(C4) we find that this means
that aL K 3, aL K 5, ... must also be zero. If L is even then the coefficients of all odd powers of u are
zero, and if L is odd then the coefficients of all even powers of u are zero. So, the solution is
either an even or an odd polynomial in u. That is something we actually also already know
because we've figured out in Worksheet 7 that the solution must have either even or odd parity.
Even polynomials give even-parity solutions, and odd polynomials odd-parity solutions.
Let's look at a few examples.
Ground state
The lowest possible value of L and therefore N is zero. We insert this into Eq(C1).
O N=0;simplify(subs(L=0,Eq(C1)));
N =0
0
h u =
k= 0
>a u k
k
(1.4.1.1)
Substituting in Eq(A4) and Eq(B3) and reversing the substituion of u for x according to Eq
(A2) gives the solution:
O Eq(C7):=subs(N=0,Eq(A4)); subs(h(u)=a[0],Eq(B3));
Eq(C8):=subs(psi(u)=psi(x),u=solve(Eq(A2),u),%);
1
Eq C7 := E = h_~ w~
2
1 2
K u
2
y u = a0 e
1 x2 m~ w~
K
2 h_~
Eq C8 := y x = a0 e (1.4.1.2)
The coefficient a0 is determined from the normalisation of y x .
O Int(abs(psi(x))^2,x=-infinity..infinity)=int(rhs(Eq(C8))
^2,x=-infinity..infinity); a[0]=sqrt(solve(simplify(rhs
(%))=1,a[0]^2));
N
2 a20 h_~ p
y x dx =
KN h_~ m~ w~
Warning, solving for expressions other than names or functions is
not recommended.
m~ w~
a0 = (1.4.1.3)
h_~ p
The plot of the wave function is familiar from Worksheet 7.
O plot(subs(m=1,h_=1,omega=1,a[0]=Pi^(-1/4),rhs(Eq(C8))),x=
Please purchase PDFcamp Printer on http://www.verypdf.com/ to remove this watermark.
-4..4);
0.7
0.6
0.5
0.4
0.3
0.2
0.1
K4 K3 K2 K1 0 1 2 3 4
x
First excited state
The next possible value of L is 1. Inserting this into Eq(C5) and Eq(C1) gives:
O N=1;simplify(subs(L=1,Eq(C1)));
N =1
1
h u = >a u
k= 0
k
k
(1.4.2.1)
m~ w~
a1 = 2 (1.4.2.4)
h_~ p
And the plot of the wave function:
O plot(subs(m=1,h_=1,omega=1,a[1]=sqrt(2)*Pi^(-1/4),rhs(Eq
(C10))),x=-4..4);
0.6
0.4
0.2
K4 K3 K2 K1 0 1 2 3 4
x
K0.2
K0.4
K0.6
a1 = 0
h u = a0 Ca2 u2 (1.4.3.2)
We use Eq(C4) to determine how a2 depends on a0.
O subs(q=0,N=2,Eq(C4)); h(u)=a[0]*(1-2*u^2);
a2 = K2 a0
h u = a0 1 K2 u2 (1.4.3.3)
Then we get from Eq(A4), Eq(B3), and Eq(A2):
O Eq(C11):=subs(N=2,Eq(A4)); subs(h(u)=a[0]*(1-2*u^2),Eq
(B3));
Eq(C12):=subs(psi(u)=psi(x),u=solve(Eq(A2),u),%);
5
Eq C11 := E = h_~ w~
2
1 2
K u
2 2
y u = a0 1 K2 u e
1 x2 m~ w~
2 x2 m~ w~ K
Eq C12 := y x = a0 1 K e 2 h_~ (1.4.3.4)
h_~
As before, the coefficient a0 is determined from the normalisation of y x .
O Int(abs(psi(x))^2,x=-infinity..infinity)=int(rhs(Eq(C12))
^2,x=-infinity..infinity); a[0]=sqrt(solve(simplify(rhs
(%))=1,a[0]^2));
N
2 2 a20 h_~ p
y x dx =
KN h_~ m~ w~
Warning, solving for expressions other than names or functions is
not recommended.
1 m~ w~
a0 = 2 (1.4.3.5)
2 h_~ p
And again the plot of the wave function.
O plot(subs(m=1,h_=1,omega=1,a[0]=Pi^(-1/4)/sqrt(2),rhs(Eq
(C12))),x=-4..4);
Please purchase PDFcamp Printer on http://www.verypdf.com/ to remove this watermark.
0.4
0.2
K4 K3 K2 K1 0 1 2 3 4
x
K0.2
K0.4
K0.6
Hermite polynomials
We could go on and play this game for all integer L, and thus work out the wave functions for
the Lth excited state. But some mathematicians have done this already, and the polynomials h
(u) that we have been calculating are called the Hermite polynomials. Here is a listing of the
first ten of them. (note that they have got alternately even and odd parity, as we mentioned
earlier.)
O for j from 0 to 9 do h[j](u)=H(j,u) od;
h0 u = 1
h1 u = 2 u
h2 u = K2 C4 u2
h3 u = 8 u3 K12 u
h4 u = 12 C16 u4 K48 u2
h5 u = 32 u5 K160 u3 C120 u
h6 u = K120 C64 u6 K480 u4 C720 u2
h7 u = 128 u7 K1344 u5 C3360 u3 K1680 u
h8 u = 1680 C256 u8 K3584 u6 C13440 u4 K13440 u2
h9 u = 512 u9 K9216 u7 C48384 u5 K80640 u3 C30240 u (1.4.4.1)
So, we can write down the general solution of the stationary Schrödinger equation for the
harmonic oscillator. The Nth excited state has the energy
O Eq(A4);
1
E = h_~ w~ N C (1.4.4.2)
2
Please purchase PDFcamp Printer on http://www.verypdf.com/ to remove this watermark.
The wave function of this state is the product of the Nth order Hermite polynomial and a
Gaussian. Correctly normalised it reads:
O subs(h(u)=(m*omega/Pi/h_)^(1/4)/sqrt(2^N*N!)*h[N](u),Eq
(B3)); `with `*u=solve(Eq(A2),u);
1/4 1 2
m~ w~ K u
2
hN u e
p h_~
y u =
2N N!
x
with u = (1.4.4.3)
h_~
m~ w~