DSolve[Derivative[2][y][x] == -(((-a^2 - lambda*(-1 + x^2))*y[x])/(-1 + x^2)^2) - (2*x*Derivative[1][y][x])/(-1 + x^2),y[x],x]