Math Solver Free

Linear Approximation Calculator

Estimate f(x) from the tangent line at a — with the true value and the error shown.

Linear approximation L(x)
5.1

Actual f(x): 5.099019514

Absolute error: 0.0009804864072

Relative error: 0.019229%

Steps

Differentiate: f'(x) = 1 / 2 / sqrt(x)

Evaluate at the center: f(25) = 5

Slope at the center: f'(25) = 0.1

Tangent line: L(x) = 5 + 0.1*(x - 25)

Substitute x = 26: L(26) = 5.1

What Is Linear Approximation?

Linear approximation estimates a function's value at a hard point x by using the tangent line at a nearby easy point a. The formula is L(x) = f(a) + f′(a)(x − a), where f(a) is the known function value and f′(a) is the derivative — the slope — at that same point. This linear approximation calculator builds the linearization for any function you enter, evaluates it at your x, and then does the honest thing most textbook exercises skip: it computes the true f(x) as well, and reports the absolute and relative error, so you can see exactly how much the straight-line shortcut costs.

Why Does the Tangent Line Approximate the Curve?

Zoom in far enough on any smooth curve and it looks straight — and the straight line it resembles is the tangent. The derivative f′(a) is defined as the limit of secant slopes, which is precisely the statement that near a, the function changes almost exactly like a line of slope f′(a). The approximation is therefore not a trick but the derivative's definition put to work. Its quality is governed by curvature: the error term is about (1/2)f′′(a)(x − a)^2, so it stays tiny while (x − a) is small and f′′ is moderate, and it degrades quadratically as you move away.

How to Use This Calculator

  1. Enter the function f(x) — the field starts with sqrt(x).
  2. Enter the center a: a point close to x where f(a) and f′(a) are easy — 25 is the classic choice near 26 because both come out exact.
  3. Enter the target x and press Approximate.
  4. Read the steps: the derivative f′(x), the two evaluations f(a) and f′(a), the tangent line equation, and the substitution that produces L(x).
  5. Judge the error: the panel shows the actual f(x), the absolute error and the relative error as a percentage.

Worked Example 1: Approximating sqrt(26)

Take f(x) = sqrt(x) and a = 25. Then f(25) = 5 exactly, and f′(x) = 1/(2·sqrt(x)) gives f′(25) = 1/10 = 0.1. The linearization is L(x) = 5 + 0.1(x − 25). At x = 26: L(26) = 5 + 0.1(1) = 5.1. The true sqrt(26) is 5.0990195…, so the estimate is high by roughly 0.001 — about 0.02%. The overshoot is predictable: sqrt is concave down (f′′ < 0), so its tangent line lies above the curve.

Worked Example 2: Approximating (2.1)^3

Take f(x) = x^3 and a = 2, where everything is exact: f(2) = 8 and f′(x) = 3x^2 gives f′(2) = 12. The linearization is L(x) = 8 + 12(x − 2), so L(2.1) = 8 + 12(0.1) = 9.2. The true value is 2.1^3 = 9.261, an error of 0.061 (about 0.66%). Compare the two examples: the distance |x − a| is 1 in the first and 0.1 in the second, yet the second error is larger — because x^3 curves much more strongly (f′′(2) = 12) than sqrt(x) does near 25 (f′′(25) = −0.004). Distance and curvature together decide accuracy, exactly as the error formula says.

Linear Approximation, Differentials and Taylor Series

Three course topics are this one idea in different clothes. Differentials rename the pieces: dx = x − a and dy = f′(a)·dx, so dy is the linear approximation of the change Δy. The Taylor series (degree 1) at a is exactly L(x); higher-degree Taylor polynomials add (x − a)^2, (x − a)^3 terms that bend with the curve and shrink the error — try the Taylor series calculator to see the same sqrt(26) estimate improve term by term. And the derivative itself comes from our derivative calculator, which is also what powers step 1 of every computation on this page.

Three Mistakes to Watch For

First, choosing a far from x when a nearer exact point exists — the error grows with the square of the distance. Second, evaluating the derivative at x instead of at a: the slope must come from the center point, f′(a). Third, trusting the estimate far from a without checking the error — near a vertical tangent or a corner (where f′ blows up or does not exist, like sqrt(x) at 0), linear approximation fails entirely. The critical points calculator shows the related skill of interrogating f′ and f′′ about a function's behaviour.

Frequently Asked Questions

What is linear approximation?

Linear approximation estimates the value of a function near a point a using the tangent line at a: L(x) = f(a) + f'(a)(x - a). Because a smooth curve and its tangent line nearly coincide close to the point of tangency, L(x) is an excellent estimate of f(x) when x is near a — and it only needs arithmetic once f(a) and f'(a) are known. The function L is also called the linearization of f at a.

What is the linear approximation of sqrt(26)?

Using f(x) = sqrt(x) at a = 25: f(25) = 5 and f'(x) = 1/(2*sqrt(x)), so f'(25) = 1/10 = 0.1. The linearization is L(x) = 5 + 0.1*(x - 25), and L(26) = 5 + 0.1 = 5.1. The true value is sqrt(26) = 5.0990195..., so the approximation overshoots by about 0.00098 — a relative error under 0.02%. This is the calculator's default example.

How accurate is a linear approximation?

The error grows roughly like the square of the distance from a, scaled by the curvature f''(a): error ≈ (1/2)*f''(a)*(x - a)^2. Halving the distance to a quarters the error. That is why approximations are trusted only near the center point, and why choosing a close to x — with values you can compute exactly, like 25 for sqrt(26) — matters more than anything else in the setup.

What is the difference between linear approximation and the tangent line?

They are the same line, viewed two ways. The tangent line is the geometric object: the line touching the curve at (a, f(a)) with slope f'(a). Linear approximation is the act of using that line's values as estimates of the function's values nearby. The equation is identical: L(x) = f(a) + f'(a)(x - a). Differentials are the same idea in different notation: dy = f'(a) dx approximates the change Δy.

When should you use linear approximation instead of a calculator value?

In three situations: when the exact value cannot be computed by hand (roots, sines of awkward angles, e^0.1), when you need to know how sensitive an output is to a small input change (error propagation in physics and engineering), and when the function itself is only known through a table of values at one point. It is also the first term of the Taylor series — the Taylor series calculator shows what adding more terms buys you.

Is this linear approximation calculator free?

Yes — every tool on Math Solver Free is free with no sign-up, and all calculations run in your browser. Enter a function, the center a and the point x; the calculator shows the derivative, f(a), f'(a), the tangent line, the approximation, and the true value with both error measures so you can judge the estimate yourself.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team