John Olive
The University of Georgia
With Geometer’s Sketchpad v. 3.0 it is possible to construct the graph of almost any algebraic function using the Plot as (x, y) feature under the Graph menu and the Locus construction under the Construct menu. [Note: To obtain smoother graphs you should increase the number of samples in a locus object to 200. You can do this using the Preferences under the Display menu, and then clicking on the More button.]
To construct a graph of a function start by selecting Create Axes from the graph menu. This brings up the x-y axes. The following steps can be used to construct dynamic graphs of most functions. First you need to create a script for constructing control points that will be used for varying the coefficients of your function. Once you have your script use it to construct a control point for each coefficient needed for your particular function.
Creating the Control Point Script
Creating a Cubic Function
In this activity we shall use our control_pt.gss script to create a control point that will be used to measure small changes in x. Call this control point dx. In the calculator create the measure of (x - dx/2) and (x + dx/2) . Using each of these measures and the measures of your four coefficients (a, b, c, and d) create the following two cubic expressions:
Figure 1
Constructing the Derivative
Lengthen dx so that you can see the three points distinctly on the locus of the function. Select the secant line and the point between the two points defining the line. This point is f(x) for the cubic function. Construct a line parallel to the secant line through f(x). Measure the slope of this "tangent" line. As you make dx very small the secant line becomes the tangent line. If you make dx large (dx > 2.0) and move your free point x, it will be obvious that the line parallel to the secant line through f(x) is not always tangent to the cubic function.
Create the expression for the derivative of your cubic function using the calculator. This will be the following expression: 3.a.x^{2}+2.b.x+c. Make dx very small. What do you notice about the slope of the tangent line and the value of this expression? Move x? Do these values remain the same? Do they remain equal to each other?
The value of the derivative varies with the position of x so we can plot this relationship. Select the measure of x and the expression 3.a.x^{2}+2.b.x+c IN THAT ORDER and Plot as (x, y) from the Graph menu. If you cannot see the plotted point move the point x towards the origin. Select this new plotted point and the point x IN THAT ORDER and select Locus under the Construct menu. What shape is the graph of the derivative function?
Vary your coefficients and then write three things
about the relationship between the two graphs (see Figure 2):
Investigating the Derivative of the Quadratic
Start a new sketch, create the axes and place a free point on the x-axis. Relabel this point x. Use your control_pt.gss script to create three control points, a, b and c. Follow the method you used for the cubic function to create the expression a.x^{2}+b.x+c and construct its graph. Create a control point dx and use this to construct a secant to your quadratic function. Construct the line through f(x) parallel to your secant line. Move point x to see the "tangent" and secant lines move around your parabola. Vary dx. Make it as large as you can. Move x again. Does the "tangent" line ever appear NOT to be tangent to the curve? Go back to your cubic sketch and try the same thing. What seems to be special about the quadratic function?
Challenge: Create the expression and plot the derivative of your quadratic f’(x)=2.a.x+b. Does the value of f’(x)= slope of the secant line for any dx? Prove (algebraically) that the secant line through the points f(x-dx/2) and f(x+dx/2) will ALWAYS be parallel to the tangent at f(x) for ANY quadratic function!