Product rule

Topics in calculus

Fundamental theorem | Function | Limits of functions | Continuity | Calculus with polynomials | Mean value theorem | Vector calculus | Tensor calculus

Differentiation

Product rule | Quotient rule | Chain rule | Implicit differentiation | Taylor's theorem | Related rates

Integration

Integration by substitution | Integration by parts | Integration by trigonometric substitution | Solids of revolution | Integration by disks | Integration by cylindrical shells | Improper integrals | Lists of integrals

In mathematics, the product rule of calculus, which is also called Leibniz's law (see derivation), governs the differentiation of products of differentiable functions.

It may be stated thus:

\,\!(fg)'=f'g+fg'

or in the Leibniz notation thus:

{d\over dx}(uv)=u{dv\over dx}+v{du\over dx}.
Contents

Discovery by Leibniz

Discovery of this rule is credited to Leibniz, who demonstrated it using differentials. Here is Leibniz's argument: Let u(x) and v(x) be two differentiable functions of x. Then the differential of uv is

d(uv) = (u + du)(v + dv) − uv = u(dv) + v(du) + (du)(dv)

Since the term (du)(dv) is "negligible" (i.e. at least quadratic in du and dv), Leibniz concluded that

d(uv) = (du)v + u(dv)

and this is indeed the differential form of the product rule. If we divide through by the differential dx, we obtain

\frac{d}{dx} (uv) = \left( \frac{du}{dx} \right) v + u \left( \frac{dv}{dx} \right)

which can also be written in "prime notation" as

(uv)' = u'v + uv'

This can also be seen as a 'barber shop' analogy. For example, in the above example, u stands at one side while v takes the 'haircut'.

Examples

Common error

It is a common error, when studying calculus, to suppose that the derivative of (uv) equals (u′)(v′) (Leibniz himself made this error initially); however, it is quite easy to find counterexamples to this. Most simply, take a function f, whose derivative is f '(x). Now that function can also be written as f(x) · 1, since 1 is the identity element for multiplication. Suppose the above-mentioned misconception were true; if so, (u′)(v′) would equal zero; since, the derivative of a constant (such as 1) is zero; and, the product, of any number and zero, is zero.

Proof of the product rule

A rigorous proof of the product rule can be given using the properties of limits and the definition of the derivative as a limit of Newton's difference quotients:

Suppose

f(x) = g(x)h(x)

and suppose further that g and h are each differentiable at the fixed number x. Then

f'(x) = \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{\Delta x}  = \lim_{\Delta x \to 0} \frac{g(x + \Delta x)h(x + \Delta x) - g(x)h(x)}{\Delta x}

Since

g(x + Δx)h(x + Δx) − g(x)h(x) = g(x)(h(x + Δx) − h(x)) + h(x + Δx)(g(x + Δx) − g(x)),

we have

f'(x) = \lim_{\Delta x \to 0} \frac{g(x)(h(x + \Delta x) - h(x)) + h(x + \Delta x)(g(x + \Delta x) - g(x))}{\Delta x}
= \lim_{\Delta x \to 0} \left[g(x)\left(\frac{(h(x + \Delta x) - h(x))}{\Delta x}\right) + h(x + \Delta x)\left(\frac{(g(x + \Delta x) - g(x))}{\Delta x}\right)\right]

Since h is continuous at x, we have

\lim_{\Delta x \to 0} h(x + \Delta x) = h(x)

and by the definition of the derivative, and the differentiability of h and g at x, we also have

\left[\lim_{\Delta x \to 0} \frac{(h(x + \Delta x) - h(x))}{\Delta x}\right] = h'(x) \mbox{ and } \left[\lim_{\Delta x \to 0} \frac{(g(x + \Delta x) - g(x))}{\Delta x}\right] = g'(x)

Thus, we are justified in splitting each of the products inside the limit, and putting everything together, we have

f'(x) = \lim_{\Delta x \to 0} \left[g(x)\left(\frac{(h(x + \Delta x) - h(x))}{\Delta x}\right) + h(x + \Delta x)\left(\frac{(g(x + \Delta x) - g(x))}{\Delta x}\right)\right]
= \left[\lim_{\Delta x \to 0} g(x)\right]\left[\lim_{\Delta x \to 0} \frac{(h(x + \Delta x) - h(x))}{\Delta x}\right] + \left[\lim_{\Delta x \to 0} h(x + \Delta x)\right]\left[\lim_{\Delta x \to 0}\frac{(g(x + \Delta x) - g(x))}{\Delta x}\right]
= g(x)h'(x) + h(x)g'(x)

and this completes the proof.

Generalizations

The product rule can be generalised to products of more than two factors. For example, for three factors we have

\frac{d(uvw)}{dx} = \frac{du}{dx}vw + u\frac{dv}{dx}w + uv\frac{dw}{dx}

For a collection of functions f_1 \dots f_k, we can write this more succinctly as

\frac{d}{dx} \prod_{i=1}^k f_i(x)  = \left(\sum_{i=1}^k \frac{\frac{d}{dx} f_i(x)}{f_i(x)}\right)    \prod_{i=1}^k f_i(x)

It can also be generalized to Leibniz rule for higher derivatives of a product of two factors: if y = uv and y(n) denotes the n-th derivative of y, then

y^{(n)}(x) = \sum_{k=0}^n {n \choose k} u^{(n-k)}(x)\; v^{(k)}(x) ,

see also binomial coefficient and the formally quite similar binomial theorem.

In multivariable calculus, the product rule is also valid for different notions of "product": scalar product and cross product of vectors, matrix product, inner products etc. All of these are summarized by the following general statement: let X, Y, Z be Banach spaces (which includes Euclidean space) and let B : X × YZ be a continuous bilinear operator. Then B is differentiable, and its derivative at the point (x,y) in X × Y is the linear map D(x,y)B : X × YZ given by

D_\left( x,y \right)\,B_\left( u,v \right) = B_\left( x,y \right) + B_\left( u,v \right)\;\mbox{for all}\;(u,v)\;\mbox{in}\;X \times Y.

Derivation in abstract algebra

In abstract algebra, the product rule is used to define what is called a derivation, not vice versa. A particularly important (and still very abstract) example are Lie algebras, extensively used in modern theoretical physics, especially gauge field theory.

See also

See also: Product rule, 0 (number), Abstract algebra, Banach space, Bilinear operator, Binomial coefficient, Binomial theorem, Calculus, Calculus with polynomials