### Video: Integrals and the Fundamental Theorem of Calculus

#### Video links

#### Transcript of video

We have now encountered two types of integrals: the indefinite integral, here written as the integral of $f(t)dt$, and the definite integral, here written as the integral from $a$ to $b$ of $f(t)dt$. Although we write the integrals in similar ways, the two integrals are two quite different objects.

The indefinite integral is the solution big $F(t)$ to the pure-time differential equation $dF/dt = f(t)$, to which we have to add an arbitrary constant. (The undetermined constant is why we use the term indefinite. ) The definite integral, on the other hand, is the total change from time $t=a$ until time $t=b$ when the rate of change is given by the function $f(t)$.

The integrals are defined in quite different ways. The indefinite integral is defined in terms of an *anti-derivative*. The derivative of big $F$ is little $f$; to get big $F$ from little $f$, we have to undo the differentiation. The definite integral, on the other hand, is defined in terms of a limit of Riemann sums. We chop up the interval $[a,b]$ into small sub-intervals to estimate the total change in that interval, then take the limit as the number of sub-intervals goes to infinity.

Moreover, when we evaluate the integrals, we get two quite different objects. The indefinite integral gives us a function; actually, it gives us a whole family of functions, because we have the arbitrary constant $C$ which can take on any value. The definite integral, on the other hand, simply gives us a number. What is the total change from $a$ to $b$? The definite integral spits out the single number telling us what the total change is.

Especially from the definitions in terms of an anti-derivative versus Riemann sum, it's hard to even see how the integrals could have anything to do with each other. It turns out, though, that there is a fundamental relationship between these two integrals. That is what the fundamental theorem is all about.

To introduce the Fundamental Theorem of Calculus, let's think about a specific example. Let's think of $f(t)$ as being your walking speed at time $t$. Then the indefinite integral, or antiderivative, is the function that gives your position at time $t$. Remember, the indefinite integral includes an arbitrary constant $C$. Just knowing your walking speed doesn't give us enough information to pin down your exact position. But, when we know your initial position, or your position at time $t=0$, then we can determine the value of $C$.

For the walking example, the definite integral is the total distance walked from time $t=a$ to time $t=b$.

In terms of this walking example, the Fundamental Theorem of Calculus is a statement of this obvious fact: the distance walked from time $a$ to time $b$ is just the change in the position from time $t=a$ to $t=b$. Or, we could say that the distance walked is the final position, at time $t=b$, minus the initial position, at time $t=a$. In other words, the definite integral is the change in the indefinite integral.

Let's make the example concrete with specifying your walking speed. Let's say your walking speed at time $t$, or $f(t)$, is $1+3t$. If we let time be measured in hours and distance in kilometers, this means you started walking at 1 km/h and accelerated by 3 km/h every hour.

We start by taking the indefinite integral, or anti-derivative, of $f$ to calculate your position at time $t$. Let $X(t)$ be your position at time $t$, then $X$ satisfies the pure-time differential equation $dX/dt = 1 + 3t$. To calculate your position, we also need to specify where you start. We'll use the initial condition that you are at kilometer 5 when $t=0$.

We calculate your position by taking the integral of $f(t)dt$, that is, the integral of $(1+3t)dt$. The anti-derivative is $t+3/2 t^2$, plus the obligatory constant $C$. We nail down the constant using your initial condition. Plugging in $t=0$, we calculate that $X(0)$ is $C$. The initial condition is that $X(0)$ is 5, so we conclude that $C=5$. $X(t)$, your position at time $t$, is $t + 3/2t^2 + 5$.

Turning to the definite integral, we want to compute the distance your traveled in the first two hours. This distance is the integral from 0 to 2 of $f(t)dt$, or the integral from 0 to 2 of $(1+3t)dt$. Recall that this integral is defined in terms of a limit of Riemann sums. But, let's not calculate a Riemann sum; instead we'll use the Fundamental Theorem of Calculus, which says the definite integral, or the distance walked, is just the change in the indefinite integral, or your position. The distance you walked in the first two hours is just your position at time 2, i.e., $X(2)$, minus your position at time 0, i.e., $X(0)$. We just plug in numbers to calculate these values. Using the formula for $X(t)$, we calculate that $X(2)$ is 13. $X(0)$ is your initial condition, which is 5. The difference is 8. You walked 8 km between time $t=0$ and time $t=2$.

