A6 · Lesson 36 · Taylor series
Building any smooth function out of powers of x
A calculator has no sine table inside. To find it adds up a handful of terms: , and stops when the next term is too small to matter. Smooth functions can all be built this way, out of plain powers of , and engineers use the first one or two terms of these sums constantly as approximations.
Play
- The yellow curve is . The blue curve is its Taylor polynomial: the sum of its series up to the power .
- Start at : a straight line, . Raise one step at a time and watch how far from the middle the polynomial hugs the sine.
- At , over what range of is the fit good? What happens beyond it?
Predict
Near , the first term alone gives . Using the first two terms, , how close is the estimate at ?
Off by about 0.05%: , while . The error is roughly the next term, . Each term adds another power of a small number, so near the center a few terms are extremely accurate. Far from it, you need many more.
Name it
Matching a function's derivatives at a point
The Taylor series of about a point is the power series whose value and every derivative match 's at :
The th term's coefficient is : differentiating times leaves , which the factorial cancels. About (a Maclaurin series) the ones to know are:
| Function | Series | Converges for |
|---|---|---|
| all | ||
| all | ||
| all | ||
Using them as approximations. For small , keep the first one or two terms:
How good is it? For series like these, whose terms shrink and alternate in sign, the error is smaller than the first term left out. That's the number to quote when you say an approximation is good to 0.1%.
The series for is the geometric series from lesson 24; it stops converging at , where the function itself blows up. A series can only reach as far from its center as the nearest place where the function misbehaves.
Worked example
Estimate with the Taylor polynomial of degree 3 about 0.
Show the solution
- Add the four terms.
- Compare. The true value is 1.221403, so four terms give four correct digits. Near the center, each extra term multiplies the accuracy by roughly .
Answer , against the true value 1.221403.
Worked example
Use the Taylor polynomial of about to estimate .
Show the solution
- Derivatives at .
- Build the polynomial.
- Evaluate at 4.1.
- Compare. The true value is 2.024846. Centering the series at a point where you know the function well is what makes it useful.
Answer , against the true value 2.024846.
Worked example
Estimate from a degree-2 Taylor polynomial about 60°.
Show the solution
- Expand about .
- Put in . With rad:
- Compare. The true value is 0.469 47, to five places: expanding about a nearby point with known values works far better than expanding about 0.
Answer , right to five places.
Check
Estimate with the first three terms of its series.
Check
What is the coefficient of in the series for ?
Check
Write the Taylor polynomial of about 0 up to the term.
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Check
For small , which is the best simple approximation to ?
Check
Estimate from the degree-2 Taylor polynomial about 60°.
(a)
What does the polynomial give?
(b)
What is the true value?
Check
Build the Taylor series of about 0.
Step 1
Every derivative of is . What is ?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
Write the terms up to , using .
Explain why
Why does a Taylor polynomial get more accurate near its center as you add terms?
Each term matches one more derivative of the function at the center: the value, then the slope, then the bend, and so on. A polynomial that agrees with the function in more and more of these ways follows it more and more closely near that point. The next term left out involves a higher power of the distance from the center, so near the center, where that distance is small, the leftover error shrinks very fast as terms are added.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.