A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.
The nth-degree Taylor polynomial of f centered at a is P_n(x) = sum from k=0 to n of fk(a)/k! * (x - a)k. It is the unique polynomial of degree n that matches f and its first n derivatives at x = a. Taylor polynomials extend linear approximation to higher-order approximation: P_1 is the tangent line, P_2 adds curvature correction, and each additional term improves accuracy near a. The error (remainder) can be bounded by Taylor's inequality.
Start from linear approximation (n = 1), add the quadratic term (n = 2), and observe improvement. Compute Taylor polynomials for ex, sin(x), cos(x) centered at 0. Plot the polynomials against the true function to see convergence. Introduce the Lagrange remainder for error estimation.
You already know linear approximation: near a point a, a differentiable function behaves like its tangent line L(x) = f(a) + f'(a)(x − a). This first-degree polynomial is exact at x = a (it matches f(a)) and its slope matches f'(a), so it is the best straight-line approximation near that point. A Taylor polynomial extends this idea: instead of matching only the value and first derivative, match the value and the first n derivatives simultaneously. Each additional derivative matched adds one more polynomial term and corrects a new layer of curvature that the previous approximation missed.
The formula forces itself on you once you accept the goal. If you want a polynomial P(x) = c₀ + c₁(x−a) + c₂(x−a)² + ··· + cₙ(x−a)ⁿ such that Pk(a) = fk(a) for k = 0, 1, ..., n, you can solve for each coefficient by differentiating. When you differentiate P k times and set x = a, only the k-th term survives: Pk(a) = k! · cₖ. Setting this equal to fk(a) gives cₖ = fk(a)/k!. The k! in the denominator is not arbitrary — it is exactly what cancels the k! that differentiating a k-th degree monomial produces. The full formula is the sum from k=0 to n of fk(a)/k! · (x−a)k.
For the most useful Taylor polynomials centered at 0 (called Maclaurin polynomials), the pattern is memorable. For eˣ, every derivative evaluated at 0 is 1, so the polynomial is 1 + x + x²/2! + x³/3! + ···. For sin(x), the odd derivatives at 0 alternate ±1 and even derivatives vanish, giving x − x³/3! + x⁵/5! − ···. For cos(x), the reverse: 1 − x²/2! + x⁴/4! − ···. Plotting these polynomials of increasing degree against the true function on the same axes is the best way to internalize the idea: P₁ hugs the curve briefly near x = 0, P₃ hugs it longer, P₅ longer still.
The Lagrange remainder R_n(x) = fn+1(c)/(n+1)! · (x−a)n+1 (for some c between a and x) tells you the maximum error you are making with your n-th degree approximation. This is Taylor's inequality in practice: bound |fn+1| on the interval, then the remainder formula gives a concrete error guarantee. This turns Taylor polynomials from a neat algebraic trick into a rigorous engineering tool — you can certify that your approximation is within, say, 0.001 of the true value on a given interval, which is exactly what software and calculators do when they compute transcendental functions.