write a rational function with the given characteristics