AP Calculus AB and BC

Tangent and Normal Line Finder (Teaching Mode)

The tangent line at x = a has slope f'(a) and passes through the point (a, f(a)), so its equation is y = f'(a)(x - a) + f(a). The normal line is perpendicular there, so its slope is the negative reciprocal -1/f'(a). Method: find f'(x), evaluate it at a to get a number, then use point-slope form.

Problem
1 / 6
Tangent and normal line
f(x) = x^2 \quad \text{at} \quad x = 1
  1. f(1) = 1^2 = 1 \quad \text{so the point is } (1, 1)

A tangent line touches a curve at a single point and matches its steepness there; a normal line passes through that same point at a right angle to the tangent. To build either one you need two things: a slope and a point. The point is (a,f(a))(a, f(a)), and the slope is f(a)f'(a), the derivative evaluated at x=ax = a. That single fact, that the derivative at a point equals the slope of the tangent line there, is AP Topic 2.2 (CHA-2.C.1), and it is what this tool makes visible: it computes f(x)f'(x), evaluates the slope at the point you pick, and assembles both the tangent and the normal equation from point-slope form.

Here is why the tangent slope is the derivative and not a separate formula you have to memorize. The average rate of change of ff between x=ax = a and a nearby point xx is the difference quotient:

f(x)f(a)xa\frac{f(x) - f(a)}{x - a}

This is exactly the slope of the secant line through those two points (Topic 2.1). As the second point slides toward x=ax = a, the secant pivots into the tangent, and that limit of secant slopes is the definition of f(a)f'(a). So the tangent slope and the derivative are the same number by construction. That same tangent line doubles as the local linear approximation of ff near x=ax = a (Topic 4.6), so the equation you build here gets reused when you estimate function values.

yf(a)=f(a)(xa)y=f(a)(xa)+f(a)y - f(a) = f'(a)(x - a) \quad\Longrightarrow\quad y = f'(a)(x - a) + f(a)

The normal line shares the point (a,f(a))(a, f(a)) but runs perpendicular to the tangent. Perpendicular lines have slopes that are negative reciprocals, so if the tangent slope is f(a)f'(a), the normal slope is 1f(a)-\frac{1}{f'(a)}. Everything else is identical: same point, point-slope form, solve for yy. The one case to watch is a horizontal tangent, where f(a)=0f'(a) = 0: the normal is then the vertical line x=ax = a, because 10-\frac{1}{0} is not a number.

yf(a)=1f(a)(xa)y - f(a) = -\frac{1}{f'(a)}(x - a)

Evaluate the slope to a number first

The most common lost point on this problem type is writing the slope as f(x)f'(x) with xx still in it. The slope of one specific tangent line is a single number, so differentiate to get f(x)f'(x), then substitute x=ax = a before you write the equation. On calculator-active AP questions you may evaluate f(a)f'(a) numerically, but you still report the line, not the derivative.

Behavior at x=ax = aTangent slope f(a)f'(a)What the two lines look like
f(a)f'(a) is a nonzero numberthat numberslanted tangent; normal slope 1f(a)-\frac{1}{f'(a)}
f(a)=0f'(a) = 0: horizontal tangent00tangent is y=f(a)y = f(a); normal is vertical x=ax = a
f(a)f'(a) does not exist: corner or cuspundefinedno tangent line by the standard method (Topic 2.4)
f(a)f'(a) does not exist: vertical tangentundefinedthe tangent line exists but is vertical, x=ax = a, with no slope, so the slope-based point-slope method cannot build it (Topic 2.4)

Worked example

Tangent and normal line to a parabola

Find the tangent line and the normal line to f(x)=x2+1f(x) = x^2 + 1 at x=2x = 2.

  1. Find the derivative function with the power rule (Topic 2.5). For f(x)=x2+1f(x) = x^2 + 1, the derivative is f(x)=2xf'(x) = 2x. This is a function of xx, not yet a slope.
  2. Evaluate the derivative at the point to turn it into a slope. At x=2x = 2, f(2)=22=4f'(2) = 2 \cdot 2 = 4. This 44 is the slope of the tangent line, because the derivative at a point is the slope of the tangent there (CHA-2.C.1). Do not leave xx in the slope.
  3. Find the point of tangency on the curve by evaluating ff, not ff': f(2)=22+1=5f(2) = 2^2 + 1 = 5. So both lines pass through (2,5)(2, 5).
  4. Write the tangent line in point-slope form with slope 44 and point (2,5)(2, 5): y5=4(x2)y - 5 = 4(x - 2). Distribute and solve for yy: y=4x8+5=4x3y = 4x - 8 + 5 = 4x - 3.
  5. Get the normal slope as the negative reciprocal of the tangent slope: 14-\frac{1}{4}. The normal line is perpendicular to the tangent at (2,5)(2, 5).
  6. Write the normal line in point-slope form with slope 14-\frac{1}{4} and the same point (2,5)(2, 5): y5=14(x2)y - 5 = -\frac{1}{4}(x - 2). Solve for yy: y=14x+12+5=14x+112y = -\frac{1}{4}x + \frac{1}{2} + 5 = -\frac{1}{4}x + \frac{11}{2}.

Tangent line: y=4x3y = 4x - 3. Normal line: y=14x+112y = -\frac{1}{4}x + \frac{11}{2}. Both pass through the point of tangency (2,5)(2, 5).

Frequently asked questions

Why is the slope of the tangent line the derivative?

Because the derivative is defined as the limit of average rates of change. The slope between x=ax = a and a nearby point is the secant slope (the difference quotient from Topic 2.1); as the nearby point approaches aa, the secant lines approach the tangent line, and their slopes approach f(a)f'(a). The tangent slope is that limit, so it equals f(a)f'(a) (Topic 2.2, CHA-2.C.1).

How do I find the normal line once I have the tangent?

Keep the same point (a,f(a))(a, f(a)) and use the negative reciprocal of the tangent slope. If the tangent slope is f(a)f'(a), the normal slope is 1f(a)-\frac{1}{f'(a)}, and the normal line is yf(a)=1f(a)(xa)y - f(a) = -\frac{1}{f'(a)}(x - a). Perpendicular slopes always multiply to 1-1, which is what negative reciprocal means.

What if the derivative is zero at the point?

Then the tangent is horizontal: f(a)=0f'(a) = 0 makes the tangent line y=f(a)y = f(a), a flat line through the point. The normal is perpendicular to horizontal, so it is the vertical line x=ax = a. You cannot write it as y=mx+by = mx + b because 10-\frac{1}{0} has no value, so state the normal as x=ax = a.

Do I plug in the point before or after differentiating?

After. Differentiate first to get the whole function f(x)f'(x), then substitute x=ax = a to get the slope as one number. Substituting into f(x)f(x) too early loses the variable you need to differentiate, and it is another common mistake that produces a wrong slope on this problem type.