Functions defined by definite integrals (accumulation functions) | AP Calculus AB | Khan Academy
You've already spent a lot of your mathematical lives talking about functions. The basic idea is: give a valid input into a function, so a member of that function's domain, and then the function is going to tell you for that input what is going to be the corresponding output. We call that corresponding output f of x.
So, for example, there are many ways of defining functions. You could say something like f of x is equal to x squared. That means that whatever x, whatever you input into the function, the output is going to be that input squared. You could have something defined like this: f of x is equal to x squared if x is odd, and you could say it's equal to x to the third otherwise. Other y's. So if it's an odd integer, you just square it, but otherwise, for any other real number, you take it to the third power. This is a valid way of defining a function.
What we're going to do in this video is explore a new way, or potentially a new way for you, of defining a function, and that's by using a definite integral. But it's the same general idea. So what we have graphed here, this is the t-axis, this is the y-axis, and we have the graph of the function f. Or you could view this as the graph of y is equal to f of t.
Now, what I want, and this is another way of representing what outputs you might get for a given input here: if t is 1, f of t is 5; if t is 4, f of t is 3. But I'm now going to define a new function based on a definite integral of f of t. Let's define our new function—let's say g, let's call it g of x. Let's make it equal to the definite integral from negative 2 to x of f of t dt.
Now pause this video, really take a look at it. This might look really fancy, but what's happening here is given an input x, g of x is going to be based on what the definite integral here would be for that x. So we can set up a little table here to think about some potential values.
So let's say x, and let's say g of x right over here. So if x is 1, what is g of x going to be equal to? All right, so g of 1 is going to be equal to the definite integral going from negative 2—now x is going to be equal to 1 in this situation, that's what we're inputting into the function—so 1 is our upper bound of f of t dt.
And what is that equal to? Well, that's going to be the area under the curve and above the t-axis between t equals negative 2 and t equals 1. So it's going to be this area here. And since it's on a grid, we can actually figure this out. We can actually break this up into two sections.
This rectangular section is three wide and five high, so it has an area of 15 square units. And this little triangular section up here is two wide and one high—two times one times one half, area of a triangle—this is going to be another one. So that area is going to be equal to 16.
What if x is equal to two? What is g of 2 going to be equal to? Pause this video and try to figure that out. Well, g of 2 is going to be equal to the definite integral from negative 2—and now our upper bound is going to be our input into the function—to 2 of f of t dt.
So that's going to be going from here all the way now to here, and so it's the area we just calculated. It's all of this stuff which we figured out was 16 square units, plus another 1, 2, 3, 4, 5 square units. So, 16 plus 5, this is going to be equal to 21.
So hopefully that helps, and the key thing to appreciate here is that we can define valid functions by using definite integrals.