Tangent Line Calculator
Finds the equation of the tangent line to f(x) = c·xⁿ + k at a specified x-value. Use it to linearize a curve at any point for calculus or physics problems.
Last updated: September 2026
Tangent Line
y = 6x - 3 (slope 6 through (1, 3))
Formula below · 3 sources (tutorial.math.lamar.edu, mathworld.wolfram.com, openstax.org) · Updated Sep 2026
Compare with similar
About this calculator
The tangent line to y = f(x) at x₀ is the straight line that touches the curve there with the same slope:
y = f(x₀) + f′(x₀)(x − x₀), or y = m·x + b with m = f′(x₀) and b = f(x₀) − m·x₀.
For f(x) = c·xⁿ + k the power rule gives f′(x) = n·c·xⁿ⁻¹. The calculator evaluates the point and the slope, then prints the line in slope-intercept form, rounded to six decimals. Near x₀ the tangent is the best straight-line approximation of the curve (linearization), which is how small changes are estimated in physics and engineering. Negative powers are undefined at x = 0 and fractional powers need x ≥ 0. The chart below draws the curve with its tangent.
How to use
Example (the defaults): f(x) = 2x³ + 1 at x₀ = 1. f(1) = 3 and f′(x) = 6x², so m = 6. b = 3 − 6 = −3. Tangent: y = 6x − 3. Example 2: f(x) = x² at x₀ = 3 (c = 1, n = 2, k = 0): f(3) = 9, m = 6, b = −9, so y = 6x − 9. Linearization: with y = 6x − 3, f(1.1) ≈ 3.6, while the exact value is 2·1.331 + 1 = 3.662.
Frequently asked questions
What is the normal line?
The line through the same point perpendicular to the tangent, with slope −1/m. For y = 6x − 3 at (1, 3), the normal is y = −x/6 + 19/6. It does not exist as a slope when m = 0 (the normal is vertical).
What does a slope of 0 mean?
The tangent is horizontal, so x₀ is a critical point: a local maximum, minimum or a flat inflection such as x³ at 0.
How accurate is the tangent-line approximation?
The error grows with the square of the distance from x₀ and with the curvature f″. For 2x³ + 1 the tangent y = 6x − 3 estimates f(1.1) as 3.6 against the exact 3.662 (off by 0.062), and f(1.5) as 6 against the exact 7.75 (off by 1.75).
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.