2x^2-10x=2x(x-5)
x^3y-2x^2y^2+xy^3=xy(x^2-2xy+y^2)=xy(x-y)^2
x^2+x-2=(x+2)(x-1)
x^2-4x-12=(x-6)(x+2)
x^3-6x^2+9x=x(x^2-6x+9)=x(x-3)^2
8(x^2-2y^2)-x(7x+y)+xy=8x^2-16y^2-7x^2-xy+xy=x^2-16y^2=(x-4y)(x+4y)
2x^2-10x=2x(x-5)
x^3y-2x^2y^2+xy^3=xy(x^2-2xy+y^2)=xy(x-y)^2
x^2+x-2=(x+2)(x-1)
x^2-4x-12=(x-6)(x+2)
x^3-6x^2+9x=x(x^2-6x+9)=x(x-3)^2
8(x^2-2y^2)-x(7x+y)+xy=8x^2-16y^2-7x^2-xy+xy=x^2-16y^2=(x-4y)(x+4y)