Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try y.collect_common_factors(). This gives the output you want.

You could also use factor(y,x^2) if you know upfront that you want to factor out $x^2$.

Try Try:

y.collect_common_factors()y.collect_common_factors()
.  

This gives the output you want.

You could also use factor(y,x^2) if you know upfront that you want to factor out $x^2$.