I'm just starting to learn Sage and I'm trying to find some method to do polynomial divisions in several variables. An example of the calculations that I want to do can be the division of the polynomial f(x)=x^2*y+x*y^2+y^2 with the polynomials f1(x)=x*y-1 and f2( x)=y^2-1 using lexicographic order. The result should be f(x)=(x+y)*(x*y-1)+1*(y^2-1)+(x+y+1). My interest would be to have a method in Sage to find the quotients, (x+y), (1), and the remainder, (x+y+1). Sage has many functions for similar and more complex operations, like reduce, quo_rem or groebner_basis(), but I haven't found one that does what I need.
Thanks for your help.