Students use prepared Sage code or a prepared Mathematica notebook to plot \(\sin\theta\) simultaneously with several terms of a power series expansion to judge how well the approximation fits. Students can alter the worksheet to change the number of terms in the expansion and even to change the function that is being considered. Students should have already calculated the coefficients for the power series expansion in a previous activity, Calculating Coefficients for a Power Series.
Use the Sage code in the activity at this link or the attached Mathematica Notebook to plot the function \(\sin\theta\) and power series approximations to the function to explore how well the approximations work.
You will first need to calculate the coefficients of the power series. For the first part of the worksheet, calculate these coefficients for the power series around \(\theta=0\) and for the second part of the worksheet, calculate the coefficients around \(\theta=\frac{\pi}{6}\). You may have done these calculations in Calculating Coefficients for a Power Series.
You will need to know a few things about Mathematica Notebooks: