Linearization and Taylor Series
Vector Calculus
A Taylor series approximates a smooth function by a polynomial. Near a point a, the k-th order approximation is f(x) approx f(a) + f'(a)(x - a) + frac{f''(a)}{2!}(x-a)^2 + dots + frac{f^{(k)}(a)}{k!}(x - a)^k. The first-order approximation is the tangent line (linearization); the second-order versio
Taylor series approximate a smooth function by a polynomial around a point.
No Taylor series โ no convergence proofs, no Newton's method, no Laplace approximation in Bayesian ML.
A Taylor series approximates a smooth function by a polynomial. Near a point , the -th order approximation is . The first-order approximation is the tangent line (linearization); the second-order version is a parabola tangent to the function at .
For multivariable , the Taylor expansion becomes . Linearization uses only the gradient; quadratic approximation adds the Hessian term. This is the bedrock of almost all continuous optimization theory.
Approximation quality depends on how far you are from the base point and how non-polynomial is. The remainder term typically decays as for smooth functions, so small neighborhoods admit very accurate low-order approximations. For smooth functions analytic in a neighborhood, the series converges exactly to โ but not every smooth function has this property (a famous counter-example is , smooth but not analytic at 0).
Linearization is a recurring idea in ML. Gradient descent uses the 1st-order Taylor approximation to propose a step. Newton's method uses the 2nd-order approximation and jumps directly to the minimum of the local quadratic model. Natural gradient uses a Riemannian correction based on the Fisher metric. Trust region methods use quadratic models but constrain step size to where the model is trustworthy.
Beyond optimization, Taylor series power Laplace approximations (approximate a posterior by its 2nd-order expansion around the mode), extended Kalman filters (linearize nonlinear dynamics at each step), and numerical solvers for ODEs and PDEs. Even approximating activation functions by low-degree polynomials for homomorphic-encryption-friendly inference is a Taylor-series maneuver. It is the universal 'zoom in close and pretend things are simple' tool.
Worked example โ Taylor series of $\cos(x)$ around 0 up to order 4: . At this gives , while the true value is โ indistinguishable to six decimals. The approximation error shrinks like , which is about at .
Exercises
Put your understanding to the test. Score + streak + speed all count.
Confirm you've got it
3 quick questions. Get 2 right to mark this lesson complete.