Legal Notice, Disclaimer, and Book Ordering Information:

(* Legal Notice, Disclaimer, and Book Ordering Information:

Last Modified: FIO January 1, 1995

Mathematica For Physics
Robert L. Zimmerman and Fredrick I. Olness
MathSource Number: 0206-862 

ISBN 0-201-53796-6
For ordering information, call 1-800-822-6339
Addison-Wesley Publishing Company

Communication with the authors:
Fredrick I. Olness:  olness@mail.physics.smu.edu
Robert L. Zimmerman: bob@zim.uoregon.edu

Copyright 1995, Addison-Wesley Publishing Company, Inc. The material in
this file may be distributed freely  so long as the content remains
unchanged, and the copyright and  reference notices are included. The
publisher grants permission for the noncommercial use of these programs
and program segments.  All other uses require the prior written consent
of the publisher.    

All rights are reserved with regard to the  material in the
"Mathematica For Physics" text, and may not be reproduced, stored in a
retrieval system, or transmitted,  in any form or by any means,
electronic, mechanical, photocopying,  recording, or otherwise, without
the prior written permission  of the publisher. 

The programs and applications presented in this book have been included
for  their instructional value. They have been tested with care but are
not  guaranteed for any particular purpose. The publisher does not
offer any  warranties or representations, nor does it accept any
liabilities with  respect to the programs or applications. 

 *)

Chapter 6, Section 2, Problem 5: 
The Hydrogen Atom in Spherical Coordinates

<<mainDir:subDir:ch6init.m  (* Mac  Version *)

<<mainDir/subDir/ch6init.m  (* Unix Version *)

Solution

Clear["Global`*"];

rEq= 0 == (- el R[r] - el^2 R[r] + k^2 r^2 R[r] 
             + 2 r R'[r] + r^2 R''[r])

rule1= {k   -> Sqrt[2 m (En-V[r])]/hbar
       ,V[r]-> -Z e^2/r
       ,En  -> -Wn};

rEq2=rEq //.rule1 //ExpandAll

rSol= ( DSolve[rEq2 ,{R[r]},r][[1]] 
           //PowerExpand //ExpandAll //Simplify )

rule2={ Wn-> e^4 m Z^2/(2 n^2 hbar^2)
       ,e -> hbar/Sqrt[m a0] };

rSol2=(R[r]/.rSol) //.rule2 //PowerExpand

Series[ HypergeometricU[-a,b,r] ,{r,Infinity,0}]

rSol3= ( r^el Hypergeometric1F1[ (1+el-n),2+2 el,(2 r Z)/(a0 n)]
                )/  E^((r Z)/(a0 n))

int  /: IntegerQ[int]=True;

rSol4= ((( rSol3   
            /.{(1+el-n) -> -int}
          ) //Simplify
          ) //.{int -> -(1+el-n)}
          ) //Simplify

norm[n_,el_] := 
 Integrate[ (r^2 (r^el Exp[- r Z/(a0 n)]* 
       LaguerreL[-1-el+n,1 +2 el ,2 r Z/(a0 n)])^2 
       //ExpandAll ) 
  ,{r,0,Infinity}]

rwave[n_,el_,r_] := rwave[n,el,r] = 
  (  r^el Exp[- r Z/(a0 n)]* 
     LaguerreL[-1-el+n,1 +2 el ,2 r Z/(a0 n)]/Sqrt[norm[n,el]]
    //PowerExpand  )

Table[ Integrate[ rwave[n,el,r]^2 r^2 //ExpandAll
                 ,{r,0,Infinity}]
 ,{n,1,3},{el,0,n-1}]

rwave[1,0,r]

rwave[2,#,r]& /@ {0,1}

rwave[3,#,r]& /@ {0,1,2}

value={Z->1,a0->1};

plot[n_,el_,rmax_]:=
  Plot[ r^2 rwave[n,el,r]^2 /.value //Evaluate
       ,{r,0.01,rmax}
       ,Ticks->None
       ,DisplayFunction->Identity  ];

Show[
   GraphicsArray[
     Evaluate[
         Table[plot[n,el, n*7],{n,1,3},{el,0,n-1}]
      ]
    ]
  ];

plot[l_,m_ ]:=
SphericalPlot3D[
  (  Abs[SphericalHarmonicY[l, m, theta, phi]] 
              //Evaluate  )
    ,{theta,0,Pi}
    ,{phi,0,2 Pi}
    ,Boxed->False
    ,Axes->False
    ,DisplayFunction->Identity ];

pt1=Table[plot[el,m] ,{el,0,2} ,{m,-el,el}];
Show[GraphicsArray[pt1]];