how to find the zero of a rational function