Tangent Line Calculator

Type a function and the value of x where the tangent touches.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

At x =aa

A number such as 2, -1/2 or 0.5.

Try

Result

You enteredf(x)=x2,x=0f(x) = x^{2},\quad x = 0

y=0\displaystyle y = 0

Slope

m=0\displaystyle m = 0

Point of tangency

(0,0)\displaystyle \left(0, 0\right)
Show the work
  1. Power rule

    xx is raised to the constant power n=2n = 2, so the exponent comes down in front and drops by one.

    Using ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}

    ddx[x2]=2x\frac{d}{dx}\left[x^{2}\right] = 2x
  2. The derivative

    So f′(x)=2xf'(x) = 2x.

  3. Slope of the tangent

    The slope of the tangent at x=0x = 0 is the derivative there.

    m=f′(0)=0\begin{aligned} m &= f'(0) \\ &= 0 \end{aligned}
  4. Point of tangency

    The tangent touches the graph at x=0x = 0, where the height is f(0)f(0).

    f(0)=0f(0) = 0
  5. Point-slope form of a line

    A line through (x1,y1)=(0,0)(x_1, y_1) = (0, 0) with slope mm.

    Using y−y1=m(x−x1)y - y_1 = m\left(x - x_1\right)

    y=0y = 0
  6. Equation of the tangent line

    Solve for yy to write the line as y=mx+by = mx + b.

  7. Result

    The tangent line to x2x^{2} at x=0x = 0 is y=0y = 0.

Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = x^2
  • y = 0

Points on the graph

  • y = x^2: zero (0, 0)
  • y = x^2: minimum (0, 0)
  • y = x^2 and y = 0: intersection (0, 0)

Worked examples