Suppose now that has derivatives in some interval about . Suppose also that we have found a polynomial , of degree , such that
f(x_0) = P(x_0),\quad f'(x_0) = P'(x_0),\quad \dots,\quad f^{(n-1)}(x_0) = P^{(n-1)}(x_0).Then has a zero of multiplicity at least at . By the approximation theorem, if we set we have
or
f(x) - P(x) = \frac{(x - x_0)^n}{n!} f^{(n)}(\xi), \tag{*}where is between and .
It remains to determine . To do so, we write
as a combination of powers of , where the coefficients are yet to be determined. Now we wish to have . But . Therefore . P'(x_0) = a_1, since the derivative of the constant term is and since a factor of remains in the derivatives of all terms except , which has derivative . Therefore a_1 = f'(x_0). Likewise P''(x_0) = 2a_2 = f''(x_0), and in general , or
Therefore
Summarizing, we have
where is between and . This result is known as Taylor's Formula.
We can develop the formula by another approach which will supply some new information of interest. In this case we again assume that has derivatives in an interval containing and . Then we let
F(x) = f(x) + \frac{b-x}{1!} f'(x) + \dots + \frac{(b-x)^{n-1}}{(n-1)!} f^{(n-1)}(x) \cdotThen
\begin{aligned} F'(x) =& f'(x) - f'(x) + \frac{b-x}{1!} f''(x) - \frac{2(b-x)}{2!} f''(x) \\ &+ \frac{(b-x)^2}{2!} f'''(x)- \dots + \frac{(b-x)^{n-2}}{(n-2)!} f^{(n-1)}(x) \\ &- \frac{(n-1)(b-x)^{n-2}}{(n-1)!} f^{(n-1)}(x) + \frac{(b-x)^{n-1}}{(n-1)!} f^{(n)}(x)\\ &= \frac{(b-x)^{n-1}}{(n-1)!} f^{(n)}(x) , \end{aligned}since the earlier terms all cancel in pairs. Now let
where and is chosen so that . Since , we also have . By Rolle's Theorem, there is a , , such that
g'(\xi) = -F'(\xi) + pC(b-\xi)^{p-1} = 0.Thus
C = \frac{F'(\xi)}{p(b-\xi)^{p-1}} = \frac{(b-\xi)^{n-p}}{p(n-1)!} f^{(n)}(\xi) ,and
In particular, , so
or
f(b) = f(a) + \frac{(b-a)}{1!} f'(a) + \dots + \frac{(b-a)^{n-1}}{(n-1)!} f^{(n-1)}(a) + \frac{(b-a)^p(b-\xi)^{n-p}}{p(n-1)!} f^{(n)}(\xi) ,for some between and . If we replace by and by , we see that the remainder we have here is exactly as before if . This term is called the Lagrange remainder. For , the remainder term is called the Cauchy remainder. In some cases it is convenient to use one, in some cases the other.
In general, the expression
f(x_0) + \frac{(x-x_0)}{1!} f'(x_0) + \frac{(x-x_0)^2}{2!} f''(x_0) + \dotsis called the Taylor's series for about . When the remainder after terms, that is, the difference between the first terms of the series and , approaches as becomes large, we say that the series converges to . As an example we shall show a series for about which converges to when . This is really its Taylor's series about . We shall use this series to demonstrate a very effective method for computing the decimal expansion of .
Consider the series
Put
Then
\begin{aligned} f_n'(x) &= \frac{1}{1 + x^2} - \left( 1 - x^2 + x^4 - \dots \pm x^{2n-2} \right)\\ &= \frac{1}{1 + x^2} - \frac{1 - (-x^2)^n}{1 + x^2} , \end{aligned}by the rule for the sum of a geometric series. This is simply
When is even, f_n'(x) \geqq 0. In this case is monotone increasing. Since , if . Then, observing that when is even there are an even number of terms in our polynomial, we see that for even and ,
For odd, f_n'(x) \leqq 0 and for , so
Since lies between any two successive polynomials, the difference between a polynomial of terms and is at most the difference between this polynomial and the next one, of terms, or
since . Thus for in this range, the series converges to . For , we observe that ; since approaches zero, so does .
For , this gives
Thus we have a way, but not a very economical one, of computing the decimal expansion of . However, there is a closely related method which is very effective. Let . Then
and once more,
Let . Then
\begin{aligned} \tan (4a - b) &= \frac{\tan 4a - \tan b}{1 + \tan 4a \tan b} = \frac{\frac{120}{119} - \frac{1}{239}}{1 + \frac{120}{119} \cdot \frac{1}{239}}\\ &= \frac{120 \cdot 239 - 119}{119 \cdot 239 + 120} = \frac{119 \cdot 239 + 239 - 119}{119 \cdot 239 + 120} \\ &= 1 . \end{aligned}Hence , . Now
and
Using this device, several hundred decimal places of have been computed.
Exercises
Let be any number . Then as becomes large, approaches . For if is an integer, , and , then
Let
Then
and
As becomes larger,
Now show that the series below are the Taylor's series about for the indicated functions and that they converge to these functions for any . (Use the Lagrange remainder.)
a)
b)
c)
Find the Taylor's series about of . For what values of can you be sure that the series converges to ?