Calculus XIII: How To Really Understand The Chain Rule
Published on December 2, 2022 by Hemanth
--
Welcome to the thirteenth entry in the calculus series, where I will be covering the chain rule of differentiation. I will begin by demonstrating the chain rule using a very simple and intuitive example. This should already secure this tool under your growing calculus toolbox.
However, we are not going to stop there. Following this example, I will also be diving into the mathematical framework that enables us to take advantage of the chain rule.
I won’t bore you with rigorous proofs. But I will be diving into just enough details that should enable you to appreciate the beauty of the mathematics behind calculus. Let us begin.
To start, let us say that we need to differentiate the following function (y) with respect to the independent variable ‘x’:
y = f(x) — Math illustrated by the author
The part within parentheses (x² + 5) is fairly straightforward. But what makes this function challenging is the fact that it is raised to a fractional exponent. So, how could we go about differentiating this function? Well, here are two approaches that we could follow:
1. First cube the part within parentheses [(x² + 5)³], then compute the square root of the result. Finally, differentiate the resulting expression as we have done before.
2. Apply the binomial theorem to resolve the exponent, and then, differentiate the resulting expression as we have done before.
If we set forth with either of these approaches, we are likely to deal with cumbersome computations and messy terms. It almost feels like we could use a better alternative. Well, here’s another option:
3. Use the chain rule to compute the derivative directly.
So, this is precisely where the chain rule comes in: to make our calculus lives easier. Now that we have a rough understanding of where the chain rule comes into play, let me show you an intuitive approach to applying the rule next.
How to Intuitively Apply the Chain Rule
As we established earlier, the part that makes this function a little bit scary is the computation of the expression (x² + 5) raised to three halves. Well, what if we skipped that computation, and replaced (x² + 5) with, say, ‘u’? That’s right, we start the path to applying the chain rule with the following substitution:
y in terms of u — Math illustrated by the author
Now, we could just apply the power rule of calculus, we could compute the derivative of ‘y’ with respect to ‘u’ as follows:
dy/du — Math illustrated by the author
Next, we could differentiate ‘u’ with respect to ‘x’ (again by applying the power rule) to get the following result:
du/dx — Math illustrated by the author
Now, all we have to do to obtain the derivative of ‘y’ with respect to ‘x’ is multiply the two results above. This, in essence, is how the chain rule is applied:
dy/dx using the chain rule — Math illustrated by the author
That was easy, right? When you consider the alternatives such as applying the binomial theorem, the chain rule makes our lives much easier.
Most calculus users would be content with this level of understanding. But let us go one step deeper to understand why the chain rule of calculus works the way it does.
The Mathematical Framework Behind the Rule
When it comes to useful calculus tools, the chain rule is right up there. One tends to appreciate its usefulness the more and more one deals with tricky functions. While we are on the topic of tricky functions, the function ‘y’ we just solved is known as a ‘composite function’.
In other words, it is a function of a function. The term within parentheses (x² + 5) is called ‘inside function’, and the exponent (3/2) outside is called ‘outside function’. In the context of these two functions, what the chain rule actually does is as follows:
Step 1: Differentiate the outside function with respect to the inside one (treating it as one independent variable)
Step 2: Multiply the above result by the derivative of the inside function with respect to ‘x’.
If there are several layers of functions, you could just apply the above steps recursively, and they would work just fine. The chain rule is essentially called so because it lets you compute a chain of derivatives and multiply them by each other to get the final result.
Final Thoughts
Although there are rigorous mathematical proofs to show why the chain rule works, I prefer a brilliant yet simple analogy from Martin Gardner:
Consider three kids A, B, and C. If A is growing twice as fast as B, and B is growing thrice as fast as C, how fast is A growing with respect to C?
If you think about it for a bit, you would realise that if two rates are related by a common variable that is the independent variable in one rate and the dependent variable in the other, we could just multiply the rates to get the answer. In other words, A is growing six times as fast as C.
If you are interested in discovering (or rediscovering) the joy of calculus from basic first principles, watch this space for more calculus essays in the future!
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