[music] How does information about the derivative connect back to information about the original function. There is a technical tool that connects this differential information just to the value of the function and that tool is the mean value theorum. Well here's a statement of the mean value theorem. Suppose that f is continuous on the closed interval between a and b, and it's differentiable on the open interval a b. So that's the setup. F is a pretty nice function. Then there exist some point in between a and b, so a point in the interval a b. So that the derivative of the function at the point c, is equal to this. Which is really calculating the slope between the point a f of a. And b f of b. That statement seems really complicated. Let's try to boil that down to a statement we can really believe in. Well, here's one interpretation. If that function is giving you position and the input to that function is time, so that the derivative of that function is your velocity, then that formula is saying that your average velocity is achieved, at some point instantaneously. Right? That fraction, that difference ratio, is calculating the average velocity. And instantaneous velocity is the derivative. And the mean value theorem is saying that those are equal at some point in between. Let's go back now to the official statement of the mean value theorem. So here again, is the statement of the mean value theorem, right, a nice enough function that there's some point in the middle so that the derivative, your instantaneous velocity is equal to this. Which is, you know, if you like calculating your average velocity. We can take a look at this from a graph as well and might help even more. All right here's the graph of just some function that I've made up. And I've picked points a and b and it's certainly a nice enough function. I mean it's a continuous function a differentiable function, and I've picked points a and b. And here's f of a and f of b and then I've drawn this red line that connects the point a f of a and b f of b. And the slope of that line is exactly what this quantity calculates. All right, so I'll label this as the slope of that secant line. Now, if asserting the existence of some point in between, where the derivative has the same value as the slope of this secant line you know, it just sort of looks like, from this picture, maybe that point is here. And, yeah, it looks like if I draw a tangent line to the curve at that point, the slope of that tangent line, which is the derivative at the point c, is the same as the slope of that red secant line. Right? So, in the statement of the mean value theorem, this f prime of c, that's the slope of the tangent line. To the graph of the function at the point c, and this statement is asserting that the slope of tangent line at some point in between is equal to the slope of the secent line between a f of a, and b f of b. The mean-value theorem is often told as a story about somebody driving a car. Well here's the story. At noon, you're in some city A, and at 1 p.m. You're driving your car and you've arrived in a city B, which is 100 miles away from city A. You're driving your car and you've arrived in a city B, which is 100 miles away from city A. Now what does the mean-value theorem say? Well, the Mean Value Theorem tells you that at some point in between, the derivative is equal to the slope of the secant line. Which in this story means, that at some point during your journey, your speedometer. Said 100 miles per hour. Your speedometer's reporting your instantaneous speed, right? That's this, the derivative of your position with respect to time, at some point in between. And I'm claiming that at some point it said 100 miles per hour, and that's because your average speed was 100 miles per hour, right? In one hour you traveled 100 miles and that's exactly what this difference quotient is calculating. So at some point along your journey, you must have exceeded the speed limit. Alright, so all this is very interesting, the mean value theorem, really great but what is this used for, how does the mean value theorem actually help us understand anything about a function once we know something about its derivative. Well, here's one very important application; it's a theorem. You've got some function f and it's differentiable on some open interval and on that interval the derivative is identically zero, so the derivative is just zero no matter what I plug in. Then that function is constant on that interval. So it's a really exciting result, because it's relating information about the derivative back to information about the value of the function. It's saying that if the derivative is equal to 0, that function only outputs one value. It's a constant function. So let's prove this statement using the most valuable theorem, the MVT, or the mean value theorem. Well here we go. So I want to prove this and what I'm going to do is I'm going to pick two points, I'll call them a and b, in the interval. And since f is differentiable on the whole interval and I've picked a and b inside that interval, this is actually enough to guarantee that the hypotheses, the Mean Value Theorem, applied. The function's continuous on the closed interval and differentiable on the open interval a b. Okay, now that means value theorem applies. So f of b minus f of a over b minus a is equal to the derivative of f at some mystery point c in between a and b. But no matter where I evaluate the derivative the assumption here is that the derivative is identically 0. So that is equal to 0. This means that no matter which a and b I pick f of b minus f of a over b minus a is equal to 0. Now how can a fraction be equal to 0? The only way the fraction is equal to 0 is if the numerator's equal to 0. So that means that f of b minus f of a is equal to 0. And now, if I just add f of a to both sides, I conclude that f of b is equal to f of a. What I'm really saying here, is that no matter which a and which b I pick, f of a is equal to f of b. So, f, is a constant function, right? Any two output values are the same so there must only be one output value. Which is exactly what it means to say the function is constant.