Tangent Line Calculator

Find the tangent line equation y=f(x₀)+f'(x₀)(x−x₀) at any point. Also computes the normal line (slope = −1/m), linear approximation L(x), y-intercept, and x-intercept.

Tangent line equation
Slope m = f'(x₀)
y₀ = f(x₀)
Extended More scenarios, charts & detailed breakdown
Tangent line
Slope m
y₀
Professional Full parameters & maximum detail

Tangent & Normal

Tangent line y=mx+b
Normal line

Intercepts

y-intercept
x-intercept

How to Use This Calculator

  1. Enter the function f(x) (e.g. x^2+sin(x)).
  2. Enter the point x₀.
  3. Get the tangent line equation, slope m=f'(x₀), and y₀=f(x₀).
  4. Use the Normal Line tab for the perpendicular line.
  5. Use Linear Approximation to estimate f(x) near x₀ and check the error.

Formula

Tangent: y = f(x₀) + f'(x₀)(x−x₀)  |  Normal: y = f(x₀) − (1/f'(x₀))(x−x₀)

Example

f(x)=x² at x₀=3: f(3)=9, f'(3)=6. Tangent: y=9+6(x−3)=6x−9. Normal: y=9−(1/6)(x−3).

Frequently Asked Questions

  • The tangent line at point (x₀, f(x₀)) has slope m=f'(x₀) and equation y−f(x₀)=f'(x₀)(x−x₀). It is the best linear approximation to the curve near x₀.
  • The normal line is perpendicular to the tangent line at the same point. Its slope is −1/m (negative reciprocal of the tangent slope), so its equation is y−f(x₀) = (−1/m)(x−x₀).
  • Linear approximation (or linearization) uses the tangent line L(x) = f(x₀) + f'(x₀)(x−x₀) to estimate f(x) for x near x₀. For example, sin(0.1) ≈ 0 + 1·(0.1) = 0.1 (exact: 0.0998).
  • Set y=0: 0 = f(x₀) + f'(x₀)(x−x₀), so x = x₀ − f(x₀)/f'(x₀). This is one step of Newton's method for root-finding.
  • Set x=0: y = f(x₀) − f'(x₀)·x₀. The tangent line in slope-intercept form is y = f'(x₀)·x + [f(x₀)−f'(x₀)·x₀].

Related Calculators

Sources & References (5)
  1. Tangent Lines — Paul's Online Math Notes — Lamar University
  2. MIT OCW 18.01 — Tangent Lines — MIT OpenCourseWare
  3. Tangent Line — Khan Academy — Khan Academy
  4. Stewart's Calculus — Tangent Lines — Cengage / Stewart
  5. OpenStax Calculus Vol. 1 — Ch. 3.1 — OpenStax