Skip to content
/ Tangent line

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

How to do it

  1. Type the function, e.g. x^2 − 2x − 3 or ln(x).
  2. Enter a in “Tangent at x =”.
  3. Read the equation y = mx + p under the graph, with the worked calculation.
  4. 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.