Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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))