Section 2.3 Approximation and Taylor Polynomials
The previous section defined Taylor series for analytic functions. Instead of taking the terms and coefficients all the way to infinity, I could instead truncate the process at some degree. The result is a polynomial which serves as a polynomial approximation to the function.
Definition 2.3.2.
If \(f(x)\) is analytic, its \(d\)th Taylor polynomials centered at \(\alpha\) is the truncation of its Taylor series, stopping at \((x-\alpha)^d\text{.}\)
Taylor polynomials give the best possible polynomial approximations to analytic functions.
Example 2.3.3.
Look at the exponential function \(e^x\) centered at \(\alpha = 0\text{.}\) Its Taylor series was calculated in Example 2.2.5. These are its polynomial approximations.sd Their graphs are shown in Figure 2.3.1.
Example 2.3.5.
The approximations for sine only have odd exponents, since there are only odd monomials in the Taylor series for sine. These are the first few approximations. Their graphs are shown in Figure 2.3.4
The main application of Taylor polynomial approximation is calculating values of transcendental functions. I can't directly calculate their values using basic arithmetic; I need a method. Before the convenience of calculator and computer reference, mathematicians, scientists and engineers carried around large books of tables of values of trig, exponential and logarithmic function. Now, computer algorithms calculate these values for uses, but these algorithms still need a method. Taylor polynomials are one such method.
Polynomials are particularly useful as approximation tools since they involve only the basic operations of arithmetic. Computers can calculate with the basic operations of arithmetic, so computers can understand polynomials If I want to program a computer or calculator to calculate values of \(e^x\) or \(\sin x\) or \(\ln x\) or some other transcendental function, a Taylor polynomial is a great choice.
Example 2.3.6.
The logarithm is a transcendental function which can't be directly calculated The Taylor series for \(-\ln (1-x)\) was calculated in Example 2.2.7.
Using some clever arithmetic, I can write \(\ln 2 = - \ln \frac{1}{2} = - \ln \left( 1 - \frac{1}{2} \right)\) If I truncate the series at degree \(6\text{,}\) I produce the following approximation for \(\ln 2\text{.}\)
This is not to far off from the value of \(\ln 2 = 0.69314\ldots\text{,}\) accurate to the thousandths place.