Graphs a function f (x) and the line tangent to the graph of f (x) for a given x value.
The text input fields marked "f (x)=" and "f '(x)=" can accept a wide variety of expressions to represent functions. The text input field marked "x=" can accept a real number in decimal notation. The buttons under the graph allow various manipulations of the graph coordinates.
For assistance computing the derivative f '(x), try the Derivative Calculator.
The equation for the tangent line can be found using the point-slope form for the equation for a line: y-y0=m(x-x0). In this case, x0 is the given x value, y0=f (x0), and m=f '(x0).
Since the graphing procedures do not attempt to check the calculus computation of f '(x), the graph can show the visual consequences of incorrect calculations, as in the incorrect example above.
However, this also allows the graphing procedures to produce visual effects other than tangent lines. For example, using the slope m=-1/f '(x) gives lines normal to the graph of the function f (x), an effect which can be achieved in the graph by entering this m expression into the text input field marked "f '(x)=" (Example: f (x)=ex, m=-e-x).