Kim’s Math NotesCourse index

Finding Taylor Polynomial Approximations of Functions

How do I build a Taylor polynomial from the derivatives at a point?

Build a Taylor polynomial from the derivatives at the center, and read derivatives back from the coefficients.

Coefficient or derivative

Common mistake 5 → f′′′(1)=5

Correction 5=f′′′(1)3! → f′′′(1)=5⋅6=30

Idea 1: find the coefficients

Idea one: find the coefficients. We want a polynomial that acts like root x near x equals four. Write it in powers of x minus four, with coefficients we don't know yet: c sub zero, plus c sub one times x minus four, plus c sub two times x minus four squared, plus c sub three times x minus four cubed. A question first. Is root x a polynomial?

No, it isn't. So no polynomial can equal it everywhere.

Watch this part of the concept lesson

Read the rest of this scene

What we can do is match it at four: the same value, and the same first three derivatives. Start with the value. Put x equals four into P. Every x minus four becomes zero, so P of four is just c sub zero. We want that to be f of four.

So c sub zero is f of four. Now differentiate. The constant c sub zero disappears. P prime of x is c sub one, plus two c sub two times x minus four, plus three c sub three times x minus four squared. Put in four again. Only c sub one is left: P prime of four is c sub one.

We want that to be f prime of four. So c sub one is f prime of four. Differentiate again. P double prime of x is two c sub two, plus three times two, c sub three, times x minus four. At four, only two c sub two is left.

Set it equal to f double prime of four. So c sub two is f double prime of four, over two. And once more. P triple prime of x is three times two, times c sub three. It is a constant now. Set it equal to f triple prime of four.

So c sub three is f triple prime of four, over three times two. See what happened. Each time we differentiate and put in four, the next coefficient comes out, tied to the next derivative of f. Now the numbers. Root x is x to the one half. So f prime is one half, x to the negative one half.

f double prime is negative one fourth, x to the negative three halves. And f triple prime is three eighths, x to the negative five halves. Each time, the exponent comes down in front and drops by one. At four, we need those powers. Four to the negative one half is one over root four, which is one half.

Four to the negative three halves is one over root four, cubed: one eighth. Four to the negative five halves is one over root four, to the fifth: one over thirty-two. Put those in. f of four is two. f prime of four is one half times one half, which is one fourth. For f double prime of four, multiply negative one fourth by one eighth: that's negative one over thirty-two.

For f triple prime of four, multiply three eighths by one over thirty-two: that's three over two hundred fifty-six. Now the coefficients. c sub zero is two. c sub one is one fourth. c sub two is negative one over thirty-two, times one half: negative one over sixty-four.

c sub three is three over two hundred fifty-six, times one sixth: one over five hundred twelve. So the polynomial is two, plus one fourth times x minus four, minus one over sixty-four, times x minus four squared, plus one over five hundred twelve, times x minus four cubed.

Idea 2: stop at degree 1, 2, 3

Idea two: where you stop. You don't have to keep every term. Keep the first two, and you have P sub one: two, plus one fourth times x minus four. Its degree is one, and it is exactly the tangent line at four. Keep three terms, and you have P sub two: P sub one, minus one over sixty-four, times x minus four squared.

Its degree is two.

Watch this part of the concept lesson

Read the rest of this scene

This one bends with the curve. Keep all four terms, and you have P sub three: P sub two, plus one over five hundred twelve, times x minus four cubed. Its degree is three. Check them at five where x minus four is just one. So each polynomial is the sum of its coefficients.

P sub one is two plus one fourth, which is two point two five. P sub two is two point two five, minus one over sixty-four: about two point two three four four. P sub three is P sub two, plus one over five hundred twelve: about two point two three six three. And the real value, root five, is about two point two three six one. Each new term matches one more derivative at four, and here the answer gets closer to the real value.

That is the whole idea of a Taylor polynomial, and next we write it for any function.

Idea 3: the pattern

Idea three: the pattern. Nothing in those steps was special to root x, or to four. Take any function f that has the derivatives we need, and any point A, the way we used four. Write the polynomial in powers of x minus A: c sub zero, plus c sub one times x minus A, plus c sub two times x minus A squared, plus c sub three times x minus A cubed, plus c sub four times x minus A to the fourth. Do the same steps: put in A, differentiate, put in A again.

You get c sub zero equals f of A.

Watch this part of the concept lesson

Read the rest of this scene

c sub one equals f prime of A. Two c sub two equals f double prime of A. And three times two, c sub three, equals f triple prime of A. Differentiate once more and put in A: four times three times two, c sub four, equals the fourth derivative of f at A. We write the fourth derivative as f with a four in parentheses.

In the same way, f with a k in parentheses is the k-th derivative. The parentheses tell you it is not a power. Look at the numbers in front. Two is two factorial. Three times two is three factorial.

