logo

Taylor Series and Maclaurin Series 📂Calculus

Taylor Series and Maclaurin Series

Build-Up1

Assume that the given function ff is expressed as a power series.

f(x)=c0+c1(xa)+c2(xa)2+c3(xa)3+xa<R(1) f(x) = c_{0} + c_{1}(x - a) + c_{2}(x - a)^{2} + c_{3}(x - a)^{3} + \cdots \qquad |x - a| \lt R \tag{1}

In this context, finding the power series representation of the function ff is equivalent to determining the coefficients of each term cnc_{n}. By substituting x=ax = a into both sides, we can obtain c0c_{0}.

f(a)=c0+c1(aa)+c2(aa)2+c3(aa)3+=c0 f(a) = c_{0} + c_{1}(a - a) + c_{2}(a - a)^{2} + c_{3}(a - a)^{3} + \cdots = c_{0}

Differentiating (1)(1), we obtain the following:

f(x)=c1+2c2(xa)+3c3(xa)2+xa<R(2) f^{\prime}(x) = c_{1} + 2c_{2}(x - a) + 3c_{3}(x - a)^{2} + \cdots \qquad |x - a| \lt R \tag{2}

Substituting x=ax = a into both sides, we can find c1c_{1}.

f(a)=c1 f^{\prime}(a) = c_{1}

Differentiating (2)(2) again and substituting x=ax = a,

f(x)=2c2+32c3(xa)+xa<R(3) f^{\prime\prime}(x) = 2c_{2} + 3 \cdot 2c_{3}(x - a) + \cdots \qquad |x - a| \lt R \tag{3}

f(a)=2c2 f^{\prime\prime}(a) = 2c_{2}

Repeating once more,

f(x)=32c3+432c4(xa)+xa<R f^{\prime\prime\prime}(x) = 3 \cdot 2c_{3} + 4 \cdot 3 \cdot 2c_{4}(x - a) + \cdots \qquad |x - a| \lt R

f(a)=32c3 f^{\prime\prime\prime}(a) = 3 \cdot 2c_{3}

Following this pattern, we find that cnc_{n} can be expressed as follows:

f(n)(a)=n!cn    cn=f(n)(a)n! f^{(n)}(a) = n! \cdot c_{n} \implies c_{n} = \frac{f^{(n)}(a)}{n!}

Therefore, (1)(1) is expressed as follows:

f(x)=f(a)+f(a)1!(xa)+f(a)2!(xa)2+f(a)3!(xa)3+=n=0f(n)(a)n!(xa)n f(x) = f(a) + \frac{f^{\prime}(a)}{1!}(x - a) + \frac{f^{\prime\prime}(a)}{2!}(x - a)^{2} + \frac{f^{\prime\prime\prime}(a)}{3!}(x - a)^{3} + \cdots = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x - a)^{n}

Here, the series on the right is defined as the Taylor series of ff.

Definition

The Taylor series of a function ff, which is infinitely differentiable, at aa is defined as follows:

n=0f(n)(a)n!(xa)n=f(a)+f(a)1!(xa)+f(a)2!(xa)2+f(a)3!(xa)3+ \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!}(x - a)^{n} = f(a) + \frac{f^{\prime}(a)}{1!}(x - a) + \frac{f^{\prime\prime}(a)}{2!}(x - a)^{2} + \frac{f^{\prime\prime\prime}(a)}{3!}(x - a)^{3} + \cdots

Explanation

Specifically, the series at a=0a = 0 is called the Maclaurin series.

If ff can be expressed as a power series, then the power series of ff and the Taylor series of ff are identical. However, the Taylor series of ff does not always match ff itself. It has been proven that the power series of ff and the Taylor series of ff are the same under certain conditions.

An Example Where the Taylor Series of ff Differs from ff1

The following function ff is given.

f(x)={e1/x2x00x=0 f(x) = \begin{cases} e^{-1/x^{2}} & x \neq 0 \\ 0 & x = 0 \end{cases}

Let us find f(0)f^{\prime}(0) to determine the coefficients of the series.

limh0f(0+h)f(0)h=limh0e1/h20h=limh01he1/h2 \lim\limits_{h \to 0} \frac{f(0 + h) - f(0)}{h} = \lim\limits_{h \to 0} \frac{e^{-1/h^{2}} - 0}{h} = \lim\limits_{h \to 0} \frac{1}{h} \cdot e^{-1/h^{2}}

By organizing the equation and using L’Hôpital’s rule,

limh01he1/h2=limh01/he1/h2=limh01/h22e1/h2/h3=limh0h2e1/h2=0 \lim\limits_{h \to 0} \frac{1}{h} \cdot e^{-1/h^{2}} = \lim\limits_{h \to 0} \dfrac{1/h}{e^{1/h^{2}}} = \lim\limits_{h \to 0} \dfrac{-1/h^{2}}{-2e^{1/h^{2}}/h^{3}} = \lim\limits_{h \to 0} \dfrac{h}{2e^{1/h^{2}}} = 0

Similarly, it can be shown that nNn \in \mathbb{N} corresponds to f(n)=0f^{(n)} = 0. Therefore, the Maclaurin series of ff is as follows:

n=0f(n)(0)n!xn=n=00n!xn=0 \sum\limits_{n = 0}^{\infty} \frac{f^{(n)}(0)}{n!}x^{n} = \sum\limits_{n = 0}^{\infty} \frac{0}{n!}x^{n} = 0

However, it is evident that x0x \ne 0 leads to f(x)0f(x) \ne 0, indicating that the Maclaurin series of ff and ff are not the same.


  1. James Stewart, Daniel Clegg, and Saleem Watson, Calculus (early transcendentals, 9E), p795-799 ↩︎ ↩︎