A.6 Estimating ๐‘‘๐‘“๐‘‘๐‘ฅ at ๐’™ =๐’‚ Graphically

On this screen we're going to take another step toward seeing how we can estimate the rate df/dx at the point x=a graphically.

Recall that when we introduced linear approximations, and then did practice problems on linear approximations, we had to provide the rate at which each function changes at the point of interest. Then on the preceding screen we started to see how we can use Desmos to estimate this rate for any function by using a Leibniz triangle at the point of interest.

Let's now put some pieces together and see how we can use a graph to first estimate the rate of change, ๐‘‘๐‘“๐‘‘๐‘ฅโˆฃat ๐‘ฅ=๐‘Ž, and then use that rate to estimate the function's value a short distance away from a point we know about.

To begin we'll again going use the function ๐‘“(๐‘ฅ) =๐‘ฅ2, and pretend that we don't yet know that ๐‘‘๐‘“๐‘‘๐‘ฅโˆฃat ๐‘ฅ=3 =6. In the following activity, we're going to learn how to approximate this rate to a high degree of accuracy.

ACTIVITY 1: Line segment to mimic ๐‘“(๐‘ฅ) =๐‘ฅ2 near the point (3,9)

The interactive graphing calculator below shows the graph of the curve ๐‘“(๐‘ฅ) =๐‘ฅ2 versus x, with the point (3,9) highlighted.

You'll also see a line segment that has one end anchored at that point of interest (3,9). You can drag the other end of the line segment to be anywhere within the calculator's window.

Step 1: Zoom in on the graph a bit, and then drag the free end of the line segment so that the segment mimics the function's behavior. You don't have to try to be exact; you're going to iterate this process as many times as you'd like.

The value of the line segment's slope is an approximation to the function's rate of change, which we know in this case is ๐‘‘๐‘“๐‘‘๐‘ฅโˆฃat ๐‘ฅ=3 =6.

How close to that true value is your result? Try zooming in further and repeat the process to see if your approximation improves.

You probably observe that the more you zoom in, the closer your approximation is to the true value.

You might also notice that if the two points of the line segment overlap, or if your line segment is vertical, then ฮ”๐‘ฅ =0 and we can't calculate the line segment's slope. Instead, our slope calculation returns "NaN (Not a Number: can't divide by 0!)." That is, you get an undefined result. Hence while we can make ฮ”๐‘ฅ as small as we like, it cannot be zero.

Let's repeat this process for a different function, one for which you don't already know the value of the rate of change at the point of interest.

ACTIVITY 2: Line segment to mimic ๐‘”(๐‘ฅ) near the point (5,80)

The interactive graphing calculator below shows the graph of the curve ๐‘ฆ =๐‘”(๐‘ฅ) versus x, with the point (5,80) highlighted.

You'll also see a line segment that has one end anchored at that point of interest (5,80). You can drag the other end of the line segment to be wherever you want.

Step 1: Zoom in on the graph a bit, and then drag the free end of the line segment so that the segment mimics the function's behavior. You don't have to try to be exact; you're going to iterate this process as many times as you'd like.

Use estimate of the rate ๐‘‘๐‘“๐‘‘๐‘ฅ in our linear approximations

Let's tie a few pieces together, and use the tools we've developed so far to (a) estimate the rate ๐‘‘๐‘“๐‘‘๐‘ฅ for the function ๐‘“(๐‘ฅ) =โˆš๐‘ฅ at ๐‘ฅ =9, and then (b) use that value to approximate the value of โˆš9.1.
Practice Problem 1: Approximate โˆš9.1

The interactive graphing calculator below shows the graph of the curve ๐‘“(๐‘ฅ) =โˆš๐‘ฅ versus x, with the point (9,3) highlighted.

(a) Use the approach we developed above to estimate the rate ๐‘‘๐‘“๐‘‘๐‘ฅโˆฃat ๐‘ฅ=9.

(b)

Then use that value and the tools we developed in a preceding topic to approximate โˆš9.1.
View/Hide Solution
Graph of possible line segment used to estimate df/dx at x = 9, and the resulting line-segment slope calculation. (a) As shown in the figure, after several trials we decided that when the line segment closely mimics the curve's behavior it has slope equal to 0.1668. Hence we estimate ๐‘‘๐‘“๐‘‘๐‘ฅโˆฃat ๐‘ฅ=9โ‰ˆ0.1668โœ“ You probably didn't obtain exactly the same value, but your value should be close to ours.

(b) We now have the two pieces of information we need to approximate the value of โˆš9.1 : (I) we know โˆš9 =3, and (II) we have the estimate ๐‘‘๐‘“๐‘‘๐‘ฅโˆฃat ๐‘ฅ=9 โ‰ˆ0.1668.

