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 — Group into two perfect squares.
We put a2+2ab+b2 together, and c2+2cd+d2 together with a minus sign in front.
a2+b2−c2−d2+2ab−2cd=(a2+2ab+b2)−(c2+2cd+d2)=(a+b)2−(c+d)2
Step 2 — Use the difference of squares.
With A=a+b and B=c+d, we multiply the sum by the difference.
=[(a+b)+(c+d)][(a+b)−(c+d)]=(a+b+c+d)(a+b−c−d)
Watch out: When B is a bracket, keep it in brackets: A−(B) changes the sign of every term of B.
Therefore, a2+b2−c2−d2+2ab−2cd=(a+b+c+d)(a+b−c−d).