Earlier we learned how to find the area underneath the curve of a function by setting up a definite integral. But our area calculations can get a bit more complicated than this, because we won't just be asked to find the area underneath a single curve, but also the area in between two curves. Now luckily, because of our knowledge of definite integrals and the area that they represent, I think you'll find this process to be pretty straightforward. And I'm going to walk you through exactly how to set it up here. So let's go ahead and get started by jumping right into our example.
Here, we're asked to find the area of the region in between these two functions, f of x and g of x, that we see on our graph here, specifically from x equals zero to x equals one. Now whenever we're faced with these sorts of problems, finding the area between two curves, we always want to start by first graphing our functions and then shading the area in between them so that we can fully visualize what's going on with our problem and avoid making any errors. Now we already have our two functions on our graph here and we know that the area that we want to find in between them is right here specifically on that interval from zero to one. So how exactly can we go about finding this area? Well, thinking back to finding the area underneath a single curve by setting up a definite integral, let's go ahead and break this down a little bit.
If I just wanted to find the area underneath this function on the top, this f of x, I could go ahead and set up a definite integral in order to do so. And I could do the same exact thing for my function g of x on the bottom here, setting up a definite integral from zero to one to find the area underneath that curve there. But, in order to find the area in between them, what do I need to do? Well, looking at these two areas here, if I find the area underneath that function f and then I subtract off the area underneath my function on the bottom here, g, that will leave me with the exact area that we're looking for in between the two curves of our function. So that's exactly what we want to do here.
We want to go ahead and integrate that top function minus that bottom function. Now if we look at this in integral form here, we wanna take the definite integral on our specific interval from a to b of f(x)dx minus the definite integral on that same interval of g(x)dx, so subtracting off that integral of the bottom function from the top function. Now based on our integral rules, we can combine this all into one integral, the integral from a to b of f(x)−g(x)dx. And this would give us the area in between our two functions, f of x and g of x. So let's actually go ahead and set this integral up for two functions here so that we can actually find the area that we're looking for.
So this specific area is gonna be from zero to one, setting up the bounds on my definite integral here. We were given those bounds originally in our problem, and we can see based on the area that we shaded that our bounds should be zero and one. Now we're going to take that top function, so here that's four minus x squared, and then we're going to subtract off that bottom function. Here that's two x plus one. Then integrating here with respect to x.
So we have our integral fully set up and now we just need to evaluate it to actually find that area. Now I'm going to go ahead and distribute this negative into my parenthesis here that will give me negative two and negative one. And I'm going to rewrite my integrand in standard form and go ahead and combine like terms. So this is the definite integral from zero to one of negative x squared, writing this in descending order of power, minus 2x. And then if I have a positive four and a negative one, having distributed that negative, that will leave me with a positive three.
Then, of course, integrating here with respect to x. So now that we've simplified this, we can go ahead and apply the power rule to get our antiderivatives here of each of these terms. So doing that using the power rule on that term negative x squared, that's going to give me negative one third x cubed and then minus two times one half x squared applying our power rule there as well and then finally plus three x and bounded from zero to one. So now we can go ahead and apply those bounds to get an actual numerical answer here using the fundamental theorem of calculus plugging in that upper bound so negative one third one cubed. I'm going to go ahead and cancel these twos here.
So I just have a minus one squared still plugging in that upper bound, plus three times one, then subtracting off having plugged in that lower bound. If I plug zero into each of these terms, they will all work out to be zero. So we are just subtracting off zero here. And if we work this out algebraically, we will end up getting a final answer here of five thirds. This five thirds gives me the area in between the two curves of my function.
Having set up my definite integral of that top function minus my bottom function. Now it's important to note here that this method will work even if our functions are below the x axis. So we're still gonna get the correct area regardless of where those functions are located. Now, we're going to continue getting practice finding the area in between curves coming up in the next couple of videos. Let us know if you have any questions and I'll see you there.