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
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):
Dividing by βdxβ throughout, we arrive at the derivative we are looking for:
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:
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:
- Is β0.99999β¦β Really Equal To β1β?
- How To Benefit From Computer Science In Real Life (I)
- Randomised Statistical Trials Are Not Always The Best Option
If you would like to support me as an author, consider contributing on Patreon.
Comments