Taylor Series

Taylor series is the polynomial or a function of an infinite sum of terms. Each successive term will have a larger exponent or higher degree than the preceding term.

\(\begin{array}{l}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\end{array} \)

The above Taylor series expansion is given for a real values function f(x) where f’(a), f’’(a), f’’’(a), etc., denotes the derivative of the function at point a. If the value of point ‘a’ is zero, then the Taylor series is also called the Maclaurin series.

Taylor’s Series Theorem

Assume that if f(x) be a real or composite function, which is a differentiable function of a neighbourhood number that is also real or composite. Then, the Taylor series describes the following power series :

\(\begin{array}{l}f(x) =f(a)\frac{f'(a)}{1!}(x-a)+\frac{f”(a)}{2!}(x-a)^{2}+\frac{f^{(3)}(a)}{3!}(x-a)^{3}+….\end{array} \)

In terms of sigma notation, the Taylor series can be written as

\(\begin{array}{l}\sum_{n=0}^{\infty }\frac{f^{n}(a)}{n!}(x-a)^{n}\end{array} \)

Where

f(n) (a) = nth derivative of f

n! = factorial of n.

Proof

We know that the power series can be defined as

\(\begin{array}{l}f(x)= \sum_{n=0}^{\infty }a_{n}x^{n}=a_{0}+a_{1}x+a_{2}x^{2}+a_{3}x^{3}+…\end{array} \)

When x = 0,

f(x)= a0

So, differentiate the given function, it becomes,

f’(x) = a1+ 2a2x + 3a3x2 + 4a4x3 +….

Again, when you substitute x = 0, we get

f’(0) =a1

So, differentiate it again, we get

f”(x) = 2a2 + 6a3x +12a4x2 + …

Now, substitute x=0 in second-order differentiation, we get

f”(0) = 2a2

Therefore, [f”(0)/2!] = a2

By generalising the equation, we get

f n (0) / n! = an

Now substitute the values in the power series we get,

\(\begin{array}{l}f(x)= f(0)+f'(0)x+\frac{f”(0)}{2!}x^{2}+\frac{f”‘(0)}{3!}x^{3}+….\end{array} \)

Generalise f in more general form, it becomes

f(x) = b + b1 (x-a) + b2( x-a)2 + b3 (x-a)3+ ….

Now, x = a, we get

bn = fn(a) / n!

Now, substitute bn in a generalised form

\(\begin{array}{l}f(x) =f(a)\frac{f'(a)}{1!}(x-a)+\frac{f”(a)}{2!}(x-a)^{2}+\frac{f^{(3)}(a)}{3!}(x-a)^{3}+….\end{array} \)

Hence, the Taylor series is proved.

Taylor Series of Sin x

f(x) = sin x 

f’(x) = cos x

f’’(x) = -sin x

f’’’(x) = -cos x

f’’’’(x) = sin x

And so on

The taylor series for Sin x at x = 0, is given by:

\(\begin{array}{l}\begin{aligned} \sin x &=\sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n !} x^{n} \\ &=\frac{1}{1 !} x-\frac{1}{3 !} x^{3}+\frac{1}{5 !} x^{5}-\frac{1}{7 !} x^{7}+\cdots \end{aligned}\end{array} \)

Taylor Series in Several Variables

The Taylor series is also represented in the form of functions of several variables. The general form of the Taylor series in several variables is

\(\begin{array}{l}T(x_{1}, x_{2}, x_{3},…x_{m})=f(a_{1}, a_{2}, a_{3},…a_{m})+\sum_{j=1}^{m}\frac{\partial f(a_{1}, a_{2}, a_{3},…a_{m})}{\partial x_{j}}(x_{j}-a_{j})+\frac{1}{2!\sum_{j=1}^{m}}\end{array} \)

Maclaurin Series

If the Taylor Series is centred at 0, then the series is known as the Maclaurin series. It means that,

If a= 0 in the Taylor series, then we get;

\(\begin{array}{l}f(x)= f(0)+f'(0)x+\frac{f”(0)}{2!}x^{2}+\frac{f”‘(0)}{3!}x^{3}+….\end{array} \)

This is known as the Maclaurin series.

Example: Maclaurin series of 1/(1-x) is given by:

1+x+x2+x3+x4+…,

Applications of Taylor Series

The uses of the Taylor series are:

  • Taylor series is used to evaluate the value of a whole function in each point if the functional values and derivatives are identified at a single point.
  • The representation of Taylor series reduces many mathematical proofs.
  • The sum of partial series can be used as an approximation of the whole series.
  • Multivariate Taylor series is used in many optimization techniques.
  • This series is used in the power flow analysis of electrical power systems.

Problems and Solutions

Question 1: Determine the Taylor series at x=0 for f(x) = ex

Solution: Given: f(x) = ex

Differentiate the given equation,

f’(x) = ex

f’’(x) =ex

f’’’(x) = ex

At x=0, we get

f’(0) = e0 =1

f’’(0) = e0=1

f’’’(0) = e0 = 1

When Taylor series at x= 0, then the Maclaurin series is

\(\begin{array}{l}f(x)= f(0)+f'(0)x+\frac{f”(0)}{2!}x^{2}+\frac{f”‘(0)}{3!}x^{3}+….\end{array} \)

ex = 1+ x(1) + (x2/2!)(1) + (x3/3!)(1) + …..

Therefore, ex = 1+ x + (x2/2!) + (x3/3!)+ …..

Question 2: EValuate the Taylor Series for  f ( x ) = cos ( x )  for  x = 0.

Solution: We need to take the derivatives of the cos x and evaluate them at  x = 0.

f(x) = cos x  ⇒ f(0) = 1

f’(x) = -sin x ⇒ f’(0) = 0

f’’(x) = -cos x ⇒ f’’(0) = -1

f’’’(x) = sin x ⇒ f’’’(0) = 0

f’’’’(x) = cos x ⇒ f’’’’(4) = 1

f(5)(x) = -sin x ⇒ f(5) (0) = 0

f(6) (x) = -cos x ⇒ f(6)(0) = -1

Therefore, according to the Taylor series expansion;

\(\begin{array}{l}\begin{aligned} \cos x &=\sum_{n=0}^{\infty} \frac{f^{(n)}(0)}{n !} x^{n} \\ &=f(0)+f^{\prime}(0) x+\frac{f^{\prime \prime}(0)}{2 !} x^{2}+\frac{f^{\prime \prime \prime}(0)}{3 !} x^{3}+\frac{f^{(4)}(0)}{4 !} x^{4}+\frac{f^{(5)}(0)}{5 !} x^{5}+\cdots \\ &={1}+{0}-\frac{1}{2 !} x^{2}+{0}+\frac{1}{4 !} x^{4}+{0}-\frac{1}{6 !} x^{6}+\cdots \end{aligned}\end{array} \)

\(\begin{array}{l}\cos x={1}-\frac{1}{2 !} x^{2}+\frac{1}{4 !} x^{4}-\frac{1}{6 !} x^{6}+\cdots\end{array} \)

\(\begin{array}{l}\cos x=\sum_{n=0}^{\infty} \frac{(-1)^{n} x^{2 n}}{(2 n) !}\end{array} \)

Question 3: Evaluate the Taylor Series for  f ( x ) = x3 − 10x2 + 6  at  x = 3.

Solution: First, we will find the derivatives of the given function.

f(x) =  x3 − 10x2 + 6 ⇒ f(3) = -57

f’(x) = 3x2 − 20x ⇒ f’(3) = 33

f’’(x) = 6x – 20 ⇒ f’’(3) = -2

f’’’(x) = 6 ⇒ f’’’(3) = 6

f’’’’(x) = 0 

Therefore, the required series is:

\(\begin{array}{l}\begin{aligned} x^{3}-10 x^{2}+6 &=\sum_{n=0}^{\infty} \frac{f^{(n)}(3)}{n !}(x-3)^{n} \\ &=f(3)+f^{\prime}(3)(x-3)+\frac{f^{\prime \prime}(3)}{2 !}(x-3)^{2}+\frac{f^{\prime \prime \prime}(3)}{3 !}(x-3)^{3}+0 \\ &=-57-33(x-3)-(x-3)^{2}+(x-3)^{3} \end{aligned}\end{array} \)

For more Maths – related concepts, download BYJU’S – The Learning App to get solved examples and also explore videos to learn with ease.

Frequently Asked Questions – FAQs

Q1

What is a Taylor series?

Taylor series is a function of an infinite sum of terms in increasing order of degree. Taylor series of polynomial functions is a polynomial.
Q2

What is the use of Taylor series?

Taylor series is used to evaluate the value of a whole function in each point if the functional values and derivatives are identified at a single point.
Q3

What is a Maclaurin series?

A Taylor series is called Maclaurin series when the function is centered at zero point.
Q4

Write the Taylor series for tan x?

The taylor series for tan x is given as:
Tan x = x + (x3/3) + (2x5/15)+….
Q5

What is Taylor series expansion of sec x?

If the function is sec x, then its taylor expansion is represented by:
Sec x = 1 + (x2/2) + (5x4/24)+…
close
close

Play

&

Win