Secant Lines

Graphs a function and a secant line for the function, given two points on the graph of the function, and computes the slope of the secant line.
How to use   ||   Examples   ||   Other Notes


How to use
The text input field marked "f (x)=" can accept a wide variety of expressions to represent functions. The text input fields marked "x1=" and "x2=" can accept a real number in decimal notation. The buttons under the graph allow various manipulations of the graph coordinates.
Examples
Parabola:
f (x) = x2
x1=0, x2=1    
Exponential:
f (x) = ex
x1=0, x2=1    
Cosine:
f (x) = cos x
x1=0, x2=0.5    

Other Notes
Labels under the text input fields display the values of f (x1), f (x2), and the slope of the secant line.