# Wolfram Function Repository

Instant-use add-on functions for the Wolfram Language

Function Repository Resource:

See how to apply the sum rule for derivatives

Contributed by:
Wolfram|Alpha Math Team

ResourceFunction["SumRule"][ applies the sum rule for computing the derivative of |

The sum rule for derivatives states that the derivative of a sum of terms is equal to the sum of the derivatives of each term.

SumRule accepts the following options:

See how to apply the sum rule to compute the derivative of sin(*x*)+ *x*^{2} 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

- 1.0.0 – 06 June 2023

This work is licensed under a Creative Commons Attribution 4.0 International License