| 1 | initial version |
I am not sure about the context, but you can do:
sage: (f/x^2).expand() * x^2
(x + 3/x)*x^2
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.