The term derivative comes up a lot in math, science, engineering, economics, and finance. It is a powerful tool in the real world, yet it has profound philosophical implications as well, answering questions that go back as far as ancient Greece. In this section, we will combine the elements from section 2.1 with the notion of limits which we discussed in Chapter 1 to build the derivative.
For this section, we are going to consider two points on a curve:
The symbol (read “delta x”) just stands for the horizontal distance separating the two points. The equation for the secant line connecting the two points is:
where the slope is given by:
This expression for the slope of the line is going to be the main subject of this section. Let’s put together everything we have so far into an animation. For this demonstration, we’ve chosen the function . Below, you can move the value of
around with the slider. The value of
(denoted as
in the animation) is fixed to 1 for now.
Notice that as you change , the slope changes too. Now, let’s combine this with the idea of a limit. As we shrink the value of
, the secant line at
approaches the tangent line! You can explore this in the next animation, which allows you to change both
and
(again, written as
in the animation).
This is exactly the notion of the derivative. The derivative of a function at a point
is the slope of the secant line in the limit that
. Let’s formalize this with a definition:
The expression (read “d-f-d-x”) is called the derivative of
with respect to x. Think of it as an instantaneous rate of change; it is the ratio of the infinitesimal change in
to the infinitesimal change in
. Notice that this is a new function of
. We should expect this because the slope of the tangent line changes as we change
in the animation above.
You might ask if we are even allowed to do this. After all, what does it mean to take the ratio of two things that are infinitely small? Even more problematic is the fact that if we plug in 0 directly into the definition of the derivative, we get . This calls into question whether or not the limit exists at all! We will need to check this carefully every time we encounter a new function. Luckily, we will find that certain rules apply generally to many functions of the same class. (For example, we will soon find a single rule to calculate the derivative of any polynomial function.)
Let’s start with the example from the animation. Our function is . Let’s calculate the derivative using the definition:
After cancelling out all the terms that we can in the numerator, every term that remains has at least one power of . This allows us to cancel the
in the denominator, solving the problem of dividing by zero. The left over factor of
can then be set to 0 when we take the limit. It is very important to fully reduce the fraction and eliminate the
in the denominator before you evaluate the limit. This will not always be straightforward, as we will see later. The moral of the story is to be very careful when handling this limit.