So at this point in the course, we should be familiar with something known as the secant line, and recall that the secant line is just a line which intersects the curve of our function at two points. So let's say we have this curve down here of the function x2, we can draw a secant line, which intersects this curve at 2 specific points. Now in this video, we're going to be learning all about this thing known as the tangent line. And while there are some similarities between the secant line and the tangent line, there are also some very key differences, and understanding these differences is going to be very important in this course. So without further ado, let's just jump right into an example to see what these types of problems would look like. So in this example here, we're told given the function fx=x2, find the slope of the tangent line at x=1. Now right off the bat, there's already a key difference I noticed with this type of problem. Notice how we are only given one value of interest, one point, x=1. For secant lines, we had 2 values that we were given because there were two points on our graph, but here, we're only given 1. And that actually is the key difference between a secant line and a tangent line. Where a secant line intersects the curve at 2 points, a tangent line touches. It only will barely touch the curve at one point.
So to understand this, well, let's go ahead and take a look at these differences down here where we can see that we have this secant line. Imagine for the secant line, we take one of these points here, and we just bring it very very close to the other point, so it approaches that value. And in essence, we would only be looking at one point on the graph. So we can visualize this by taking this secant line and having this point approach this value of x=1, having the two points converge very close together. So this is really the main idea of a tangent line. So what we could do is we can only write one point right here at x=1, and we could go ahead and draw a line that is tangent to that point. This right here would be the tangent line, and finding the slope of this line would allow us to solve this problem. Now the question, of course, becomes how exactly do we calculate this slope? Well, it turns out it's actually a very similar process to how we calculated a secant line, except since we only have one point that is approaching the other point. Recall this language of approaching we've discussed before when dealing with limits. So rather than having 2 points, we're only going to be looking at one point of interest, except we're going to have our entire function approach this limit, where we have the limit as x approaches this point of interest. So this right here is the equation for finding the slope of the tangent line. And notice how we keep our function and an x value in there because we're approaching getting very close to that value that we're looking at. So let's go ahead and see if we can calculate the slope of this tangent line. Now c is the value of interest, which I can see up here is 1. So what this means is that our c value is 1. I also see that our function is x2. So if I want to find the slope of this tangent line, it is going to be the limit as x approaches 1 of our function fx minus f1 all divided by x-1, and this again is the c value. Now to do this, I'll go ahead and take our function and plug it in for fx. So what that means is we're going to have the function x2 minus f1, and f1 is just going to be the function evaluated at 1. So we're going to have f1=12, and that's simply equal to 1. Now all of this is going to be divided by x-1. Now at this point, what I can do is try applying this limit. But notice if I take this x approaching 1 here and I plug it in for x, we're going to get 12-1 divided by 1-1, which is all just going to become 0 over 0. This is something that we're not allowed to have in mathematics. So what we need to do is find a way to simplify this and somehow get it so we're not dividing by 0. Well, what I can do is try factoring the top of this fraction, because x2-12 is the same thing as x2-1. One squared is just 1, so this is the same value. Now a difference of squares, I can factor to look like this. It would be (x+1)(x-1). I'm just using this rule for a difference of 2 squares, and all of this is going to be divided by x-1. Now from here, I can cancel the x-1s, so all I'm going to have is the limit as x approaches 1 for x+1. Now at this point, now I can take this value of 1 and plug it in for x. So we're going to have 1+1, which is equal to 2. So 2 is the solution to this problem, and that is the slope of this tangent line. So notice that we got a slope of 2 when we had the tangent line, but we got a slope of 4 when we had the secant line. That's because we have a steeper slope here since we're looking at 2 points on the graph rather than looking at just one point.
Now there is one more thing I want to mention, another difference between the secant and tangent line. When calculating the slope of a secant line, we call this the average rate of change, and I think that makes sense since we're in essence averaging these two points on the graph. But if we're looking at the slope of a tangent line, we actually call this the instantaneous rate of change, since we're looking at the slope or the rate of change at just that one value, that one point, so it's instantaneous. Now we also give this a third name, which is called the derivative. So maybe you've heard of derivatives before, but basically, a derivative is just the slope of the tangent line at one point. So this is how you can solve these types of problems, where you need to calculate the derivative, AKA the instantaneous rate of change, AKA the slope of a tangent line. So I hope you found this video helpful, and let's try getting some more practice.