## Section8.4Visualization of Power Series

In this Mathematica notebook you have the opportunity to explore what it means to approximate a given function.

See Figure 8.4.1. Figure 8.4.1. {The function $\sin\theta$ and three approximations formed from truncating the power series after the first, second, and third non-zero terms (i.e. at the first, third, and fifth order.) (** Add "first order", "second order", "third order" to figure **)
###### Activity8.4.1.Visualization of Power Series Approximations.

In the worksheet, you will begin with the function $f(\theta)=\sin\theta\text{.}$ Look at the first few terms of its power series. Using the coefficients that you found in Activity 8.1.2, you can plot both the function $\sin\theta$ and its various approximations found by truncating the power series, first after one non-zero term, then after two non-zero terms, etc. Write down as many features as you can of these approximations. In particular, answer the following questions:

1. For what values of $\theta$ is the approximation a good one?
2. Does the range of good values of $\theta$ depend on the order of the approximation? If so, how?
3. A function $f(z)$ is called symmetric if the graph of the function for negative values of its argument is the mirror reflection (with the vertical axis acting as mirror) of the graph of the function for positive values of its argument, i.e. if $f(-z)=f(z)\text{.}$ Similarly, a function is called antisymmetric if the graph of the function for negative values of its argument is the negative of the mirror reflection (with the vertical axis acting as mirror) of the graph of the function for positive values of its argument, i.e. if $f(-z)=-f(z)\text{.}$ Is the function $f(z)$ symmetric, antisymmetric, or neither? What about the various terms in the power series expansion?

Notice that if you truncate a power series, then you are looking at a polynomial whose dominant term (i.e. highest power) is the highest term that you kept in the power series. Since $\sin\theta$ is bounded for large $\theta$ and a polynomial in $\theta$ is not bounded, the first few terms of the power series will be a terrible approximation for the function if $|\theta|$ is large enough. However, as you keep more and more terms in the series, the truncated series is a better and better approximation for the function for a larger and larger range of values of $\theta\text{.}$
This computer algebra worksheet began by approximating $\sin\theta$ by $\theta$ near the origin — which ought to be familiar. Higher order terms add more “bumps” to the curve; the graph of $\sin\theta$ has infinitely many bumps. It is remarkable that the power series for $\sin\theta$ converges for all values of $\theta\text{.}$
You can see from the graphs that all even positive integer powers of $z$ are symmetric; all odd positive integer powers are antisymmetric. Since the function $f(\theta)=\sin\theta$ is an odd function of $\theta\text{,}$ only the odd powers of $\theta$ appear in the power series expansion. You can see this antisymmetry in Figure Figure 8.4.1.
The Sage code below allows you to plot both a function $f(x)$ and your choice of polynomial approximation $p(x)$.
###### Activity8.4.2.Power Series Expansions around Points Other than $0$.
You can (and should) also make a power series approximation that fits a function well somewhere other than at the origin by writing the power series expanded “around” some other point such as $\theta=\frac{\pi}{6}\text{.}$