Can any one help with two problems I have

x/xy+x^2 + y/x^2+xy =x/y(x+y) +y/x(x+y)=x^2/xy(x+y)+y^2/xy(x+y)=x^2+y^2/xy(x+y)

with this ome I can work out why xy(x+y) s the common factor and why the x and th Y become squared.

1/x^2+x - 1/x+1 = 1/x(x+1) -x/x(x+1)

with this one why does the x appear as a numerator

hope this all makes sence.

many thanks

Dave