I recently demonstrated the built-in function Taylor(function, var, n, [val], [mode]), which computes the Taylor Polynomial of degree n.
The idea is that a “nice” enough function can be represented exactly as an infinite series, which we say is centered at some point
, and then a truncation yields a polynomial that is an approximation to
. The form of this series is
and the Taylor Polynomial of degree is
It is of course desireable to know something about the error in this approximation, and luckily there is an analogous result to the Mean Value Theorem which says that
where we have regained equality by introducing a residual term, which is given by
where is some number between
and
(we say between these two numbers since we could have
or
).
In MathStudio, the Taylor Polynomial of degree 7 centered at 1 for can be found by
Taylor(sin(x),x,7,1). The resulting polynomial will have terms like with coefficients. This is a standard way of writing the polynomial, but if you wanted the expanded form, then you can add another parameter
Taylor(sin(x),x,7,1,1).
Plot(sin(x),Taylor(sin(x),x,7,1,0)

One important question that should be asked is whether a Taylor polynomial or Taylor Series will converge to the function for any choice of . Since not all series converge, this is an important question; the answer is that the Taylor polynomial will converge to the function for all
within the radius of convergence. I will not delve into the topic of radius of convergence here, but as an example see the plot of the Taylor polynomial for
below.
Plot(atan(x),Taylor(asin(x),x,7,0,0))

It seems that no matter how large we take , we only get convergence inside of the region
. There are indeed very good reasons for this, and I hope this post is enough to motivate you to read further!