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)=sin⁡x,x=0f(x) = \sin x,\quad x = 0

y=x\displaystyle y = x

Slope

m=1\displaystyle m = 1

Point of tangency

(0,0)\displaystyle \left(0, 0\right)
Show the work
  1. Derivative of sine

    This is a standard derivative: sin⁡x\sin x differentiates to cos⁡x\cos x.

    Using ddxsin⁡x=cos⁡x\frac{d}{dx}\sin x = \cos x

    ddx[sin⁡x]=cos⁡x\frac{d}{dx}\left[\sin x\right] = \cos x
  2. The derivative

    So f′(x)=cos⁡xf'(x) = \cos x.

  3. Slope of the tangent

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

    m=f′(0)=1\begin{aligned} m &= f'(0) \\ &= 1 \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=xy = x
  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 sin⁡x\sin x at x=0x = 0 is y=xy = x.

Drag to pan. Scroll or pinch to zoom. Arrow keys pan and + / − zoom when the graph has focus.
  • y = sin(x)
  • y = x

Points on the graph

  • y = sin(x): zero (0, 0)
  • y = sin(x): maximum (1.570796, 1)
  • y = sin(x): minimum (-1.570796, -1)
  • y = x: zero (0, 0)
  • y = sin(x) and y = x: intersection (0, 0)

Worked examples