Calculus (VIII): How To Learn Sum Rule And Difference Ruleβ€Š-β€ŠAn illustration showing the following information using white board graphics: u = f(x); v = f(x); y = f(x) = (u + v); β†’ dy/dx =Β ??

The sum rule and the difference rule are two fundamental calculus tools that enable us to differentiate combinations of functions. Welcome to the eighth entry in the calculus series. Until now, we have been dealing with functions that are simple algebraic expressions.

As the next step, we are going to learn how to differentiate more complex functions that areΒ additive or subtractive combinationsΒ of two or more simpler functions. Without any further ado, let us begin.

This essay is supported by Generatebg

A product with a beautiful background featuring the sponsor: Generatebg - a service that generates high-resolution backgrounds in just one click. The description says "No more costly photographers" and displays a "Get Started" button beneath the description.

Dealing with a Function that is a Sum of Simpler Functions

Let us say that β€˜u’ and β€˜v’ are each a function of β€˜x’, and β€˜y’ is also a function of β€˜x’ such that:

u = f(x)

v = f(x)

y = f(x) = u + v

How can we go about differentiating β€˜y’ with respect to β€˜x’? You might be thinking, β€œWhy not differentiate β€˜u’ and β€˜v’ separately with respect to β€˜x’ and add the results?”

Well, spoiler alert: that is precisely what the sum rule of calculus tells us to do. However, we need to treat the situation formally. That way, we can understand the first principles behind WHY the sum rule works.

For starters, recalling from my previous essays, let us say that we increase β€˜x’ by an infinitesimal amount of β€˜dx’. As a result, β€˜y’ also correspondingly increases by an infinitesimal amount of β€˜dy’. This is because β€˜y’ is dependent on the value of β€˜x’.

But this time, β€˜y’ is a more complex function. Its components β€˜u’ and β€˜v’ are also dependent variables of β€˜x’. So, when β€˜x’ increases by β€˜dx’, not only does β€˜y’ increase by β€˜dy’, but β€˜u’ increases by β€˜du’ and β€˜v’ increases by β€˜dv’. So, the resulting equation is as follows:

y + dy = (u + du) + (v + dv)

The Sum Rule and the Difference Rule Emerge

Now that we have an equation we can work with, let us follow the same procedure we have been following thus far (refer to my previous essays to understand what I mean if you haven’t already):

Calculus (VIII): How To Learn The Sum Rule And The Difference Ruleβ€Šβ€”β€ŠAn illustration showing the following information using white board graphics: (y + dy) = (u + du) + (v + dv); Subtracting (y = u + v) from both sides of the equation: y + dy βˆ’ y = (u + du) + (v + dv) βˆ’ (u + v); dy = du + dv
Equation for dy β€” Math illustrated by the author

Dividing by β€˜dx’ throughout, we arrive at the derivative we are looking for:

Calculus (VIII): How To Learn The Sum Rule And The Difference Ruleβ€Šβ€”β€ŠAn illustration showing the following information using white board graphics: dy = du + dv; Dividing both sides by β€˜dx’: dy/dx = du/dx + dv/dx
The Derivative β€” Math illustrated by the author

There we go. Now, we know using first principles as to WHY the sum rule works. Implicitly, this result also conveys the difference rule. If you cannot see how, do not fret. Let us see how using practical examples.


Examples of the Sum Rule and the Difference Rule

Let us first cover the conventional sum rule and then proceed to the difference rule. Consider the following functions:

u = 5xΒ²

v = 3x

y = u + v

To differentiate β€˜y’ with respect to β€˜x’, we can apply the power rule of calculus that we have already covered to differentiate β€˜u’ and β€˜v’ first. Following this, we can apply the sum rule to obtain the derivative (dy/dx) as follows:

Calculus (VIII): How To Learn The Sum Rule And The Difference Ruleβ€Šβ€”β€Šu = 5xΒ², and v = 3x; Applying the power rule of calculus d(x^n)/dx = nx^(nβˆ’1): du/dx = 10x; dv/dx = 3; Applying the sum rule of calculus to y: dy/dx = du/dx + dv/dx = 10x + 3
The sum rule of calculus β€” Math illustrated by the author

There we go; a practical example of how the sum rule works. No, let us shift our focus to the difference rule. It is a ridiculously simple extension in logic if you consider the following functions:

u = 5xΒ²

v = 3x

z = u βˆ’ v

To differentiate β€˜z’ with respect to β€˜x’, we can apply the difference rule as follows:

dz/dx = du/dx βˆ’ dv/dx

To understand how we arrive at this, all we need to do is modify the original function as follows:

z = u βˆ’ v = u + (βˆ’v)

When we apply the sum rule to this equation, we arrive at the result of the difference rule:

dz/dx = du/dx + d(βˆ’v)/dx = du/dx βˆ’ dv/dx = 10x βˆ’ 3

Final Thoughts

As I have mentioned in my previous essays, the goal here is to understand why things work the way they do in calculus. So, if you feel that we are dealing with trivial matters here, just know that we are just carving the fundamental building blocks now.

As we proceed further in the series, we will be dealing with incrementally more complex concepts. I hope you enjoy the journey. Up next, I plan to cover the product rule and the quotient rule.


Reference and credit: Silvanus Thompson.

If you’d like to get notified when interesting content gets published here, consider subscribing.

Further reading that might interest you:

If you would like to support me as an author, consider contributing on Patreon.

Street Science

Explore humanity's most curious questions!

Sign up to receive more of our awesome content in your inbox!

Select your update frequency:

We don’t spam! Read our privacy policy for more info.