Evaluating the remainder of a Taylor Series Polynomial

In summary, the goal of this problem is to approximate the value of ln2. Two different approaches are used: the Taylor polynomial pn(x) of the function f(x) = lnx centered at a = 1, and the alternating series test. If x = 2, the size of the remainder Rn(2) = ln2 − pn(2) is evaluated. If the problem is solved for x = 2, then the approximate value of ln2 (up to two decimal points) can be found.
  • #1
RJLiberator
Gold Member
1,095
63

Homework Statement


The goal of this problem is to approximate the value of ln 2. We will use two different approaches: (a) First, we use the Taylor polynomial pn(x) of the function f(x) = lnx centered at a = 1.

  1. Write the general expression for the nth Taylor polynomial pn(x) for f(x) = lnx centered at a = 1.
    DONE
  2. At x = 2, evaluate the size of the remainder Rn(2) = ln 2 − pn(2).
  3. What should n be so that you are sure that pn(2) approximates ln2 to two decimal

    points? What is then the approximate value of ln 2 (up to two decimal points)?

Homework Equations


[/B]

The Attempt at a Solution



For part 1, I netted the (should be correct) answer of
ln(x) = Σ from n=1 to infinity of (-1)^(n+1)/n (x-1)^n

Now, I am completely stuck on part 2. At x=2, evaluate the size of the remainder Rn(2) = ln(2)-Pn(2).

Are there any examples out there? I am searching the internet for examples, but not much luck.

Thank you.
 
Physics news on Phys.org
  • #2
If you want to evaluate Rn(2), you calculate ln(2) - Pn(2). It's straightforward !

[edit] Correction. I looked at ln(2) - P2(2) which is too easy. Sorry.

[edit2] Check this link for an error bound expression.
 
Last edited:
  • Like
Likes RJLiberator
  • #3
Thank you for the guidance.

I was starting to think it had something to do with the alternating series test.
When evaluating at x = 2 the (x-1)^n part of the summation does not matter.

I see from this link, ln(2) does not converge absolutely, but they have rearranged it in such a form with 1/2.
I guess, if I can figure out the answer to this part, then I have the value for ln(2). I will just need the value of Pn(2). Hm.
 
  • #4
Maybe a better question now for me to ask is, what is the meaning/definition of Pn(2)? I know that P_2(x) is taking the sum to the second degree, but I don't understand Pn(2).
 
  • #5
I would expect $$P_N(x) =\sum_{n=1}^N\ {(-1)^{(n+1)}\over n}\; (x-1)^n$$
 
Last edited:
  • Like
Likes RJLiberator
  • #6
What does Pn(x) represent?

The nth degree polynomial representation at a value "x" ?

Wouldn't that be equivalent to evaluating ln(2) in this situation?
 
  • #7
Okay, maybe I am looking at this wrong (well, clearly I am).

Let's say, I evaluate Pn(2) as you have prescribed in earlier post. (which can be done according to the Alternating series)
After this, I will need to find a way to evaluate Rn(2).
Once this is done, the combined values will equal = ln(2).

Is this the correct strategy to approaching this problem?
If so, how would I calculate Rn(2)
 
  • #8
My impression is that Pn(x) is the Taylor series up to degree n. So P1(x) = x-1, P2(x) = (1-x) - (x-2)2/2, etc.

That way R1(2) = -0.31, R2(2) = 0.19 etc. (convergence is excruciatingly slow).

There is no calculating Rn(2) unless you 1) use the actual value of ln(2) , and 2) add up all the terms up to order n with unlimited precision. All there is to evaluate is to give an upper bound for |Rn|. The link gives an expression for the error bound

However, part 3) of the exercise then poses a problem: do they want us to actually calculate all these terms and check if it rounds off to 0.70 or 0.69 ? I really can't understand what's intended there.
 
  • Like
Likes RJLiberator
  • #9
BvU, this homework was due last night. We came to the exact same conclusion. The vagueness of the question causes such confusion.

For ii) apparently they just wanted a general formula in the form of Rn(2) = ln(2) - sum (-1)^((n+1))n or something like this.
For iii) it was exactly as you stated.

I am just going to put this assignment behind me, at least I know that the vagueness of this assignment does not equate to my understanding on this topic. :) Thank you for helping.
 

Related to Evaluating the remainder of a Taylor Series Polynomial

1. What is a Taylor Series Polynomial?

A Taylor Series Polynomial is a mathematical representation of a function that can be expressed as an infinite sum of terms. It is used to approximate a function at a certain point by using the values of the function and its derivatives at that point.

2. Why is it important to evaluate the remainder of a Taylor Series Polynomial?

Evaluating the remainder of a Taylor Series Polynomial is important because it allows us to determine the accuracy of the polynomial approximation. By comparing the value of the remainder to the actual value of the function, we can determine how close the approximation is to the actual function.

3. How is the remainder of a Taylor Series Polynomial calculated?

The remainder of a Taylor Series Polynomial is calculated using the Lagrange form of the remainder, which is given by the formula Rn(x) = f(n+1)(c)(x-c)n+1/(n+1)!, where c is a value between the center of the Taylor Series and the point at which the polynomial is being evaluated.

4. What does the remainder term represent in a Taylor Series Polynomial?

The remainder term represents the difference between the actual value of the function and the value calculated using the Taylor Series Polynomial. It is essentially the error term in the polynomial approximation.

5. How does the degree of the polynomial affect the accuracy of the approximation?

The degree of the polynomial directly affects the accuracy of the approximation. As the degree increases, the polynomial includes more terms and thus becomes a better approximation of the function. However, if the degree is too high, the polynomial may not converge and the accuracy of the approximation may decrease.

Similar threads

  • Calculus and Beyond Homework Help
Replies
27
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
14
Views
302
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
933
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
3K
Back
Top