Equation of a tangent line
Use f′(a) as the slope through (a, f(a)).
The tangent line to y = f(x) at x = a touches the curve at (a, f(a)) and has slope f′(a). In point-slope form: y − f(a) = f′(a)(x − a). Rearrange to y = mx + b.
Example: f(x) = x² + 1 at x = 2
- f(2) = 5, f′(x) = 2x so f′(2) = 4
- y − 5 = 4(x − 2) — Point-slope
- y = 4x − 3 — Tangent line
Why it works: The derivative gives the slope at the point, and the point is on the line, so point-slope form writes the tangent.
Tip: The tangent line is the best straight-line approximation to the curve near that point.