How to factorize the square of a-2a + b-2b + 2Ab + 1

How to factorize the square of a-2a + b-2b + 2Ab + 1

The square of a-2a + b-2b + 2Ab + 1
=(a+b)^2-2(a+b)+1
=(a+b-1)^2