Taylor Series: Building Any Smooth Curve from Polynomials
Match a function's value and all its derivatives at one point, and a polynomial will trace the curve ever more faithfully as you add terms.
Why polynomials are special
A computer cannot evaluate sin x or ex directly — there is no finite recipe of pluses and times that gives them exactly. Polynomials, on the other hand, are nothing but pluses and times. So the central trick of calculus is this: replace a hard function, near a point of interest, with a polynomial that hugs it closely.
The question is which polynomial. The Taylor idea is beautifully greedy: make the polynomial agree with the function as completely as possible at one chosen point — same height, same slope, same curvature, same rate-of-change-of-curvature, and so on through every derivative.
Where the coefficients come from
Why the factorial? Suppose the polynomial is c0 + c1(x−a) + c2(x−a)2 + …. Plug in x = a and everything but c0 dies, so c0 = f(a). Differentiate once and set x = a: only the c1 term survives, giving c1 = f′(a). Differentiate n times and the (x−a)n term brings down a factor of n!, so cn = f(n)(a)÷n!. The n! is the bookkeeping from repeated differentiation.
The three you must know
Centred at 0, the exponential and the two basic trig functions have famously clean series. Notice that ex uses every power, cosine uses only even powers (it is an even function), and sine uses only odd powers (it is odd), with signs that alternate.
- Every derivative of e^x is e^x, and \( e^{0}=1 \), so \( f(0)=f'(0)=f''(0)=f'''(0)=1 \).
- The coefficients are \( 1,\ 1,\ \tfrac{1}{2!}=\tfrac12,\ \tfrac{1}{3!}=\tfrac16 \), giving \( T_3(x)=1+x+\tfrac{x^2}{2}+\tfrac{x^3}{6} \).
- Substitute x = 0.2: \( 1+0.2+\tfrac{0.04}{2}+\tfrac{0.008}{6}=1+0.2+0.02+0.001333\ldots \)
- The derivatives of sin at 0 cycle through \( 0,1,0,-1 \), so only odd powers appear with alternating signs.
- This gives \( \sin x = x-\dfrac{x^3}{3!}+\dfrac{x^5}{5!}-\cdots \).
- The degree-5 term is \( +\dfrac{x^5}{5!} \), and \( 5!=120 \).
Check your understanding
- A Taylor series is the polynomial whose value and every derivative match f at a chosen centre a.
- Coefficient of (x − a)ⁿ is f⁽ⁿ⁾(a)/n!; the factorial is the residue of differentiating n times.
- Memorise the three Maclaurin series: eˣ = Σ xⁿ/n!, sin x = x − x³/3! + …, cos x = 1 − x²/2! + ….
- Taylor polynomials are most accurate at the centre and degrade with distance; more terms widen the good region.
- Convergence has a range: some series (like the geometric series) only equal their function inside a radius of convergence.