Tangent Lines
We begin our study of calculus by revisiting the notion of secant lines and tangent lines. Recall that we used the slope of a secant line to a function at a point \(\left(\right. a , f \left(\right. a \left.\right) \left.\right)\) to estimate the rate of change, or the rate at which one variable changes in relation to another variable. We can obtain the slope of the secant by choosing a value of \(x\) near \(a\) and drawing a line through the points \(\left(\right. a , f \left(\right. a \left.\right) \left.\right)\) and \(\left(\right. x , f \left(\right. x \left.\right) \left.\right) ,\) as shown in Figure 3.3. The slope of this line is given by an equation in the form of a difference quotient:
We can also calculate the slope of a secant line to a function at a value a by using this equation and replacing \(x\) with \(a + h ,\) where \(h\) is a value close to 0. We can then calculate the slope of the line through the points \(\left(\right. a , f \left(\right. a \left.\right) \left.\right)\) and \(\left(\right. a + h , f \left(\right. a + h \left.\right) \left.\right) .\) In this case, we find the secant line has a slope given by the following difference quotient with increment \(h :\)
Definition
Let \(f\) be a function defined on an interval \(I\) containing \(a .\) If \(x \neq a\) is in \(I ,\) then
is a difference quotient.
Also, if \(h \neq 0\) is chosen so that \(a + h\) is in \(I ,\) then
is a difference quotient with increment \(h .\)
Media
View the development of the derivative with this applet.
These two expressions for calculating the slope of a secant line are illustrated in Figure 3.3. We will see that each of these two methods for finding the slope of a secant line is of value. Depending on the setting, we can choose one or the other. The primary consideration in our choice usually depends on ease of calculation.
In Figure 3.4(a) we see that, as the values of \(x\) approach \(a ,\) the slopes of the secant lines provide better estimates of the rate of change of the function at \(a .\) Furthermore, the secant lines themselves approach the tangent line to the function at \(a ,\) which represents the limit of the secant lines. Similarly, Figure 3.4(b) shows that as the values of \(h\) get closer to \(0 ,\) the secant lines also approach the tangent line. The slope of the tangent line at \(a\) is the rate of change of the function at \(a ,\) as shown in Figure 3.4(c).
Media
You can use this site to explore graphs to see if they have a tangent line at a point.
In Figure 3.5 we show the graph of \(f \left(\right. x \left.\right) = \sqrt{x}\) and its tangent line at \(\left(\right. 1 , 1 \left.\right)\) in a series of tighter intervals about \(x = 1 .\) As the intervals become narrower, the graph of the function and its tangent line appear to coincide, making the values on the tangent line a good approximation to the values of the function for choices of \(x\) close to \(1 .\) In fact, the graph of \(f \left(\right. x \left.\right)\) itself appears to be locally linear in the immediate vicinity of \(x = 1 .\)
Formally we may define the tangent line to the graph of a function as follows.
Definition
Let \(f \left(\right. x \left.\right)\) be a function defined in an open interval containing \(a .\) The tangent line to \(f \left(\right. x \left.\right)\) at \(a\) is the line passing through the point \(\left(\right. a , f \left(\right. a \left.\right) \left.\right)\) having slope
provided this limit exists.
Equivalently, we may define the tangent line to \(f \left(\right. x \left.\right)\) at \(a\) to be the line passing through the point \(\left(\right. a , f \left(\right. a \left.\right) \left.\right)\) having slope
provided this limit exists.
Just as we have used two different expressions to define the slope of a secant line, we use two different forms to define the slope of the tangent line. In this text we use both forms of the definition. As before, the choice of definition will depend on the setting. Now that we have formally defined a tangent line to a function at a point, we can use this definition to find equations of tangent lines.
Example 3.1
Finding a Tangent Line
Find the equation of the line tangent to the graph of \(f \left(\right. x \left.\right) = x^{2}\) at \(x = 3 .\)
Solution
First find the slope of the tangent line. In this example, use Equation 3.3.
Next, find a point on the tangent line. Since the line is tangent to the graph of \(f \left(\right. x \left.\right)\) at \(x = 3 ,\) it passes through the point \(\left(\right. 3 , f \left(\right. 3 \left.\right) \left.\right) .\) We have \(f \left(\right. 3 \left.\right) = 9 ,\) so the tangent line passes through the point \(\left(\right. 3 , 9 \left.\right) .\)
Using the point-slope equation of the line with the slope \(m = 6\) and the point \(\left(\right. 3 , 9 \left.\right) ,\) we obtain the line \(y - 9 = 6 \left(\right. x - 3 \left.\right) .\) Simplifying, we have \(y = 6 x - 9 .\) The graph of \(f \left(\right. x \left.\right) = x^{2}\) and its tangent line at \(3\) are shown in Figure 3.6.
Example 3.2
The Slope of a Tangent Line Revisited
Use Equation 3.4 to find the slope of the line tangent to the graph of \(f \left(\right. x \left.\right) = x^{2}\) at \(x = 3 .\)
Solution
The steps are very similar to Example 3.1. See Equation 3.4 for the definition.
We obtained the same value for the slope of the tangent line by using the other definition, demonstrating that the formulas can be interchanged.
Example 3.3
Finding the Equation of a Tangent Line
Find the equation of the line tangent to the graph of \(f \left(\right. x \left.\right) = 1 / x\) at \(x = 2 .\)
Solution
We can use Equation 3.3, but as we have seen, the results are the same if we use Equation 3.4.
We now know that the slope of the tangent line is \(- \frac{1}{4} .\) To find the equation of the tangent line, we also need a point on the line. We know that \(f \left(\right. 2 \left.\right) = \frac{1}{2} .\) Since the tangent line passes through the point \(\left(\right. 2 , \frac{1}{2} \left.\right)\) we can use the point-slope equation of a line to find the equation of the tangent line. Thus the tangent line has the equation \(y = - \frac{1}{4} x + 1 .\) The graphs of \(f \left(\right. x \left.\right) = \frac{1}{x}\) and \(y = - \frac{1}{4} x + 1\) are shown in Figure 3.7.
Checkpoint 3.1
Find the slope of the line tangent to the graph of \(f \left(\right. x \left.\right) = \sqrt{x}\) at \(x = 4 .\)
This lesson is part of:
Derivatives