Hi everyone! Now we’ll switch directions away from integration and toward infinite series. Indeed, this topic motivates everything we’ll be studying for the next several lessons.
This lesson will build on what you learned about the tangent line in your Calculus I class. We’ll spend this lesson and Lesson 12 (link here) on this topic and revisit it in Lesson 20.
Your textbook is a bit unusual in that it covers Taylor polynomials and Taylor series in the same section. We’ll start with Taylor polynomials today and then over the next several lessons build toward understanding Taylor series in Lesson 20.
Lesson 11: Taylor and Maclaurin Polynomials (part 1)
- Describe the procedure for finding a Taylor polynomial of a given order for a function.
- Explain the relationship between the family of Taylor polynomials and the function.
- Volume 2, Section 6.3 Taylor and Maclaurin Series (link to textbook section)
- Series – Taylor and Maclaurin Polynomials
In your Calculus I class, you saw that the tangent line to the graph of a function at a point is the line that best approximates the graph near that point. Today we ask: how can we modify the tangent line to get a better approximation?
Figures 1, 2, and 3 below show the graph of the function (the black dotted curve) and its tangent line at which we say in Warmup exercise 1 had equation (the solid red line). In Figure 1, we’re pretty zoomed out to see a big window. In Figure 2, we’ve zoomed in much more closely on the point of tangency and in Figure 3 we’re zoomed in even closer. Notice how in Figure 1, the black curve and red line don’t seem to have much to do with one another, but in Figure 2, the red line looks very close to the black curve and in Figure 3, there’s almost no difference. This interactive Desmos graph lets you zoom in and out on your own (link here; the interactive graph has other elements we’ll turn on later but for now you can just zoom in and out).
The motivating question above asks: can we do better?
A worse approximation
First, let’s start with a graph that does a worse job than the tangent line at approximating the graph of a function near a point. This will give us a first idea of how to find a better approximation. We can choose lots of worse approximations by just picking random functions! But we want one that’s just a little bit worse in a specific way.
Remember that the tangent line satisfies two conditions:
- goes through the point of tangency , and
- has the same slope as the graph right at .
Remember that we rewrote the equation of the line tangent to the graph at as
Notice that in our equation has two terms on the right:
- the first one involves , and
- the second term involves .
These two terms line up exactly with the two conditions above! The first term guarantees that the tangent line passes through the point of tangency on the graph —that is, the point on the tangent line with has the same height as the point with on . The second term guarantees that the tangent line has the same slope as the graph at —that is, the tangent line and the function have the same first derivative at .
So one way to get an approximation of that is worse than the tangent line near is to get rid of the second condition, which means to get rid of the second term, so we get:
This will just be a horizontal line at the right height. You can see this approximation in Figure 4, zoomed in in Figure 5, and zoomed in again in Figure 6. This approximation isn’t bad, but it isn’t good either. We can see clearly that the tangent line is better.
Let’s call the tangent line our “first approximation” and name the function . That makes our worse approximation the “zeroth approximation” . So
- , and
Now let’s work on our “second approximation” . Linear functions like our first and zeroth approximations are nice because they’re familiar and easy to work with, but the tangent line is a line, so it can’t approximate a curve that well, especially as we move away from the point of tangency. So what’s the next best thing to a tangent line? What’s something that’s familiar and easy to work with, but is curved?
Yes! We can “correct” the equation of the tangent line by adding a small quadratic term to .
- , and
In our example where and , we have so .
Again, in Figures 7, 8, and 9 below we’ll look at how the graph of this quadratic function compares to the graph of the original function near . Again, we’ll zoom in more and more in these figures. Notice how at each of these three zoom levels, this second approximation is closer to the black dotted graph than the first approximation (tangent line) and zeroth approximation (constant function) were.
Notice that our second approximation has the same zeroth, first, and second derivatives as our original does, so we’re doing a better job of approximating near .
So we have a degree 0 approximation , a degree 1 approximation , and a degree 2 approximation . You might ask now can we do better and the answer is: yes! These are just the first three approximations on an infinite list of approximations!
- … and so on forever …
These are called Taylor polynomials of centered at . The degree Taylor polynomial of a function centered at has the same first derivatives as does at . The higher the degree, the better the approximation.
The Taylor polynomial of degree of centered at is given by:
A Maclaurin polynomial is just a Taylor polynomial centered at .
Back to our example
See the interactive Desmos graph (link here) again. More Taylor polynomials are listed on the left of the screen but by default only the tangent line is displayed. Click the grey circles to the left of the functions’ formulas to display them one by one. Notice how as the degree increases, the graphs do a better and better job of approximating the curve of the graph near .
Video 1 below shows us the work we must do to determine the degree 4 Taylor polynomial for centered at —the example we’ve been working on in this lesson. Notice that the notation used is instead of our and uses instead of for the center.
The video also gives us a formula for the remainder (which measures how good our approximation is close to the center) and applies it to this example—we’ll come back to the remainder in Lesson 12.
Video 2 below takes us through some of the theory discussed above and two more examples.
Video 3 below shows another example.
What can we use a Taylor polynomial for? Polynomials are nice functions for computers and calculators since they’re built from the elementary operations: , , . Some calculators actually use Taylor polynomials instead of the original functions they’re based on. So for example, when you ask the calculator for the calculator might use the degree 10 Taylor polynomial for centered at and spit out instead of using the function itself. We know that just approximates near , so is not equal to . But is pretty close to , so we can expect to be pretty close to , and usually it’s close enough for our purposes!
Summary and a question to ponder
Taylor polynomials approximate a function near a point called the center. This is similar to how a tangent line approximates the graph of a function near the point of tangency. As the degree of the Taylor polynomial increases, the approximation gets better and better. So what would the “best approximation” of the function be? We’ll come back to this in Lesson 12 (link here) and again in Lesson 20.