World Library  
Flag as Inappropriate
Email this Article

Product rule

Article Id: WHEBN0000248988
Reproduction Date:

Title: Product rule  
Author: World Heritage Encyclopedia
Language: English
Subject: Calculus, Chain rule, Integration by parts, Logarithmic derivative, Derivative
Collection: Articles Containing Proofs, Differentiation Rules
Publisher: World Heritage Encyclopedia

Product rule

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

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

or in the Leibniz notation

\dfrac{d}{dx}(u\cdot v)=u\cdot \dfrac{dv}{dx}+v\cdot \dfrac{du}{dx}.

In differentials notation, this can be written as


In Leibniz notation, the derivative of the product of three functions (not to be confused with Euler's triple product rule) is

\dfrac{d}{dx}(u\cdot v \cdot w)=\dfrac{du}{dx} \cdot v \cdot w + u \cdot \dfrac{dv}{dx} \cdot w + u\cdot v\cdot \dfrac{dw}{dx}.


  • Discovery 1
  • Examples 2
  • Proofs 3
    • Proof by factoring 3.1
    • Rigorous proof 3.2
    • Brief proof 3.3
    • Logarithms and quarter squares 3.4
    • Chain rule 3.5
    • Non-standard analysis 3.6
    • Smooth infinitesimal analysis 3.7
  • Generalizations 4
    • A product of more than two factors 4.1
    • Higher derivatives 4.2
    • Higher partial derivatives 4.3
    • Banach space 4.4
    • Derivations in abstract algebra 4.5
    • Vector functions 4.6
    • Scalar fields 4.7
  • Applications 5
    • Definition of tangent space 5.1
  • See also 6
  • References 7
  • External links 8


Discovery of this rule is credited to Gottfried Leibniz, who demonstrated it using differentials.[1] (However, Child (2008) 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

\begin{align} d(u\cdot v) & {} = (u + du)\cdot (v + dv) - u\cdot v \\ & {} = u\cdot dv + v\cdot du + du\cdot dv. \end{align}

Since the term du·dv is "negligible" (compared to du and dv), Leibniz concluded that

d(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{d}{dx} (u\cdot v) = v \cdot \frac{du}{dx} + u \cdot \frac{dv}{dx} \,\!

which can also be written in Lagrange's notation as

(u\cdot v)' = v\cdot u' + u\cdot v'. \,\!


  • Suppose we want to differentiate ƒ(x) = x2 sin(x). By using the product rule, one gets the derivative ƒ '(x) = 2x sin(x) + x2cos(x) (since the derivative of x2 is 2x and the derivative of sin(x) is cos(x)).
  • One special case of the product rule is the constant multiple rule which states: if c is a real number and ƒ(x) is a differentiable function, then (x) is also differentiable, and its derivative is (c × ƒ)'(x) = c × ƒ '(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.
  • The rule for integration by parts is derived from the product rule, as is (a weak version of) the quotient rule. (It is a "weak" version in that it does not prove that the quotient is differentiable, but only says what its derivative is if it is differentiable.)


Proof by factoring

Let h(x) = f(x) g(x), and suppose that f and g are each differentiable at x. We want to prove that h is differentiable at x and that its derivative h'(x) is given by f'(x) g(x) + f(x) g'(x). To do this f(x)g(x+a)-f(x)g(x+a) (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.

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

= \lim_{a\to 0} \frac{f(x+a)g(x+a)-f(x)g(x+a)+f(x)g(x+a)-f(x)g(x)}{a}
= \lim_{a\to 0} \frac{a}
= \lim_{a\to 0} \frac{f(x+a)-f(x)}{a} \cdot \lim_{a\to 0} g(x+a) + \lim_{a\to 0} f(x) \cdot \lim_{a\to 0} \frac{g(x+a)-g(x)}{a}
= f'(x)g(x)+f(x)g'(x).

Rigorous proof

A rigorous proof of the product rule can be given using the definition of the derivative as a limit, and the basic properties of limits.

Let h(x) = f(x) g(x), and suppose that f and g are each differentiable at x0. (Note that x0 will remain fixed throughout the proof). We want to prove that h is differentiable at x0 and that its derivative h'(x0) is given by f'(x0) g(x0) + f(x0) g'(x0).

Let Δh = h(x0+Δx) - h(x0); note that although x0 is fixed, Δh depends on the value of Δx, which is thought of as being "small."

The function h is differentiable at x0 if the limit

\lim_{\Delta x\to 0}{ \Delta h \over \Delta x}

exists; when it does, h'(x0) is defined to be the value of the limit.

As with Δh, let Δf = f(x0+Δx) - f(x0) and Δg = g(x0+Δx) - g(x0) which, like Δh, also depends on Δx. Then f(x0+Δx) = f(x0) + Δf and g(x0+Δx) = g(x0) + Δg.

It follows that h(x0+Δx) = f(x0+Δx) g(x0+Δx) = (f(x0) + Δf) (g(x0)+Δg); applying the distributive law, we see that

h(x_0+\Delta x) = f(x_0+\Delta x) g(x_0+\Delta x) = f(x_0) g(x_0) + \Delta f g(x_0) + f(x_0) \Delta g + \Delta f \Delta g







While it is not necessary for the proof, it can be helpful to understand this product geometrically as the area of the rectangle in this diagram:

h(x+Δx) as the area of a rectangle

To get the value of Δh, subtract h(x0)=f(x0) g(x0) from equation (*). This removes the area of the white rectangle, leaving three rectangles:

\Delta h = \Delta f g(x_0) + f(x_0) \Delta g + \Delta f \Delta g

To find h'(x0), we need to find the limit as Δx goes to 0 of

\frac{\Delta h}{\Delta x} = \frac{\Delta f g(x_0) + f(x_0) \Delta g + \Delta f \Delta g}{\Delta x} = \frac{\Delta f}{\Delta x}g(x_0) +f(x_0) \frac{\Delta g}{\Delta x} + \frac{\Delta f \Delta g}{\Delta x}







The first two terms of the right-hand side of this equation correspond to the areas of the blue rectangles; the third corresponds to the area of the gray rectangle. Using the basic properties of limits and the definition of the derivative, we can tackle this term-by term. First,

\lim_{\Delta x\to 0}\left ( \frac{\Delta f}{\Delta x}g(x_0) \right ) = f'(x_0)g(x_0).


\lim_{\Delta x\to 0} \left ( f(x_0) \frac{\Delta g}{\Delta x} \right ) = f(x_0)g'(x_0).

The third term, corresponding to the small gray rectangle, winds up being negligible (i.e. going to 0 in the limit) because Δf Δg "vanishes to second order." Rigorously,

\lim_{\Delta x\to 0} \frac{\Delta f\Delta g}{\Delta x} = \lim_{\Delta x\to 0} \left ( \frac{\Delta f}{\Delta x}\frac{\Delta g}{\Delta x}\Delta x \right ) = \lim_{\Delta x\to 0}{\frac{\Delta f}{\Delta x}} \cdot \lim_{\Delta x\to 0}{\frac{\Delta g}{\Delta x}} \cdot \lim_{\Delta x\to 0}{\Delta x}= f'(x_0) g'(x_0) \cdot 0 = 0

We have shown that the limit of each of the three terms on the right-hand side of equation (**) exists, hence

\lim_{\Delta x\to 0} \frac{\Delta h}{\Delta x}

exists and is equal to the sum of the three limits. Thus, the product h(x) is differentiable at x0 and its derivative is given by

\begin{align} h'(x_0) & = \lim_{\Delta x\to 0} \frac{\Delta h}{\Delta x}\\ & = \lim_{\Delta x\to 0} \left ( \frac{\Delta f}{\Delta x}g(x_0) \right ) + \lim_{\Delta x\to 0} \left ( f(x_0) \frac{\Delta g}{\Delta x}\right ) + \lim_{\Delta x\to 0} \left ( \frac{\Delta f \Delta g}{\Delta x} \right ) \\ & = f'(x_0)g(x_0) + f(x_0)g'(x_0) + 0 \\ & = f'(x_0)g(x_0) + f(x_0)g'(x_0) \\ \end{align}

as was to be shown.

Brief proof

By definition, if f, g: \mathbb{R} \rightarrow \mathbb{R} are differentiable at x then we can write

f(x+h) = f(x) + f'(x)h + \psi_1(h) \qquad \qquad g(x+h) = g(x) + g'(x)h + \psi_2(h)

such that \lim_{h \to 0} \frac{\psi_1(h)}{h} = \lim_{h \to 0} \frac{\psi_2(h)}{h} = 0 , also written \psi_1, \psi_2 \sim o(h). Then:

\begin{align} fg(x+h) - fg(x) = (f(x) + f'(x)h +\psi_1(h))(g(x) + g'(x)h + \psi_2(h)) - fg(x)= f'(x)g(x)h + f(x)g'(x)h + O(h) \\[12pt] \end{align}

Taking the limit for small h gives the result.

Logarithms and quarter squares

Let f = uv and suppose u and v are positive functions of x. Then

\ln f =\ln (u\cdot v)=\ln u + \ln v.\,

Differentiating both sides:

{1 \over f} {df \over dx} = {1 \over u} {du \over dx} + {1 \over v} {dv \over dx}\,

and so, multiplying the left side by f, and the right side by uv (note: f = uv),

{df \over dx} = v {du \over dx} + u {dv \over dx}.\,

The proof appears in [2]. Note that since u, v need to be continuous, the assumption on positivity does not diminish the generality.

This proof relies on the chain rule and on the properties of the natural logarithm function, both of which are deeper than the product rule (however, information about the derivative of a logarithm that is sufficient to carry out a variant of the proof can be inferred by considering the derivative at x = 1 of the logarithm to any base of cx, where c is a constant, then generalising c). From one point of view, that is a disadvantage of this proof. On the other hand, the simplicity of the algebra in this proof perhaps makes it easier to understand than a proof using the definition of differentiation directly.

There is an analogous but arguably even easier proof (i.e., some people may find it easier as it can be used before being able to differentiate logarithms), using quarter square multiplication, which similarly relies on the chain rule and on the properties of the quarter square function (shown here as q, i.e., with q(x)={x^2 \over 4}):


Differentiating both sides:

f'=q'(u+v)(u'+v') - q'(u-v)(u'-v')
=\left({1 \over 2}(u+v)(u'+v')\right) - \left({1 \over 2}(u-v)(u'-v')\right)
={1 \over 2}(uu' + vu' + uv' + vv') - {1 \over 2}(uu' - vu' - uv' + vv')
=uv'+u'v. \,

This does not present issues of whether the values are positive or negative, and the function's properties are much simpler to demonstrate (indeed, it can be differentiated without using first principles by considering the derivative at x = 0 of cx, where c is a constant, then generalising c).

Note also, these proofs are only valid for numbers or similar, whereas proofs from first principles are also valid for matrices and such like.

Chain rule

The product rule can be considered a special case of the chain rule for several variables.

{d (ab) \over dx} = \frac{\partial(ab)}{\partial a}\frac{da}{dx}+\frac{\partial (ab)}{\partial b}\frac{db}{dx} = b \frac{da}{dx} + a \frac{db}{dx}. \,

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

\frac{d(uv)}{dx}\, =\operatorname{st}\left(\frac{(u + \mathrm du)(v + \mathrm dv) - uv}{\mathrm dx}\right)
=\operatorname{st}\left(\frac{uv + u \cdot \mathrm dv + v \cdot \mathrm du + \mathrm dv \cdot \mathrm du -uv}{\mathrm dx}\right)
=\operatorname{st}\left(\frac{u \cdot \mathrm dv + (v + \mathrm dv) \cdot \mathrm du}{\mathrm dx}\right)
={u}\frac{dv}{dx} + {v}\frac{du}{dx} .

This 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

\begin{align} d(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\,\! \end{align}


du \cdot dv = u' v' (dx)^2 = 0\,\!


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

\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 have

\frac{d}{dx} \left [ \prod_{i=1}^k f_i(x) \right ] = \sum_{i=1}^k \left(\frac{d}{dx} f_i(x) \prod_{j\ne i} f_j(x) \right) = \left( \prod_{i=1}^k f_i(x) \right) \left( \sum_{i=1}^k \frac{f'_i(x)}{f_i(x)} \right).

Higher derivatives

It can also be generalized to the Leibniz rule for the nth derivative of a product of two factors:

(uv)^{(n)}(x) = \sum_{k=0}^n {n \choose k} \cdot u^{(n-k)}(x)\cdot v^{(k)}(x).

See also binomial coefficient and the formally quite similar binomial theorem. See also General Leibniz rule.

Furthermore, for the nth derivative of an arbitrary number of factors:

\left(\prod_{i=1}^kf_i\right)^{(n)}=\sum_{j_1+j_2+...+j_k=n}{n\choose j_1,j_2,...,j_k}\prod_{i=1}^kf_i^{(j_i)}.

Higher partial derivatives

For partial derivatives, we have

{\partial^n \over \partial x_1\,\cdots\,\partial x_n} (uv) = \sum_S {\partial^{|S|} u \over \prod_{i\in S} \partial x_i} \cdot {\partial^{n-|S|} v \over \prod_{i\not\in S} \partial x_i}

where the index S runs through the whole list of 2n subsets of {1, ..., n}. For example, when n = 3, then

\begin{align} &{}\quad {\partial^3 \over \partial x_1\,\partial x_2\,\partial x_3} (uv) \\ \\ &{}= u \cdot{\partial^3 v \over \partial x_1\,\partial x_2\,\partial x_3} + {\partial u \over \partial x_1}\cdot{\partial^2 v \over \partial x_2\,\partial x_3} + {\partial u \over \partial x_2}\cdot{\partial^2 v \over \partial x_1\,\partial x_3} + {\partial u \over \partial x_3}\cdot{\partial^2 v \over \partial x_1\,\partial x_2} \\ \\ &{}\qquad + {\partial^2 u \over \partial x_1\,\partial x_2}\cdot{\partial v \over \partial x_3} + {\partial^2 u \over \partial x_1\,\partial x_3}\cdot{\partial v \over \partial x_2} + {\partial^2 u \over \partial x_2\,\partial x_3}\cdot{\partial v \over \partial x_1} + {\partial^3 u \over \partial x_1\,\partial x_2\,\partial x_3}\cdot v. \end{align}

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.

Derivations in abstract algebra

In abstract algebra, the product rule is used to define what is called a derivation, not vice versa.

Vector functions

The product rule extends to scalar multiplication, dot products, and cross products of vector functions.

For scalar multiplication: (f \cdot \bold g)' = f\;'\cdot \bold g + f \cdot \bold g\;' \,

For dot products: (\bold f \cdot \bold g)' = \bold f\;'\cdot \bold g + \bold f \cdot \bold g\;' \,

For cross products: (\bold f \times \bold g)' = \bold f\;' \times \bold g + \bold f \times \bold g\;' \,

Note: cross products are not commutative, i.e. (f \times g)' \neq f' \times g + g' \times f , instead products are anticommutative, so it can be written as (f \times g)' = f' \times g - g' \times f

Scalar fields

For scalar fields the concept of gradient is the analog of the derivative:

\nabla (f \cdot g) = \nabla f \cdot g + f \cdot \nabla g \,


Among the applications of the product rule is a proof that

{d \over dx} x^n = nx^{n-1}\,\!

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{align} {d \over dx}x^{n+1} &{}= {d \over dx}\left( x^n\cdot x\right) \\[12pt] &{}= x{d \over dx} x^n + x^n{d \over dx}x \qquad\mbox{(the product rule is used here)} \\[12pt] &{}= x\left(nx^{n-1}\right) + x^n\cdot 1\qquad\mbox{(the induction hypothesis is used here)} \\[12pt] &{}= (n + 1)x^n. \end{align}

Therefore if the proposition is true of n, it is true also of n + 1.

Definition of tangent space

Product rule is also used in definition of abstract tangent space of some abstract geometric figure (smooth manifold). This definition we can use if we cannot or wish to not use surrounding ambient space where our chosen geometric figure lives (since there might be no such surrounding space). It uses the fact that it is possible to define derivatives of real-valued functions on that geometric figure at a point p solely with the product rule and that the set of all such derivations in fact forms a vector space that is the desired tangent space.

See also


  1. ^ Michelle Cirillo (August 2007). "Humanizing Calculus". The Mathematics Teacher 101 (1): 23–27. (subscription required (help)). 
  • Child, J. M. (2008) "The early mathematical manuscripts of Leibniz", Gottfried Wilhelm Leibniz, translated by J. M. Child; page 29, footnote 58.

External links

  • Product Rule Practice Problems [Kouba, University of California: Davis]
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.