8mn(n-m)+2(n-m)^3
=(n-m)(8mn+2(n-m)^2)
=(n-m)(8mn+2n^2+2m^2-4mn)
=2*(n-m)(n^2+m^2-2mn)
=2*(n-m)(n-m)^2
=2*(n-m)^3