2a²+2b²-4ab+a-b-6
=2*(a²-2ab+b²)+(a-b)-6
=2*(a-b)²+(a-b)-6
=2*(a-b)²+4*(a-b)-3*(a-b)-6
=2*(a-b)*(a-b+2)-3*(a-b+2)
=(a-b+2)*(2a-2b-3)
2a²+2b²-4ab+a-b-6
=2*(a²-2ab+b²)+(a-b)-6
=2*(a-b)²+(a-b)-6
=2*(a-b)²+4*(a-b)-3*(a-b)-6
=2*(a-b)*(a-b+2)-3*(a-b+2)
=(a-b+2)*(2a-2b-3)