![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=1738816856-tzxtIrn1bTY4SaUuKdrSMfSrEMBL7JuB-0-a1cce1a3d24aed05ecb7d15d31e4eb0f)
The diagramatical representation of the curve is as follows:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_221.jpg?sign=1738816856-5E3rOAHCnUkb8rYOTKx4dDvsRwPlX7Bh-0-4487302c92b078e0df947e2a7c4aa744)
This can also be written as follows:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1775.jpg?sign=1738816856-YgVj4KCqs9v2CBmqzh3Tw79qMSc0VeYC-0-d99dd7b62931351a91eae4fbb91caa8c)
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=1738816856-7YQJgwox26WOjlQSKiFL63wcFQ0Hcj7C-0-a3e3924d5a802915e5598bae506dadf4)
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=1738816856-1wEgB51W5Dxg5DPJBGyDSMKGfhXUX0fx-0-d33979be1b18eed95e7b746887678418)
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=1738816856-nVXdXaVfMjnloiJFDkYq7sRzcN9zHr6N-0-65a9311e058d14bff4fd728605884960)
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=1738816856-77jxVFvbpvfsURyhNnciZMFTsciTYWkw-0-e933a4a505d97a42f4539c9e474d0375)
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=1738816856-rnVuevpKtBG9YAKsjft08nGo1NIxDC8R-0-9d888adb096be212a006f097fac0a409)
Then, we get the following property:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1708.jpg?sign=1738816856-KWCQ55XE8dyJKik1YFSLqO3wGEIHaqgu-0-d84f218a1de24539b448220477ecc5dc)
This property only works for functions that are continuous and have adjacent intervals.