Ask Your Question

Revision history [back]

Does this help ?

sage: a = (2*x^3+2*x) / (x^2+1)
sage: a.full_simplify()
2*x