# return Rationals a, b, c if eq  is a*x + b*f(x) + c, else None