![Hands-On Mathematics for Deep Learning](https://wfqqreader-1252317822.image.myqcloud.com/cover/81/36698081/b_36698081.jpg)
Substitution rule
Obviously, being able to find the antiderivative of a function is important, but the anti-differentiation formulas do not tell us how to evaluate every type of integral—for example, what to do when we have functions such as the following one:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_525.jpg?sign=1739695805-8HFyL3qNq2kMdSoOarYDH2hNTD2hin34-0-a20be9d852d1a522ee2d6707492d1ed4)
This isn't as straightforward as the examples we saw earlier. In this case, we need to introduce a new variable to help us out and make the problem more manageable.
Let's make our new variable u, and , and the differential of u is then
. This changes the problem into the following:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_431.jpg?sign=1739695805-nMsnpude8rTawU38dBvTsEslFzCcEzEb-0-554282373001f4ee786de146439f41ab)
This is clearly a lot simpler. The antiderivative of this becomes the following:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_315.jpg?sign=1739695805-hel1cDvTmY4pOZiU8r2IW82M4n9NZtf3-0-6a47944ec49aec37b83dc70bbe97639e)
And by plugging in the original value , we get the following:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_137.jpg?sign=1739695805-KxZ9AnIa0mPNBfohvQkSF0fLTGjLeNly-0-cf6203eae2441873ed0aad8bdddf9100)
And there we have it.
This method is very useful, and works when we have problems that can be written in the following form:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_888.jpg?sign=1739695805-N5byph2c2wSrlQnZyXX4vo9Q3wByco6m-0-f9e43315c2a42768502c622caa3431e9)
If , then the following applies:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1077.jpg?sign=1739695805-zuQzeg4PeUv72qWuZ5MF1kShB4tXv2Xv-0-b6f8c20eb25799dc0d718020f2f1145e)
That equation might be looking somewhat similar to you. And it should. It is the chain rule from differentiation.