Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
See how to apply the sum rule for derivatives
ResourceFunction["SumRule"][f,x] applies the sum rule for computing the derivative of f with respect to x, returning an inactive result. |
See how to apply the sum rule to compute the derivative of sin(x)+ x2 with respect to x:
In[1]:= |
Out[1]= |
If there is no explicit sum in the first argument of SumRule, one of the terms is taken to be 0:
In[2]:= |
Out[2]= |
Setting "InactiveInnerDerivatives" to True inactivates the derivatives of the factors within the structure of the sum rule:
In[3]:= |
Out[3]= |
Setting "PrintNapkin" to True prints a grid with the side "napkin" work needed to apply the sum rule (i.e., identifying and computing the derivatives of each term):
In[4]:= |
Out[4]= |
Setting "PrintRule" to True prints a general statement of the sum rule for derivatives along with general statements of the derivative rule needed to compute the derivative of each term:
In[5]:= |
Out[5]= |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License