I am wondering how I can combine terms with derivatives, for example
{a,b,c}::Indices(full);
\partial{#}::PartialDerivative;
ex := \partial_{a}{F} + \partial_{a}{G}
I want a function foo
such that the output of foo(ex);
is \partial_{a}{F + G}. How could I achieve this?
Thanks very much.