Hello,
I am trying to simplify a polynomial into smaller subexpressions. The expanded polynomial is:
2bf2+f2k−2bf−f2−2fk+b+2f+k−1
This expression can be reduced to the following expression [by hand]:
bf2+(f−1)2(k−1+b)
How to do I do it in Sage using some combination of collect and factor or by using some other strategy.
Thanks!