I'm working with polynomials of 5 variables $a,b,p,q,r$ which have a condition $a+b=p+q+r$. I'd like to minimize the number of variables in the answer. However, FullSimplify can't handle even simple example:
pol=p+q+r-b;
FullSimplify[pol, Assumptions -> a + b == p + q + r]
returns
-b + p + q + r
instead of a
.
Is there a way to do it?
2*b*(-b+p+q+r)
. I'm thinking of introducing additional variable $d=a+b=p_1+...+p_n$, substitute sums for $d$, then substitute expressions of the type $d-p$. $\endgroup$