answered 2013-05-28 13:10:19 +0100
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