This calculation was quite a bit easier than using Riemann sums, but let's review how we would calculate the distance walked using Riemann sums, to help us be grateful for the Fundamental Theorem of Calculus and the work it saves us. Here is a plot of $f(t)$ in green, with your walking speed, or rate, starting at 1 km/h and increasing steadily to 7 km/h after two hours. The graph shows a left-handed Riemann sum with 5 intervals, which estimates your speed as increasing in steps from 1 km/h for the first interval to 5.8 km/h for the last interval. When we add up these 5 different rates, multiplied by the time interval width of 0.4 hours, we get an estimate of 6.8 km. This estimate is a bit short of the real answer of 8 km for an obvious reason; we underestimated your speed in all intervals. We can also try a right-handed Riemann sum, estimating your speed in each interval by your final speed. In this case, when we compute the sum, we get 9.2 km, which now overestimates the distance you walked. If we increase the number of intervals, we get a better answer, but with much more work. By the time we calculate 100 intervals, we are within 0.06 of the correct answer, for both left and right Riemann sums. To actually get to 8 km, we'd have to increase the number of intervals to infinity.

The moral of the story is that the Fundamental Theorem of Calculus can save you a lot of work. If you can find the anti-derivative of $f(t)$, you don't need to compute Riemann sums. Just use the Fundamental Theorem of Calculus instead.

OK, we have to admit that, in general, that's a big “if.” Finding an anti-derivative of a complicated function $f(t)$ could be difficult, or even impossible. But, let's not get discouraged about such sobering realities. We'll just focus on simple enough functions $f(t)$ so that we can compute the anti-derivative and use the Fundamental Theorem of Calculus.

Let's take one more look at our calculation that determined you walked 8 km. To calculate your position in the first part, we needed the initial condition $X(0)=5$. What role did this 5 play in the final answer of how far you walked. I highlighted where the 5 appeared in the calculation. The arbitrary constant $C$ became 5 so that the position $X(t)$ had 5 added at the end. However, when calculating the distance walked, notice how the 5 appears in both terms; it is added to both $X(2)$ and $X(0)$. Since we are computing the difference between those two terms, the 5 is both added and subtracted from our final answer. The 5's cancel out.

If, for example, we changed the initial condition to $X(0)=7$, the indefinite integral $X(t)$ changes to add 7 at the end. But the definite integral doesn't change at all. It is still 8, as the 7's cancel each other out. The same thing is true if we use an initial condition of $-11$. The initial condition gets cancelled out, leaving us 8 for the distance walked. We could have even left the initial condition as the arbitrary constant $C$. When using the Fundamental Theorem of Calculus to calculate a definite integral, the value of the arbitrary constant doesn't matter. We can ignore the constant $C$. Usually, for simplicity, we'll just let $C$ be zero.

We summarize the Fundamental Theorem of Calculus as follows. Here, I wrote it using the variable $x$ rather than the variable $t$, as that is more standard. Let's say you want to compute the definite integral, the integral from a to b for $f(x)dx$. Then, according to the Fundamental Theorem of Calculus, you just need to find any indefinite integral, or anti-derivative of little $f(x)$, which we'll call big $F(x)$. The definite integral is just the difference in the indefinite integral; it is big $F$ evaluated at the final point $b$ minus big $F$ evaluated at the initial point $a$. Since this $F(b) - F(a)$ occurs all the time when evaluating definite integral, we introduce a shorthand notation. We write it like this, with a vertical bar and writing the limits of integration $a$ and $b$ just like we do for the integral. We still read it the same way, so we'd say that the definite integral of little $f(x)$ is big $F(b)$ minus big $F(a)$.

We close with one more example. Let's calculate a definite integral of an exponential, the integral from $-1$ to $2$ of $e$ to the $3x$ $dx$. The first step is to calculate the indefinite integral of $e$ to the $3x$. It's easier to calculate the anti-derivative of $3$ times the exponential (because when we differentiate $e$ to the $3x$, a 3 will come down), so we multiply and divide by 3, writing the integral as one-third of the integral of 3 times the exponential. The anti-derivative of 3 times $e$ to the 3x is simply $e$ to the $3x$, and the one-third comes along for the ride. Since we are calculating the indefinite integral, we have to remember to add the arbitrary constant $C$. Wait a minute, we're trying to calculate a definite integral, so the arbitrary constant doesn't matter; it will cancel out in the end. We can choose any anti-derivative, and let's chose the one where $C$ goes away. We can set $C$ to zero without any fear with definite integrals.

The second step is to use the Fundamental Theorem of Calculus. Now, it's just a matter of plugging our expression for the anti-derivative into the theorem. The integral from $-1$ to $2$ of $e$ to the $3x$ is just the change in our anti-derivative at the two endpoints. We have one-third $e$ to the 6 minus one-third $e$ to the negative 3. If we want to calculate a decimal approximation, it's a good idea to use lots of decimals until we get the final answer, so rounding errors don't accumulate. I calculated the two terms with high precision, then rounded to 5 significant digits at the end to get the approximate answer of 134.46.

In summary, the Fundamental Theorem of Calculus allows us to avoid Riemann sums when calculating a definite integral and instead calculate the change in the indefinite integral. As long as we can calculate the indefinite integral, or the anti-derivative, it makes short work of calculating the definite integral.