Four times three times two is four factorial. So divide by the factorial: c sub k is the k-th derivative of f at A, over k factorial. The factorial comes from differentiating the power, not from f. Now put the terms together. P sub n of x is f of A, plus f prime of A times x minus A, plus f double prime of A over two factorial, times x minus A, squared, and so on, up to the n-th derivative of f at A, over n factorial, times x minus A, to the n.

This polynomial matches f at A: the same value, and the same first n derivatives. It is called the Taylor polynomial of degree n for f, about x equals A, and the point A is called its center. When the center is zero, it has its own name: a Maclaurin polynomial. One last question. What if the terms never stop?

Then it is not a polynomial any more. That is how functions like sine x, cosine x, and e to the x get written. We'll get there later in the unit.

Idea 4: write one, and a term can be zero

Idea four: write one. Now let's write one, and watch for a trap. Take f of x equals cosine x, with center zero, and find P sub three. Write the function and its derivatives. f is cosine x.

f prime is negative sine x.

Watch this part of the concept lesson

Read the rest of this scene

f double prime is negative cosine x. And f triple prime is sine x. Plug in zero. The values are one, zero, negative one, and zero. Divide each value by the factorial of its order.

P sub three of x is one, plus zero times x, minus one over two factorial times x squared, plus zero over three factorial times x cubed. The terms with zero drop out. So P sub three of x is one, minus x squared over two. The x cubed term is there, with coefficient zero. So this is still P sub three, even though its highest power is two.

So P sub n means every term up to the n-th power, and some of them can be zero. The highest power you actually see can be lower than n. So never find n by counting terms.

Idea 5: coefficient and derivative, both ways

Idea five: coefficient and derivative. Start from the pattern. The coefficient of x minus A, to the k, is the k-th derivative of f at A, over k factorial. On the exam, you read it both ways. A derivative is given.

Say f double prime of one is six.

Watch this part of the concept lesson

Read the rest of this scene

Then the coefficient of x minus one, squared, is six over two factorial, which is three. Now the other way. A coefficient is given. Say the polynomial has the term negative two, times x minus one, to the fourth. That negative two is the fourth derivative of f at one, over four factorial. Multiply both sides by four factorial.

The fourth derivative of f at one is negative two times four factorial. That's negative two times twenty-four, which is negative forty-eight. So, from a derivative to a coefficient, divide by k factorial. From a coefficient back to a derivative, multiply by k factorial. Dividing gives a coefficient, and multiplying gives a derivative. Keep those straight.

Idea 5: read the coefficients off a graph

Idea five, again: reading from a graph. Here's a use for that link. The coefficients of P sub two come from the value, the slope, and the bend of f at the center. So you can read their signs by looking at the curve. Write it out. P sub two of x is f of A, plus f prime of A times x minus A, plus f double prime of A over two, times x minus A, squared.

Center it at zero. The curve is above the axis, so the value is positive. It's rising, so the slope is positive.

Watch this part of the concept lesson

Read the rest of this scene

And it bends down, so the second derivative is negative. The signs are plus, plus, minus. Now center it at four. The curve is above the axis, it's rising, and now it bends up. So every coefficient is positive: plus, plus, plus.

It's the same function both times. Move the center, and the coefficients change, because they describe the curve at the center.

Example 1: from derivatives to a polynomial

Example one is a free response question. A function f has f of two equals five, f prime of two equals negative one, f double prime of two equals four, and f triple prime of two equals eighteen. In part a, write the third-degree Taylor polynomial for f about x equals two. In part b, use it to approximate f of two point one. The plan: each coefficient is a derivative of f at two, divided by k factorial.

For part a, the coefficients are: five.

Watch this part of the concept lesson

Read the rest of this scene

Negative one. Four over two factorial, which is two. And eighteen over three factorial, which is three. This line earns the point. P sub three of x is five, minus the quantity x minus two, plus two times x minus two, squared, plus three times x minus two, cubed. The plan: x minus two is zero point one here.

So every term has a power of zero point one in it, and the powers shrink fast. For part b, P sub three of two point one is five, minus zero point one, plus two times zero point zero one, plus three times zero point zero zero one. That's five, minus zero point one, plus zero point zero two, plus zero point zero zero three, which adds up to four point nine two three. This line earns the point. f of two point one is approximately four point nine two three.

Use the approximately-equal sign: the polynomial gives an approximation, not the exact value.

Example 2: from a coefficient to a derivative

Example two is multiple choice. The third-degree Taylor polynomial for f about x equals one is P sub three of x equals four, minus two times x minus one, plus three times x minus one, squared, plus five times x minus one, cubed. What is f triple prime of one? The plan: f triple prime of one, over three factorial, is the coefficient of x minus one, cubed. So we go backward.

Read that coefficient from the polynomial: f triple prime of one, over three factorial, equals five. Five is the cubic coefficient. To recover the third derivative at one, multiply five by three factorial. Five times six gives thirty. So the answer is D.

Choice B is the coefficient itself, before you multiply by the factorial.

Watch this part of the concept lesson

Common mistake: coefficient or derivative

