Given the function
3
f(x) = x – 2 x + 1
. Let
x[1]
= -2,
x[2] = -1
, and
x[3] = 0
.
a. Calculate
f(x[1]), f(x[2])
and state the slope of a secant line connecting
x[1], f(x[1])
and
x[2], f(x[2])
.
b. State the equation of the secant line of part a
c. Calculate
f(x[3])
, and state the slope of the secant line connecting
x[1], f(x[1])
and
x[3], f(x[3])
.
d. State the equation of the secant line of part c
e. Graph the function and the 2 secant lines together
in one graph. Include a legend for the graph.
Sample code for including a legend (click on the triangle to
open)
plot([-x^2+4, 4, -2*x+5], x = -5 .. 5, legend = [-x^2+4, 4,
-2*x+5]);
Please see sample code and graph attached as photo.
f. Describe your observations. Where do important
intervals naturally occur for this function





