School:Product rule for differentiation: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
For the full article, see [[product rule for differentiation]]. | For the full article, see [[product rule for differentiation]]. | ||
{{#lst:Practical:Product rule for differentiation|school}} | |||
{{#lst:product rule for differentiation|school}} | {{#lst:product rule for differentiation|school}} |
Revision as of 16:48, 22 March 2012
For the full article, see product rule for differentiation.
Statement to remember
The statement of the product rule for differentiation that we will be using is:
where and .
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.
Applying the product rule for differentiation to compute values at a point
Knowledge of the values (in the sense of numerical values) at a specific point is sufficient to compute the value of .
For instance, suppose we are given that , we obtain that .
Dealing with products of three or more functions
One way of handling a product of three or more functions is to treat it as a product of two functions, where the functions themselves are products of the original functions provided, and then use the most explicit procedure. Another is to directly use the version of the product rule for differentiation that handles three or more functions, which makes things straightforward enough to use the inline procedure.
Most explicit procedure applied to a product of three or more functions
This essentially applies the #Most explicit procedure provided in a preceding section, with additional notes associated with this particular situation.
- Identify the two functions: Break it as a product of two pieces each of which in turn is either one of the original functions or a product of subsets of the original functions.
- For instance, let's say we are looking at a product . We can break it down as where and . So in this case, itself is a product, and is not.
- If we are looking at a product of four functions, we can make the product of the first two functions and the product of the last two functions. In this case, both and are products.
- If we are looking at a product of five or more functions, then one of and would be a product of three functions, which makes this whole process would have to be called on that as well (i.e., a recursive invocation).
- Calculate the derivatives of and separately. We may need to use the product rule for differentiation for one or both of the calculations.
- 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's an example:
Differentiate the function with respect to
Note that the letter is being used for the whole function here, so let's use the letters and for the respective factors.
- Identify the two functions: We'll set and .
- Calculate the derivatives: Using the product rule, we get , and .
- Plug into the product rule formula: We get
- Simplify the expression thus obtained: We get .
Direct inline application of product rule for differentiation of three or more functions
The formula to remember is:
We can think of it as a sum of products, each product involving all the original factors, and with the differentiation hopping from left to right, with it starting on the left-most factor in the first term, and reaching the right-most factor in the last term.
Let's look at the same example as above:
Differentiate the function with respect to
The inline procedure will now give:
This simplifies to:
Further simplifying, we get:
The advantage of the direct inline procedure is that it involves fewer steps and in particular doesn't involve doing side computations, thereby keeping the control flow on the main problem. The disadvantage is that it requires correct recall and application of a more complex formula. In certain grading or evaluation contexts, the direct inline procedure may also present the problem that the grader or reviewer may not be familiar with the product rule for differentiation for a product of multiple functions, or may not consider it a tool that can be legitimately applied directly to a problem.
Practice and mastery
Self-generation of practice
While a lot of practice problems are available online and in textbooks, it's also possible to generate your own practice, essentially an infinite amount.
- If you have access to a tool such as Mathematica or Wolfram Alpha that can do differentiation for you, you can take two arbitrary functions of different types that you know how to differentiate individually, then try to differentiate their product, and compare the answer with Mathematica or Wolfram Alpha. For instance, combine an algebraic function with an exponential function , to get . Try differentiating this yourself, then compare with the answer for differentiate xe^x on Wolfram Alpha.
- If you do not have access to a tool that can do differentiation for you, and you want to do practice you can verify, consider writing pairs of polynomial functions. Then try to differentiate their product in two ways: using the product rule, and expanding out the product and differentiating term-wise. Compare your answers.
- You can also do similar practice when both functions are trigonometric functions related in a particular way; for instance, if they're both sine or cosine functions of linear functions. In this case, you can convert the product to a sum using trigonometric identities. You can then differentiate as a product and as a sum, and compare the answers you get.
- You can also do similar practice when both functions are exponential functions related in a particular way; for instance, if they're exponential functions of polynomial functions, you can differentiate with the product rule or you can simplify by adding the exponents and then differentiate.
Criteria for computational mastery
Since there's always some probability of computational errors, computational mastery doesn't mean always getting every computational problem correct. Moreover, your baseline rate of computational errors may differ from that of others, and we want to control for that baseline rate.
One criterion for computational mastery is that differentiating products should be no more difficult (no more cognitively challenging and no more error-prone) than comparably lengthy differentiation problems involving sums of the same kinds of functions. This criterion has the benefit that it controls for both knowledge of the derivatives of individual functions and the baseline rate of computational errors.
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.
Significance
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. |
Examples
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: