Local does not mean universal
The error depends on the function, expansion point, and distance from that point. A Taylor series may converge only within a limited interval; a finite polynomial can become inaccurate far away. Use the remainder bound or compare with the original function over the range where the approximation will be used.
Optimisers use first- and second-order Taylor approximations to estimate how a loss changes after a parameter step. Newton's method uses local curvature; see Jacobians and Hessians. The derivative definition is the first-order version; see derivatives and slope.
Why the expansion point matters
A Taylor polynomial matches the function's value and several derivatives at a chosen point a. For eˣ near zero, T₃(x)=1+x+x²/2+x³/6. At x=0.1 the cubic is close to e^0.1; at a point farther from zero, omitted higher-order terms matter more. Expanding around a different point can give a much better approximation near that location. A Taylor polynomial is local information expressed as a polynomial, not automatically an exact identity over the whole real line.
The remainder measures the approximation error. If the next derivative is bounded by M between a and x, the degree-n error is at most M|x−a|ⁿ⁺¹/(n+1)! under the usual Taylor theorem conditions. This bound depends on the interval, not just the degree. Some functions have a Taylor series that converges only within a radius; others have a convergent series that does not equal the function outside its convergence interval. Use the approximation only over a range where error is controlled. Optimisers use first- and second-order expansions as local models, then recompute as the parameters move.
Try this above
Increase the polynomial degree and move x farther from the expansion point. Compare the approximation error near and far from that point.
For sin(x) around zero, the degree-three polynomial is x−x³/6. At x=0.2 it closely approximates sin(0.2), because the neglected terms are small near the expansion point. At x=2, the same low-degree polynomial is much less accurate. The polynomial degree is therefore not a stand-alone accuracy guarantee; the distance from a and the size of higher derivatives both matter. In numerical work, test the approximation over the actual operating range rather than only at the point where derivatives were matched.
A first-order Taylor polynomial is the tangent line; a second-order polynomial adds curvature. For a small parameter update Δ, a loss can be approximated as f(x+Δ)≈f(x)+∇f(x)ᵀΔ+½ΔᵀHΔ. Gradient methods use the linear term, while Newton-style methods use both. The approximation is only local, so an optimiser may need a line search or trust region to avoid taking a step where the polynomial no longer predicts the actual function.