Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Linear approximation calculator

Enter a function, a point a where it's easy to work out, and the x you want to estimate. You get the linearization, the estimate, the true value and how far off the estimate is.

Use x, numbers, + − * / ^ and brackets, with sin, cos, tan, sec, csc, cot, arcsin, arccos, arctan, e^x, ln, log (base 10), log_2(x), sqrt and abs. You can write 2x, sin x and pi.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: See where the slope comes from in the difference quotient calculator, or check the conditions for a parallel tangent with the mean value theorem calculator.

What linear approximation is

Close to a point, a smooth curve looks almost straight. Linear approximation replaces f with its tangent line at x = a, called the linearization L(x), and uses that line to estimate f at nearby points. It's how you estimate √9.1 or sin(0.1) without a calculator, and it's the idea behind differentials.

The linearization formula

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

f(a) is the height at the center and f′(a) is the slope there. The estimate is f(x) ≈ L(x) for x near a.

Worked example

Estimate √9.1 using a = 9, where √9 = 3 is known.

  1. f(x) = √x, so f(9) = 3.
  2. f′(x) = 1/(2√x), so f′(9) = 1/6.
  3. L(x) = 3 + (1/6)(x − 9).
  4. L(9.1) = 3 + (1/6)(0.1) ≈ 3.016667.

The true value is √9.1 ≈ 3.016621, so the estimate is too high by about 0.000046. It overshoots because √x is concave down: the tangent line sits above the curve.

How accurate is it?

The error grows with the distance from a and with how sharply f bends. A rough guide is the next term of the Taylor series, f″(a)(x − a)²/2, which the calculator shows. Doubling the distance from a roughly quadruples the error.

Common linear approximations near 0

f(x)aL(x)
sin x0x
tan x0x
eˣ01 + x
ln(1 + x)0x
√(1 + x)01 + x/2
(1 + x)ⁿ01 + nx

Limitations

  • It only works well near a. Far away, the tangent line and the curve part ways.
  • f must be differentiable at a. At a corner or a vertical tangent, such as ∛x at 0, there is no useful linearization.
  • Today it's easy to compute f(x) directly. The value of linearization is in understanding how a small change in x moves f, which is what the calculator's error rows show.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • √9.1 from a = 9: L(9.1) = 3 + 0.1/6 ✓
  • sin(0.1) from a = 0: error −0.000166583 ✓
  • ln x has no linearization at 0 ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What is the linear approximation formula?

L(x) = f(a) + f′(a)(x − a). It is the equation of the tangent line to f at x = a.

What's the difference between linear approximation and linearization?

They're the same idea. The linearization is the function L(x); the linear approximation is using L(x) in place of f(x) near a.

How do I pick a?

Choose a point close to your x where f and f′ are easy to work out exactly: a perfect square for √x, 0 for sin x, 1 for ln x.

Is the linear approximation an overestimate or an underestimate?

Where f is concave down (f″ < 0), the tangent line lies above the curve, so it overestimates. Where f is concave up, it underestimates.

Related calculators