Equation of a tangent line
The straight line that touches a curve at one point with the same slope as the curve there.
Calculator
The live calculator needs JavaScript. The worked example below shows the same steps it would.
See it move
- At x = 2: f(x) = 2, slope f′(x) = 9 (coral tangent). Dashed: the derivative f′.
What the symbols mean
- the slope of the tangent,
- the coefficient of in f
- the coefficient of
- the coefficient of x
- the constant term
- the x-coordinate of the point of contact
When to use it
Use it for "find the equation of the tangent at x = 2" questions, for linear approximation ( near , the idea behind Newton's method), and as the first step to the normal line. The calculator works with any cubic and gives the line as y = mx + c.
Worked example
Find the tangent to f(x) = x³ − 3x at x₀ = 2 (c₃ = 1, c₂ = 0, c₁ = −3, c₀ = 0).
The tangent at x₀ touches the curve at (x₀, f(x₀)) and has slope f′(x₀):
The function is
Differentiate with the power rule:
Height of the curve at x₀:
Slope at x₀:
The tangent's y-intercept is f(x₀) − m·x₀:
So the tangent line is
Answer The slope is 9 and the tangent meets the y-axis at −16
Why it works
It is the point-slope form of a line, , with the point on the curve and the slope from the derivative.
Common mistakes
- Using (a function) as the slope instead of the number .
- Using the y-value of the derivative as the point: the point is .
- For the normal, forgetting it is perpendicular: slope .