With a federal state selected, simulations are ordered by its grades. Your choice is only stored in this browser.
Mathematics·Grade 12–13 · University
Taylor polynomials
Term by term a polynomial hugs a function such as sin x ever more closely. That is pretty much how a calculator does it.
Loading simulation …
Tip: the highlighted points can be dragged with mouse or finger.
The controls are locked for this task.
What is it about?
The Taylor polynomial Tn(x)=∑k=0nk!f(k)(a)(x−a)k shares the value and the first n derivatives with f at a: T0 is the horizontal line y=f(a), T1 the tangent, T2 the osculating parabola. Differentiating (x−a)kk times gives k! – that is why ck=k!f(k)(a).
For sin, cos and ex the Lagrange bound∣Rn(x)∣≤M(n+1)!∣x−a∣n+1 estimates the error. For ln(1+x) and 1−x1 the polynomials only converge within the interval of convergence∣x−a∣<r; outside they blow up and the error grows with n.
Try it
sin x about 0: press “Increase degree” several times. Why does every second step change nothing?
Matching derivatives: which ticks are green? Tap the rows to compare f′′ and T2′′.
Find T4(1) for ex about 0, the error and the Lagrange bound. How many terms give 6 correct decimals?
Show solution
1+1+21+61+241=2465≈2.708333, error ≈0.009948; bound 5!e≈0.022652. Six decimals need ∣Rn(1)∣<5⋅10−7: degree n=9, i.e. 10 terms, T9(1)≈2.718282. Show
Compute T5(1) for ln(1+x) about 0 and compare with ln2.
Show solution
1−21+31−41+51≈0.783333, while ln2≈0.693147: at the boundary point x=1 the series converges only slowly. For x=1.5 it diverges. Show
Ideas for the classroom
Start with the question “How does a calculator compute sin0.5?”; continue from the tangent to T2 with the matching-derivatives view; link to the pendulum.
Common stumbling blocks: forgetting k!; writing xk instead of (x−a)k; expecting more terms to help outside the interval of convergence; confusing the Lagrange bound with the true error.