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
3 b \left(\frac{a}{3 b}+1\right)
[(a + 3 b), 3 b, Head -> hold] FCFactorOut
3 b \;\text{hold}\left(\frac{a}{3 b}+1\right)
FCFactorOut
is also an option of Collect2
x^2 + 6 y
[%, {x, y}, FCFactorOut -> 3] Collect2
x^2+6 y
3 \left(\frac{x^2}{3}+2 y\right)