10.1 Definition of the derivative
For a single-variable function, e.g. , the derivative tells us the "gradient" at any given point on a function. It can also be thought of as a ratio which specifies how much the value of changes when we change .
Another way to think about the gradient is to think about the slope that the tangent 11 1 A tangent to a curve is a straight line which touches the curve at only a single point. to the curve at a given point would have. This is the same as the gradient at that point.
For example, in the curve below, the straight line (in grey) is a tangent to the curve at the point .
The derivative gives us a formula for the gradient of a tangent to the curve at any point on the curve 22 2 Technically, the derivative of some functions are not defined for the whole function, but that’s not relevant here.. It initially looks difficult to compute this. A good approach is to attempt to approximate this.
First, let’s think about what we’re trying to find. The gradient of a straight line which goes through the points and is given by the formula below. 33 3 This is explained further up in the document. TODO: actually explain this
Because we don’t know how to find the gradient at one point on the curve, a good way to approximate this is to find the gradient of the curve using points which are close to each other.
Let’s pick some points and work out the corresponding gradients.
As we pick values of which are closer and closer to the point at which we are trying to find the gradient, it is clear that the gradient gets closer and closer to . The lines we draw (if you sketch them) 44 4 Or, if you look at these diagrams. also become closer and closer to the tangent line.
This is how we compute derivatives, but before we can do that, we need to introduce some new mathematics, called the "limit." The idea of a limit is that it gives us the value of a function, as the independent variable approaches a given value.
Which means that as we get close to (but not necessarily, at ) the value of the function tends to . Limits are most useful for functions where we don’t know the value at a given point, but we do know the values around that point. For example, suppose we had a function , except at where it was undefined. In that case is undefined, but .
The derivative of a function , is defined as a limit.
Let’s work out the derivative of at any point on the curve.
This gives us a formula for the gradient anywhere on this polynomial!
We can write the derivative in a number of ways. The best55 5 Fight me. is
Where "" means a really small change in (or an infinitesimal of ), and "" means (you guessed it) a really small change in (or an infinitesimal of ).
Note that the variables don’t have to be and ! They could be any function and its dependent variable, for example if we had a function we could write its derivative in either of the forms below. Note that the second form is a handy way for denoting the derivative of an expression.
There are also a bunch of other ways which are usually worse, but are still used (usually for brevity, because they’re much shorter than writing out every time).
Again, the function could be called something other than . For example in the case of we’d write