DSolve[d + c*x + b*y[x] + a*x*y[x]^2 + x*Derivative[1][y][x] == 0,y[x],x]