Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Knowing the outcome you can do:

var('b f k')
expr = 2*b*f^2 + f^2*k - 2*b*f- f^2 - 2*f*k + b+2*f+k - 1
(expr - b*f^2).factor() + b*f^2