First time here? Check out the FAQ!
answered 2015-07-30 11:04:04 +0100
Multiplication needs *, it works for me:
*
sage: (x^2*y+f.diff(x,1)).subs(f.diff(x,1)==g) x^2*y + g(x, y)