Loading…

Tangent Line Approximator

Math Calculus • Derivatives

View all topics
5. Tangent Line Approximator
Computes the tangent line \(L(x)=f(a)+f'(a)(x-a)\), visualizes the local linearization near \(x=a\), and optionally shows a secant→tangent animation plus a sampled quadratic error bound.
Inputs
Supported: + − * / ^, parentheses, variable x, constants pi, e, sin cos tan, ln log(base 10), sqrt abs exp. Implicit multiplication: 2x, (x+1)(x-1), 2sin(x). Trig powers like cos^2(2x) are accepted.
Tangent is computed at \(x=a\).
LaTeX is best for readability.

Auto-fit focuses on \(x\in[a-w,a+w]\).
Secant uses points \(a\) and \(a+h\).
Click to auto-fill and compute.
Ready
Graph
Drag to pan • wheel/pinch to zoom • Auto fit centers near \(x=a\).
x: 0, y: 0, zoom(px/unit): 60
Result
Enter \(f(x)\) and \(a\), then click Compute.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the formula for the tangent line at x=a?

For a differentiable function y=f(x), the tangent line at x=a is L(x)=f(a)+f'(a)(x-a). The slope is f'(a) and the line passes through the point (a,f(a)).

How does the secant line relate to the tangent line?

The secant slope using step h is m_h=(f(a+h)-f(a))/h. As h approaches 0, m_h approaches f'(a), so the secant line approaches the tangent line.

What does local linearization mean in tangent line approximation?

Local linearization means using L(x) to approximate f(x) near x=a, so f(x) is approximately equal to L(x) for x close to a. The approximation is typically most accurate very near the tangent point.

Why might a tangent line not exist at the chosen point?

A tangent line may not exist if f(a) is undefined (outside the domain) or if f'(a) does not exist due to a cusp, corner, or an infinite slope. In such cases, the usual non-vertical line form y=mx+b may not apply.

What is the quadratic error bound shown by the calculator?

A common Taylor-type estimate is |f(x)-L(x)| <= (M/2)(x-a)^2, where M bounds |f''(x)| on the chosen interval. The calculator can estimate M by sampling f'' over the window, which is a heuristic and may miss sharp changes.