Equation (3.18) should look familiar; it is the linear approximation formula and the equation of the tangent line to \(f(x)\) at \(x=a\text{.}\) Similarly, equation (3.19) gives quadratic approximation and equation (3.20) gives cubic approximation.
Comparing the graphs of these Taylor polynomial approximations to the graph of \(f(x)\) can reveal information about the interval of convergence of the Taylor series. This is the interval for \(x\) over which the Taylor series converges to the graph of \(f(x)\text{.}\) This interval is always centred at \(x=a\text{.}\) The radius of convergence is exactly half the width of the interval of convergence and may be infinite if the Taylor series converges to \(f(x)\) over the entire real number line.
This specific type of Taylor series is also commonly known as a Maclaurin series. You will compute and plot Taylor polynomial approximations and compare their graphs to the function to understand how the radius of convergence works.
In this exercise, you will calculate several Taylor polynomial approximations for \(f(x) = \cos(x)\) centred at \(a=0\) and consider the interval of convergence of the Taylor series.
The second degree Taylor polynomial can be obtained by using the command taylor(cos(x), x=0, 3). This can then be converted to a polynomial and assigned to the name poly2 using the command poly2 := convert(%, polynom). Both of these commands can be written on a single Maple input with a semicolon between them.
If you were to increase the degree infinitely, you should expect that the approximation will converge to the function within the radius of convergence on either side of \(0\text{.}\) In a new paragraph state what you expect the radius of convergence to be.
In this exercise, you will calculate several Taylor polynomial approximations for \(g(x) = \ln(1+x)\) and determine the radius of convergence for the Taylor series approximation centred at \(a=0\text{.}\)
Compute the \(2\)nd, \(5\)th, \(11\)th, and \(23\)rd degree Taylor polynomial approximations of \(g(x)\) centred at \(a=0\text{.}\) Assign each to a new name.
Plot \(g(x)\) and all four Taylor polynomial approximations on the same graph. How do the graphs of the Taylor polynomial approximations compare to \(g(x)\) as the degree increases?
In a new paragraph in your worksheet, state what you expect the radius of convergence to be for the Taylor series of \(g(x)\) centred at \(a=0\text{.}\)
Because the higher derivatives of \(\cos(x)\) and \(\ln(1+x)\) both form predictable patterns when evaluated at \(a=0\text{,}\) it is possible to write the Taylor series for these functions centred at \(a=0\) in their compact forms:
Plot the first 51 nonzero terms of equation (3.21). Does this seem to confirm the radius of convergence you were expecting in exercise ExerciseΒ 3.17.3.1?
The first 50 nonzero terms are given by \(\sum_{n=0}^{50} \frac{(-1)^n x^{2n}}{(2n)!}\text{.}\) You may use the Sum() command or the palettes toolbar to create this expression in your plot() command.
Plot the first 51 nonzero terms of equation (3.22). Does this seem to confirm the radius of convergence you were expecting in exercise ExerciseΒ 3.17.3.2?