Solution:
Concept: Perfect squares: A2+2AB+B2=(A+B)2 and A2−2AB+B2=(A−B)2.
Difference of two squares: A2−B2=(A+B)(A−B). Write each term as the square of something, then multiply the sum of the two square roots by their difference.
Step 1 — Expand the product.
We multiply out (a2−1)(b2−1).
(a2−1)(b2−1)+4ab=a2b2−a2−b2+1+4ab
Step 2 — Split 4ab to make two perfect squares.
We write 4ab as 2ab+2ab: one goes with a2b2+1 and the other with −a2−b2.
=(a2b2+2ab+1)−(a2−2ab+b2)=(ab+1)2−(a−b)2
Step 3 — Use the difference of squares.
With A=ab+1 and B=a−b, we multiply the sum by the difference.
=[(ab+1)+(a−b)][(ab+1)−(a−b)]=(ab+1+a−b)(ab+1−a+b)
Watch out: Inside −(a2−2ab+b2) the 2ab has a minus sign, so it gives +2ab in the expression.
Therefore, (a2−1)(b2−1)+4ab=(ab+1+a−b)(ab+1−a+b).