calculus calculators

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.

About this calculator

A tangent line touches a curve at exactly one point and has the same slope as the curve there. For f(x) = c·xⁿ + k, the derivative (slope of the tangent) is f′(x) = n·c·x^(n−1). At the point x₀, the slope is m = n·c·x₀^(n−1) and the y-coordinate is y₀ = c·x₀ⁿ + k. Using point-slope form, y − y₀ = m·(x − x₀), the tangent line equation becomes y = m·x + (y₀ − m·x₀). This calculator returns the y-intercept b = y₀ − m·x₀, so the full line is y = mx + b. Linearization using tangent lines is the foundation of Newton's method, L'Hôpital's rule, and first-order Taylor approximations.

How to use

Find the tangent to f(x) = 2x³ + 4 at x = 1. Enter Coefficient = 2, Power = 3, Constant = 4, x-coordinate = 1. Step 1 — slope: m = 3·2·1² = 6. Step 2 — y at x = 1: y₀ = 2·1³ + 4 = 6. Step 3 — y-intercept: b = y₀ − m·x₀ = 6 − 6·1 = 0. Tangent line: y = 6x + 0, or simply y = 6x. You can verify: at x = 1, y = 6, matching the point (1, 6) on the curve.

Frequently asked questions

What is the difference between a tangent line and a secant line?

A secant line crosses a curve at two distinct points and its slope is the average rate of change between those points. A tangent line touches the curve at exactly one point (locally) and its slope equals the instantaneous rate of change — the derivative — at that point. As the two points of a secant line are brought closer together, the secant slope approaches the tangent slope in the limit. This limiting process is the very definition of the derivative in calculus.

How do you find the equation of a tangent line to a curve at a given point?

First, compute the derivative f′(x) using differentiation rules. Evaluate f′ at the given x-value x₀ to get the slope m. Then find the y-coordinate y₀ = f(x₀). Finally, substitute into point-slope form: y − y₀ = m·(x − x₀), and simplify to slope-intercept form y = mx + b. This calculator automates those steps for single-term power functions plus a constant.

Why is the tangent line useful as a linear approximation?

Near the point of tangency, the tangent line is very close to the curve, making it a simple linear stand-in for a complicated function. This is called linearization or a first-order Taylor approximation: f(x) ≈ f(x₀) + f′(x₀)·(x − x₀). It is used in physics to approximate pendulum motion, in engineering to simplify control systems, and in numerical methods like Newton's root-finding algorithm. The closer x is to x₀, the more accurate the approximation.