![Hands-On Mathematics for Deep Learning](https://wfqqreader-1252317822.image.myqcloud.com/cover/81/36698081/b_36698081.jpg)
Integrals
So far, we have studied derivatives, which is a method for extracting information about the rate of change of a function. But as you may have realized, integration is the reverse of the earlier problems.
In integration, we find the area underneath a curve. For example, if we have a car and our function gives us its velocity, the area under the curve will give us the distance it has traveled between two points.
Let's suppose we have the curve , and the area under the curve between x = a (the lower limit) and x = b (the upper limit, also written as [a, b]) is S. Then, we have the following:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_168.jpg?sign=1739147180-JfDOQhkv2sf3ZojAb8otD71nV1f39N2m-0-365aa76b22a2bf15734e7b10e0759bd7)
The diagramatical representation of the curve is as follows:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_221.jpg?sign=1739147180-Y64VjaKA5a8EVJzxvFqBtnmXuvKrwdZe-0-242ee24fb6e5b714b42e4eb128399b29)
This can also be written as follows:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1775.jpg?sign=1739147180-0h9Pft48t2eKRh7k46YApLLxf4ggGPqh-0-7ae239ca1f112637d6964fb1b5d9f217)
In the preceding function, the following applies: , and
is in the subinterval
.
The function looks like this:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1588.jpg?sign=1739147180-ql4Kloa3dyToaCqPHkWr4btcuOf50HSm-0-e7932855718e3dc9fd407d6673f54e89)
The integral gives us an approximation of the area under the curve such that for some, ε > 0 (ε is assumed to be a small value), the following formula applies:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_890.jpg?sign=1739147180-O2YvjfOzboaCezZt0Q3UDz6tj47d8j6Q-0-37364b09834482f69a25bd251615cb76)
Now, let's suppose our function lies both above and below the x axis, thus taking on positive and negative values, like so:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_368.jpg?sign=1739147180-axqlSyhAJVjbQPj4ENyZF01mgH4GgYda-0-fcdf780f4add124dae23f7cd3b265b62)
As we can see from the preceding screenshot, the portions above the x axis (A1) have a positive area, and the portions below the x axis (A2) have a negative area. Therefore, the following formula applies:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_833.jpg?sign=1739147180-DbhyIGCiFPc73L62ondHqzGhL4y7Vsxr-0-ae474e286f084223301e51f83d4e9623)
Working with sums is an important part of evaluating integrals, and understanding this requires some new rules for sums. Look at the following examples:
Now, let's explore some of the important properties of integrals, which will help us as we go deeper into the chapter. Look at the following examples:
, when
, where c is a constant
Now, suppose we have the function , which looks like this:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_128.jpg?sign=1739147180-vOkyFWNo6YdtC4macQ1JKruaa1EjMklv-0-05bd261b3ae1be0416b7040164cca3d5)
Then, we get the following property:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1708.jpg?sign=1739147180-81lnCR1YvYZOoNXSrtGzCiAtlN09jDYe-0-1ee28226fd28fbe520adb0752941c066)
This property only works for functions that are continuous and have adjacent intervals.