Tangent line to a curve at a point
Choose a function and a point with x-coordinate a: the grapher draws the tangent and gives its equation, with f(a), the derivative value f′(a) and the exact derivative.
Export:
Axes and grid
Window x … y …
Tick spacing on x on y
Grid Subdivisions
1 unit on x = 1 unit on y =
For an exact size on paper, print at 100% (no “fit to page”); the SVG and TikZ keep this scale too, and the PNG is saved at 300 dpi.
How to do it
- Type the function, e.g. x^2 − 2x − 3 or ln(x).
- Enter a in “Tangent at x =”.
- Read the equation y = mx + p under the graph, with the worked calculation.
- Change a to watch the tangent slide along the curve; the dashed derivative gives the slope at each point.
Tips
- The tangent is horizontal where f′(a) = 0: at the extrema.
- For a function not differentiable at a (|x| at 0), there is no single tangent.
- Export the figure as TikZ for a lesson or a test.
Frequently asked questions
What is the equation of the tangent?
At the point with x-coordinate a, the tangent is y = f′(a)(x − a) + f(a): its slope is the derivative f′(a).
How do I find where the tangent is parallel to a line?
Solve f′(a) = m, where m is the slope of the line; check the answer by typing it into the grapher.
Is my data uploaded?
No, everything is computed in your browser.