Skip to content
FiftyCalc Free calculators for all 50 states

Tangent Line Calculator

Test cases replayed : 6 of 6 match · Methodology · No outside source listed

Enter the coefficients of f(x) = a₄x⁴ + a₃x³ + a₂x² + a₁x + a₀ and the point x₀ to get the tangent line y = mx + b.

Result

Sample figures

Tangent line—

f(x₀), the y of the point of tangency —

  • Slope m = f′(x₀)—
  • y-intercept b of the tangent—
  • Slope of the normal line (−1/m; none when the tangent is horizontal)—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Tangent Line Calculator

Coefficient a₄ (of x⁴): enter a number. Prefilled example: 0.

Coefficient a₃ (of x³): enter a number. Prefilled example: 1.

Coefficient a₂ (of x²): enter a number. Prefilled example: 0.

Coefficient a₁ (of x): enter a number. Prefilled example: -2.

Constant a₀: enter a number. Prefilled example: 1.

Point of tangency x₀: enter a number. Prefilled example: 2.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Coefficient a₄ (of x⁴): enter a number.
  2. Coefficient a₃ (of x³): enter a number.
  3. Coefficient a₂ (of x²): enter a number.
  4. Coefficient a₁ (of x): enter a number.
  5. Constant a₀: enter a number.
  6. Point of tangency x₀: enter a number.
  7. Read the result: Tangent line; the panel also shows f(x₀), the y of the point of tangency, Slope m = f′(x₀), y-intercept b of the tangent and Slope of the normal line (−1/m; none when the tangent is horizontal).

How this calculator works

The tangent line to y = f(x) at x₀ passes through (x₀, f(x₀)) with slope m = f′(x₀). Its point-slope form is y − f(x₀) = f′(x₀)(x − x₀), so in slope-intercept form b = f(x₀) − m·x₀.

For f(x) = a₄x⁴ + a₃x³ + a₂x² + a₁x + a₀, the power rule gives f′(x) = 4a₄x³ + 3a₃x² + 2a₂x + a₁. Set the unused coefficients to 0 for a lower degree.

The normal line is perpendicular to the tangent, so its slope is −1/m; when the tangent is horizontal (m = 0), the normal is the vertical line x = x₀.

Worked example

Coefficient a₄ (of x⁴)0
Coefficient a₃ (of x³)1
Coefficient a₂ (of x²)0
Coefficient a₁ (of x)-2
Constant a₀1
Point of tangency x₀2
Tangent liney = 10x - 15
f(x₀), the y of the point of tangency5
Slope m = f′(x₀)10
y-intercept b of the tangent-15
Slope of the normal line (−1/m; none when the tangent is horizontal)-0.1

Frequently asked questions

What is the tangent line to y = x³ − 2x + 1 at x = 2?

f(2) = 5 and f′(x) = 3x² − 2, so m = 10 and b = 5 − 20 = −15. The tangent is y = 10x − 15.

How do I write the tangent in point-slope form?

Use y − f(x₀) = m(x − x₀) with the values shown; for the default, y − 5 = 10(x − 2).

Related calculators