maths.freeCalculus › Foundations › Product rule

Product rule

In calculus, the product rule (or Leibniz rule or Leibniz product rule) is a formula used to find the derivatives of products of two or more functions.

Product rule

In calculus, the product rule (or Leibniz rule 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{d}{dx} (u\cdot v) = \frac{du}{dx} \cdot v + u \cdot \frac{dv}{dx}.\]

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 "infinitesimals" (a precursor to the modern differential). (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 and v be functions. Then d(uv) is the same thing as the difference between two successive uv's; let one of these be uv, and the other u+du times v+dv; then: \[\begin{aligned} d(u\cdot v) & {} = (u + du)\cdot (v + dv) - u\cdot v \\ & {} = u\cdot dv + v\cdot du + du\cdot dv. \end{aligned}\]

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'.\]

First proofs

Both Leibniz and Newton gave proofs that are not rigorous by modern standards. Leibniz reasoned with "infinitely smaller quantities", interpreting products as areas of rectangles, while Newton reasoned with "flowing quantities".

Examples

  • Suppose we want to differentiate \(f(x)=x^2\text {sin}(x).\) By using the product rule, one gets the derivative \(f'(x)=2x\cdot \text {sin}(x)+x^2\text {cos} (x)\) (since the derivative of \(x^2\) is \(2x,\) and the derivative of the sine function is the cosine function).
  • One special case of the product rule is the constant multiple rule, which states: if c is a number, and \(f(x)\) is a differentiable function, then \(c\cdot f(x)\) is also differentiable, and its derivative is \((cf)'(x)=c \cdot f'(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.)

Limit definition of derivative

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+\Delta x)-f(x)g(x+\Delta x)\) (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{aligned} h'(x) &= \lim_{\Delta x\to 0} \frac{h(x+\Delta x)-h(x)}{\Delta x} \\[5pt] &= \lim_{\Delta x\to 0} \frac{f(x+\Delta x)g(x+\Delta x)-f(x)g(x)}{\Delta x} \\[5pt] &= \lim_{\Delta x\to 0} \frac{f(x+\Delta x)g(x+\Delta x)-f(x)g(x+\Delta x)+f(x)g(x+\Delta x)-f(x)g(x)}{\Delta x} \\[5pt] &= \lim_{\Delta x\to 0} \frac{\big[f(x+\Delta x)-f(x)\big] \cdot g(x+\Delta x) + f(x) \cdot \big[g(x+\Delta x)-g(x)\big]}{\Delta x} \\[5pt] &= \lim_{\Delta x\to 0} \frac{f(x+\Delta x)-f(x)}{\Delta x} \cdot \lim_{\Delta x\to 0} g(x+\Delta x) + \lim_{\Delta x\to 0} f(x) \cdot \lim_{\Delta x\to 0} \frac{g(x+\Delta x)-g(x)}{\Delta x} \\[5pt] &= f'(x)g(x)+f(x)g'(x). \end{aligned}\] The fact that \(\lim_{\Delta x\to0} g(x+\Delta x) = g(x)\) follows from the fact that differentiable functions are continuous.

Linear approximations

By definition, if \(f, g: \mathbb{R} \to \mathbb{R}\) 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_{h \to 0} \frac{\varepsilon_1(h)}{h} = \lim_{h \to 0} \frac{\varepsilon_2(h)}{h} = 0,\) also written \(\varepsilon_1, \varepsilon_2 \sim o(h)\). Then: \[\begin{aligned} 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{error terms} \\[.5em] &= f'(x)g(x)h + f(x)g'(x)h + o(h) . \end{aligned}\] The "error terms" consist of items such as \(f(x)\varepsilon_2(h), f'(x)g'(x)h^2\) and \(hf'(x)\varepsilon_1(h)\) which are easily seen to have magnitude \(o(h).\) Dividing by \(h\) and taking the limit \(h\to 0\) gives the result.

Quarter squares

This proof uses the chain rule and the quarter square function \(q(x)=\tfrac14x^2\) with derivative \(q'(x) = \tfrac12 x\). We have: \[uv=q(u+v)-q(u-v),\] and differentiating both sides gives: \[\begin{aligned} f' &= 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{aligned}\]

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\): \[{d (uv) \over dx} = \frac{\partial(uv)}{\partial u}\frac{du}{dx}+\frac{\partial (uv)}{\partial v}\frac{dv}{dx} = v \frac{du}{dx} + u \frac{dv}{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 \[\begin{aligned} \frac{d(uv)}{dx} &= \operatorname{st}\left(\frac{(u + du)(v + dv) - uv}{dx}\right) \\ &= \operatorname{st}\left(\frac{uv + u \cdot dv + v \cdot du + du \cdot dv -uv}{dx}\right) \\ &= \operatorname{st}\left(\frac{u \cdot dv + v \cdot du + du \cdot dv}{dx}\right) \\ &= \operatorname{st}\left(u \frac{dv}{dx} + (v + dv) \frac{du}{dx}\right) \\ &= u \frac{dv}{dx} + v \frac{du}{dx}. \end{aligned}\] 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{aligned} 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{aligned}\] since \(du \, dv = u' v' (dx)^2 = 0.\) Dividing by \(dx\) then gives \(\frac{d(uv)}{dx} = u \frac{dv}{dx} + v \frac{du}{dx}\) or \((uv)' = u \cdot v' + v \cdot u'\).

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{h'(x)}{h(x)} = \frac{f'(x)}{f(x)} + \frac{g'(x)}{g(x)}\] Solving for \(h'(x)\) and substituting back \(f(x) g(x)\) for \(h(x)\) gives: \[\begin{aligned} h'(x) &= h(x)\left(\frac{f'(x)}{f(x)} + \frac{g'(x)}{g(x)}\right) \\ &= f(x) g(x)\left(\frac{f'(x)}{f(x)} + \frac{g'(x)}{g(x)}\right) \\ &= f'(x) g(x) + f(x) g'(x). \end{aligned}\] Note: 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.

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(\left(\frac{d}{dx} f_i(x) \right) \prod_{j=1,j\ne i}^k 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).\]

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 f, denoted here Logder(f), is the derivative of the logarithm of the function. It follows that \[\operatorname{Logder}(f)=\frac {f'}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{Logder}(f_1\cdots f_k)= \sum_{i=1}^k\operatorname{Logder}(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 \(f_i.\)

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: \[d^n(uv) = \sum_{k=0}^n {n \choose k} \cdot d^{(n-k)}(u)\cdot d^{(k)}(v).\]

Applied at a specific point x, the above formula gives: \[(uv)^{(n)}(x) = \sum_{k=0}^n {n \choose k} \cdot u^{(n-k)}(x)\cdot v^{(k)}(x).\]

Furthermore, for the nth derivative of an arbitrary number of factors, one has a similar formula with multinomial coefficients: \[\left(\prod_{i=1}^kf_i\right)^{\!\!(n)}=\sum_{j_1+j_2+\cdots+j_k=n}{n\choose j_1,j_2,\ldots,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 all 2 subsets of {1, ..., n}, and |S| is the cardinality of S. For example, when n = 3, \[\begin{aligned} & {\partial^3 \over \partial x_1\,\partial x_2\,\partial x_3} (uv) \\[1ex] = {} & 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} \\[1ex] & + {\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. \\[-3ex]&\end{aligned}\]

Ugbu a ị Enweghị kalkulata na-ewepụ nke a, ma ọ bụ na ọ nwere ike ijikwa ya. Jiri otu n'okpuru, mọọbụ pịa nke gị.

Kwụsị ọrụ gị

Akwụkwọ ndebanye n'efu na-egbakwunye ntọala n'ụdị ọmụmụ ihe ọbụla, ndepụta nke ihe ị ga-eme, nsogbu ị ga-ewepụ n'otu ebe, na onye nkụzi ị ga-ajụ banyere ihuakwụkwọ a. Akwụkwọ ndepụta ihe bụ nke ọbụla mepere maka onye ọbụla, ọbụla ma ọ bụ na ọ bụghị.

Akaụntụ Nbanye

Aịkọn ndị ahụ ejirila ebe a

Tinye ọbụla simbụl maka nkọwa zuru ezu, inyogo, na ihe ọbụla ọbụla na-egosi.

Ajụjụ ndị mmadụ jụrụ

What is a derivative in one sentence?

The slope of the graph at a point, the rate at which the output is changing there. Speed is the derivative of position.

What is an integral in one sentence?

The accumulated total of a rate: the area under the curve. Distance travelled is the integral of speed.

Why are derivatives and integrals opposites?

That is the fundamental theorem of calculus: accumulating a rate and then measuring how fast the accumulation grows gets you back the rate. Integration undoes differentiation up to a constant.

When do I use substitution and when integration by parts?

Substitution when part of the integrand is the derivative of another part (u and du both present). Parts when the integrand is a product of two unrelated kinds of function, a polynomial times an exponential, log or trig function.

Oge nke ihuakwụkwọ a bụ nke a gbanwere site na Wikipedia (CC BY-SA 4.0). E kọwaara ya na ebe a; nsogbu bụ nke anyị.

Oge Calculus