Find a local approximation
Trigonometric functions use radians. The center must be in the function’s differentiable real domain.
What this calculator helps you find
Automatic derivative
Finds the symbolic first derivative and evaluates its slope at the chosen center.
Tangent-line model
Builds and simplifies the tangent line used as the local approximation.
Actual-value comparison
Compares the estimate with f(x) whenever the real function is defined there.
Error and differential
Reports absolute error, relative error when defined, dy, and the actual change Δy.
Interactive graph
Shows the curve, tangent, center, estimate, and actual target value together.
Worked steps
Explains the calculation in order with rendered mathematical notation.
Math input
Enter expressions with the on-screen math keyboard or type standard function notation.
Precision control
Choose the number of decimal places shown in numerical results.
What is linear approximation?
Linear approximation replaces a differentiable function near a reference point with its tangent line. The resulting linearization matches the function’s value and first derivative at the center, so it is most useful for inputs close to that point.
The tangent line at (a, f(a)) has slope f′(a). Evaluating this line at x gives the linear approximation to f(x).
How to use the formula
- Enter a real-valued function f(x), the center a, and the input x to estimate.
- Choose the number of decimal places for displayed numerical values.
- Calculate L(x) = f(a) + f′(a)(x − a). The derivative engine verifies differentiability at a.
- Compare the approximation with f(x), when the actual value exists, and review the absolute and relative errors.
- Use the differential values dy and Δy to compare the tangent model’s predicted change with the function’s actual change.
Differential and actual change
For dx = x − a, the differential dy = f′(a)dx predicts the local output change. The actual change is Δy = f(a + dx) − f(a); their difference reflects the function’s curvature over that interval.
When is a linear approximation useful?
A linearization is a local model, not a replacement for the original function over every input. The calculator reports the actual value and error only when the original function is defined at the requested evaluation point. A zero actual value has no relative error percentage because it would require division by zero.
- Using f(a) as the slope instead of f′(a).
- Entering degrees for trigonometric inputs; this calculator uses radians.
- Treating a tangent estimate as exact rather than approximate.
- Using a center outside a logarithm or square-root function’s real domain.
- Interpreting relative error when the actual value is zero.
Linear approximation FAQ
What is the formula for linear approximation?
The linearization of f at a is L(x) = f(a) + f′(a)(x − a). It is the tangent line evaluated at x.
How do I use a linear approximation calculator?
Enter the function, reference point a, and the nearby x-value. The calculator differentiates the function, evaluates the tangent-line model, and compares it with f(x) when defined.
What is the difference between linearization and linear approximation?
Linearization is the tangent-line function L(x) centered at a. A linear approximation is the value L(x) used to estimate f(x) at a particular input.
What is a differential?
For a small input change dx, the differential dy = f′(a)dx estimates the corresponding output change. The actual change is Δy = f(a + dx) − f(a).
Why is the estimate most accurate near a?
The tangent matches the function’s value and slope at a, but it does not include curvature. As x moves away from a, curvature can increase the difference.
When is relative error undefined?
Relative error divides the absolute error by |f(x)|. If the actual value f(x) is zero, that denominator is zero, so the percentage is undefined.
Does the calculator use radians?
Yes. Trigonometric expressions use radian measure.
Explore more calculus calculators
Choose a related tool for symbolic differentiation, curve analysis, or polynomial approximation.