Factor1[poly]
factorizes common terms in the summands of
poly. It uses basically PolynomialGCD
.
a - x) (b - x)
(
{Factor1[%], Factor[%]}
(a-x) (b-x)
\{(a-x) (b-x),-((a-x) (x-b))\}
= Expand[(a - b) (a + b)] ex
a^2-b^2
Factor[ex]
(a-b) (a+b)
[ex] Factor1
a^2-b^2