answered 11 years ago
Perhaps
sage: x, y = QQ['x,y'].gens() sage: P = x^2 + y^2 sage: Q = P(1/x, y) sage: Q.denominator() * Q x^2*y^2 + 1