![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=1738883471-sU40vQPNnlxLn7UlNamMdxHiVEg0NUl5-0-ff44e3bbffe74d7568bbe1a2bdcd1950)
The diagramatical representation of the curve is as follows:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_221.jpg?sign=1738883471-H5AIWBR6pgOJlflIEJyzuWdXEXhLQXEJ-0-b352de7245b24b116c94f25565fc25a7)
This can also be written as follows:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1775.jpg?sign=1738883471-mzK3qJMKZaIzG8okXGCfUfs7WZBtWZIL-0-dce7b4ecb28045e1b03fe271f7f11bf0)
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=1738883471-Bp9AUp7EK0TjIClM5aeDfJ6Rkc2n1fEC-0-2716990e2a7107b1cb9743e85c4f54a2)
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=1738883471-ewsNwnvRr2HVQ3ZmbyL1Wkcy30ZIwGDM-0-3d5d1b64d348cf97e546083174bfeb98)
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=1738883471-plbpvxvODQ08SeS0bMETzqpA1mKL6ZxY-0-ae17426f25c0a1be876995fb33882d77)
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=1738883471-tG15N0HiYstUh0JW3Re1gDsX5BPJMt3S-0-ab972e64a6b006d6fd44b380b4d2b5a2)
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=1738883471-sQ46BWrgioME2LZ92rQ94UlKQZluE2yU-0-8f9d25e5ec42a94a668ee0c8bcdb9027)
Then, we get the following property:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1708.jpg?sign=1738883471-MvutkNbFQQiCwqSOcq3neFUKxXLnjSTX-0-f816dbed408e35c5d4e3485611da46d3)
This property only works for functions that are continuous and have adjacent intervals.