Home › Algebra and expressions
Recognize a perfect square in three variables
Three squares and three doubled products form one square
Use A2+B2+C2+2AB+2BC+2CA=(A+B+C)2. The key is to identify the same three quantities in every term.
Problem
Factor
(x+1)2+(y−1)2+(z−2)2+2(xy−x+y−1)+2(yz−2y−z+2)+2(zx−2x+z−2).
Answer
(x+y+z−2)2. In particular, x+y+z−2 is a factor.
The three bracketed expressions are products of the same quantities that appear in the squares.
Step-by-step solution
1. Name the three quantities
Let A=x+1, B=y−1, and C=z−2.
2. Identify the mixed products
The three bracketed expressions are
xy−x+y−1=(x+1)(y−1)=AB,
yz−2y−z+2=(y−1)(z−2)=BC,
zx−2x+z−2=(z−2)(x+1)=CA.
3. Apply the identity
The original is A2+B2+C2+2AB+2BC+2CA, hence (A+B+C)2. The sum is (x+1)+(y−1)+(z−2)=x+y+z−2, so the answer is (x+y+z−2)2.