Error estimate for Taylor polynomials

Click For Summary

Homework Help Overview

The discussion revolves around estimating the error for Taylor polynomials, specifically in the context of approximating the mathematical constant e using its Taylor series expansion. Participants are exploring how to determine an appropriate value of n that satisfies a specific error threshold.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the components of the Taylor polynomial for e and the error estimate formula. There are attempts to identify the maximum error and how to choose the constant k. Questions arise about determining the value of c in the error term and the implications of the instructor's guidance on selecting k.

Discussion Status

The conversation is ongoing, with participants sharing their thoughts on the problem setup and the implications of their findings. Some guidance has been provided regarding the selection of k and the relationship between n and the error threshold, but no consensus has been reached on the final steps to solve for n.

Contextual Notes

Participants are working within the constraints of a homework assignment, which may limit the information they can use. There is an emphasis on understanding the behavior of the factorial function and its growth in relation to the error estimate.

emc92
Messages
33
Reaction score
0
Use the error estimate for Taylor polynomials to find an n such that

| e - (1 + (1/1!) + (1/2!) + (1/3!) + ... + (1/n!) | < 0.000005

all i have right now is the individual components...

f(x) = ex
Tn (x) = 1/ (n-1)!

k/(n-1)! |x-a|n+1 = 0.000005
a = 0
x = 1

I don't know where to go from here
 
Physics news on Phys.org
emc92 said:
Use the error estimate for Taylor polynomials to find an n such that

| e - (1 + (1/1!) + (1/2!) + (1/3!) + ... + (1/n!) | < 0.000005




all i have right now is the individual components...

f(x) = ex
Tn (x) = 1/ (n-1)!

k/(n-1)! |x-a|n+1 = 0.000005
a = 0
x = 1

I don't know where to go from here

The max error if your last term is$$
\frac {f^{(n)}(a)(x-a)^n}{n!}$$ is$$
\left | \frac {f^{(n+1)}(c)(x-a)^{n+1}}{(n+1)!}\right |$$As you have already observed ##a=0## and ##x = 1##. How big can that derivative term be for ##0\le c\le 1##? Once you have that, figure out how large ##n## needs to be to make it small enough.
 
how do i figure out c?
 
i just looked over my notes again. we started this problem in class, and our professor told us to pick a value for k above the value of e.

so if k is 3,
3/(n+1)! = 0.000005

so now i have to find n?
 
LCKurtz said:
The max error if your last term is$$
\frac {f^{(n)}(a)(x-a)^n}{n!}$$ is$$
\left | \frac {f^{(n+1)}(c)(x-a)^{n+1}}{(n+1)!}\right |$$As you have already observed ##a=0## and ##x = 1##. How big can that derivative term be for ##0\le c\le 1##? Once you have that, figure out how large ##n## needs to be to make it small enough.

emc92 said:
how do i figure out c?

emc92 said:
i just looked over my notes again. we started this problem in class, and our professor told us to pick a value for k above the value of e.

so if k is 3,
3/(n+1)! = 0.000005

so now i have to find n?

You don't have to "figure out c". You have the nth derivative of your function evaluated at c, and c is in the interval [0,1]. You don't know the exact value of c so you ask yourself, "how big can ##f^{(n)}(c)= e^c## be for c in [0,1]. Do you understand why your instructor says to pick k > e?

To answer your last question, you don't want 3/(n+1)! = 0.000005. You would be very lucky to find an integer n giving equailty. You want 3/(n+1)! < 0.000005. Writing it a different way, you want$$
(n+1)! > \frac 3 {.000005}$$Factorials grow very quickly. Is shouldn't be difficult to check by hand how big n needs to be.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K