Product rule explained

In calculus, the product rule (or Leibniz rule[1] or Leibniz product rule) is a formula used to find the derivatives of products of two or more functions. For two functions, it may be stated in Lagrange's notation as (u \cdot v)' = u ' \cdot v + u \cdot v' or in Leibniz's notation as \frac (u\cdot v) = \frac \cdot v + u \cdot \frac.

The rule may be extended or generalized to products of three or more 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.[2] (However, J. M. Child, a translator of Leibniz's papers, argues that it is due to Isaac Barrow.) Here is Leibniz's argument: Let u(x) and v(x) be two differentiable functions of x. Then the differential of uv is\begind(u\cdot v) & = (u + du)\cdot (v + dv) - u\cdot v \\& = u\cdot dv + v\cdot du + du\cdot dv.\end

Since the term du·dv is "negligible" (compared to du and dv), Leibniz concluded thatd(u\cdot v) = v\cdot du + u\cdot dv and this is indeed the differential form of the product rule. If we divide through by the differential dx, we obtain\frac (u\cdot v) = v \cdot \frac + u \cdot \frac which can also be written in Lagrange's notation as(u\cdot v)' = v\cdot u' + u\cdot v'.

Examples

f(x)=x2sin(x).

By using the product rule, one gets the derivative

f'(x)=2xsin(x)+x2cos(x)

(since the derivative of

x2

is

2x,

and the derivative of the sine function is the cosine function).

f(x)

is a differentiable function, then

cf(x)

is also differentiable, and its derivative is

(cf)'(x)=cf'(x).

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.

Proofs

Limit definition of derivative

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,

f(x)g(x+\Deltax)-f(x)g(x+\Deltax)

(which is zero, and thus does not change the value) is added to the numerator to permit its factoring, and then properties of limits are used.\begin h'(x) &= \lim_ \frac \\[5pt] &= \lim_ \frac \\[5pt] &= \lim_ \frac \\[5pt] &= \lim_ \frac \\[5pt] &= \lim_ \frac \cdot \underbrace_\text + \lim_ f(x) \cdot \lim_ \frac \\[5pt] &= f'(x)g(x)+f(x)g'(x).\endThe fact that

\lim\Deltag(x+\Deltax)=g(x)

follows from the fact that differentiable functions are continuous.

Linear approximations

By definition, if

f,g:R\toR

are differentiable at

x

, then we can write linear approximations: f(x+h) = f(x) + f'(x)h + \varepsilon_1(h) and g(x+h) = g(x) + g'(x)h + \varepsilon_2(h), where the error terms are small with respect to h: that is, \lim_ \frac = \lim_ \frac = 0, also written

\varepsilon1,\varepsilon2\simo(h)

. Then: \begin f(x+h)g(x+h) - f(x)g(x) &= (f(x) + f'(x)h +\varepsilon_1(h))(g(x) + g'(x)h + \varepsilon_2(h)) - f(x)g(x) \\[.5em] &= f(x)g(x) + f'(x)g(x)h + f(x)g'(x)h -f(x)g(x) + \text \\[.5em] &= f'(x)g(x)h + f(x)g'(x)h + o(h) . \end The "error terms" consist of items such as

f(x)\varepsilon2(h),f'(x)g'(x)h2

and

hf'(x)\varepsilon1(h)

which are easily seen to have magnitude

o(h).

Dividing by

h

and taking the limit

h\to0

gives the result.

Quarter squares

q(x)=\tfrac14x2

with derivative

q'(x)=\tfrac12x

. We have:uv=q(u+v)-q(u-v), and differentiating both sides gives:\beginf' &= q'(u+v)(u'+v') - q'(u-v)(u'-v') \\[4pt]&= \left(\tfrac12(u+v)(u'+v')\right) - \left(\tfrac12(u-v)(u'-v')\right) \\[4pt]&= \tfrac12(uu' + vu' + uv' + vv') - \tfrac12(uu' - vu' - uv' + vv') \\[4pt]&= vu'+uv' .\end

Multivariable chain rule

The product rule can be considered a special case of the chain rule for several variables, applied to the multiplication function

m(u,v)=uv

: = \frac\frac+\frac\frac = v \frac + u \frac.

Non-standard analysis

Let u and v be continuous functions in x, and let dx, du and dv be infinitesimals within the framework of non-standard analysis, specifically the hyperreal numbers. Using st to denote the standard part function that associates to a finite hyperreal number the real infinitely close to it, this gives\begin \frac &= \operatorname\left(\frac\right) \\ &= \operatorname\left(\frac\right) \\ &= \operatorname\left(\frac\right) \\ &= \operatorname\left(u \frac + (v + dv) \frac\right) \\ &= u \frac + v \frac. \endThis was essentially Leibniz's proof exploiting the transcendental law of homogeneity (in place of the standard part above).

Smooth infinitesimal analysis

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\begind(uv) & = (u + du)(v + dv) -uv \\ & = uv + u \cdot dv + v \cdot du + du \cdot dv - uv \\ & = u \cdot dv + v \cdot du + du \cdot dv \\ & = u \cdot dv + v \cdot du\endsince

dudv=u'v'(dx)2=0.

Dividing by

dx

then gives
d(uv)
dx

=u

dv
dx

+v

du
dx
or

(uv)'=uv'+vu'

.

Logarithmic differentiation

Let

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

. Taking the absolute value of each function and the natural log of both sides of the equation, \ln|h(x)| = \ln|f(x) g(x)| Applying properties of the absolute value and logarithms, \ln|h(x)| = \ln|f(x)| + \ln|g(x)| Taking the logarithmic derivative of both sides and then solving for

h'(x)

:\frac = \frac + \fracSolving for

h'(x)

and substituting back

f(x)g(x)

for

h(x)

gives:\beginh'(x) &= h(x)\left(\frac + \frac\right) \\&= f(x) g(x)\left(\frac + \frac\right) \\&= f'(x) g(x) + f(x) g'(x).\endNote: Taking the absolute value of the functions is necessary for the logarithmic differentiation of functions that may have negative values, as logarithms are only real-valued for positive arguments. This works because

\tfrac{d}{dx}(ln|u|)=\tfrac{u'}{u}

, which justifies taking the absolute value of the functions for logarithmic differentiation.

Generalizations

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\frac = \fracvw + u\fracw + uv\frac.For a collection of functions

f1,...,fk

, we have\frac \left [\prod_{i=1}^k f_i(x) \right ] = \sum_^k \left(\left(\frac f_i(x) \right) \prod_^k f_j(x) \right)= \left(\prod_^k f_i(x) \right) \left(\sum_^k \frac \right).

The logarithmic derivative provides a simpler expression of the last form, as well as a direct proof that does not involve any recursion. The logarithmic derivative of a function, denoted here, is the derivative of the logarithm of the function. It follows that \operatorname(f)=\frac f.Using that the logarithm of a product is the sum of the logarithms of the factors, the sum rule for derivatives gives immediately\operatorname(f_1\cdots f_k)= \sum_^k\operatorname(f_i).The last above expression of the derivative of a product is obtained by multiplying both members of this equation by the product of the

fi.

Higher derivatives

See main article: General Leibniz rule. 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:d^n(uv) = \sum_^n \cdot d^(u)\cdot d^(v).

Applied at a specific point x, the above formula gives: (uv)^(x) = \sum_^n \cdot u^(x)\cdot v^(x).

Furthermore, for the nth derivative of an arbitrary number of factors, one has a similar formula with multinomial coefficients:\left(\prod_^kf_i\right)^=\sum_\prod_^kf_i^.

Higher partial derivatives

For partial derivatives, we have[3] (uv)= \sum_S \cdot where the index runs through all subsets of, and is the cardinality of . For example, when,\begin & (uv) \\[1ex]= & u \cdot + \cdot + \cdot + \cdot \\[1ex]& + \cdot+ \cdot+ \cdot+ \cdot v. \\[-3ex]&\end

Banach space

Suppose X, Y, and Z are Banach spaces (which includes Euclidean space) and B : X × YZ is 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(u,y \right) + B\left(x,v \right)\qquad\forall (u,v)\in X \times Y.

This result can be extended[4] to more general topological vector spaces.

In vector calculus

The product rule extends to various product operations of vector functions on

Rn

:[5]

R3

: (\mathbf f \times \mathbf g)' = \mathbf f' \times \mathbf g + \mathbf f \times \mathbf g'

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:\nabla (f \cdot g) = \nabla f \cdot g + f \cdot \nabla g

Such a rule will hold for any continuous bilinear product operation. Let B : X × YZ be a continuous bilinear map between vector spaces, and let f and g be differentiable functions into X and Y, respectively. The only properties of multiplication used in the proof using the limit definition of derivative is that multiplication is continuous and bilinear. So for any continuous bilinear operation,H(f, g)' = H(f', g) + H(f, g').This is also a special case of the product rule for bilinear maps in Banach space.

Derivations in abstract algebra and differential geometry

In abstract algebra, the product rule is the defining property of a derivation. In this terminology, the product rule states that the derivative operator is a derivation on functions.

In differential geometry, a tangent vector to a manifold M at a point p may be defined abstractly as an operator on real-valued functions which behaves like a directional derivative at p: that is, a linear functional v which is a derivation, v(fg) = v(f)\,g(p) + f(p) \, v(g).Generalizing (and dualizing) the formulas of vector calculus to an n-dimensional manifold M, one may take differential forms of degrees k and l, denoted

\alpha\in\Omegak(M),\beta\in\Omega\ell(M)

, with the wedge or exterior product operation

\alpha\wedge\beta\in\Omegak+\ell(M)

, as well as the exterior derivative

d:\Omegam(M)\to\Omegam+1(M)

. Then one has the graded Leibniz rule: d(\alpha\wedge\beta)= d\alpha \wedge \beta + (-1)^ \alpha\wedge d\beta.

Applications

Among the applications of the product rule is a proof that x^n = nx^when n is a positive integer (this rule is true even if n is not positive or is not an integer, but the proof of that must rely on other methods). The proof is by mathematical induction on the exponent n. 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\begin\frac&= \frac \left(x^n\cdot x\right) \\[1ex]&= x \frac x^n + x^n \frac x & \text \\[1ex]&= x\left(n x^\right) + x^n\cdot 1 & \text \\[1ex]&= \left(n + 1\right) x^n.\end Therefore, if the proposition is true for n, it is true also for n + 1, and therefore for all natural n.

Notes and References

  1. Web site: Leibniz rule – Encyclopedia of Mathematics.
  2. Michelle Cirillo . The Mathematics Teacher . 101 . 1 . 23–27 . August 2007 . Humanizing Calculus . 10.5951/MT.101.1.0023 . subscription .
  3. Micheal Hardy . The Electronic Journal of Combinatorics . 13 . January 2006 . Combinatorics of Partial Derivatives . math/0601149 . 2006math......1149H .
  4. Book: Kreigl . Andreas . Michor . Peter . The Convenient Setting of Global Analysis . 1997 . American Mathematical Society . 0-8218-0780-3 . 59 .
  5. , Section 13.2.