![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=1739101955-W4tC4fNkmOnvN2EU9NLaMrSHbIYHgge1-0-1c7436bd67c4f3784836c0f8f15d9170)
The diagramatical representation of the curve is as follows:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_221.jpg?sign=1739101955-gOTms4sbRQilQSEb8MjONOVB9UOdcr06-0-d38a2e2844e3a0bdd78de7e923d36d6c)
This can also be written as follows:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1775.jpg?sign=1739101955-toOOiF7r0mRKYl7zXQ3eGPWzCshIQJIA-0-25cdc8e06b617bc033286ab427692fa9)
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=1739101955-s3621hcwSnIq5ZhFsgiyzKhBzhdz3dUX-0-351c5ce32589293cc334f858db82f13d)
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=1739101955-hVa5POPqauh9ykZnSwg8fjgFhTmc09Ac-0-352356005b65478a257638666384c279)
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=1739101955-tnDyodajPdg9ecArMgVMvDi4V2XhH5Z2-0-f51ad41959952959c746ea6b3bfe835b)
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=1739101955-M85PmAFvWZ3YqxEXCvkeILbK8kDFNaeW-0-22e25f1e7058cca20cb9181d0b49c66f)
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=1739101955-7yEYuTrUNTJidjonJC6BkVsj86DhqaHV-0-1fc1f7a076f53a474625e1d3915f756f)
Then, we get the following property:
![](https://epubservercos.yuewen.com/FF11E0/19470372701459106/epubprivate/OEBPS/Images/Chapter_1708.jpg?sign=1739101955-dQIF3HNIyNzg39lrpiw3tRqEZIcmkTor-0-1b03ccd2708aae2ef669c1f202332f80)
This property only works for functions that are continuous and have adjacent intervals.