# Revision history [back]

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$.