g''(theta)+cot(theta) g'(theta) + (K-(cot(theta))^2)g(theta)=0