How Do I Use Taylor Polynomials for Approximation and Error Estimation?

  • Thread starter Thread starter Benny
  • Start date Start date
  • Tags Tags
    Error
AI Thread Summary
The discussion focuses on using Taylor polynomials for approximating functions and estimating errors. To approximate e^(1/2) to four decimal places, the Taylor series for e^x is employed, with the sum taken up to n=4 yielding an approximation of 1.6487. For replacing sqrt(1+x) with 1 + (x/2) within an error of less than 0.01, the remainder equation R_n is used to find the appropriate values of x and the necessary order n of the Taylor polynomial. By setting R_n equal to 0.01, one can solve for n to ensure the error remains within the specified limit. Understanding these applications of Taylor polynomials is crucial for accurate function approximation and error estimation.
Benny
Messages
577
Reaction score
0
I'm not understanding questions where I need to determines values of x for which one function can be replaced by another with a specified maximum allowable error. I'm also having trouble trying to approximate a number to a specified number of decimal places. Here are two questions that I would like some help with.

1. Use Taylor polynomials to approximate the given number to four decimal places. (You may assume that 2 < e < 3)

e^(1/2) is the number.

2. For what values of x can we replace sqrt(1+x) by 1 + (x/2) with an error of less than 0.01?

------

1. If I recall correctly then e^x = \sum\limits_{n = 0}^\infty {\frac{{x^n }}{{n!}}} \Rightarrow e^{\frac{1}{2}} = \sum\limits_{n = 0}^\infty {\frac{1}{{n!}}} \left( {\frac{1}{2}} \right)^n.

Just to give myself an idea of the numbers I'm working with I used a calculator to obtain e^(1/2) = 1.648721271.

So I need to find a value of n which will give me a number which is within 4 decimal places of e^(1/2).

I have the remainder equation R_n = \frac{{f^{\left( {n + 1} \right)} \left( c \right)}}{{\left( {n + 1} \right)!}}\left( {x - a} \right)^{n + 1} for some c between x and a.

I'm not sure how to apply it to this question. I think question 2 requires the same thing but again I'm not sure how to apply the remainder equation. Can someone please help me out?
 
Physics news on Phys.org
1. For your first question, you can use the Taylor polynomial to approximate e^(1/2). You can start by writing out the Taylor series for e^x: e^x = \sum_{n=0}^{\infty}\frac{x^n}{n!}Now substitute x = 1/2 into this equation and you have your Taylor polynomial approximation of e^(1/2). To get the value to four decimal places, you need to take the sum up to n = 4, which gives you an approximate value of 1.6487.2. For the second question, you need to use the remainder equation to determine the values of x for which the replacement is valid. The remainder equation is given by: R_n = \frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1} where f(x) is the original function (in this case, sqrt(1+x)), c is a point between x and a (in this case, a = 0, since sqrt(1) = 1), and n is the order of the Taylor polynomial. To determine the values of x for which this replacement is valid, you need to find an n such that R_n < 0.01. To do this, you can set R_n = 0.01 and solve for n. This will give you the maximum allowable error of 0.01.
 
Thread 'Variable mass system : water sprayed into a moving container'
Starting with the mass considerations #m(t)# is mass of water #M_{c}# mass of container and #M(t)# mass of total system $$M(t) = M_{C} + m(t)$$ $$\Rightarrow \frac{dM(t)}{dt} = \frac{dm(t)}{dt}$$ $$P_i = Mv + u \, dm$$ $$P_f = (M + dm)(v + dv)$$ $$\Delta P = M \, dv + (v - u) \, dm$$ $$F = \frac{dP}{dt} = M \frac{dv}{dt} + (v - u) \frac{dm}{dt}$$ $$F = u \frac{dm}{dt} = \rho A u^2$$ from conservation of momentum , the cannon recoils with the same force which it applies. $$\quad \frac{dm}{dt}...
Back
Top