Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
See how to apply the chain rule for derivatives
ResourceFunction["ChainRule"][f,x] applies the chain rule for computing the derivative of f with respect to x, returned as an inactive result. |
See how to apply the chain rule to compute the derivative of sin(x2) with respect to x:
In[1]:= |
Out[1]= |
Setting "InactiveInnerDerivatives" to True inactivates the derivatives of the factors of the chain rule, represented with a replacement rule:
In[2]:= |
Out[2]= |
Setting "PrintNapkin" to True prints a grid with the side "napkin" work needed to apply the chain rule (i.e., identifying and computing the derivatives of the inner and outer functions):
In[3]:= |
Out[3]= |
Setting "PrintRule" to True prints a general statement of the chain rule for derivatives:
In[4]:= |
Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License