Calculus (VIII): How To Learn The Sum Rule And The Difference Rule
Published on October 4, 2022 by Hemanth
--
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.
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):
Equation for dy β Math illustrated by the author
Dividing by βdxβ throughout, we arrive at the derivative we are looking for:
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:
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:
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 theproduct rule and the quotient rule.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking βAcceptβ, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-advertisement
1 year
Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
CookieLawInfoConsent
1 year
Records the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie.
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Cookie
Duration
Description
_gat
1 minute
This cookie is installed by Google Universal Analytics to restrain request rate and thus limit the collection of data on high traffic sites.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Cookie
Duration
Description
__gads
1 year 24 days
The __gads cookie, set by Google, is stored under DoubleClick domain and tracks the number of times users see an advert, measures the success of the campaign and calculates its revenue. This cookie can only be read from the domain they are set on and will not track any data while browsing through other sites.
_ga
2 years
The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
_ga_R5WSNS3HKS
2 years
This cookie is installed by Google Analytics.
_gat_gtag_UA_131795354_1
1 minute
Set by Google to distinguish users.
_gid
1 day
Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
CONSENT
2 years
YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Cookie
Duration
Description
IDE
1 year 24 days
Google DoubleClick IDE cookies are used to store information about how the user uses the website to present them with relevant ads and according to the user profile.
test_cookie
15 minutes
The test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE
5 months 27 days
A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.
YSC
session
YSC cookie is set by Youtube and is used to track the views of embedded videos on Youtube pages.
yt-remote-connected-devices
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
yt-remote-device-id
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
Comments