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, we 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{.}\) We have its Taylor series from the previous section. These are its polynomial approximations. 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 approximation is calculating values of transcendental functions. We can't directly calculate their values using basic arithmetic; we 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.
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 we want to program a computer or calculator to calculate values of \(e^x\) or \(\sin x\) or \(\ln x\) or some other transcendental function, Taylor series are one of the best techniques.
Example 2.3.6.
The logarithm is a transcendental function which can't be directly calculated We had a Taylor series for the logarithm in the previous section.
Using some clever arithmetic, we can write \(\ln 2 = - \ln \frac{1}{2} = - \ln \left( 1 - \frac{1}{2} \right)\) If we truncate the series at degree \(6\text{,}\) we have this 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.
Example 2.3.7.
There are many ways in mathematics to find approximations to numbers. Recall that the alternating harmonic series also summed to \(\ln 2\text{.}\) If we truncate that series after ten steps, we get this approximation.
This expression is a poorer approximation for \(\ln 2\text{;}\) we would need to go much farther down the alternating harmonic series to match the precision of the Taylor series.