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)=x3,x=2f(x) = x^{3},\quad x = 2

y=12x−16\displaystyle y = 12x - 16

Slope

m=12\displaystyle m = 12

Point of tangency

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

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

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

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

    So f′(x)=3x2f'(x) = 3x^{2}.

  3. Slope of the tangent

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

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

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

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

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

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

    y−8=12(x−2)y - 8 = 12\left(x - 2\right)
  6. Equation of the tangent line

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

    y=12x−24+8=12x−16\begin{aligned} y &= 12x - 24 + 8 \\ &= 12x - 16 \end{aligned}
  7. Result

    The tangent line to x3x^{3} at x=2x = 2 is y=12x−16y = 12x - 16.

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

Points on the graph

  • y = x^3: zero (0, 0)
  • y = 12x - 16: zero (1.333333, 0)
  • y = x^3 and y = 12x - 16: intersection (2, 8)

Worked examples