(x^2+y^2)(x-y)-(x^2-y^2)(x+y)
=(x^2+y^2)(x-y)-(x-y)(x+y)(x+y)
=(x^2+y^2)(x-y)-(x-y)(x+y)^2
=(x-y)[(x^2+y^2)-(x+y)^2]
=(x-y)[(x^2+y^2)-(x^2+2xy+y^2)]
=(x-y)[(x^2+y^2)-x^2-2xy-y^2]
=-(x-y)×2xy
=2xy(y-x)
(x^2+y^2)(x-y)-(x^2-y^2)(x+y)
=(x^2+y^2)(x-y)-(x-y)(x+y)(x+y)
=(x^2+y^2)(x-y)-(x-y)(x+y)^2
=(x-y)[(x^2+y^2)-(x+y)^2]
=(x-y)[(x^2+y^2)-(x^2+2xy+y^2)]
=(x-y)[(x^2+y^2)-x^2-2xy-y^2]
=-(x-y)×2xy
=2xy(y-x)