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