(x一1)(x2十x)十(x十1)(x2十x十1)
=(x一1)x(x十1)十(x十1)(x2十x十1)
=(x+1)[(x-1)x+x2十x十1]
=(x+1)(x2-x+x2+x+1)
=(x+1)(2x2+1)