Given f ( x ) = e <mrow class="MJX-TeXAtom-ORD"> &#x2212;<!-- − -->

Kendall Oneill

Kendall Oneill

Answered question

2022-05-15

Given f ( x ) = e x and x 0 = 0, I need to find the smallest value of n such that | P n ( x ) f ( x ) | < 10 5 for all x [ 0 , 1 ]

Answer & Explanation

Kyler Crawford

Kyler Crawford

Beginner2022-05-16Added 16 answers

Given f ( x ) = e x and x 0 = 0, find the smallest value of n such that | P n ( x ) f ( x ) | < 10 5 for all x [ 0 , 1 ]
The Maclaurin series of this function to be f ~ = n = 0 ( 1 ) n n ! x n
To satisfy | P n ( x ) f ( x ) | < 10 5 , look for an error term so that | x n + 1 ( n + 1 ) ! f ( n + 1 ) ( ξ ) | < 10 5 , where 0 < ξ < x. For all x [ 0 , 1 ] | f ( n + 1 ) ( ξ ) | 1 (this happens since e x is strictly decreasing as Gabor pointed out). Now, | x n + 1 ( n + 1 ) ! f ( n + 1 ) ( ξ ) | < 10 5 | x n + 1 ( n + 1 ) ! 1 | < 10 5 is always nonnegative in the specified interval, this becomes x n + 1 ( n + 1 ) ! < 10 5
Find a bound for x n + 1 . Since x [ 0 , 1 ] x n + 1 = 0 when x = 0 x n + 1 = 1, so 1 ( n + 1 ) ! < 10 5
By algebra, this is equivalently ( n + 1 ) ! > 10 5 . It is evident 8 ! = 40 , 320 and 9 ! = 362 , 880, so n + 1 = 9 n = 8
the smallest possible n satisfying | P n ( x ) f ( x ) | < 10 5 for all x [ 0 , 1 ] is n = 8

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?