(1)2a2b+4ab-2b=2b(a2+2a-1);(2)16x4-8x2y2+y4=(4x2-y2)2=(2x+y)2(2x-y)2;(3)a3-6a2-7a=a(a2-6a-7)=a(a-7)a+1); (4)(x2+x)2-(x+1)2=(x2+x+x+1)(x2+x-x-1)=(x+1)2(x+1)(x-1)=(x+1)3(x-1).