Rational function/R/Derivative/Polynomial if and only if derivative is zero/Exercise

Let and

be a rational function. Prove that is a polynomial if and only if there is a higher derivative such that .