Calculating Taylor Series Remainder: Finding an Upper Bound for n

Click For Summary

Discussion Overview

The discussion revolves around calculating the Taylor series remainder and finding an upper bound for the number of terms needed to achieve a specific error when approximating π using the Taylor series for arctan(x). Participants explore methods for determining the number of terms required to ensure a desired level of accuracy, particularly when trial and error is impractical.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant inquires about expressing the Taylor remainder for a series to calculate π to a high degree of accuracy, specifically seeking a method that can be done by hand or with a handheld calculator.
  • Another participant suggests that while calculating every term individually is always possible, finding an analytic upper limit for the error might be feasible.
  • A participant states that the remainder after expanding n terms of a Taylor series can be expressed in terms of the n-th derivative and suggests that bounding the error requires bounding this derivative.
  • There is a reiteration of the formula for the Taylor remainder, with a focus on how to apply it to the specific case of π=4*arctan(1), raising questions about the complexity of finding the n-th derivative of arctan(x).
  • Participants acknowledge that calculating the n-th derivative may lead to complicated expressions, but emphasize that achieving high precision without computational assistance is inherently challenging.
  • Clarifications are made regarding the variables involved in the Taylor series expansion, including the evaluation point, the base point of the series, and the range for the variable x'.

Areas of Agreement / Disagreement

Participants express a mix of agreement on the need to bound the n-th derivative to find an upper limit for the error, but there is no consensus on the specific methods or ease of calculation involved. The discussion remains unresolved regarding the best approach to determine the upper bound for n.

Contextual Notes

Participants note the complexity of deriving the n-th derivative of arctan(x) and the challenges in finding a valid upper bound for n across the entire range of interest. There are indications of missing assumptions regarding the behavior of the derivatives and the specific conditions under which the bounds apply.

Astudious
Messages
61
Reaction score
0
How is the Taylor remainder of a series (with given Taylor expansion) expressed if you want to make a calculation with known error? e.g. if I want to calculate π to, say, 12 decimal places using the previously-derived result π=4*arctan(1) and the Taylor series for arctan(x), how will I work out how many terms I need (or, imagine that number of decimal places is high enough that trial and error is not efficient)?

The problem is that equating the error (e.g. 5*10^(-13) in my example above) to the integral form of the remainder leaves us an expression that can be numerically (but certainly not analytically) solved, whereas I am looking for a method that works (even approximately) by hand and handheld calculator.
 
Physics news on Phys.org
Astudious said:
(or, imagine that number of decimal places is high enough that trial and error is not efficient)?
It is always possible as you have to calculate every term individually.

Astudious said:
The problem is that equating the error (e.g. 5*10^(-13) in my example above) to the integral form of the remainder leaves us an expression that can be numerically (but certainly not analytically) solved
You can find an analytic upper limit I think.
 
The remainder after expanding n terms of a Taylor series around point a is equal to ((x-a)n/n!)f(n)(x') for some x' in (a,x). So you can bound the error at x if you can bound the n'th derivative.
 
FactChecker said:
The remainder after expanding n terms of a Taylor series around point a is equal to ((x-a)n/n!)f(n)(x') for some x' in (a,x). So you can bound the error at x if you can bound the n'th derivative.

How would this work, for, e.g. my example of π=4*arctan(1)? It seems I would have to take the nth derivative of arctan(x) - which doesn't exactly suggest itself easily to me - even then, I'm not sure what would have to be done with the remaining 3 variables (x, x', n) to find an upper bound for n?
 
Astudious said:
It seems I would have to take the nth derivative of arctan(x)
Yes. It might give ugly expressions, but no one said calculating the 12th decimal digit that way was easy without a computer.
Astudious said:
even then, I'm not sure what would have to be done with the remaining 3 variables (x, x', n) to find an upper bound for n?
x is where you want to evaluate the series (at 1), a the point your taylor series is based on (0), x' can be anything between 0 and 1, you have to find an upper bound that is valid in the whole range. n is just the derivative you have.
 
Last edited:

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 9 ·
Replies
9
Views
7K
Replies
6
Views
3K
Replies
1
Views
5K
Replies
12
Views
14K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
5K