evan's notes
cal 3discretelinear

On this page

  • Recovering coefficients from derivatives
  • Example: reading derivatives from a power series
  • Taylor and Maclaurin series
  • Three standard Maclaurin series
  • The Taylor remainder
  • Taylor's inequality
  • Example: approximating exe^xex on (−1,1)(-1,1)(−1,1)

Intermediate Calculus

§3 Taylor Series

Evan Luo · Sep 11, 2026

Intermediate Calculus

§3 Taylor Series

Evan LuoToday

4 min read

A Taylor series uses the derivatives of a function at one point to build a power series. Its finite versions, called Taylor polynomials, give practical approximations near that point.

Recovering coefficients from derivatives

Suppose a function has a power-series representation centered at aaa:

f(x)=∑n=0∞cn(x−a)n=c0+c1(x−a)+c2(x−a)2+⋯ .f(x)=\sum_{n=0}^{\infty}c_n(x-a)^n =c_0+c_1(x-a)+c_2(x-a)^2+\cdots. f(x)=n=0∑∞​cn​(x−a)n=c0​+c1​(x−a)+c2​(x−a)2+⋯.

Setting x=ax=ax=a removes every positive power of (x−a)(x-a)(x−a), so

c0=f(a).c_0=f(a). c0​=f(a).

Differentiate once:

f′(x)=c1+2c2(x−a)+3c3(x−a)2+⋯ .f'(x)=c_1+2c_2(x-a)+3c_3(x-a)^2+\cdots. f′(x)=c1​+2c2​(x−a)+3c3​(x−a)2+⋯.

At x=ax=ax=a, this gives c1=f′(a)c_1=f'(a)c1​=f′(a). Differentiating twice gives

f′′(a)=2!c2,f''(a)=2!c_2, f′′(a)=2!c2​,

and continuing the pattern gives

f(n)(a)=n!cn.f^{(n)}(a)=n!c_n. f(n)(a)=n!cn​.

Therefore every coefficient is forced by the derivatives of fff at the center:

cn=f(n)(a)n!.\boxed{c_n=\frac{f^{(n)}(a)}{n!}}. cn​=n!f(n)(a)​​.

This also gives a quick way to read derivatives from a known power series: the coefficient of (x−a)n(x-a)^n(x−a)n is f(n)(a)/n!f^{(n)}(a)/n!f(n)(a)/n!.

Example: reading derivatives from a power series

From the geometric-series calculation in the previous section,

32+x2=∑n=0∞3(−1)n2n+1x2n,∣x∣<2.\frac{3}{2+x^2} =\sum_{n=0}^{\infty}\frac{3(-1)^n}{2^{n+1}}x^{2n}, \qquad |x|<\sqrt2. 2+x23​=n=0∑∞​2n+13(−1)n​x2n,∣x∣<2​.

To find f(10)(0)f^{(10)}(0)f(10)(0), look for the x10x^{10}x10 term. Since 2n=102n=102n=10, it comes from n=5n=5n=5, and its coefficient is

3(−1)526=−364.\frac{3(-1)^5}{2^6}=-\frac{3}{64}. 263(−1)5​=−643​.

The coefficient of x10x^{10}x10 is also f(10)(0)/10!f^{(10)}(0)/10!f(10)(0)/10!, so

f(10)(0)=10!(−364).\boxed{f^{(10)}(0)=10!\left(-\frac{3}{64}\right)}. f(10)(0)=10!(−643​)​.

Only even powers appear in this series. There is no x9x^9x9 term, so its coefficient is 000 and

f(9)(0)=0.\boxed{f^{(9)}(0)=0}. f(9)(0)=0​.

Taylor and Maclaurin series

The Taylor series of fff centered at aaa is

f(x)=∑n=0∞f(n)(a)n!(x−a)n\boxed{ f(x)=\sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x-a)^n } f(x)=n=0∑∞​n!f(n)(a)​(x−a)n​

where the equality is valid at the values of xxx for which the series actually converges to f(x)f(x)f(x). We use the conventions

f(0)(a)=f(a),0!=1,(x−a)0=1.f^{(0)}(a)=f(a), \qquad 0!=1, \qquad (x-a)^0=1. f(0)(a)=f(a),0!=1,(x−a)0=1.

A Taylor series centered at 000 is called a Maclaurin series:

f(x)=∑n=0∞f(n)(0)n!xn.f(x)=\sum_{n=0}^{\infty}\frac{f^{(n)}(0)}{n!}x^n. f(x)=n=0∑∞​n!f(n)(0)​xn.

The degree-kkk Taylor polynomial keeps only the terms through degree kkk:

Tk(x)=∑n=0kf(n)(a)n!(x−a)n.\boxed{ T_k(x)=\sum_{n=0}^{k} \frac{f^{(n)}(a)}{n!}(x-a)^n }. Tk​(x)=n=0∑k​n!f(n)(a)​(x−a)n​.

It is a finite polynomial, so it approximates the function without requiring an infinite sum.

Three standard Maclaurin series

