How to factor out favored variables out of an equation?



Try facsum( expr, var1, var2).
In some cases, isolate( expr, var1) or disolate( expr, var1, var2) are useful.
Is that what you had in mind?