Our point of interest at ๐‘ฅ =9.1 is a horizontal distance ๐‘‘๐‘ฅ =0.1 away from the point we know about at ๐‘Ž =9. Hence ๐‘“ value at 9+๐‘‘๐‘ฅโž๐‘“(9+๐‘‘๐‘ฅ)โ‰ˆ๐‘“ value at 9โž๐‘“(9)+(rate at ๐‘ฅ=9)โˆ—(๐‘‘๐‘ฅ)โžยฏยฏยฏโžยฏยฏยฏโž small change ๐‘‘๐‘“๐‘“(9+0.1)โ‰ˆ3+(0.1668)(0.1)โ‰ˆ3+0.01668โ‰ˆ3.01668โœ“ The figure below shows how the small change df adds to the height ๐‘“(9) =3 to yield the final result.

Hence our approximation is โˆš9.1 โ‰ˆ3.01668. (For comparison purposes, the actual value to 5 decimal places is โˆš9.1 =3.01662. Pretty good, huh?!?)

Your answer will of course be different from ours if you obtained a different estimate for ๐‘‘๐‘“๐‘‘๐‘ฅโˆฃat ๐‘ฅ=9, but your calculation should provide a similar result โ€“ and remember this is all only an approximation, albeit a good one. Graph of the small change df adds to the height f(9)=3 to yield the final result.

[close solution]

In this next problem, we're going to remove one piece of scaffolding: you'll also have to compute the slope of the line segment, which is the value of our estimated rate, as part of the calculation.

Practice Problem 2: Estimate cosโก(๐œ‹4+0.03)

The interactive graphing calculator below shows the graph of the curve ๐‘”(๐‘ฅ) =cosโก๐‘ฅ versus x. We're going to look at the function's behavior near ๐‘ฅ =๐œ‹4. You know that
cosโก(๐œ‹4)=1โˆš2โ‰ˆ0.7071
and the point (๐œ‹4,0.7071) is highlighted on the curve.

(a) Use the approach we developed above to estimate the rate ๐‘‘๐‘”๐‘‘๐‘ฅโˆฃat ๐‘ฅ=๐œ‹/4.
Note that unlike in earlier problems, now you must calculate the slope of the line segment yourself. A calculator can help.

(b) Then use that value and the tools we developed earlier to approximate cosโก(๐œ‹4+0.03).

View/Hide Solution

(a) The line segment we used to mimic the curve's behavior is shown in the left-hand figure below. The right-hand figure shows the value of the segment's second point that we can use to compute the segment's slope. Your values will of course be different, but your calculation should be of the same form.

(i) Graph of the line segment we used, layered on top of the original curve. (ii) The curve now removed, and the coordinates of the endpoints of the line segment used to compute the slope of the line segment, which in turn is our estimated rate of change for the function at pi/4.

We have as two points of our line segment (๐œ‹4,0.7071) and (0.7941,0.701). Hence the slope of our line segment is

ฮ”๐‘ฆฮ”๐‘ฅ=0.701โˆ’0.70710.7941โˆ’๐œ‹/4=โˆ’0.701

That value is our approximation for ๐‘‘๐‘”๐‘‘๐‘ฅโˆฃat ๐‘ฅ=๐œ‹/4 : ๐‘‘๐‘”๐‘‘๐‘ฅโˆฃat ๐‘ฅ=๐œ‹/4โ‰ˆโˆ’0.701โœ“ Your value is probably different, but should be close to ours.

As a check, does it make sense that the value if negative? The answer is yes: the function's values are decreasing as x increases from ๐‘ฅ =๐œ‹/4, and so the rate of change must be negative.

(b) We now have the two pieces of information we need to approximate the value of
cosโก(๐œ‹4+0.03) :

(I) we know cosโก(๐œ‹4) โ‰ˆ0.7071, and

(II) we have the estimate ๐‘‘๐‘”๐‘‘๐‘ฅโˆฃat ๐‘ฅ=๐œ‹/4 โ‰ˆ โˆ’0.701.

Our point of interest is a horizontal distance ๐‘‘๐‘ฅ =0.034 away from the point we know about at ๐‘Ž =๐œ‹4. Hence ๐‘” value at ๐œ‹/4+0.03โžยฏยฏโžยฏยฏโž๐‘”(๐œ‹4+๐‘‘๐‘ฅ)โ‰ˆ๐‘” value at ๐œ‹/4โž๐‘”(๐œ‹4)+(rate at ๐‘ฅ=๐œ‹/4)โˆ—(๐‘‘๐‘ฅ)โžยฏยฏยฏโžยฏยฏยฏโž small change ๐‘‘๐‘”๐‘”(๐œ‹4+0.03)โ‰ˆ0.7071+(โˆ’0.701)(0.03)โ‰ˆ0.7071โˆ’0.021โ‰ˆ0.686โœ“

Again, your final answer is probably different than ours since you likely chose a different line segment in part (a) than we did. But your answer should be close to ours โ€“ or, actually, close to the true value of, to five decimal places, 0.68558.

[close solution]

