How to find the equation of a tangent line at a point

A tangent-line equation needs two things: a point on the curve and the slope at that point. The original function gives us the point, and its derivative gives us the slope. Let’s put those pieces together and work through two examples.

Use the tangent-line formula

If f has a finite derivative at x=a, the tangent line passes through (a,f(a)) with slope f′(a). Substituting that point and slope into point-slope form gives

y-f(a)=f′(a)(x-a)y=f(a)+f′(a)(x-a)

The tangent line matches the curve’s direction at the point. It can cross the curve there or intersect the curve elsewhere; tangency describes the local slope.

Example: Find the tangent line to a quadratic at x = 4

f(x)=6x2-2x+5

First find the point on the curve by evaluating the original function at x=4.

f(4)=6(4)2-2(4)+5f(4)=96-8+5=93

The point is (4,93). Now differentiate and evaluate the derivative at the same x-value to find the slope.

f′(x)=12x-2f′(4)=12(4)-2=46

Substitute the point and slope into the tangent-line formula, then simplify if we want slope-intercept form.

y=93+46(x-4)y=93+46x-184y=46x-91
A parabola and its tangent at x equals fourThe curve and its tangent both pass through (4, 93), where the slope is 46.yx0501001502000246(4, 93)6x² − 2x + 546x − 91
The curve and its tangent both pass through (4, 93), where the slope is 46.

At x=4, the line gives y=46(4)-91=93, so it passes through the required point. Its slope is 46, matching f′(4).

Example: Find a tangent line to a sine function

Find the tangent line to f(x)=3sinx at x=0, with angles measured in radians. Evaluate the function and its derivative.

f(0)=3sin(0)=0f′(x)=3cosxf′(0)=3cos(0)=3

The point is (0,0), and the slope is 3. The tangent-line equation is

y=0+3(x-0)y=3x

Recognize horizontal and vertical tangents

A horizontal tangent has slope 0. When f′(a)=0, its equation is y=f(a). A vertical tangent, when established by the curve’s nearby direction, has equation x=a. It cannot be written with a finite slope in the point-slope formula. An undefined derivative can also occur at a corner, so the local behavior determines whether a vertical tangent exists.