First time here? Check out the FAQ!
answered 7 years ago
Try this:
p=a1*a2*a3*x*f(x) + a1*a2*x^2*diff(f(x), x) + a1*a3*x^2*diff(f(x), x) + a2*a3*x^2*diff(f(x), x) p.collect(diff(f(x),x))