In the 17th century, Fermat wanted to find the lowest (minimum) and highest (maximum) points of a curve within a certain range. Fermat noticed that at these points, the tangent lines were horizontal, and therefore the slope of the tangent line at these points is zero.
In that way, Fermat noticed that the problem of finding maximum and minimum points is related to the problem of finding tangent lines.
How to calculate tangent lines
Consider the following graph:
In the image above we have represented a graph of function in which is highlighted the point . The goal is to calculate the tangent line at this specific point — the red line.
Every line can be represented with the following equation:
in which:
- is the ordinate of the point of the line
- is the abscissa of the point of the line
- is the slope of the line
- is the y-intercept of the line
is defined by the equation of the tangent of the angle that certain line makes with the x-axis, therefore .
Given this definition, it is possible to calculate from two points in the line with the following equation:
But we do not have two points, we only have one point and we have to find out its slope. A way to think is to consider a secant line in the function graph:
In the above graph we added the point and drawn a secant line passing through the points and . At start it looks like nothing, but we can come to the conclusion that as the point approaches the point , the secant line gets closer to the tangent line of the point . Look the graph:
In that way, we can use the idea of Limits to understand that while approaches , the slope of the line that pass through the points and approaches the slope of the tangent line of the point .
With this understanding, we can now draw a right triangle to decipher some values and finally get to the equation that defines the tangent of the point :
So we have a right triangle in which the adjacent side is equals to and the opposite side is . With this information we can now apply the slope equation:
But we do not care about the slope of in any point, we want to be closer and closer of . For this we can just apply the concept of limits:
Here then is the derivative. The derivative is nothing more than the slope of a tangent line. And to represent it we do not use , instead we use the following:
Another common way to represent it is introducing another variable called , which represents :