Skip to main content
\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)
Mathematics LibreTexts

1.8: The Tangent Line Approximation

Skills to Develop

In this section, we strive to understand the ideas generated by the following important questions:

  • What is the formula for the general tangent line approximation to a differentiable function y = f (x) at the point (a, f (a))?
  • What is the principle of local linearity and what is the local linearization of a differentiable function f at a point (a, f (a))?
  • How does knowing just the tangent line approximation tell us information about the behavior of the original function itself near the point of approximation? How does knowing the second derivative’s value at this point provide us additional knowledge of the original function’s behavior?

Among all functions, linear functions are simplest. One of the powerful consequences of a function \9y = f (x)\) being differentiable at a point \((a, f (a))\) is that, up close, the function y = f (x) is locally linear and looks like its tangent line at that point. In certain circumstances, this allows us to approximate the original function f with a simpler function L that is linear: this can be advantageous when we have limited information about f or when f is computationally or algebraically complicated. We will explore all of these situations in what follows. It is essential to recall that when f is differentiable at x = a, the value of \(f ' (a)\) provides the slope of the tangent line to \(y = f (x)\) at the point (a, f (a)). By knowing both a point on the line and the slope of the line we are thus able to find the equation of the tangent line. Preview Activity \(\PageIndex{1}\) will refresh these concepts through a key example and set the stage for further study.

Preview Activity \(\PageIndex{1}\)

Consider the function y = g(x) = −x 2 + 3x + 2.

  1. Use the limit definition of the derivative to compute a formula for y = g 0 (x).
  2. Determine the slope of the tangent line to y = g(x) at the value x = 2.
  3. Compute g(2).
  4. Find an equation for the tangent line to y = g(x) at the point (2, g(2)). Write your result in point-slope form. Recall that a line with slope m that passes through (x0, y0) has equation y − y0 = m(x − x0), and this is
  5. On the axes provided in Figure 1.44, sketch an accurate, labeled graph of y = g(x) along with its tangent line at the point (2, g(2)). ./

Figure 1.44: Axes for plotting y = g(x) and its tangent line to the point (2, g(2)).

The tangent line Given a function f that is differentiable at x = a, we know that we can determine the slope of the tangent line to y = f (x) at (a, f (a)) by computing f 0 (a). The resulting tangent line through (a, f (a)) with slope m = f 0 (a) has its equation in point-slope form given by y − f (a) = f 0 (a)(x − a), which we can also express as y = f 0 (a)(x − a)+ f (a). Note well: there is a major difference between f (a) and f (x) in this context. The former is a constant that results from using the given fixed value of a, while the latter is the general expression for the rule that defines the function. The same is true for f 0 (a) and f 0 (x): we must carefully distinguish between these expressions. Each time we find the tangent line, we need to evaluate the function and its derivative at a fixed a-value. In Figure 1.45, we see a labeled plot of the graph of a function f and its tangent line at the point (a, f (a)). Notice how when we zoom in we see the local linearity of f more clearly highlighted as the function and its tangent line are nearly indistinguishable up close. This can also be seen dynamically in the java applet at http://gvsu.edu/s/6J. the point-slope form of the equation.

Figure 1.45: A function y = f (x) and its tangent line at the point (a, f (a)): at left, from a distance, and at right, up close. At right, we label the tangent line function by y = L(x) and observe that for x near a, f (x) ≈ L(x).

The Local Linearization

A slight change in perspective and notation will enable us to be more precise in discussing how the tangent line to y = f (x) at (a, f (a)) approximates f near x = a. Taking the equation for the tangent line and solving for y, we observe that the tangent line is given by y = f 0 (a)(x − a) + f (a) and moreover that this line is itself a function of x. Replacing the variable y with the expression L(x), we call L(x) = f 0 (a)(x − a) + f (a) the local linearization of f at the point (a, f (a)). In this notation, it is particularly important to observe that L(x) is nothing more than a new name for the tangent line, and that for x close to a, we have that f (x) ≈ L(x). Say, for example, that we know that a function y = f (x) has its tangent line approximation given by L(x) = 3 − 2(x − 1) at the point (1, 3), but we do not know anything else about the function f . If we are interested in estimating a value of f (x) for x near 1, such as f (1.2), we can use the fact that f (1.2) ≈ L(1.2) and hence f (1.2) ≈ L(1.2) = 3 − 2(1.2 − 1) = 3 − 2(0.2) = 2.6. Again, much of the new perspective here is only in notation since y = L(x) is simply a new name for the tangent line function. In light of this new notation and our observations 80 above, we note that since L(x) = f (a) + f 0 (a)(x − a) and L(x) ≈ f (x) for x near a, it also follows that we can write f (x) ≈ f (a) + f 0 (a)(x − a) for x near a. The next activity explores some additional important properties of the local linearization y = L(x) to a function f at given a-value.

Activity \(\PageIndex{2}\)

Suppose it is known that for a given differentiable function y = g(x), its local linearization at the point where a = −1 is given by L(x) = −2 + 3(x + 1).

  1. Compute the values of L(−1) and L 0 (−1).
  2. What must be the values of g(−1) and g 0 (−1)? Why?
  3. Do you expect the value of g(−1.03) to be greater than or less than the value of g(−1)? Why?
  4. Use the local linearization to estimate the value of g(−1.03).
  5. Suppose that you also know that g 00(−1) = 2. What does this tell you about the graph of y = g(x) at a = −1?
  6. For x near −1, sketch the graph of the local linearization y = L(x) as well as a possible graph of y = g(x) on the axes provided in Figure 1.46.

Figure 1.46: Axes for plotting y = L(x) and y = g(x).

As we saw in the example provided by Activity 1.21, the local linearization y = L(x) is a linear function that shares two important values with the function y = f (x) that it is derived from. In particular, observe that since L(x) = f (a) + f 0 (a)(x − a), it follows that L(a) = f (a). In addition, since L is a linear function, its derivative is its slope. Hence, 81 L 0 (x) = f 0 (a) for every value of x, and specifically L 0 (a) = f 0 (a). Therefore, we see that L is a linear function that has both the same value and the same slope as the function f at the point (a, f (a)). In situations where we know the linear approximation y = L(x), we therefore know the original function’s value and slope at the point of tangency. What remains unknown, however, is the shape of the function f at the point of tangency. There are essentially four possibilities, as enumerated in Figure 1.47.

Figure 1.47: Four possible graphs for a nonlinear differentiable function and how it can be situated relative to its tangent line at a point.

These stem from the fact that there are three options for the value of the second derivative: either f 00(a) < 0, f 00(a) = 0, or f 00(a) > 0. If f 00(a) > 0, then we know the graph of f is concave up, and we see the first possibility on the left, where the tangent line lies entirely below the curve. If f 00(a) < 0, then we find ourselves in the second situation (from left) where f is concave down and the tangent line lies above the curve. In the situation where f 00(a) = 0 and f 00 changes sign at x = a, the concavity of the graph will change, and we will see either the third or fourth option9 . A fifth option (that is not very interesting) can occur, which is where the function f is linear, and so f (x) = L(x) for all values of x. The plots in Figure 1.47 highlight yet another important thing that we can learn from the concavity of the graph near the point of tangency: whether the tangent line lies above or below the curve itself. This is key because it tells us whether or not the tangent line approximation’s values will be too large or too small in comparison to the true value of f . For instance, in the first situation in the leftmost plot in Figure 1.47 where f 00(a) > 0, since the tangent line falls below the curve, we know that L(x) ≤ f (x) for all values of x near a. We explore these ideas further in the following activity.

Activity \(\PageIndex{3}\)

This activity concerns a function f (x) about which the following information is known: 9 It is possible to have f 00(a) = 0 and have f 00 not change sign at x = a, in which case the graph will look like one of the first two options.

  • f is a differentiable function defined at every real number x
  • f (2) = −1
  • y = f 0 (x) has its graph given in Figure 1.48

Figure 1.48: At center, a graph of y = f 0 (x); at left, axes for plotting y = f (x); at right, axes for plotting y = f 00(x).

Your task is to determine as much information as possible about f (especially near the value a = 2) by responding to the questions below.

  1. Find a formula for the tangent line approximation, L(x), to f at the point (2, −1).
  2. Use the tangent line approximation to estimate the value of f (2.07). Show your work carefully and clearly.
  3. Sketch a graph of y = f 00(x) on the righthand grid in Figure 1.48; label it appropriately.
  4. Is the slope of the tangent line to y = f (x) increasing, decreasing, or neither when x = 2? Explain.
  5. Sketch a possible graph of y = f (x) near x = 2 on the lefthand grid in Figure 1.48. Include a sketch of y = L(x) (found in part (a)). Explain how you know the graph of y = f (x) looks like you have drawn it.
  6. Does your estimate in (b) over- or under-estimate the true value of f (2.07)? Why? C

The idea that a differentiable function looks linear and can be well-approximated by a linear function is an important one that finds wide application in calculus. For example, by approximating a function with its local linearization, it is possible to develop an effective 83 algorithm to estimate the zeroes of a function. Local linearity also helps us to make further sense of certain challenging limits. For instance, we have seen that a limit such as lim x→0 sin(x) x is indeterminate because both its numerator and denominator tend to 0. While there is no algebra that we can do to simplify sin(x) x , it is straightforward to show that the linearization of f (x) = sin(x) at the point (0, 0) is given by L(x) = x. Hence, for values of x near 0, sin(x) ≈ x. As such, for values of x near 0, sin(x) x ≈ x x = 1, which makes plausible the fact that lim x→0 sin(x) x = 1. These ideas and other applications of local linearity will be explored later on in our work.

Summary

In this section, we encountered the following important ideas:

  • The tangent line to a differentiable function y = f (x) at the point (a, f (a)) is given in point-slope form by the equation y − f (a) = f 0 (a)(x − a).
  • The principle of local linearity tells us that if we zoom in on a point where a function y = f (x) is differentiable, the function should become indistinguishable from its tangent line. That is, a differentiable function looks linear when viewed up close. We rename the tangent line to be the function y = L(x) where L(x) = f (a) + f 0 (a)(x − a) and note that f (x) ≈ L(x) for all x near x = a.
  • If we know the tangent line approximation L(x) = f (a) + f 0 (a)(x − a), then because L(a) = f (a) and L 0 (a) = f 0 (a), we also know both the value and the derivative of the function y = f (x) at the point where x = a. In other words, the linear approximation tells us the height and slope of the original function. If, in addition, we know the value of f 00(a), we then know whether the tangent line lies above or below the graph of y = f (x) depending on the concavity of f .

Contributors

Matt Boelkins (Grand Valley State University), David Austin (Grand Valley State University), Steve Schlicker (Grand Valley State University)