All calculators

Education

Linear Approximation Calculator

Last updated: May 31, 2026

Written by Blake Boege

A linear approximation calculator computes the tangent line approximation of a function f(x) at a center point a. Using symbolic derivatives (with numerical differentiation fallbacks), it formats the point-slope and slope-intercept equations of the tangent line L(x), evaluates the approximation at target x, and computes the error |f(x) - L(x)|.

Calculate the tangent line approximation L(x) = f(a) + f'(a)(x - a) for any mathematical function f(x). Compares the linear estimate against the true function value and calculates the absolute error.

Quick Answer

Calculate the linear tangent approximation L(x) = f(a) + f'(a)(x - a) of a function f(x) near a center point a.

Function Parameters

Use standard math expressions like sqrt(x), x^2, sin(x), exp(x)

Where f(x) is easy to calculate · e.g. 4

The point you want to estimate · e.g. 4.1

Linear Tangent Results

L(4.1) Approximation

2.025

Error: 0.000154

Tangent LineL(x) = 2 + 0.25(x − 4)
Slope-InterceptL(x) = 0.25x + 1
f(a) Value2
f'(a) Derivative0.25
True f(x) Value2.024846
Absolute Error0.000154

Linear approximation uses the tangent line at a known point to estimate values of a function nearby.

Step-by-Step Tangent Calculations

[1]Evaluate the function f(x) at the center point x = a (4):
[2] - f(a) = f(4) = 2
[3]Compute the derivative f'(x) and evaluate it at x = a (4):
[4] - Symbolic derivative f'(x) = 1 / 2 / sqrt(x)
[5] - f'(a) = f'(4) = 0.25
[6]Construct the linear tangent approximation equation L(x):
[7] - Formula: L(x) = f(a) + f'(a)(x − a)
[8] - L(x) = 2 + (0.25)(x − 4)
[9]Evaluate the linear approximation L(x) at x = 4.1:
[10] - L(4.1) = 2 + (0.25)(4.1 − 4)
[11] - L(4.1) = 2.025
[12]Compare L(x) with the true value f(x) to evaluate error:
[13] - True f(4.1) = 2.024846
[14] - Approximation Error |f(x) − L(x)| = |2.024846 − 2.025| = 0.000154
Was this helpful?

Examples

Estimate √4.1 using f(x) = √x at a = 4

f(4) = 2 · f'(4) = 1/(2√4) = 0.25 · L(x) = 2 + 0.25(x - 4) · L(4.1) = 2 + 0.25(0.1) = 2.025

Estimate ln(1.05) using f(x) = ln(x) at a = 1

f(1) = 0 · f'(1) = 1/1 = 1 · L(x) = 0 + 1(x - 1) = x - 1 · L(1.05) = 1.05 - 1 = 0.05

How it works

Linear approximation replaces a curve with its tangent line at a known point:

Linear Approximation Formula L(x)

L(x) = f(a) + f'(a)(x − a)

Where f(a) is the function value at center a, and f'(a) is the derivative (slope) at a.

Tangent Lines and Error Bounds

Because a tangent line matches both the height $f(a)$ and the rate of change $f'(a)$ of the function at the point of contact, it is the best possible linear estimate. The difference between the true function value $f(x)$ and the linear estimate $L(x)$ is the approximation error. In calculus, this error can be bounded using Taylor's inequality, which shows that the error depends on the maximum value of the second derivative $f''(x)$ in the interval between $a$ and $x$.

Related calculus calculators

Explore our calculators for derivative analyses, Taylor series, and integral bounds:

Related Calculators

More tools from Education

Frequently asked questions

Linear approximation (or tangent line approximation) is a calculus method of estimating the value of a complex function near a specific point using its tangent line. Since straight lines are easy to calculate, the tangent line L(x) acts as a close proxy for f(x) near the point of tangency.

Linear approximation is highly accurate when the evaluation point (x) is very close to the center point (a) of the tangent line. As you move further away from 'a', the curve of the actual function f(x) deviates from the straight line L(x), and the approximation error increases.

Linear approximation is simply the first-degree Taylor polynomial of f(x) centered at 'a'. While a first-degree approximation uses a straight line (L(x) = f(a) + f'(a)(x-a)), higher-degree Taylor polynomials add quadratic (x²), cubic (x³), and higher terms to better model the function's curvature.

Historically, linear approximation was vital for calculating values of complex functions (like square roots or sines) by hand. In modern mathematics, physics, and engineering, it is used to simplify complex non-linear differential equations into linear systems that are much easier to analyze and solve.