![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=1739617456-mPFvkttdwBpUlOdgJWQgV1pbvH6DN8Jb-0-68d43157eddca5b86f3b2903897d770b)
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=1739617456-5eDGnczLRv2mSEe6zQQHwzc4F3uPAxh7-0-2dd16502e95adbc3884a62e22490f630)
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=1739617456-WSHo3W2xVXQuifLjt3ovYvKuKIj5PcvJ-0-6d0900e3d9ec2a42906694be32edb15e)
And by plugging in the original value , we get the following:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_137.jpg?sign=1739617456-Er3funPOuvytpe3IpnRB0T5Lg2fRrHZx-0-11ceb89c7aefd228b9b92dc466c466af)
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=1739617456-R6PzwsGlZF0ghd4dalAQrITW4IGAaXIN-0-c52344d17818d1b0f025532b65a444b3)
If , then the following applies:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1077.jpg?sign=1739617456-hf29PrBJnYkvCH1eYolYOMDlSp5kXonq-0-70230a8c74fd563ca30ffd7b7f07567b)
That equation might be looking somewhat similar to you. And it should. It is the chain rule from differentiation.