In calculus, the product rule is a formula used to find the derivatives of products of two or more functions. It may be stated as or in Leibniz's notation The rule may be extended or generalized to many other situations, including to products of multiple functions, to a rule for higher-order derivatives of a product, and to other contexts.
Discovery
Discovery of this rule is credited to Gottfried Leibniz, who demonstrated it using differentials. Here is Leibniz's argument: Let u and v be two differentiable functions of x. Then the differential of uv is Since the term du·dv is "negligible", Leibniz concluded that and this is indeed the differential form of the product rule. If we divide through by the differential dx, we obtain which can also be written in Lagrange's notation as
Examples
Suppose we want to differentiate f = x2 sin. By using the product rule, one gets the derivative = 2x sin + x2 cos.
One special case of the product rule is the constant multiple rule, which states: if c is a number and f is a differentiable function, then cf is also differentiable, and its derivative is = c. This follows from the product rule since the derivative of any constant is zero. This, combined with the sum rule for derivatives, shows that differentiation is linear.
Let and suppose that and are each differentiable at. We want to prove that is differentiable at and that its derivative,, is given by. To do this, is added to the numerator to permit its factoring, and then properties of limits are used. The fact that is deduced from a theorem that states that differentiable functions are continuous.
Brief proof
By definition, if are differentiable at then we can write such that also written. Then: Taking the limit for small gives the result.
In the context of Lawvere's approach to infinitesimals, let dx be a nilsquare infinitesimal. Then du = u′ dx and dv = v′ dx, so that since
Generalizations
A product of more than two factors
The product rule can be generalized to products of more than two factors. For example, for three factors we have For a collection of functions, we have
Higher derivatives
It can also be generalized to the general Leibniz rule for the nth derivative of a product of two factors, by symbolically expanding according to the binomial theorem: Applied at a specific point x, the above formula gives: Furthermore, for the nth derivative of an arbitrary number of factors:
For partial derivatives, we have where the index runs through all subsets of, and is the cardinality of. For example, when,
Banach space
Suppose X, Y, and Z are Banach spaces and B : X × Y → Z is a continuous bilinear operator. Then B is differentiable, and its derivative at the point in X × Y is the linear mapDB : X × Y → Z given by
The product rule extends to scalar multiplication, dot products, and cross products of vector functions, as follows. For scalar multiplication: For dot products: For cross products: There are also analogues for other analogs of the derivative: if f and g are scalar fields then there is a product rule with the gradient:
Applications
Among the applications of the product rule is a proof that when n is a positive integer. The proof is by mathematical induction on the exponentn. If n = 0 then xn is constant and nxn − 1 = 0. The rule holds in that case because the derivative of a constant function is 0. If the rule holds for any particular exponent n, then for the next value, n + 1, we have Therefore, if the proposition is true for n, it is true also for n + 1, and therefore for all naturaln.