\[2a + a^{2} - b^{2} - 2b = 2a - 2b + a^{2} - b^{2} =\]
\[= 2 \cdot (a - b) + (a - b)(a + b) =\]
\[= (a - b)(2 + a + b)\]