Practice Problem 3: Estimate tanโก(โˆ’๐œ‹3โˆ’0.08)

The interactive graphing calculator below shows the graph of the curve ๐‘˜(๐‘ฅ) =tanโก(๐‘ฅ) versus x. We're going to look at the function's behavior near ๐‘ฅ = โˆ’๐œ‹3. You know that
tanโก(โˆ’๐œ‹3)=โˆ’โˆš3โ‰ˆโˆ’1.7321
The point (โˆ’๐œ‹3,โˆ’1.7321) is highlighted on the curve.

Estimate the value of tanโก(โˆ’๐œ‹3โˆ’0.08).

View/Hide Solution

In order to estimate tanโก(โˆ’๐œ‹3โˆ’0.02), we need two pieces of information: (I) We already know tanโก(โˆ’๐œ‹3) = โˆ’โˆš3 โ‰ˆ โˆ’1.7321. (II) We also need to have an estimate for ๐‘‘๐‘˜๐‘‘๐‘ฅโˆฃat ๐‘ฅ=โˆ’๐œ‹/3.

Using the same approach as we did in the problems above, we use the interactive graph to zoom in on the curve and create a line segment that mimics the curve's behavior near ๐‘ฅ = โˆ’๐œ‹/3. The line segment we used and the coordinates of its endpoints are shown in the figure below. As always, your values will probably be different, but your final value for the line segment's slope should be close to ours.

(i) Graph of the line segment we used, layered on top of the original curve. (ii) The curve now removed, and the coordinates of the endpoints of the line segment.

We have as two points of our line segment (โˆ’๐œ‹3,โˆ’1.7321) and ( โˆ’1.0435, โˆ’1.7175). Hence the slope of our line segment is ฮ”๐‘ฆฮ”๐‘ฅ=โˆ’1.7175โˆ’(โˆ’1.7321)โˆ’1.0435โˆ’(โˆ’๐œ‹/3)=3.949

Hence our approximation for ๐‘‘๐‘˜๐‘‘๐‘ฅโˆฃat ๐‘ฅ=โˆ’๐œ‹/3 is ๐‘‘๐‘˜๐‘‘๐‘ฅโˆฃat ๐‘ฅ=โˆ’๐œ‹/3โ‰ˆ3.949

Now, our point of interest is a horizontal distance ๐‘‘๐‘ฅ = โˆ’0.02 away from the point we know about at ๐‘Ž = โˆ’๐œ‹3. Hence ๐‘˜ value at โˆ’๐œ‹/3โˆ’0.02โžยฏยฏยฏโžยฏยฏยฏโž๐‘˜(โˆ’๐œ‹3+๐‘‘๐‘ฅ)โ‰ˆ๐‘˜ value at โˆ’๐œ‹/3โž๐‘˜(โˆ’๐œ‹3)+(rate at ๐‘ฅ=โˆ’๐œ‹/3)โˆ—(๐‘‘๐‘ฅ)โžยฏยฏยฏโžยฏยฏยฏโž small change ๐‘‘๐‘˜๐‘˜(โˆ’๐œ‹3+(โˆ’0.02))โ‰ˆโˆ’1.7321+(3.949)(โˆ’0.02)โ‰ˆโˆ’1.7321โˆ’0.0790โ‰ˆโˆ’1.811โœ“

Again, your final answer is probably different than ours since you likely chose a different line segment in part (a) than we did. But your answer should be close to ours โ€“ or, actually, close to the true value of, to four decimal places, -1.8149.

[close solution]

As you have seen a number of times now, to obtain a better approximation for a function's rate of change at the point ๐‘ฅ =๐‘Ž, we can use a graph of the function in Desmos and zoom in as much as we can, and then find the slope of a line segment that looks to mimic the function's behavior in a small region near ๐‘ฅ =๐‘Ž. The closer we move the "free" end of the line segment toward ๐‘ฅ =๐‘Ž, the better our estimate seems to become.

This method is clearly limited, though, beginning with the fact that we don't always have a function programmed into Desmos. Furthermore, while we're able to find an estimate of ๐‘‘๐‘“๐‘‘๐‘ฅโˆฃat ๐‘ฅ=๐‘Ž, we don't yet have a way to determine the true value. Indeed, we have been relying quite heavily on graphical representations of functions โ€” for good reason, since Desmos gives us a great way to start to see some of the key ideas in Calculus in action.

But we know that there are other ways to convey information about functions in the real world, including verbal descriptions of a physical situation, and through data sets.

In the next Section, we're going to use those other representations, along with the continuing use of graphs, to develop a systematic way to find the rate at which a given function changes. We will begin, once again, by considering some simple motion.


The Upshot

  1. We can use Desmos to place a line segment "by eye" to mimic a function's behavior near a point of interest, and hence estimate the function's rate of change near that point. We can then use that estimated rate in our linear approximation calculations.

Please head over to the Forum to post any questions or comments about anything on this screen!