2.5 Integration
There are two core questions with which calculus is concerned. One is generalizing the idea of slope to nonlinear functions. The other is how to calculate the total contribution of some entity, where the contribution at any given instant is given by a function. As with slopes, this is trivial if the function is linear and becomes much harder when the function is nonlinear. For example, if someone burns 700 calories/hr while exercising, and they exercise for half an hour, then they burn 350 calories. But what if their exercise intensity varies over time, with describing the rate at time (in minutes)? In this case we would have to add the contributions:
However, this still doesn’t really answer the question, as it assumes is constant over the first minute, then allowed to change, then constant again for the next minute, and so on. We could get a more accurate answer by summing up these contributions at each second, and still more accurate by summing over each nanosecond, and so on. The limit of this process is known as the “integral”, which we define below.
As noted earlier, this comes up constantly in statistics when calculating probabilities and expected values.
Definition
Let the interval be partitioned as follows:
let be any point in , , and . Then the integral of from to is
if this limit exists. If the limit does exist, then is said to be integrable over .
Relating this definition to our example above, represents the time resolution and represents moving from minutes to seconds to nanoseconds and so on.
The above definition assumes that ; if the integral is defined as
How can we know if a function is integrable?
If is either continuous or monotonic on , then is integrable on .
If is jumping up and down discontinuously, then anything can happen – may or may not be integrable, and we would need a deep dive into the theory of integration to really answer this question. Thankfully, as a first-year graduate student, you will only ever need to integrate continuous functions.
Properties of integrals
If all of the following integrals exist, then they obey these rules:
If we further suppose that , then we also have
- If for all , then .
- If for all , then .
- If for all , then
Finally, if , then
Fundamental theorem of calculus
Somewhat remarkably, the two branches of calculus (differentiation and integration) are closely related. This relationship is known as the fundamental theorem of calculus:
If is continuous on , then
is continuous and differentiable and .
In other words, if we integrate a function, then differentiate the result, we get back to the original function. The same is true if we start with differentiation:
If is continuous on , then
where is any function that satisfies .
Functions satisfying are particularly important, and discussed below.
Antiderivatives
A function is called an antiderivative (or a primitive) of if for all . This can also be written
This “equation” means the same thing, that for all . However, it is not truly an equation since there are an infinite number of functions that satisfy for all . For example, both of the following are correct:
This is potentially confusing because the left hand side is the same in each case, but the right hand side is different – hence the scare quotes around “equation”. Some people prefer to write
to emphasize this point. Whether you do this or not is up to you, but either way, it is critical to understand the distinction between and . The first quantity (with the integration limits) is a known as a definite integral, and it is a number. The second quantity (without the limits) is known as an indefinite integral, and it is not a number – it is a function (or more precisely, a collection of an infinite number of functions)4.
So what’s the point of antiderivatives/primitives/indefinite integrals? If we have one, we can easily calculate (definite) integrals. For example,
Note that I get the same answer regardless of which antiderivative I use (i.e., it’s not important to find the collection of all antiderivates…any antiderivative is fine).
In other words, we can integrate any function if can find an antiderivative of it. How do we find these antiderivatives? Unfortunately, this is often challenging and sometimes impossible. However, there are several techniques for doing this, which will be discussed in a later section.
Students sometimes have a tendency to think of the indefinite integral as the “true” integral and the definite integral as an application of it. This is completely backwards. The indefinite integral is actually a statement about derivatives. We don’t even need to define the concept of an integral in order to say that . It is only once the integral has been defined and the fundamental theorem of calculus has been proven that indefinite integrals have any purpose. The “definite” integral defines the concept of the integral; the only reason we add the “definite” modifier to distinguish them from indefinite integrals.↩︎