rational function is written in the form of f(x)=p(x)/q(x)