TFT

Tangent Line Calculator – Find Tangent Line Equation Online

Find the equation of the tangent line to any function at any point with our free online tangent line calculator. Get slope, y-intercept, and the full tangent equation with step-by-step solutions.

Supports: polynomials, trig, exp, log functions

Examples:

Understanding Tangent Lines

A tangent line touches a curve at exactly one point and has the same slope as the curve at that point. It's the best linear approximation of the function near the point of tangency. Think of it as the direction the curve is heading at that exact moment.

The derivative of a function gives you the slope of the tangent line at any point. This is why calculus is essential for finding tangent lines – the derivative f'(x) tells you the instantaneous rate of change, which is exactly the slope you need.

How to Find a Tangent Line

Step 1: Find the point

Evaluate the function at the given x-value to get the y-coordinate.

Point: (x₀, f(x₀))

Step 2: Find the derivative

Calculate f'(x), the derivative function that gives the slope at any point.

f'(x) = d/dx[f(x)]

Step 3: Evaluate the slope

Plug the x-value into the derivative to get the slope at that point.

m = f'(x₀)

Step 4: Write the equation

Use point-slope form, then convert to slope-intercept form.

y - y₀ = m(x - x₀)
y = mx + b

Worked Examples

Example 1: Parabola

Problem: Find the tangent line to f(x) = x² at x = 2

Step 1: Point: f(2) = 4, so point is (2, 4)

Step 2: Derivative: f'(x) = 2x

Step 3: Slope: f'(2) = 2(2) = 4

Step 4: Equation: y - 4 = 4(x - 2) → y = 4x - 4

Example 2: Cubic function

Problem: Find the tangent line to f(x) = x³ at x = 1

Step 1: Point: f(1) = 1, so point is (1, 1)

Step 2: Derivative: f'(x) = 3x²

Step 3: Slope: f'(1) = 3(1)² = 3

Step 4: Equation: y - 1 = 3(x - 1) → y = 3x - 2

Example 3: Sine function

Problem: Find the tangent line to f(x) = sin(x) at x = 0

Step 1: Point: f(0) = sin(0) = 0, so point is (0, 0)

Step 2: Derivative: f'(x) = cos(x)

Step 3: Slope: f'(0) = cos(0) = 1

Step 4: Equation: y - 0 = 1(x - 0) → y = x

Example 4: Square root function

Problem: Find the tangent line to f(x) = √x at x = 4

Step 1: Point: f(4) = 2, so point is (4, 2)

Step 2: Derivative: f'(x) = 1/(2√x)

Step 3: Slope: f'(4) = 1/(2×2) = 1/4 = 0.25

Step 4: Equation: y - 2 = 0.25(x - 4) → y = 0.25x + 1

Example 5: Natural logarithm

Problem: Find the tangent line to f(x) = ln(x) at x = 1

Step 1: Point: f(1) = ln(1) = 0, so point is (1, 0)

Step 2: Derivative: f'(x) = 1/x

Step 3: Slope: f'(1) = 1/1 = 1

Step 4: Equation: y - 0 = 1(x - 1) → y = x - 1

Quick Fact

The word "tangent" comes from Latin "tangere," meaning "to touch." Gottfried Wilhelm Leibniz coined the term in 1684 when he published his work on differential calculus. The tangent line problem – finding a line that just touches a curve – was one of the key motivations that led Newton and Leibniz to independently develop calculus in the 17th century.

Common Derivatives Reference

Power Rule

d/dx(xⁿ) = nxⁿ⁻¹

Example: d/dx(x³) = 3x²

Sine

d/dx(sin x) = cos x

Cosine

d/dx(cos x) = -sin x

Exponential

d/dx(eˣ) = eˣ

eˣ is its own derivative!

Natural Log

d/dx(ln x) = 1/x

Square Root

d/dx(√x) = 1/(2√x)

Frequently Asked Questions

What's the difference between tangent and secant lines?

A secant line passes through two points on a curve. A tangent line touches at exactly one point and has the same slope as the curve there. As the two secant points get closer together, the secant line approaches the tangent line – this is the foundation of the derivative.

Can a tangent line cross the curve?

Yes! Despite the name "tangent" meaning "to touch," a tangent line can cross the curve at the point of tangency. This happens with inflection points, like the tangent to y = x³ at x = 0, which is the x-axis (y = 0).

What if the derivative is zero?

A zero derivative means a horizontal tangent line. This occurs at local maxima, minima, and some inflection points. The tangent equation becomes y = constant (the y-value at that point).

What if the derivative is undefined?

An undefined derivative means a vertical tangent line (infinite slope). This happens at sharp corners or cusps. The tangent equation is x = constant (the x-value at that point).

How is this used in real applications?

Tangent lines approximate complex functions with simple linear ones. Engineers use this for small-signal analysis in circuits. Economists use it for marginal analysis. Physicists use it for instantaneous velocity. Linear approximation is everywhere in science and engineering.

What's the normal line?

The normal line is perpendicular to the tangent line at the point of tangency. If the tangent slope is m, the normal slope is -1/m (negative reciprocal). Normal lines are used in optics, computer graphics, and physics for reflection calculations.

Other Free Tools

Derivative Calculator – Differentiate Functions Step by Step

Calculate the derivative of any function with our free online derivative calculator. Applies power, product, quotient, and chain rules with detailed step-by-step differentiation shown.

Gradient Calculator – Find Slope of a Function at a Point

Calculate the gradient or slope of any function at a specific point with our free online gradient calculator. Uses differentiation to find the exact rate of change at any x value.

Slope Calculator – Find the Slope of a Line Online

Calculate the slope or gradient of any line using two points or a linear equation with our free online slope calculator. Find slope, intercepts, and line equations easily.

Definite Integral Calculator – Compute Integrals Numerically

Calculate definite integrals numerically with our free online integral calculator. Evaluate the area under any function curve over any interval with accurate numerical results.

Limit Calculator – Evaluate Limits of Functions Online

Calculate limits of any function as x approaches a value or infinity with our free online limit calculator. Evaluates one-sided and two-sided limits with clear results.

Riemann Sum Calculator – Approximate Integral with Rectangles

Approximate integrals using Riemann sums with our free online Riemann sum calculator. Choose from left, right, midpoint, or trapezoidal methods with visual rectangle illustrations.

2D Function Plotter – Plot y = f(x) Graphs Online

Plot any mathematical function y = f(x) on an interactive graph with our free online 2D function plotter. Visualize polynomials, trig functions, exponentials, and more instantly.

Free Online Scientific Calculator – Advanced Math Functions

Perform complex scientific calculations online with our free scientific calculator. Supports trigonometry, logarithms, exponents, roots, and more – ideal for students and professionals.