Differentiation of Rational Functions