The above given polynomial can be written as a2 – a – b2 + b,
= (a2 – b2) – (a + b),
= (a + b) * (a – b) – (a + b),
Taking (a + b) common, we get:
(a + b) * (a – b – 1).