Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Represent the derivative of a product, explicitly displaying the terms
ResourceFunction["ProductRule"][f,x] computes the derivative of the product f with respect to variable x, returning an Inactive sum of product rule terms. |
See how to apply the product rule to compute the derivative of sin(x) * x2 with respect to x:
In[1]:= |
Out[1]= |
If there is no explicit product in the first argument of ProductRule, one of the factors is taken to be 1:
In[2]:= |
Out[2]= |
If there is a product with multiple factors in the first argument of ProductRule, the factors are split into two separate products:
In[3]:= |
Out[3]= |
Setting "InactiveInnerDerivatives" to True inactivates the derivatives of the factors within the structure of the product rule:
In[4]:= |
Out[4]= |
Setting "PrintNapkin" to True prints a grid with the side "napkin" work needed to apply the product rule (i.e., identifying and computing the derivatives of each factor):
In[5]:= |
Out[5]= |
Setting "PrintRule" to True prints a general statement of the product rule for derivatives:
In[6]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License