Every derivative of exe^xex is exe^xex, and each derivative equals 111 at 000. Therefore,

ex=∑n=0∞xnn!=1+x+x22!+x33!+⋯ .\boxed{e^x=\sum_{n=0}^{\infty}\frac{x^n}{n!}} =1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\cdots. ex=n=0∑∞​n!xn​​=1+x+2!x2​+3!x3​+⋯.

The derivatives of sin⁡x\sin xsinx cycle through

sin⁡x,cos⁡x,−sin⁡x,−cos⁡x.\sin x,\quad \cos x,\quad-\sin x,\quad-\cos x. sinx,cosx,−sinx,−cosx.

At 000, their values cycle through 0,1,0,−10,1,0,-10,1,0,−1. Only the odd powers remain:

sin⁡x=∑n=0∞(−1)n(2n+1)!x2n+1=x−x33!+x55!−⋯ .\boxed{ \sin x=\sum_{n=0}^{\infty} \frac{(-1)^n}{(2n+1)!}x^{2n+1} } =x-\frac{x^3}{3!}+\frac{x^5}{5!}-\cdots. sinx=n=0∑∞​(2n+1)!(−1)n​x2n+1​=x−3!x3​+5!x5​−⋯.

For example, the degree-444 Maclaurin polynomial has no fourth-degree term, so

T4(x)=x−x33!.T_4(x)=x-\frac{x^3}{3!}. T4​(x)=x−3!x3​.

The derivatives of cos⁡x\cos xcosx give the same alternating pattern on even powers:

cos⁡x=∑n=0∞(−1)n(2n)!x2n=1−x22!+x44!−⋯ .\boxed{ \cos x=\sum_{n=0}^{\infty} \frac{(-1)^n}{(2n)!}x^{2n} } =1-\frac{x^2}{2!}+\frac{x^4}{4!}-\cdots. cosx=n=0∑∞​(2n)!(−1)n​x2n​=1−2!x2​+4!x4​−⋯.

These three series converge to their functions for every real xxx.

The Taylor remainder

A Taylor polynomial is usually an approximation, not the whole function. The difference

Rk(x)=f(x)−Tk(x)\boxed{R_k(x)=f(x)-T_k(x)} Rk​(x)=f(x)−Tk​(x)​

is the kkkth Taylor remainder. Rearranging gives

f(x)=Tk(x)+Rk(x).f(x)=T_k(x)+R_k(x). f(x)=Tk​(x)+Rk​(x).

For a fixed xxx, the Taylor series equals f(x)f(x)f(x) when

lim⁡k→∞Rk(x)=0.\lim_{k\to\infty}R_k(x)=0. k→∞lim​Rk​(x)=0.

The remainder is therefore the part that must disappear as more Taylor terms are included.

Taylor's inequality

Taylor's inequality gives an upper bound on the approximation error. Suppose

∣f(k+1)(u)∣≤M|f^{(k+1)}(u)|\le M ∣f(k+1)(u)∣≤M

for every uuu between the center aaa and the point xxx. Then

∣Rk(x)∣≤M(k+1)!∣x−a∣k+1.\boxed{ |R_k(x)| \le \frac{M}{(k+1)!}|x-a|^{k+1} }. ∣Rk​(x)∣≤(k+1)!M​∣x−a∣k+1​.

The bound becomes smaller when xxx is closer to the center or when the factorial in the denominator grows faster than the derivative bound.

Example: approximating exe^xex on (−1,1)(-1,1)(−1,1)

The degree-444 Maclaurin polynomial for exe^xex is

T4(x)=1+x+x22!+x33!+x44!.T_4(x)=1+x+\frac{x^2}{2!}+\frac{x^3}{3!}+\frac{x^4}{4!}. T4​(x)=1+x+2!x2​+3!x3​+4!x4​.

Every derivative of exe^xex is exe^xex. On (−1,1)(-1,1)(−1,1),

∣f(5)(x)∣=ex≤e,|f^{(5)}(x)|=e^x\le e, ∣f(5)(x)∣=ex≤e,

so we may use M=eM=eM=e. Taylor's inequality gives

∣R4(x)∣≤e5!∣x∣5<e120≈0.023.\begin{aligned} |R_4(x)| &\le \frac{e}{5!}|x|^5\\ &<\frac{e}{120}\\ &\approx0.023. \end{aligned} ∣R4​(x)∣​≤5!e​∣x∣5<120e​≈0.023.​

Thus, throughout (−1,1)(-1,1)(−1,1),

∣ex−T4(x)∣<0.023.\boxed{|e^x-T_4(x)|<0.023}. ∣ex−T4​(x)∣<0.023​.

The number 0.0230.0230.023 is a guaranteed worst-case error bound on that interval. The actual error may be smaller.

Source: https://notes.ohevan.com/notes/intermediate-calculus/03-taylor-series

© 2026 Evan Luo. All rights reserved.

Back to Intermediate Calculus

0 reads

  • stay up to date

  • about me

  • coffee

© 2026 Evan Luo. All rights reserved.