Product rule

From testwiki
Jump to navigation Jump to search

Template:Short description Template:About Template:Use dmy dates

Geometric illustration of a proof of the product rule

{{#invoke:sidebar|collapsible | class = plainlist | titlestyle = padding-bottom:0.25em; | pretitle = Part of a series of articles about | title = Calculus | image = abf(t)dt=f(b)f(a) | listtitlestyle = text-align:center; | liststyle = border-top:1px solid #aaa;padding-top:0.15em;border-bottom:1px solid #aaa; | expanded = differential | abovestyle = padding:0.15em 0.25em 0.3em;font-weight:normal; | above =

Template:Startflatlist

Template:EndflatlistTemplate:Startflatlist

Template:Endflatlist

| list2name = differential | list2titlestyle = display:block;margin-top:0.65em; | list2title = Template:Bigger | list2 ={{#invoke:sidebar|sidebar|child=yes

 |contentclass=hlist
 | heading1 = Definitions
 | content1 =
 | heading2 = Concepts
 | content2 =
 | heading3 = Rules and identities
 | content3 =
}}

| list3name = integral | list3title = Template:Bigger | list3 ={{#invoke:sidebar|sidebar|child=yes

 |contentclass=hlist
 | content1 =

| heading2 = Definitions

 | content2 =
 | heading3 = Integration by
 | content3 =
}}

| list4name = series | list4title = Template:Bigger | list4 ={{#invoke:sidebar|sidebar|child=yes

 |contentclass=hlist
 | content1 =
 | heading2 = Convergence tests
 | content2 =
}}

| list5name = vector | list5title = Template:Bigger | list5 ={{#invoke:sidebar|sidebar|child=yes

 |contentclass=hlist
 | content1 =
 | heading2 = Theorems
 | content2 =
}}

| list6name = multivariable | list6title = Template:Bigger | list6 ={{#invoke:sidebar|sidebar|child=yes

 |contentclass=hlist
 | heading1 = Formalisms
 | content1 =
 | heading2 = Definitions
 | content2 =
}}

| list7name = advanced | list7title = Template:Bigger | list7 ={{#invoke:sidebar|sidebar|child=yes

 |contentclass=hlist
 | content1 =
}}

| list8name = specialized | list8title = Template:Bigger | list8 =

| list9name = miscellanea | list9title = Template:Bigger | list9 =

}}

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 (uv)=uv+uv or in Leibniz's notation as ddx(uv)=dudxv+udvdx.

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).[2] (However, J. M. Child, a translator of Leibniz's papers,[3] argues that it is due to Isaac Barrow.) Here is Leibniz's argument:[4] 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: d(uv)=(u+du)(v+dv)uv=udv+vdu+dudv.

Since the term du·dv is "negligible" (compared to du and dv), Leibniz concluded that d(uv)=vdu+udv and this is indeed the differential form of the product rule. If we divide through by the differential dx, we obtain ddx(uv)=vdudx+udvdx which can also be written in Lagrange's notation as (uv)=vu+uv.

Examples

  • Suppose we want to differentiate 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).
  • One special case of the product rule is the constant multiple rule, which states: if Template:Mvar is a number, and 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.
  • 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 Template:Em it is differentiable.)

Proofs

Limit definition of derivative

