0

I need to be able to generate all of the $ l=2 $ spherical harmonics using the lowering operator. The specific question is listed below. Any assistance would be much appreciated!

Thanksenter image description here

enter image description here

1 Answers1

3
Y[l_, m_] := 
 Y[l, m] = Nest[Simplify[Exp[-I*ϕ] (-D[#, θ] + 
        I*Cot[θ]*D[#, ϕ])] &, Sin[θ]^l*Exp[I*l*ϕ], l - m]

(table1 = Table[Y[l, m], {l, 0, 2}, {m, 0, l}]) // Grid[#, Frame -> All] &

enter image description here

Or

(table2 = table1 // TrigReduce) // Grid[#, Frame -> All] &

enter image description here

EDIT: As suggested by Alex Trounev, compare with the built-in SphericalHarmonicY

Table[SphericalHarmonicY[l, m, θ, ϕ], {l, 0, 2}, {m, 0, l}] // 
  Grid[#, Frame -> All] &

enter image description here

EDIT 2: For clarity, look at the ratio of the two functions

Table[SphericalHarmonicY[l, m, θ, ϕ]/Y[l, m], {l, 0, 5}, {m, 0, l}] // 
  Simplify // Grid[#, Frame -> All] &

enter image description here

Bob Hanlon
  • 157,611
  • 7
  • 77
  • 198
  • Bob can you add for comparison Table[SphericalHarmonicY[l, m, \[Theta], \[Phi]], {l, 0, 2}, {m, 0, l}] // Grid[#, Frame -> All] & – Alex Trounev Dec 13 '18 at 11:55