Answer: (D) (x−y)(ax−ay+b)
Concept: A bracket that appears in every term is itself a common factor, so it can be taken out just like a number or a letter: pA+qA=A(p+q).
Step 1 — Make the bracket appear.
The last two terms are bx−by. Taking out b gives b(x−y).
a(x−y)2−by+bx=a(x−y)2+b(x−y)
Step 2 — Take out the common bracket.
The bracket (x−y) is common; what is left is a(x−y)+b.
a(x−y)2−by+bx=(x−y)[a(x−y)+b]=(x−y)(ax−ay+b)
Watch out: Only one (x−y) is taken out of a(x−y)2; the other stays inside as ax−ay.
Why the other options are wrong:
- (A): It writes a(x−y) as ax+by, mixing up the letters. Multiplying it out gives ax2−axy+bxy+bx−by2−by, which is not the given expression.
- (B): It writes a(x−y) as ax+by and also changes the sign of b. Multiplying it out gives ax2−axy+bxy−bx−by2+by, which is not the given expression.
- (C): Its second bracket x+y+a−b does not come from a(x−y)+b. Multiplying it out gives ax−ay−bx+by+x2−y2, which is not the given expression.
Therefore, a(x−y)2−by+bx=(x−y)(ax−ay+b), option (D).