College:Product rule for differentiation
This page uses material from product rule for differentiation and Practical:Product rule for differentiation.
ORIGINAL FULL PAGE: Product rule for differentiation
STUDY THE TOPIC AT MULTIPLE LEVELS: Page for school students (first-time learners) | Page for college students (second-time learners) | Page for math majors and others passionate about math |
ALSO CHECK OUT: Practical tips on the topic |Quiz (multiple choice questions to test your understanding) |Pedagogy page (discussion of how this topic is or could be taught)|Page with videos on the topic, both embedded and linked to
Name
This statement is called the product rule, product rule for differentiation, or Leibniz rule.
Statement for two functions
Statement in multiple versions
The product rule is stated in many versions:
Version type | Statement |
---|---|
specific point, named functions | Suppose and are functions of one variable, both of which are differentiable at a real number . Then, the product function , defined as is also differentiable at , and the derivative at is given as follows:
|
generic point, named functions, point notation | Suppose and are functions of one variable. Then the following is true wherever the right side expression makes sense (see concept of equality conditional to existence of one side): |
generic point, named functions, point-free notation | Suppose and are functions of one variable. Then, we have the following equality of functions on the domain where the right side expression makes sense (see concept of equality conditional to existence of one side): We could also write this more briefly as: Note that the domain of may be strictly larger than the intersection of the domains of and , so the equality need not hold in the sense of equality as functions if we care about the domains of definition. |
Pure Leibniz notation using dependent and independent variables | Suppose are variables both of which are functionally dependent on . Then: |
In terms of differentials | Suppose are both variables functionally dependent on . Then, . |
MORE ON THE WAY THIS DEFINITION OR FACT IS PRESENTED: We first present the version that deals with a specific point (typically with a 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.
Partial differentiation
For further information, refer: product rule for partial differentiation
The product rule is also valid if we consider functions of more than one variable and replace the ordinary derivative by the partial derivative, directional derivative, or gradient vector.
Statement for multiple functions
Below, we formulate the many versions of this product rule:
Version type | Statement |
---|---|
specific point, named functions | Suppose are functions defined and differentiable at a point . Then the product is also differentiable at , and we have: |
generic point, named functions, point notation | Suppose are functions. Then the product satisfies: wherever the right side makes sense. |
generic points, named functions, point-free notation | Suppose are functions. Then the product satisfies: wherever the right side makes sense. We could also write this more briefly as |
Pure Leibniz notation using dependent and independent variables | Suppose are variables functionally dependent on . Then wherever the right side make sense. |
In terms of differentials | Suppose are variables functionally dependent on . Then |
For instance, using the generic point, named functions notation for , we get:
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 and are both differentiable at a point, so is . The one-sided versions allow us to make similar statement for left and right differentiability. |
generic point, named functions, point notation | This tells us that if both and are differentiable on an open interval, then so is . The one-sided versions allow us to make similar statements for closed intervals where we require the appropriate one-sided differentiability at the endpoints. |
generic point, point-free notation | This can be used to deduce more, namely that the nature of depends strongly on the nature of and that of . In particular, if and are both continuously differentiable functions on an interval (i.e., and are both continuous on that interval), then 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 feasibility significance:
Version type | Significance |
---|---|
specific point, named functions | This tells us that knowledge of the values (in the sense of numerical values) at a specific point is sufficient to compute the value of . For instance, if we are given that , we obtain that . A note on contrast with the (false) freshman product rule: [SHOW MORE] |
generic point, named functions | This tells us that knowledge of the general expressions for and and the derivatives of and is sufficient to compute the general expression for the derivative of . See the #Examples section of this page for more examples. |
Computational results significance
Each of the versions has its own computational results significance:
Shorthand | Significance | What would happen if the freshman product rule were true instead of the product rule? |
---|---|---|
significance of derivative being zero | If and are both equal to 0, then so is . In other words, if the tangents to the graphs of are both horizontal at the point , so is the tangent to the graph of . | This result would still hold, but so would a stronger result: namely that if either or is zero, so is . |
significance of sign of derivative | and both being positive is not sufficient to ensure that is positive. However, if all four of are positive, then is positive. This is related to the fact that a product of increasing functions need not be increasing. | In that case, it would be true that and both being positive is sufficient to ensure that is positive. |
significance of uniform bounds | both being uniformly bounded is not sufficient to ensure that is uniformly bounded. However, if all four functions are uniformly bounded, then indeed is uniformly bounded. | In that case, it would be true that and both uniformly being bounded is sufficient to ensure that is uniformly bounded. |
Examples
For practical tips and explanations on how to apply the product rule in practice, check out Practical:Product rule for differentiation
Sanity checks
We first consider examples where the product rule for differentiation confirms something we already knew through other means. In all examples, we assume that both and are differentiable functions:
Case | The derivative of | Direct justification (without use of product rule) | Justification using product rule, i.e., computing it as |
---|---|---|---|
is the zero function. | zero function | for all , so its derivative is also zero . | Both and are zero functions, so is everywhere zero. |
is a constant nonzero function with value . | The function is , and the derivative is , because the constant can be pulled out of the differentiation process. | simplifies to . Since is constant, is the zero function, hence so is . The sum is thus . | |
The derivative is by the chain rule for differentiation: we are composing the square function and . | We get . | ||
zero function | The product is , which is a constant function, so its derivative is zero. | We get . By the chain rule, , so plugging in, we get , which simplifies to zero. |
Nontrivial examples where simple alternate methods exist
Here is a simple trigonometric example:
.
Nontrivial examples where simple alternate methods do not exist
Consider a product of the form:
Using the product rule, we get:
Procedure to apply the product rule for differentiation
The product rule for differentiation is useful as a technique for differentiating functions that are expressed in the form of products of simpler functions.
Most explicit procedure
The explicit procedure is outlined below:
- Identify the two functions whose product is the given function. In other words, explicitly decompose the function as a product of two functions. We will here call the functions and , though you may choose to give them different names.
- Calculate the derivatives of and separately, on the side.
- Plug into the product rule formula the expressions for the functions and their derivatives.
- Simplify the expression thus obtained (this is optional in general, though it may be required in some contexts).
Here is an example of a differentiation problem where we use this explicit procedure:
Differentiate the function with respect to
We proceed step by step:
- Identify the two functions: Define and . Then, by definition.
- Calculate the derivatives: The derivative of is and the derivative of is .
- Plug into the product rule formula: We get .
- Simplify the expression obtained: We get .
Here is another example of a differentiation problem where we use this explicit procedure:
Differentiate the function
- Identify the two functions: Define and
- Calculate the derivatives: The derivative of is and the derivative of is .
- Plug into the product rule formula: We get .
- Simplify the expression obtained: The expression is already simplified. If we wish to collect terms, we can rewrite as .
More inline procedure using Leibniz notation
Although the explicit procedure above is fairly clear, Step (2) of the procedure can be a waste of time in the sense of having to do the derivative calculations separately. If you are more experienced with doing differentiation quickly, you can combine Steps (2) and (3) by calculating the derivatives while plugging into the formula, rather than doing the calculations separately prior to plugging into the formula. Further, we do not need to explicitly name the functions if we use the Leibniz notation to compute the derivatives inline.
The shorter procedure is outlined below:
- Identify the two functions being multiplied (but you don't have to give them names).
- Plug into the formula for the product rule, using the Leibniz notation for derivatives that have not yet been computed.
- Compute derivatives and simplify
For instance, consider the problem:
Differentiate the function
The procedure is:
- Identify the two functions: The functions are and .
- Plug into the formula for the product rule: We get:
- Compute derivatives and simplify: we get:
. The expression can be expanded and simplified if desired.
Shortest inline procedure
If you are really experienced with doing derivatives in your head, you can shorten the procedure even further by combining Steps (2) and (3) in the previous procedure. The procedure has two steps:
- Identify the two functions being multiplied (but you don't have to give them names).
- Use the formula for the product rule, computing the derivatives of the functions while plugging them into the formula
For instance, going back to the example used in the beginning:
Differentiate the function with respect to
This can be done quickly:
- Identify the two functions: They are and .
- Use the formula for the product rule, computing the derivatives of the functions while plugging them into the formula: We get .
Choosing between procedures
The procedures are not fundamentally different, but they differ in the degree of explicitness of the steps. Generally speaking, the following are recommended:
- If the functions being multiplied are fairly easy to differentiate mentally, use the shortest inline procedure -- this is fast and reliable.
- If the functions being multiplied are somewhat more difficult to differentiate, then choose between the other two more explicit procedures, based on whether you are more comfortable with writing large inline expressions or with doing separate work on the side.
Error types
Incorrect formula
A common mistake in differentiating products of functions is the freshman product rule, i.e., the false rule that the derivative of the product is the product of the derivatives. The good news is that, generally speaking, it is easy to avoid this rule once you have enough experience with the actual product rule.
Writing only one piece of the product rule
This is an error of the incomplete task form and is harder to avoid. What happens here is that you forget to write one of the two pieces being added for the product rule, so perhaps you end up doing:
or
A slight variant involves forgetting one of the factors being multiplied:
Why this error occurs: Usually, this error is common if you are trying to use the shortest inline procedure, i.e., differentiating the functions and applying the product rule simultaneously, and one of the functions being differentiated is rather tricky to differentiate, requiring a product rule or chain rule for differentiation in and of itself.
How to avoid this error:
- When the functions being differentiated are tricky to differentiate, use either the fully explicit procedure or the inline procedure with Leibniz notation. Do not try to simultaneously differentiate the pieces and use the product rule.
- After finishing a product rule problem, ask the following sanity check question: did I get a sum of two products after the application of the product rule? If the answer is no, then check your work.
How to remember the formula
Different versions of the formula
Recall that we stated the product rule as:
The right side could be written in any of eight equivalent ways:
All of these are equivalent, so in some sense it does not matter which of the versions you choose to remember. However, the first version is somewhat preferable to the others for a number of reasons mentioned below:
- The order of multiplication is the same as in the expression being differentiated: the -part is on the left and the -part is on the right. This is true only of versions (1) and (5). This is particularly important when we consider generalization to non-commutative situations such as product rule for differentiation of cross product.
- The differentiation symbol (the prime) hops from left to right: Remembering the rule this way makes it easier to generalize to differentiating products of more than two functions (see product rule for differentiation#Statement for multiple functions).
Quick rationalizations for the formula
If you are a little shaky about the product rule for differentiation, how do you do a reality check on the formula? A quick, intuitive version of the proof of product rule for differentiation using chain rule for partial differentiation will help. Basically, what it says is that to determine how the product changes, we need to count the contributions of each factor being multiplied, keeping the other constant. The contribution of keeping constant is and the contribution of keeping constant is .