Let
. By the General Rule,
Product rule: The derivative of the product of two functions is equal to the first function times the derivative of the second, plus the second function times the derivative of the first.
Here's how to use Sage to compute an example of this rule:
[fontsize=\scriptsize,fontfamily=courier,fontshape=tt,frame=single,label=\sage]
sage: t = var("t")
sage: f = cos(t)
sage: g = exp(2*t)
sage: diff(f*g,t)
2*e^(2*t)*cos(t) - e^(2*t)*sin(t)
sage: diff(f,t)*g+f*diff(g,t)
2*e^(2*t)*cos(t) - e^(2*t)*sin(t)
This simply computes
in two ways
(one: directly, the second: using the product rule) and checks that
they are the same.