Taylor and Maclaurin Series
Juergen Gerlach Radford University October 12th, 2017
formal
This tutorial was written using Maple 2017.
1. Evaluation of Power Series

The evaluation of power series is straightforward, if the series converges for all , i.e when . Here are some examples:

|
(1) |


|
(2) |


|
(3) |


|
(4) |
If the power series does not converge everywhere, we have to make assumptions about the interval of convergence. For instance,


|
(5) |
does not yield a result. However using

leads to


|
(6) |
This is a little hard to read, but the tilde means that we made assumptions about the range of the variable. Here are more examples, beginning with the geometric series (the assumption that is still active)

|
(7) |


|
(8) |



|
(9) |



|
(10) |
Previous versions of maple had the formulas, such as the geometric series, built in - without the "assume" requirement. This lead to absurd results when series that obviously did not converge by the Divergence Test all of a sudden had finite values.
2. Formal Series Expansions
This is straightforward. Examples follow


|
(11) |


|
(12) |


|
(13) |
3. The taylor and the series Commands

3.a We can display the first few terms of a taylor series with the taylor command.
Example: We wish to find the Taylor expansion of at

|
(14) |


|
(15) |
The last expression means "terms of order ". is the default, and we have control over the order with an additional input argument.

|
(16) |


|
(17) |
Now terms of order up to 11 are displayed, the remaining terms are hidden in .

|
(18) |
Note, that the third input argument controls order of the expansion, and not the number of terms. Example:


|
(19) |


|
(20) |
We get the same response for 5 and 6 (why?), but using 7 in the last argument we have


|
(21) |
3.b The series command works in a similar way, but it can also be used at singularities, when the taylor command fails.
Examples.
(a) The commands work the same when there are no singularities


|
(22) |


|
(23) |
(b) The taylor command fails for , because we have a vertical asymptote at the origin,

|
(24) |

but series works


|
(25) |
(c) Another example with a vertical asymptote:


|
(26) |

4. Direct Construction of Taylor Polynomials

The Taylor polynomial of order N for a function taken at is given by . The coeftayl command has the formula for the coefficient built in.
 = sum((((D@@k)(f))(a))(x-a)^k/factorial(k), k = 0 .. N)](/view.aspx?SI=154375/57fb77d4d4d55bf9350f800ade8eadb0.gif)
|
(27) |
Example: We use with and compute the coefficient for .

|
(28) |


|
(29) |


|
(30) |
Direct calculation


|
(31) |
In the construction we proceed without the coeftayl command (it's a matter of preference).
The following steps yield the Taylor polynomial. The example finds the 10th degree polynomial for expanded at the origin.

|
(32) |


|
(33) |
Graphical illustration:
![plot([f, p], -3 .. 3, view = [-3 .. 3, -1 .. 1], color = [blue, red], thickness = [2, 1], gridlines)](/view.aspx?SI=154375/2c3681d472441ab152768a607b3162fe.gif)
Example: One more for variety.


|
(34) |
Graphical illustration:
![plot([f, p], 0 .. 8, view = [0 .. 8, -4 .. 3], color = [blue, red], thickness = [2, 1], gridlines)](/view.aspx?SI=154375/f9d494958bd02c6eaf74d63a02af4b7e.gif)

|