FCFactorOut[exp, pref]
factors out pref
out of exp
. This is often needed to bring exp
into a particular form that Mathematica refuses to give.
[(a + 3 b), 3 b] FCFactorOut
[(a + 3 b), 3 b, Head -> hold] FCFactorOut
FCFactorOut
is also an option of Collect2
x^2 + 6 y
[%, {x, y}, FCFactorOut -> 3] Collect2