Stay with that polynomial for a moment. The coefficients and the derivatives are easy to mix up, so one wrong reading is very common. This is where people lose points. Five is the coefficient, so a common answer writes f triple prime of one equals five. But that five already has the factorial divided out.

Here's the right reading. Five equals f triple prime of one, over three factorial.

Watch this part of the concept lesson

Read the rest of this scene

So f triple prime of one equals five times six, which is thirty.

Worked examples

Example 1

A function f has f(2)=5,f′(2)=−1,f′′(2)=4,f′′′(2)=18. (a) Write the third-degree Taylor polynomial P3(x) for f about x=2. (b) Use P3 to approximate f(2.1).
Hint

Divide each derivative by its factorial; then x−2=0.1.

Answer and solution

Answer (a) P3(x)=5−(x−2)+2(x−2)2+3(x−2)3 (b) f(2.1)≈4.923

  1. 5,−1,42!=2,183!=3:P3(x)=5−(x−2)+2(x−2)2+3(x−2)3
  2. P3(2.1)=5−0.1+0.02+0.003=4.923

Example 2

The third-degree Taylor polynomial for f about x=1 is P3(x)=4−2(x−1)+3(x−1)2+5(x−1)3. What is f′′′(1)?
  1. 56
  2. 5
  3. 15
  4. 30
Hint

The coefficient is f′′′(1)3!.

Answer and solution

Answer D. 30

  1. f′′′(1)3!=5→f′′′(1)=30
  2. Answer D.

Workbook

Problem 1

Find the second-degree Maclaurin polynomial for f(x)=1+x.
Hint

Maclaurin: the center is 0.

Answer and solution

Answer P2(x)=1+12x−18x2

  1. f(0)=1,f′(0)=12,f′′(0)=−14⇒P2(x)=1+12x−18x2

Common mistake Forgetting to divide f′′(0) by 2!.

Watch the worked solution to Problem 1

Problem 2

If f(0)=2, f′(0)=−3, and f′′(0)=6, what is the second-degree Maclaurin polynomial approximation of f(0.1)?
  1. 1.76
  2. 1.73
  3. 1.70
  4. 2.33
Hint

The x2 coefficient is f′′(0)2!.

Answer and solution

Answer B. 1.73

  1. P2(x)=2−3x+3x2,P2(0.1)=2−0.3+0.03=1.73.Answer B.

Common mistake (A) uses 6 instead of 62.

Watch the worked solution to Problem 2

Problem 3

Find the third-degree Taylor polynomial for f(x)=lnx about x=1.
Hint

Divide the kth derivative by k!.

Answer and solution

Answer P3(x)=(x−1)−12(x−1)2+13(x−1)3

  1. f(1)=0,f′(1)=1,f′′(1)=−1,f′′′(1)=2⇒P3(x)=(x−1)−12(x−1)2+13(x−1)3

Common mistake Writing powers of x instead of powers of (x−1).

Watch the worked solution to Problem 3

Problem 4

Find the second-degree Taylor polynomial for f(x)=sinx about x=π6.
Hint

Values of sine and cosine at π6.

Answer and solution

Answer P2(x)=12+32(x−π6)−14(x−π6)2

  1. f=12,f′=32,f′′=−12 at π6⇒P2(x)=12+32(x−π6)−14(x−π6)2

Common mistake Leaving the last coefficient as −12.

Watch the worked solution to Problem 4

Problem 5

A function f has derivatives of all orders, with f(1)=2, f′(1)=0, f′′(1)=−4, and f′′′(1)=6. (a) Write the third-degree Taylor polynomial for f about x=1. (b) Use the polynomial to approximate f(0.9). (c) Does f have a relative maximum, a relative minimum, or neither at x=1? Justify your answer.
Hint

Only x−1 matters when you plug in.

Answer and solution

Answer (a) P3(x)=2−2(x−1)2+(x−1)3 (b) 1.979 (c) relative maximum: f′(1)=0, f′′(1)<0

  1. P3(x)=2−2(x−1)2+(x−1)3,P3(0.9)=2−0.02−0.001=1.979
  2. f′(1)=0,f′′(1)=−4<0⇒relative maximum (second derivative test)

Common mistake The sign of (−0.1)3.

Watch the worked solution to Problem 5

Problem 6

The fourth-degree Taylor polynomial for f about x=3 is P4(x)=5−2(x−3)+7(x−3)2−(x−3)4. (a) Find f(3), f′(3), and f′′(3). (b) Find f′′′(3) and f(4)(3). (c) Write an equation for the line tangent to the graph of f at x=3.
Hint

Coefficient given: multiply by k!.

Answer and solution

Answer (a) 5, −2, 14 (b) 0, −24 (c) y=5−2(x−3)

  1. f(3)=5,f′(3)=−2,f′′(3)=7⋅2!=14,f′′′(3)=0,f(4)(3)=−1⋅4!=−24
  2. y=5−2(x−3)

Common mistake A missing term means that derivative is 0.

Watch the worked solution to Problem 6