Calculus · Grade 12 and undergraduate

Equations of Tangent and Normal Lines

Quick answer

The tangent line to y = f(x) at x = a passes through (a, f(a)) with slope f′(a), so its equation is y − f(a) = f′(a)(x − a). The normal line passes through the same point at a right angle to the tangent, with slope −1/f′(a). Horizontal tangents occur where f′(x) = 0. To find tangent lines that pass through a point off the curve, write the tangent at an unknown point a and require it to pass through the given point.

What you'll learn

  • Write the equation of a tangent line at a point
  • Write the equation of a normal line
  • Find the points where a tangent is horizontal
  • Find tangent lines through a point not on the curve

Point and slope

The derivative f′(a)f'(a) is the slope of the curve at x=ax = a. With the point (a,f(a))(a, f(a)), point-slope form gives the tangent line:

y−f(a)=f′(a)(x−a)y - f(a) = f'(a)(x - a)

The normal line goes through the same point, perpendicular to the tangent, so its slope is the negative reciprocal:

y−f(a)=−1f′(a)(x−a)y - f(a) = -\frac{1}{f'(a)}(x - a)
Tangent and normal to y = x² at x = 3 The parabola y = x², the tangent line y = 6x − 9 touching it at (3, 9), and the normal line y = −x/6 + 9.5 crossing the tangent at a right angle at the same point. 12345468101214xy (3, 9)
  • y = x²
  • tangent y = 6x − 9
  • normal
Tangent and normal to y = x² at x = 3

Why perpendicular slopes multiply to −1

The tangent has direction (1,m)(1, m). Turning it a quarter turn gives the direction (−m,1)(-m, 1), whose slope is −1m-\tfrac{1}{m}. Perpendicular lines have slopes whose product is −1-1, so the normal’s slope is the negative reciprocal of the tangent’s. When the tangent is horizontal (m=0m = 0), the normal is vertical and has no slope; its equation is x=ax = a.

Worked examples

Common mistakes

Practice problems

  1. Find the slope of the tangent to y=x3y = x^3 at x=2x = 2.

    Answer

    1212

    Full solution

    y′=3x2=12y' = 3x^2 = 12 at x=2x = 2.

  2. Find the slope of the normal to y=x3y = x^3 at x=2x = 2.

    Answer

    −112-\tfrac{1}{12}

    Full solution

    The negative reciprocal of 1212.

  3. Find the tangent line to y=xy = \sqrt{x} at x=4x = 4.

    Answer

    y=x4+1y = \tfrac{x}{4} + 1

    Full solution

    The point is (4,2)(4, 2) and y′=12x=14y' = \tfrac{1}{2\sqrt{x}} = \tfrac{1}{4}: y−2=14(x−4)y - 2 = \tfrac{1}{4}(x - 4).

  4. Find the yy-intercept of the tangent to y=x2+1y = x^2 + 1 at x=2x = 2.

    Answer

    −3-3

    Full solution

    The point is (2,5)(2, 5) and the slope is 44: y−5=4(x−2)y - 5 = 4(x - 2), that is y=4x−3y = 4x - 3.

  5. At what xx does y=x2−6x+5y = x^2 - 6x + 5 have a horizontal tangent?

    Answer

    x=3x = 3

    Full solution

    y′=2x−6=0y' = 2x - 6 = 0.

  6. Find the tangent line to y=exy = e^x at x=0x = 0.

    Answer

    y=x+1y = x + 1

    Full solution

    The point is (0,1)(0, 1) and the slope is e0=1e^0 = 1.

  7. Find the normal line to y=x2y = x^2 at x=0x = 0.

    Answer

    x=0x = 0

    Full solution

    The tangent there is horizontal, so the normal is the vertical line through (0,0)(0, 0).

  8. A student writes the tangent to y=x2y = x^2 at x=3x = 3 as y−9=2x(x−3)y - 9 = 2x(x - 3). Give the correct tangent line.

    Answer

    y=6x−9y = 6x - 9

    Full solution

    The slope is f′(3)=6f'(3) = 6, a number, not 2x2x.

Frequently asked questions

How do I find the tangent line at x = a?

Compute the point (a, f(a)) and the slope f′(a), then use point-slope form: y − f(a) = f′(a)(x − a).

What is the normal line?

The line through the same point perpendicular to the tangent. Its slope is −1/f′(a) when f′(a) ≠ 0.

What if the tangent is horizontal?

Then f′(a) = 0 and the normal line is vertical: x = a.

Where does a curve have horizontal tangents?

At the x-values where f′(x) = 0.

How do I find tangents through a point off the curve?

Write the tangent at a general point a, substitute the outside point into its equation, and solve for a.

What to learn next