First time here? Check out the FAQ!
answered 2020-06-08 22:52:58 +0100
I am not sure about the context, but you can do:
sage: (f/x^2).expand() * x^2 (x + 3/x)*x^2