Matheno - Learn Well and Excel

A.6 Estimating df/dx at x=a 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,
$\left.\dfrac{df}{dx}\right|_\text{at $x = a$},$ 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 $f(x)=x^2,$ and pretend that we don’t yet know that $\left.\dfrac{df}{dx}\right|_\text{at $x = 3$} = 6.$ In the following activity, we’re going to learn how to find this rate – or at least an approximation to it.

ACTIVITY 1: Line segment to mimic $f(x)=x^2$ near the point $(3,9)$

The interactive graphing calculator below shows the graph of the curve $f(x) = x^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.

Graph of $f(x) =x^2$ versus x, and alterable line segment

 
Step 2. When you’re ready, check the box below to show the calculation
of the line segment’s slope = $\dfrac{\text{rise}}{\text{run}}=\dfrac{\Delta y}{\Delta x}$


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 $\left.\dfrac{df}{dx}\right|_\text{at $x = 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 $\Delta x = 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 $\Delta x$ 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 $g(x)$ near the point $(5,80)$

The interactive graphing calculator below shows the graph of the curve $y=g(x)$ 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.

Graph of $g(x)$ versus x, and alterable line segment

Step 2. When you’re ready, check the box below to show the calculation of the line segment’s slope $=\dfrac{\Delta y}{\Delta x}$


Repeat this process as much as you’d like until you have a clear estimate in mind for the value of $\left.\dfrac{dg}{dx}\right|_\text{at $x = 5$}.$ You’ll probably find that the result you get is sometimes a bit above a particular number, and sometimes a bit below, but that each value is close to this particular number. What is that number?

Use estimate of the rate df/dx 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 df/dx for the function $f(x) = \sqrt{x}$ at $x=9,$ and then (b) use that value to approximate the value of $\sqrt{9.1}.$

Practice Problem 1: Approximate $\sqrt{9.1}$
The interactive graphing calculator below shows the graph of the curve $f(x) = \sqrt{x}$ versus x, with the point $(9,3)$ highlighted. (a) Use the approach we developed above to estimate the rate $\left.\dfrac{df}{dx}\right|_\text{at $x = 9$}.$ (b) Then use that value and the tools we developed in a preceding topic to approximate $\sqrt{9.1}.$
Graph of $f(x) = \sqrt{x}$ versus x, and alterable line segment
When you're ready, check the box below to show the calculation of the line segment's slope $=\dfrac{\Delta y}{\Delta x}$
 
Show/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 \[\left.\dfrac{df}{dx}\right|_\text{at $x = 9$} \approx 0.1668 \quad \cmark\] 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 $\sqrt{9.1}:$ (I) we know $\sqrt{9} = 3,$ and (II) we have the estimate $\left.\dfrac{df}{dx}\right|_\text{at $x = 9$} \approx 0.1668.$

Our point of interest at $x=9.1$ is a horizontal distance $dx = 0.1$ away from the point we know about at $a=9.$ Hence \begin{align*} \overbrace{f(9+dx)}^\text{$f$ value at $9+dx$} &\approx \overbrace{f(9)}^{\text{$f$ value at }9} + \overbrace{\text{ small change }df}^{\text{(rate at $x=9$)} * \, (dx)} \\[8px] f(9 + 0.1) &\approx 3 + (0.1668)(0.1) \\[8px] &\approx 3 + 0.01668 \\[8px] &\approx 3.01668 \quad \cmark \end{align*} The figure below shows how the small change df adds to the height $f(9)=3$ to yield the final result.

Hence our approximation is $\sqrt{9.1} \approx 3.01668.$ (For comparison purposes, the actual value to 5 decimal places is $\sqrt{9.1} = 3.01662.$ Pretty good, huh?!?)

Your answer will of course be different from ours if you obtained a different estimate for $\left.\frac{df}{dx}\right|_\text{at $x = 9$},$ but your calculation should provide a similar result – and remember this is all only an approximation, albeit a good one.
[hide 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 \left(\dfrac{\pi}{4} + 0.03\right)$

The interactive graphing calculator below shows the graph of the curve $g(x) = \cos{x}$ versus x. We're going to look at the function's behavior near $x= \dfrac{\pi}{4}.$ You know that
\[\cos \left(\dfrac{\pi}{4} \right) = \dfrac{1}{\sqrt{2}} \approx 0.7071 \]
and the point $\left(\dfrac{\pi}{4}, 0.7071 \right)$ is highlighted on the curve.

(a) Use the approach we developed above to estimate the rate $\left.\dfrac{dg}{dx}\right|_\text{at $x = \pi/4$}.$
Note that unlike in earlier problems, now you must calculate the slope of the line segment yourself.

You can use this calculator to help. To make your calculation easier: $\pi/4 \approx 0.7854.$

(b) Then use that value and the tools we developed earlier to approximate $\cos\left(\dfrac{\pi}{4} + 0.03\right).$

Graph of $g(x) = \cos(x)$ versus x
 

 

Show/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 $\left(\dfrac{\pi}{4}, 0.7071 \right)$ and $(0.7941, 0.701).$ Hence the slope of our line segment is \begin{align*} \dfrac{\Delta y}{\Delta x} &= \dfrac{0.701 – 0.7071}{0.7941 – \pi/4} \\[8px] &= -0.701 \end{align*} That value is our approximation for $\left.\dfrac{dg}{dx}\right|_\text{at $x = \pi/4$}:$ \[\left.\dfrac{dg}{dx}\right|_\text{at $x = \pi/4$} \approx -0.701 \quad \cmark\] 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 $x = \pi/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\left(\dfrac{\pi}{4} + 0.03\right):$ (I) we know $\cos\left(\dfrac{\pi}{4}\right) \approx 0.7071,$ and we have the estimate $\left.\dfrac{dg}{dx}\right|_\text{at $x = \pi/4$} \approx -0.701.$

Our point of interest is a horizontal distance $dx = 0.034$ away from the point we know about at $a = \dfrac{\pi}{4}.$ Hence \begin{align*} \overbrace{g\left(\dfrac{\pi}{4} + dx\right)}^\text{$g$ value at $\pi/4 + 0.03$} &\approx \overbrace{g\left(\dfrac{\pi}{4} \right)}^{\text{$g$ value at }\pi/4} + \overbrace{\text{ small change }dg}^{\text{(rate at $x=\pi/4$)} * \, (dx)} \\[8px] g\left(\dfrac{\pi}{4} + 0.03 \right) &\approx 0.7071 + (-0.701)(0.03) \\[8px] &\approx 0.7071 – 0.021 \\[8px] &\approx 0.686 \quad \cmark \end{align*} 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.
[hide solution]
Practice Problem 3: Estimate $\tan \left(-\dfrac{\pi}{3} - 0.08 \right)$

The interactive graphing calculator below shows the graph of the curve $k(x) = \tan(x)$ versus x. We're going
to look at the function's behavior near $x = -\dfrac{\pi}{3}.$ You know that
\[\tan \left( -\dfrac{\pi}{3}\right) = -\sqrt{3} \approx - 1.7321 \]
The point $\left(-\dfrac{\pi}{3}, -1.7321 \right)$ is highlighted on the curve.

Estimate the value of $\tan \left(-\dfrac{\pi}{3} - 0.08 \right)$.

This calculator may help. For your convenience: $\pi/3 \approx 1.0472.$
Graph of k(x) versus x
 

 

Show/Hide Solution
In order to estimate $\tan \left(-\dfrac{\pi}{3} – 0.02 \right)$, we need two pieces of information: (I) We already know $\tan \left( -\dfrac{\pi}{3}\right) = -\sqrt{3} \approx – 1.7321.$ (II) We also need to have an estimate for $\left.\dfrac{dk}{dx}\right|_\text{at $x = -\pi/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 $x = -\pi/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 $\left(-\dfrac{\pi}{3}, -1.7321 \right)$ and $(-1.0435, -1.7175).$ Hence the slope of our line segment is \begin{align*} \dfrac{\Delta y}{\Delta x} &= \dfrac{-1.7175 – (-1.7321)}{-1.0435 – (-\pi/3)} \\[8px] &= 3.949 \end{align*} Hence our approximation for $\left.\dfrac{dk}{dx}\right|_\text{at $x = -\pi/3$}$ is \[\left.\dfrac{dk}{dx}\right|_\text{at $x = -\pi/3$} \approx 3.949 \] Now, our point of interest is a horizontal distance $dx = -0.02$ away from the point we know about at $a = -\dfrac{\pi}{3}.$ Hence \begin{align*} \overbrace{k\left(\dfrac{-\pi}{3} + dx\right)}^\text{$k$ value at $-\pi/3 -0.02$} &\approx \overbrace{k\left(-\dfrac{\pi}{3} \right)}^{\text{$k$ value at }-\pi/3} + \overbrace{\text{ small change }dk}^{\text{(rate at $x=-\pi/3$)} * \, (dx)} \\[8px] k\left(-\dfrac{\pi}{3} +(-0.02) \right) &\approx -1.7321 + (3.949)(-0.02) \\[8px] &\approx -1.7321 – 0.0790\\[8px] &\approx -1.811 \quad \cmark \end{align*} 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.
[hide 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 $x=a,$ 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 $x=a.$ The closer we move the “free” end of the line segment toward $x=a,$ 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 $\left.\dfrac{df}{dx}\right|_\text{at $x = a$},$ 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!

Buy us a coffee We're working to add more,
and would appreciate your help
to keep going! 😊

We'd appreciate your feedback! 😊
How helpful?

What are your thoughts or questions?

Subscribe
I'd like to be
0 Comments
newest
oldest most voted
Inline Feedbacks
View all comments