Taylor series in this visualization
The Taylor series (Taylor expansion) of a function at a point is the power series built from its derivatives there; at it is also called the Maclaurin series. The center is also written . Its partial sum of degree is the Taylor polynomial , the only polynomial of degree at most whose value and first derivatives at equal those of :
The ink curve is , the yellow curve is , and the blue point marks the center . The yellow bar on the -axis is a measurement: the widest interval on which , found by checking points 0.0025 apart on both sides of and refining the first miss, and shown rounded down. The blue brackets sit at , where R is the radius of convergence: the series converges for and diverges for . For the seven functions here, the sum inside that interval is itself, and is the distance from to the nearest point where breaks down, a complex point included.
How far is from at a given is measured by the remainder. If has derivatives on the whole interval between and (so that interval must not cross a singularity, such as the pole of at 1), then
Things to notice
- Inside the radius the partial sums converge to here, so at each such the error tends to 0 as grows, though not necessarily at every single step. Outside it the terms do not tend to 0 and does not settle. The bar only approaches : it is measured on the screen, while comes from the formula.
- A function can be smooth on the whole real line and still have a finite radius. is undefined at the complex points , so its series about converges only for .
- At the ends of the interval anything can happen: the series of at 0 converges at (to ) but not at ; that of converges at neither end, that of at both.
- At , has only odd powers and only even ones, so and of the sine are the same polynomial. n → ∞ skips such zero terms, so every step changes the curve.
- Convergence alone does not make the sum equal . The function equal to for and 0 at 0 has every derivative 0 at 0, so its Taylor series there is 0 for all .
Where it is used
- Physics keeps the first terms near a point: for a pendulum’s small swings, and turns relativistic kinetic energy into at low speeds.
- The remainder tells how many terms a computation needs: summing from to , which is for , already gives to within .
Controls
- Turn the Degree knob, or press n → ∞ to add the next non-zero term, one at a time, up to (pressing again at the top replays from 0). Drag the blue point or the marker on the axis to move the center; the key centers jump to exact values.
- The strip below the graph shows on a logarithmic scale across the graph. Presentation mode opens a full-screen view for projectors (Space adds terms, ← → change the degree, H hides the radius).
Related
- D05Derivative
- D07Linear approximation
- D34SeriesPlanned
- A15Complex plane
Further reading: Wikipedia: Taylor series; OpenStax, Calculus Volume 2, 6.3 Taylor and Maclaurin Series.