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