Skip to content

Math 141 · Lesson 34

Taylor Polynomials

Graph a function with its Taylor polynomial of degree 0 to 10 and drag the center. Then estimate the function at a second input and track the error as the degree rises.

Lesson 34: Taylor Polynomials

About this tool

A function is picked from the list or typed as in R. The green diamond is the center aa. Press + or − to change the degree nn. The worked column writes the Taylor polynomial in the general form:

Tn(x)=f(a)+f′(a)(x−a)+f′′(a)2!(x−a)2+⋯+f(n)(a)n!(x−a)n.T_n(x) = f(a) + f'(a)(x - a) + \frac{f''(a)}{2!}(x - a)^2 + \cdots + \frac{f^{(n)}(a)}{n!}(x - a)^n.

The lower degrees are drawn dashed. The gap between two consecutive curves is the term added at the higher degree. The magenta dot is the input bb. The magenta bar at bb is the error ∣f(b)−Tn(b)∣|f(b) - T_n(b)|.

Show numbers gives TnT_n with the derivative values substituted and a table of the matching derivatives at the center. Show numbers also gives the estimate Tn(b)T_n(b), the true value f(b)f(b), and the error. A last table lists the error at bb for each degree.

Under More, Lower degrees turns the dashed curves off and on. Newest term alone draws the newest term f(n)(a)n!(x−a)n\frac{f^{(n)}(a)}{n!}(x - a)^n as a dotted curve.

Show R gives the R code that builds TnT_n with D() and factorial(). The code plots TnT_n over ff and prints the estimate and the error.

Keys: press A or B to pick the center or the input. Press [ or ] to step through the handles. Press the left or right arrow key to move it one step. Hold Shift with an arrow key to move it five steps. Press Esc to let go.