Taylor's series and Maclaurin's series expand a function that is infinitely differentiable as an infinite power series.
Theorem 7.5(a) — Taylor's Series. Let f(x) be a function infinitely differentiable at x=a. Then f(x) can be expanded, in an interval (x−a,x+a), as
f(x)=∑n=0∞n!f(n)(a)(x−a)n=f(a)+1!f′(a)(x−a)+⋯+n!f(n)(a)(x−a)n+⋯.
Theorem 7.5(b) — Maclaurin's Series. If a=0, the expansion becomes
f(x)=∑n=0∞n!f(n)(0)xn=f(0)+1!f′(0)x+⋯+n!f(n)(0)xn+⋯.
Proof sketch (why the coefficients are An=n!f(n)(a)). Write the series in powers of (x−a) as f(x)=A0+∑n≥1An(x−a)n. Substituting x=a isolates A0=f(a) (every other term carries a positive power of (x−a) and vanishes). Differentiating once and substituting x=a isolates A1=f′(a). Differentiating a second time and substituting x=a isolates 2!A2=f′′(a), i.e. A2=2!f′′(a). Continuing this process — differentiate k times, substitute x=a — isolates Ak=k!f(k)(a) in general, which is exactly the stated coefficient.
Worked illustrations from the textbook (the pattern behind Exercise 7.4):
- Maclaurin expansion of log(1+x): tabulate f,f′,f′′,… at x=0, substitute into the series, giving log(1+x)=x−2x2+3x3−4x4+⋯ for −1<x≤1.
- Maclaurin expansion of tanx: the same tabulation (derivatives of tanx get progressively messier, but each is still evaluated at 0) gives tanx=x+3x3+152x5+⋯ for −2π<x<2π.
- Taylor expansion of x1 about x=2: tabulate the derivatives of x1 at x=2 and substitute into powers of (x−2), giving x1=21−4x−2+8(x−2)2−16(x−2)3+⋯. …