How to separate a symbolic expression into sub expressions
I want to separate a symbolic expression into two sub-expressions, one sub-expression with a certain variable and the other without the variable.
The following example was revised to better demonstrate what I want to achieve
For example, with the following function, f,
I want to obtain two sub-expressions as