Pick a function, then set the degree and the center . The curve in the text color is the function, and the colored curve is its Taylor polynomial . Move the point with the slider or by dragging across the graph, and the readouts compare with the true value . The shaded band is the interval where the full Taylor series converges. For , and the series converges everywhere, so there is no band.
- T₃(1)
- 2.6666667
- f(1)
- 2.7182818
- Error f(x) − Tn(x)
- 0.0516152
- Taylor polynomial
- T₃(x) = 1 + x + x²/2 + x³/6
Things to try
- With centered at , set and raise the degree one step at a time. The polynomial value climbs toward , and by degree the error is down to about .
- Switch to centered at and go from degree to degree . Nothing moves, because sine has no even powers in its series. Keep raising the degree and the polynomial follows the curve across a wider stretch each time. Even at degree it misses by about .
- Pick , set and raise the degree. From degree on, every step makes the error larger, because lies outside the band. Back at the error shrinks with every step.
- Stay with at , the right end of the band. The series still converges there, but slowly. At degree the error is still about .
- Try at . The function is smooth on the whole real line, yet the band stops at and the error grows with the degree. Now move the center to . The radius becomes , the band now covers , and the error shrinks instead.
- With centered at , compare with . At the error shrinks slowly toward . At it grows with every step from degree on.
- Keep the degree fixed at and move the center of toward the point. At the error is about with and about with .
What you are seeing
The Taylor polynomial of degree centered at matches and its first derivatives at .
The explorer computes every coefficient from an exact formula for the derivatives. For example, every derivative of is , and the derivatives of are
At the readout writes the coefficients as exact fractions, and at other centers it rounds them to four decimals. Past degree it shows the first terms only.
The error readout is the remainder . Taylor’s theorem says it has the same shape as the next term, with the derivative taken at some between and .
The factor is why the error shrinks so fast near the center and why moving the center closer to helps.
The band is the interval , where is the radius of convergence of the full series. For and the series reaches only as far as the trouble at , so . For nothing goes wrong on the real line. The trouble sits at the complex numbers , where , and the radius is the distance from to them.
Inside the band the error goes to as the degree grows. Outside it the terms of the series grow, and the polynomials swing further from the function with every degree. The curve of is cut off at the edges of the window when it runs off the graph.
The series and the remainder bounds are on the calculus reference sheet, and the videos are on the Calculus course page.