Calculating Taylor Series Remainder: Finding an Upper Bound for n

Click For Summary
SUMMARY

The discussion focuses on calculating the Taylor series remainder to find an upper bound for the number of terms required to achieve a specific error margin when approximating π using the Taylor series for arctan(x). The remainder is expressed as R_n = ((x-a)^n/n!)f(n)(x') for some x' in (a,x), where bounding the n-th derivative is essential for determining the error. The example provided uses an error of 5*10^(-13) to illustrate the need for a method that can be executed manually or with a handheld calculator, emphasizing the complexity of calculating higher derivatives of arctan(x) for precise bounds.

PREREQUISITES
  • Understanding of Taylor series and their expansions
  • Familiarity with the arctan function and its derivatives
  • Knowledge of error analysis in numerical methods
  • Basic calculus concepts, including factorials and limits
NEXT STEPS
  • Study the derivation of the Taylor series for arctan(x)
  • Learn how to compute higher-order derivatives of functions
  • Research methods for bounding errors in numerical approximations
  • Explore numerical integration techniques to solve for remainders
USEFUL FOR

Mathematicians, students studying calculus, and anyone interested in numerical analysis or approximation methods for functions.

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 10 ·
Replies
10
Views
2K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
12
Views
14K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
4
Views
5K