product_rule
Apply the Leibnitz rule to a derivative of a product
Apply the product rule or "Leibnitz
identity" to an object which has the Derivative
property, i.e.D{#}::Derivative;
ex:=D(f g);
product_rule(_);
Attached property Derivative to D#.
D(fg)
Dfg+fDg
This of course also works for derivatives which explicitly mention
indices or components, as well as for multiple derivatives, as in the example below.
D{#}::Derivative.
ex:=D_{m n}(f g);
Dmn(fg)
product_rule(_);
Dm(Dnfg+fDng)
distribute(_);
Dm(Dnfg)+Dm(fDng)
product_rule(_);
DmDnfg+DnfDmg+DmfDng+fDmDng