Let Template:Math and suppose that Template:Mvar and Template:Mvar are each differentiable at Template:Mvar. We want to prove that Template:Mvar is differentiable at Template:Mvar and that its derivative, Template:Math, is given by Template:Math. To do this, f(x)g(x+Δx)f(x)g(x+Δ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. h(x)=limΔx0h(x+Δx)h(x)Δx=limΔx0f(x+Δx)g(x+Δx)f(x)g(x)Δx=limΔx0f(x+Δx)g(x+Δx)f(x)g(x+Δx)+f(x)g(x+Δx)f(x)g(x)Δx=limΔx0[f(x+Δx)f(x)]g(x+Δx)+f(x)[g(x+Δx)g(x)]Δx=limΔx0f(x+Δx)f(x)ΔxlimΔx0g(x+Δx)+limΔx0f(x)limΔx0g(x+Δx)g(x)Δx=f(x)g(x)+f(x)g(x). The fact that limΔx0g(x+Δx)=g(x) follows from the fact that differentiable functions are continuous.

Linear approximations

By definition, if f,g: are differentiable at x, then we can write linear approximations: f(x+h)=f(x)+f(x)h+ε1(h) and g(x+h)=g(x)+g(x)h+ε2(h), where the error terms are small with respect to h: that is, limh0ε1(h)h=limh0ε2(h)h=0, also written ε1,ε2o(h). Then: f(x+h)g(x+h)f(x)g(x)=(f(x)+f(x)h+ε1(h))(g(x)+g(x)h+ε2(h))f(x)g(x)=f(x)g(x)+f(x)g(x)h+f(x)g(x)hf(x)g(x)+error terms=f(x)g(x)h+f(x)g(x)h+o(h). The "error terms" consist of items such as f(x)ε2(h),f(x)g(x)h2 and hf(x)ε1(h) which are easily seen to have magnitude o(h). Dividing by h and taking the limit h0 gives the result.

Quarter squares

This proof uses the chain rule and the quarter square function q(x)=14x2 with derivative q(x)=12x. We have: uv=q(u+v)q(uv), and differentiating both sides gives: f=q(u+v)(u+v)q(uv)(uv)=(12(u+v)(u+v))(12(uv)(uv))=12(uu+vu+uv+vv)12(uuvuuv+vv)=vu+uv.

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)dx=(uv)ududx+(uv)vdvdx=vdudx+udvdx.

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 d(uv)dx=st((u+du)(v+dv)uvdx)=st(uv+udv+vdu+dudvuvdx)=st(udv+vdu+dudvdx)=st(udvdx+(v+dv)dudx)=udvdx+vdudx. 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 d(uv)=(u+du)(v+dv)uv=uv+udv+vdu+dudvuv=udv+vdu+dudv=udv+vdu since dudv=uv(dx)2=0. Dividing by dx then gives d(uv)dx=udvdx+vdudx 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): h(x)h(x)=f(x)f(x)+g(x)g(x) Solving for h(x) and substituting back f(x)g(x) for h(x) gives: h(x)=h(x)(f(x)f(x)+g(x)g(x))=f(x)g(x)(f(x)f(x)+g(x)g(x))=f(x)g(x)+f(x)g(x). 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 ddx(ln|u|)=uu, 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 d(uvw)dx=dudxvw+udvdxw+uvdwdx. For a collection of functions f1,,fk, we have ddx[i=1kfi(x)]=i=1k((ddxfi(x))j=1,jikfj(x))=(i=1kfi(x))(i=1kf'i(x)fi(x)).

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 Template:Mvar, denoted here Template:Math, is the derivative of the logarithm of the function. It follows that Logder(f)=ff. Using that the logarithm of a product is the sum of the logarithms of the factors, the sum rule for derivatives gives immediately Logder(f1fk)=i=1kLogder(fi). 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

Template:Main 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: dn(uv)=k=0n(nk)d(nk)(u)d(k)(v).

Applied at a specific point x, the above formula gives: (uv)(n)(x)=k=0n(nk)u(nk)(x)v(k)(x).

Furthermore, for the nth derivative of an arbitrary number of factors, one has a similar formula with multinomial coefficients: (i=1kfi)(n)=j1+j2++jk=n(nj1,j2,,jk)i=1kfi(ji).

Higher partial derivatives

For partial derivatives, we have[5] nx1xn(uv)=S|S|uiSxin|S|vi∉Sxi where the index Template:Mvar runs through all Template:Math subsets of Template:Math, and Template:Math is the cardinality of Template:Mvar. For example, when Template:Math, 3x1x2x3(uv)=u3vx1x2x3+ux12vx2x3+ux22vx1x3+ux32vx1x2+2ux1x2vx3+2ux1x3vx2+2ux2x3vx1+3ux1x2x3v.

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(x,y)B)(u,v)=B(u,y)+B(x,v)(u,v)X×Y.

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

In vector calculus

Template:Main

The product rule extends to various product operations of vector functions on n:[7]

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: (fg)=fg+fg

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 αΩk(M),βΩ(M), with the wedge or exterior product operation αβΩk+(M), as well as the exterior derivative d:Ωm(M)Ωm+1(M). Then one has the graded Leibniz rule: d(αβ)=dαβ+(1)kαdβ.

Applications

Among the applications of the product rule is a proof that ddxxn=nxn1 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 dxn+1dx=ddx(xnx)=xddxxn+xnddxx(the product rule is used here)=x(nxn1)+xn1(the induction hypothesis is used here)=(n+1)xn. Therefore, if the proposition is true for n, it is true also for n + 1, and therefore for all natural n.

See also

References

Template:Reflist

Template:Calculus topics