B.5 Lab 1 Activity: Approximate & Bound Error of df/dx

We assume that you have completed the "Lab 1: Introduction" on the preceding screen. If you have not, please do so now in order to understand the steps below.

As we proceed through the activities below, please keep in mind that computing the slope of the secant line is the same as calculating the average rate of change for the interval of interest.

Title text: Computing Average Rate of Change. Graph of y = f(x) versus x, with the points (a, f(a)) and (b, f(b)) labelled, and a secant line passes through them. Text says: average rate of change = f(b) - f(a), divided by b - a, which equals the slope of the line that passes through the interval's initial and final points. Text at the bottom says: Graphically, finding the average rate of change on the interval [a, b] means computing the slope of the secant line that passes through the interval's initial and final points.

This lab is based on work done by the CLEAR Calculus Project at Oklahoma State University. From the Project's website: "Project CLEAR Calculus is a research-based effort to make calculus conceptually accessible to more students while simultaneously increasing the coherence, rigor, and applicability of the content learned in the courses."
We at Matheno appreciate the work CLEAR Calculus has done to help students learn Calculus better, and are happy to build off of their efforts.

As a reminder, at the end of Lab 1 Introduction on the preceding screen we summarized the work of the lab through using Oerhtman's Five Questions for Approximations: [Ref]

Let's continue from where we left off on the preceding screen and collect more data. We've already included the data from that previous screen here so you don't have to re-do those first entries.

Lab 1, Activity:
Estimate 𝑑𝑓𝑑𝑥𝑥=1 for 𝑓(𝑥) =2𝑥

Part I: Estimate from the right

The graph below is the same as that on the preceding screen, except you now control the value of 𝑥2 and hence the size of the interval we're examining. Here in Part I, we require 𝑥2 >𝑥1( =1) so we know we're currently generating only overestimates of 𝑑𝑓𝑑𝑥𝑥=1.

Start by moving 𝑥2 to be closer to 𝑥1. Then click the box underneath the graph "to use the selected interval and calculate the line segment's slope value." Make sure the resulting calculation makes sense to you.

Then when you're ready, add the resulting data to your table with the "Add data to table" button.

You can then change the value of 𝑥2 and add more data, or continue to the next part. You can return to this calculator and add more data whenever you'd like.

Interactive graph of 𝑦 =𝑓(𝑥) versus x,
with a secant line segment with movable right end-point

average rate of change[𝑥1,𝑥2]=slope of line segment=Δ𝑦Δ𝑥=𝑓(𝑥2)𝑓(𝑥1)𝑥2𝑥1

You are using the interval that has (𝑥1,𝑦1) =(1,2) and (𝑥2,𝑦2) =(2.2,4.59479342).

The slope of the line segment that passes through the interval's end-points,
and hence the average rate of change for the interval, is:

Δ𝑦Δ𝑥=4.5947934222.200000001=2.594793421.20000000=2.16232785

After you've added your data, uncheck the box above to choose a different point (𝑥2,𝑦2).

Note: If you see a value like "Δ𝑥 =5.4𝑒 7," that is JavaScript's representation of what you're probably more used to seeing as "5.4 ×107." (JavaScript is the programming language your browser is using to do all of these calculations.)

Data Collection for Slope of Line Segments with variable right end-point
Data Point(𝑥2,𝑦2)Δ𝑥 Average Rate of Change over Interval
= Line Segment's Slope:

Δ𝑦Δ𝑥 =𝑓(𝑥2)𝑓(1)𝑥21
1(2.20000000, 4.59479342)1.200000002.16232785
2(1.50000000, 2.82842712)0.500000001.65685425

After you've collected some data, you can use the "Sort data" button above so that your smallest interval Δ𝑥 is at the bottom of the table. The value for the Average Rate of Change for that smallest interval, in the last row, is your (current) best estimate for 𝑑𝑓𝑑𝑥𝑥=1, and we will use this value – the one from the bottom row – later in "Part III: Bounding the error."


Part II: Develop a lower bound for the estimate (estimate from the left)

Proceed as you did before — now with the second "free end" point of the line segment constrained to values less than 1, so we're shrinking our interval from the left.

Graph of 𝑦 =𝑓(𝑥) versus x,
with a secant line segment with movable left end-point


average rate of change[𝑥1,𝑥2]=slope of line segment=Δ𝑦Δ𝑥=𝑓(𝑥2)𝑓(𝑥1)𝑥2𝑥1

You are using the interval that has (𝑥1,𝑦1) =(1,2) and (𝑥2,𝑦2) =( 0.8,0.57434918).

The slope of the line segment that passes through the interval's end-points,
and hence the average rate of change for the interval, is:

Δ𝑦Δ𝑥=0.5743491820.800000001=1.425650821.80000000=0.79202823

After you've added your data, uncheck the box above to choose a different point (𝑥2,𝑦2).

Note: If you see a value like "Δ𝑥 =5.4𝑒 7," that is JavaScript's representation of what you're probably more used to seeing as "5.4 ×107." (JavaScript is the programming language your browser is using to do all of these calculations.)

Data Collection for Slope of Line Segments with variable left end-point
Data Point(𝑥2,𝑦2)Δ𝑥 Average Rate of Change over Interval
= Line Segment's Slope:

Δ𝑦Δ𝑥 =𝑓(𝑥2)𝑓(1)𝑥21
1(-0.80000000, 0.57434918)-1.800000000.79202823

After you've collected some data, you can use the "Sort data" button above so that your smallest interval Δ𝑥 is at the bottom of the table. The value for the Average Rate of Change for that smallest interval, in the last row, is your (current) best estimate for 𝑑𝑓𝑑𝑥𝑥=1, and we will use this value – the one from the bottom row – next in "Part III: Bounding the error."


Part III: Bounding the error

We explained what this graph shows on the preceding screen.

Sample Upper & Lower Bounds for the Instantaneous Rate of Change at x = 1

Conclusion

[Concluding text will appear here after you've determined the value
of 𝑑𝑓𝑑𝑥𝑥=1 within the desired error bound.]

[End of lab]



The Upshot

  1. A function's average rate of change over an interval is equal to the slope of the secant line that passes through the endpoints of the interval: average rate of change[𝑥1,𝑥2]=slope of line segment=Δ𝑦Δ𝑥=𝑓(𝑥2)𝑓(𝑥1)𝑥2𝑥1
  2. You can make the average rate of change arbitrarily close to the instantaneous rate of change at 𝑥1 by making 𝑥2 sufficiently close to 𝑥1 (and hence Δ𝑥 sufficiently small).

These points raise a natural question that led to the development of Calculus itself:

How small can we make Δ𝑥??

We know it can't be exactly zero, because we can't divide by zero in the slope calculation. So how small can we make it?

We will take up this key question – arguably THE key question – when we explore THE key tool in Calculus in the next Chapter, on "Limits".


Reference for Oehrtman's Five Questions: Oehrtman, M. (2008). Layers of abstraction: Theory and design for the instruction of limit concepts. In M. P. Carlson & C. Rasmussen (Eds.), Making the Connection: Research and Teaching in Undergraduate Mathematics Education, (MAA Notes, Vol. 73, pp. 65-80). Washington, DC: Mathematical Association of America.