It's time now to combine a number of ideas together.
By combining these three things we are going to arrive at an understanding for the slope at a point.
Have a play with this applet. There is one fixed point P, and another point Q. You can move Q towards P.
What you should have found is that the best way to estimate the instantaneous rate of change is to bring Q as close as possible to P. This makes the slope of the line between P and Q, really close to the slope of the tangent at P.
Let me take some time to set up the above diagram with you. I'd suggest you draw this in your book as you go.
Start with a set of axes, and the curve y=f(x). Any curve will work, but maybe for now make it a similar shape to mine.
Now, we select a point P on the curve. It will have an x coordinate of x, so the point P has coordinates (x,f(x)).
Let's suppose I want to find the slope at Point P. (we know already that this is reflected in the slope of the tangent at point P.)
Now, let's add a point Q, that is also on the curve f(x), and is some distance h units away from P (in the x direction). Then we can mark on Q, the distance h and the coordinate of Q, (x+h, f(x+h))
Now, to find the slope of the tangent at P, we could use the methods of coordinate geometry, (finding the rise and run), but doing this for many different points on the curve can get tedius. Instead, we are going to estimate the slope of the tangent at P, using the section PQ.
I can hear you screaming at me. "But wait, that isn't a very good estimation, PQ looks nothing like the tangent!" At the moment, you are correct, just wait and see though, as I introduce our idea of limits in a minute and we will get those lines a lot closer.
So let's use the slope of the section PQ.
Slope is found using \frac{rise}{run}, which we can also write as \frac{\text{change in y}}{\text{change in x}}
We can use the greek letter delta (\Delta) to indicate the words "change in", so our slope is now
m=\frac{\Delta y}{\Delta x}
We can see from our diagram that
m=\frac{\Delta y}{\Delta x} = \frac{g}{h}
Also, using the coordinates of P and Q, our change in y (\Delta y) is f(x+h)-f(x) and our change in x (\Delta x) is (x+h)-x so
m | = | \frac{\Delta y}{\Delta x} |
\frac{g}{h} | = | \frac{f(x+h)-f(x)}{(x+h)-x} |
= | \frac{f(x+h)-f(x)}{h} |
All these statements are therefore equivalent
m = \frac{\Delta y}{\Delta x} = \frac{y_2-y_1}{x_2-x_1}=\frac{f(x+h)-f(x)}{h}
I haven't forgotten... our current PQ is not very similar to the tangent at P. Here is where the mathmagic happens!
We move Q, closer to P.
Closer, and closer still
And even closer, until you can barely recognise that the distance h exists.
Mathematically we describe this imagining of h (the distance between P and Q) as getting closer and closer to 0 as a limit. We write h\rightarrow 0
The process we have just undertaken has resulted in an understanding (and also usefully) has resulted in a formula to find the slope at a point P on a curve f(x).
This formula is what is required when we are finding the derivative (which is the name we now use for the slope) from first principles (which basically means from scratch). It gives us the instantaneous rate of change at point P (x,f(x) on any curve f(x).
(We will talk more about the notations for the derivative a bit later)