Product rule for differentiation

From Calculus

This article is about a differentiation rule, i.e., a rule for differentiating a function expressed in terms of other functions whose derivatives are known.
View other differentiation rules

Name

This statement is called the product rule, product rule for differentiation, or Leibniz rule.

Statement for two functions

Verbal statement

If two (possibly equal) functions are differentiable at a given real number, then their pointwise product is also differentiable at that number and the derivative of the product is the sum of two terms: the derivative of the first function times the second function and the first function times the derivative of the second function.

Statement with symbols

The product rule is stated in many versions:

Version type Statement
specific point, named functions Suppose f and g are functions of one variable, both of which are differentiable at a real number x=x0. Then, the product function fg, defined as xf(x)g(x) is also differentiable at x=x0, and the derivative at x0 is given as follows:

ddx[f(x)g(x)]|x=x0=f(x0)g(x0)+f(x0)g(x0)
or equivalently:
ddx[f(x)g(x)]|x=x0=d(f(x))dx|x=x0g(x0)+f(x0)d(g(x))dx|x=x0

generic point, named functions, point notation Suppose f and g are functions of one variable. Then the following is true wherever the right side expression makes sense:
ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x)
generic point, named functions, point-free notation Suppose f and g are functions of one variable. Then, we have the following equality of functions on the domain where the right side expression makes sense:
(fg)=(fg)+(fg)
Pure Leibniz notation using dependent and independent variables Suppose u,v are variables both of which are functionally dependent on x. Then:
d(uv)dx=vdudx+udvdx
In terms of differentials Suppose u,v are both variables functionally dependent on x. Then,
d(uv)=v(du)+u(dv).

MORE ON THE WAY THIS DEFINITION OR FACT IS PRESENTED: We first present the version that deals with a specific point (typically with a

{}0

subscript) in the domain of the relevant functions, and then discuss the version that deals with a point that is free to move in the domain, by dropping the subscript. Why do we do this?
The purpose of the specific point version is to emphasize that the point is fixed for the duration of the definition, i.e., it does not move around while we are defining the construct or applying the fact. However, the definition or fact applies not just for a single point but for all points satisfying certain criteria, and thus we can get further interesting perspectives on it by varying the point we are considering. This is the purpose of the second, generic point version.

One-sided version

The product rule for differentiation has analogues for one-sided derivatives. More explicitly, we can replace all occurrences of derivatives with left hand derivatives and the statements are true. Alternately, we can replace all occurrences of derivatives with right hand derivatives and the statements are true.

Statement for multiple functions

If f1,f2,,fn are all functions, and we define F(x):=f1(x)f2(x)fn(x), then we have:

F(x)=f1(x)f2(x)fn(x)+f1(x)f2(x)fn(x)++f1(x)f2(x)fn1(x)fn(x)

In other words, we get a sum of n terms, each of which is a product of n evaluations, of which only one is a derivative, and the one we choose as the derivative cycles through all the n possibilities.

For instance, if n=3, we get:

F(x)=f1(x)f2(x)f3(x)+f1(x)f2(x)f3(x)+f1(x)f2(x)f3(x)

Related rules

Significance

Qualitative and existential significance

Each of the versions has its own qualitative significance:

Version type Significance
specific point, named functions This tells us that if f and g are both differentiable at a point, so is fg.
generic point, named functions, point notation This tells us that if both f and g are differentiable on an open interval, then so is fg.
generic point, point-free notation This can be used to deduce more, namely that the nature of (fg) depends strongly on the nature of f and that of g. In particular, if f and g are both continuously differentiable functions on an interval (i.e., f and g are both continuous on that interval), then (fg) is also continuously differentiable on that interval. This uses the sum theorem for continuity and product theorem for continuity.

Computational feasibility significance

Each of the versions has its own computational significance:

Version type Significance
specific point, named functions This tells us that knowledge of the values (in the sense of numerical values) f(x0),g(x0),f(x0),g(x0) at a specific point x0 is sufficient to compute the value of (fg)(x0). For instance, if we are given that f(1)=5,g(1)=11,f(1)=4,g(1)=13, we obtain that (fg)(1)=411+513=44+65=109.
generic point, named functions This tells us that knowledge of the general expressions for the derivatives of f and g is sufficient to compute the general expression for the derivative of fg. See the #Examples section of this page for more examples.

Examples

Trivial examples

We first consider examples where the product rule for differentiation confirms something we already knew through other means:

Case What we know about the derivative of xf(x)g(x) What we know about f(x)g(x)+f(x)g(x)
g is the zero function. The derivative is the zero function, because f(x)g(x)=0 for all x. Both g(x) and g(x) are zero functions, so f(x)g(x)+f(x)g(x) is everywhere zero.
g is a constant nonzero function with value λ. The derivative is λf(x), because the constant can be pulled out of the differentiation process. f(x)g(x) simplifies to λf(x). Since g is constant, g(x) is the zero function, hence so is f(x)g(x). The sum is thus λf(x).
f=g The derivative is 2f(x)f(x) by the chain rule for differentiation: we are composing the square function and f. We get f(x)f(x)+f(x)f(x)=2f(x)f(x).

Nontrivial examples where simple alternate methods exist

Consider the function:

f(x):=sinxcosx.

Doing this using the product rule, we get:

f(x)=sinxcosx+sinxcosx=cosxcosx+sinx(sinx)=cos2xsin2x=cos(2x)

where the last step uses a trigonometric identity.

We could also do this by a different method, noting that:

f(x)=12sin(2x)

and now differentiate, to get:

f(x)=12ddxsin(2x)=12cos(2x)ddx(2x)=12cos(2x)(2)=cos(2x)

Nontrivial examples where simple alternate methods do not exist

Fill this in later