Taylor Series to x places of decimals

Click For Summary

Homework Help Overview

The problem involves determining how many terms of the Taylor series expansion for the inverse tangent function are needed to calculate pi to ten decimal places. The series provided is tan^(-1)(x) = x - x^3/3 + x^5/5, and the context includes the evaluation of tan^(-1)(1) = pi/4.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the nature of the series as an alternating convergent series and the implications for error estimation. Questions arise regarding the formula for calculating the accuracy of the Taylor expansion and the specifics of the remainder term in relation to the desired precision.

Discussion Status

Some participants have offered insights into the error formula and how to apply it to estimate the number of terms needed. There is ongoing exploration of the implications of the remainder term and its relation to the desired accuracy, with no explicit consensus reached on the final number of terms required.

Contextual Notes

Participants note the challenge of determining the upper limit of the error and the need for specific values in the error formula, indicating a level of uncertainty in the calculations. The discussion reflects a common academic exercise related to Taylor series and convergence.

*Alice*
Messages
26
Reaction score
0
Hi all,

here's the problem:

given: tan^(-1)= x - x^3/3 + x^5/5

using the result tan^(-1) (1)= pi/4

how many terms of the series are needed to calculate pi to ten places of decimals?


note: this is supposed to say tan^(-1) and tan^(-1)[1] respectively

Does anyone know whether there's a formula to calculate the accuracy/number of decimals of the Taylor expansion? In my books I found a formula to calculate the approximation of error from the remainder term - not sure, how that would help, though.

The above seems to be one of those standard questions that one should definitely be able to solve in order to pass an exam. So, if anyone knows - help's much appreciated!
 
Last edited:
Physics news on Phys.org
It's an alternating convergent series so the error is bounded by the term following the last term you keep.
 
OK...so that's the error formula I found:

Rn(x) = (x-a)^n / n! * f^n * (k)

where Rn(x) is the remainder term and represents the error in approximating f(x) by the above (n-1)th order power series.

k is not known.

So now I would calculate k by finding the upper limit of the error by differentiating Rn(x) with respect to k and finding the maximum.

then I would put that in the above equation and substitute 10^(-10) for Rn(x) and x=1, a=0

Does that make any sense ?
 
*Alice* said:
note: this is supposed to say tan^(-1) and tan^(-1)[1] respectively

You can do that like this:

\tan^{-1}(1)
\tan^{-1}(1)
 
Alice,

You know that the n^{th} term in the series is (-1)^{n-1}x^{2n-1}/(2n-1) so you should be able to find the upper bound on the error.
 
Thanks Tide - so that would go like this:

(-1)^{n-1} * x^{n-1} / (2n-1) = 10^{-10}

so, now let x = 1

1^n / (2n-1) = 1 / (2n-1) = 10^{-10}

solve for n:
n = 5 * 10^9

which is what the solutions manual says as well. :-p

Thank you so much! :smile:
 
Last edited:
You are very welcome! :)
 

Similar threads

  • · Replies 27 ·
Replies
27
Views
4K
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K