Tangent Line & Normal Line Calculator

Find the tangent line and the normal line to a polynomial at x = a, in slope-intercept and point-slope form, with the slope f′(a).

1, −4, 6 means x² − 4x + 6. Use 0 for a missing power. Up to degree 20. Use a point for decimals (1.5), no thousands separators, and separate numbers with spaces or a comma and a space.

Results

Tangent line
y = −2x + 5
Tangent line, point-slope form
y − 3 = −2(x − 1)
Point on the curve
(1, 3)
Slope of the tangent f′(1)
-2
Normal line
y = 0.5x + 2.5
Normal line, point-slope form
y − 3 = 0.5(x − 1)
Slope of the normal −1/f′(a)
0.5
Derivative used
f(x) = x² − 4x + 6 f′(x) = 2x − 4

How it’s calculated

The tangent line touches the curve at x = a and has the same slope as the curve there, which is the derivative f′(a). The normal line passes through the same point but is perpendicular to the tangent, so its slope is the negative reciprocal −1/f′(a). If the tangent is horizontal (f′(a) = 0) the normal is the vertical line x = a.

Tangent: y − f(a) = f′(a)(x − a) Normal: y − f(a) = −1/f′(a) × (x − a)

Near x = a the tangent line is a good approximation to the curve: this is the linear approximation L(x) = f(a) + f′(a)(x − a).

Example: f(x) = x² − 4x + 6 at a = 1. f(1) = 1 − 4 + 6 = 3 and f′(x) = 2x − 4, so f′(1) = −2. Tangent: y − 3 = −2(x − 1), which is y = −2x + 5. The normal has slope 1/2: y − 3 = 0.5(x − 1), so y = 0.5x + 2.5.

Frequently asked questions

What is the difference between a tangent and a normal line?

Both pass through the point (a, f(a)). The tangent has the curve’s slope f′(a); the normal is at right angles to it, with slope −1/f′(a).

What if the derivative is 0?

The tangent is horizontal, y = f(a), and the normal is the vertical line x = a, whose slope is undefined.

Can the tangent line cross the curve?

Yes. A tangent line only has to touch the curve with the same slope at that point; it may cross the curve elsewhere, or even at that point (at an inflection point).

How is the tangent line used for approximation?

Close to x = a, f(x) ≈ f(a) + f′(a)(x − a). This is the linear approximation, and it gets less accurate as you move away from a.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator