Taylor series
A Taylor series rebuilds a function from its derivatives at a single point. This chapter recalls how the polynomials are formed, what each term contributes, and what it means for the series to converge.
Approximating a function by polynomials
Near a point , called the center, a function that has derivatives of every order can be approximated by polynomials built from its derivatives at :
Each term fixes one more thing about the graph at the point :
- is a horizontal line. It has the right value at and nothing else.
- is the tangent line. It has the right value and the right slope.
- adds the term and becomes a parabola. It has the right value, slope and bending (second derivative).
- adds a cubic term that makes the third derivative right as well, and so on.
Adding a term never spoils what the earlier terms achieved, because and its first derivatives are all 0 at . The factor is there because the -th derivative of is . So is the one polynomial of degree whose value and first derivatives at agree with those of .
The Taylor series of about is what you get by never stopping:
Three series to know
All three are about the center :
- . Every derivative of is , which is 1 at 0. The series converges to for every .
- . The derivatives at 0 cycle through 0, 1, 0, −1. The series converges to for every .
- . The -th derivative at 0 is , so every coefficient is 1. The geometric series is the Taylor series of , and it converges only for .
A Taylor series always converges on an interval that is symmetric about the center, , and diverges for . The number is the radius of convergence. It can be infinite, as for , or finite, as for , where .
Three things a Taylor series can do
- Converge to the function everywhere. and .
- Converge to the function on an interval and diverge outside it. , and , each with about the center 0.
- Converge, but to the wrong function. Let for and for . Every derivative of at 0 equals 0, so its Taylor series about 0 is . That series converges for every , to 0, which is not when . It is the last function in Lab 4.2.
So "has a Taylor series" and "equals its Taylor series" are different properties. Chapter 5 is about the functions that have the second one.
Things to try
- In Lab 4.1, step the degree through 0, 1, 2, 3 and watch what each new term fixes. Then slide the center: the polynomial follows the green point along the curve.
- In Lab 4.2, choose and raise the degree. Between −1 and 1 the fit improves; outside it gets worse, although the function itself is perfectly smooth there.
- Choose the last function. No Taylor polynomial about 0 ever leaves the axis, while the function rises for .
Exercises
- Compute the Taylor polynomial of about 0 and use it to estimate .
Solution
The derivatives of at 0 are 1, −1, 2, so At this is . The true value is .
- Find the Taylor polynomial of about and use it to estimate .
Solution
. gives , and gives . So At this is . The true value is .
- Why is the coefficient of in the series for equal to ?
Solution
The third derivative of is , which is at 0. The coefficient is .
Check your understanding
is the tangent line at . What does add to it?
- A better value at
- A term that makes the second derivative at right, so the polynomial bends the way the graph does
- A correction far from only
The term is 0 at and has slope 0 there, so it leaves the value and the slope alone and fixes only the bending.
In Lab 4.2 the polynomial of degree 8 for fits well between −1 and 1 and badly outside. Will a higher degree fix the fit at ?
- Yes, eventually
- Yes, but only for even degrees
- No. is outside the radius of convergence, where adding terms makes the polynomial worse
Inside the polynomials converge to the function. Outside, the terms grow, and no degree helps.
Every derivative of at 0 is 0. What is its Taylor series about 0, and does it equal ?
- The zero series. It converges everywhere but equals only for
- It has no Taylor series
- The zero series, and so is 0 everywhere
A Taylor series is built only from the derivatives at the center. It cannot know what the function does away from that point unless the function is analytic.