Question: It exist some way to factorize with "restrictions"?

Given an algebraic expression p(x,y)..it is possible to factorize assuming that some terms are involved?. For example if I have poly1 and I expand it, I obtain a poly2 (with several terms).. now, if I factor(poly3) I dont recover the exact expression poly1. But at least in this case, it would be possible to factorize (or collect) poly3 asumming that in numerator and denominator we have the term(x+y)?. Thanks in advance, JJacques. poly1:= ((1-x-y)^2+ (2+x+y)^3)/((1+x+y)^2+ (4-x-y)^2); poly2:= expand(%); poly3:=factor(%);
Please Wait...