In calculus, Taylor's Theorem gives a way to approximate a function near a point using its derivative at that point. This makes it easier to work with complicated functions like ex, sin(x) or ln(x), especially when we need a quick approximation. The more terms we use, the better the estimate becomes.
Formula used in Taylor's Theorem:
f(x) = f(a) + f'(a)(x - a) +
\frac{f"(a)}{2!}(x - a)^2 + .........+\frac{f^{(n)}(a)}{n!}(x - a)^n + Rn(x)
Where:
- a - The point around which the expansion is done.
- Rn(x) - The remainder term (error term).
Statement
Suppose the function f(x) satisfies the following condition:
- f(x) and its derivatives up to order (N+1 )exist and are continuous in some open interval around a, i.e., x ∈ I
- For any x ≠ in I, there exists a number z between a and x such that:
f(x) = f(a) + f'(a)(x - a) +
\frac{f"(a)}{2!}(x - a)^2 + .........+\frac{f^{(n)}(a)}{n!}(x - a)^n +\frac{f^{(n + 1)}(a)}{n + 1!}(x - a)^{n+1}
Proof:
We know that a power series for the function f(x) can be written as:
f(x) =
\sum_{n=0}^{\infty} a_nx^n = a_0 + a_1x + a_2x^2 + a_3x^3+ ....
Evaluate the function and its derivatives at x = 0
- Value x = 0; f(x) = a0
- First Derivative:
f'(x) = a1 + 2a2x + 3a3x2 + 4a4x3 + .......
At x = 0: f′(0) = a1
Second Derivative:
f′′(x)= 2a2+ 6a3x + 12a4x2 + ⋯
At x = 0: f''(0) = 2a2
So we get: a2 =
By generalising the equation, we get
a_n = \frac{f^{(n)}(0)}{n!}
Now substitute the equation in the power series we get,
f(x) = f(0) + f'(0)x + \frac{f''(0)}{2!}x^2 + \frac{f^{(3)}(0)}{3!}x^3 + \cdots
This is the Maclaurin expansion (Taylor series about a = 0).
Generalise f in a more general form, and it becomes
f(x) = b + b1(x - a) + b2(x - a)2 + b3(x - a)3 +...
Differentiating the above series n times and evaluating at x = a, we obtain
Hence,
Now, substitute bn in a general form.
f(x)=f(a)+f'(a)(x-a)+\frac{f''(a)}{2!}(x-a)^2+\frac{f^{(3)}(a)}{3!}(x-a)^3+\cdots
Hence, the Taylor theorem is proved.
Applications
- Approximating complex functions like sin(x), ex, and log(x) with simpler polynomials for easier calculation and analysis.
- Forming the basis for algorithms like Simpson's Rule by approximating the integrand as a polynomial.
- Approximating non-linear systems (e.g., pendulum motion, circuit behavior) as linear systems near an equilibrium point for simplified analysis.
- Deriving equations of motion by expanding the position function.
- How computers and calculators actually compute functions (e.g.,
sin,cos,exp) is by using optimized, truncated Taylor or Maclaurin series. - The foundation for many algorithms, including Newton's Method for finding roots of functions, which uses a first-order Taylor expansion to make a better guess.
Related Articles
Solved Questions on Taylor's Theorem
Question 1: Find the first two terms of the Taylor series of f(x) = ex around a = 1.
Solution:
The Taylor series of f(x) around x = a is:
f(x) = f(a) + f'(a)(x - a)at a = 1
f(x) = ex
f'(x) = exEvalutate at x = 1:
f(1) = e1 = e
f'(1) = e1 = eSubstitute into formula at a = 1
f(x) = f(1) + f'(1)(x-1)
f(x) = e + e(x - 1)
Question 2: Find the first two terms of the Taylor series of f(x) = ex around a = 1.
Solution:
The Taylor series of f(x) around x = a is:
f(x) = f(a) + f'(a)(x - a) +
\frac{f"(a)}{2!}(x - a)^2 +\frac{f'''(a)}{3!}(x - a)^3 +\frac{f''''(a)}{4!}(x - a)^4 + .........Compute Derivative at a = 1
f(x) = ln x, f′(x) = x1, f′′(x) = −
\frac{1}{-x^2} , f′′′(x) =\frac{2}{x^3} , f(4)(x)=\frac{6}{-x^4} , f(5)(x) =\frac{24}{x^5} At x = 1
f(1) = 0 , f′(1) = 1, f′′(1) = −1, f′′′(1) = 2, f(4)(1)=−6, f(5)(1)=24
Substitute into formula
f(x) = f(0) + 1(x - 1) +
\frac{1}{2!}(x - 1)^2 +\frac{2}{3!}(x - 1)^3 +\frac{16}{4!}(x - 1)^4 +\frac{24}{5!}(x - 1)^5 .........Simplify Fcatorial
f(x) = (x - 1) -
\frac{1}{2}(x - 1)^2 +\frac{1}{3}(x - 1)^3 -\frac{1}{4}(x - 1)^4 +\frac{1}{5}(x - 1)^5 ln x = (x - 1) -
\frac{(x - 1)^2}{2} +\frac{(x - 1)^3 }{3} -\frac{(x - 1)^4}{4} +\frac{(x - 1)^5 }{5}
Question 3: Find the first two non-zero terms of the Maclaurin series of f(x) = cosx.
Solution:
The Maclaurin series of a function f(x) is:
f(x) = f(0) + f'(0)x +
\frac{f"(0)}{3!}x ^2 +\frac{f'''(0)}{3!}x^3 +\frac{f^4(0)}{4!}x^4 Derivatives of f(x) = cosx
- f(x) = cosx
- f′(x) = −sinx
- f′′(x)= −cosx
- f′′′(x) = sinx
- f(4)(x) = cosx
Evaluate at x=0
- f(0) = cos0 = 1
- f′(0) = −sin0 = 0
- f′′(0)= −cos0 = −1
- f′′′(0) = sin0 = 0
- f(4)(0) = cos0 = 1
Using the Maclaurin formula:
f(x) = f(0) + f
\frac{f''(0)}{2!}x^2 Substitute values:
f(x) = 1 -
\frac{x^2}{2}
Unsolved Questions on Taylor's Theorem
Question 1: Find the first three terms of the Taylor series of f(x) =
Question 1: Find the first 5 terms of the Maclaurin series of f(x) = sinx.
Question 2: Find the first 5 terms of the Maclaurin series of f(x) = ex.
Question 4: Find the first five terms of the Taylor series of f(x) = x around a = 4.