Question #66785

Determine the spacing h in a table of equally spaced values for the function f(x)= (2+x)^4 , 1≤x≤2 so that the quadratic interpolation in this table satisfies | error|≤ 10^-6
1

Expert's answer

2017-04-04T05:24:07-0400

Answer on Question #66785 – Math – Algorithms | Quantitative Methods

Question

Determine the spacing hh in a table of equally spaced values for the function


f(x)=(x+2)4,1x2f(x) = (x + 2)^4, \quad 1 \leq x \leq 2


so that the quadratic interpolation in this table satisfies error106|\text{error}| \leq 10^{-6}.

Solution

f(x)Pn(x)=(xx0)(xx1)(xxn)(n+1)!f(n+1)(cx)f(x) - P_n(x) = \frac{(x - x_0)(x - x_1) \dots (x - x_n)}{(n + 1)!} f^{(n+1)}(c_x)


where Pn(x)P_n(x) is the polynomial of degree less than or equal to nn interpolating the ff at the n+1n + 1 data points x0,x1,x2,,xnx_0, x_1, x_2, \ldots, x_n in [a,b][a, b]; cxc_x is between the maximum and minimum of x,x0,x1,x2,,xnx, x_0, x_1, x_2, \ldots, x_n.

We have n=2n = 2. Then:


f(x)P2(x)=(xx0)(xx1)(xx2)3!f(cx)f(x) - P_2(x) = \frac{(x - x_0)(x - x_1)(x - x_2)}{3!} f'''(c_x)f(x)=4(x+2)3f'(x) = 4(x + 2)^3f(x)=12(x+2)2f''(x) = 12(x + 2)^2f(x)=24(x+2)f'''(x) = 24(x + 2)f(x)P2(x)=(xx0)(xx1)(xx2)624(cx+2)f(x) - P_2(x) = \frac{(x - x_0)(x - x_1)(x - x_2)}{6} \cdot 24(c_x + 2)


where 1x21 \leq x \leq 2, cxc_x is between the maximum and minimum of x,x0,x1,x2x, x_0, x_1, x_2.

If we assume that x0xx2x_0 \leq x \leq x_2 and that h=x1x0=x2x1h = x_1 - x_0 = x_2 - x_1, then cxc_x is between x0x_0 and x2x_2, and we have:


f(x)P2(x)(xx0)(xx1)(xx2)624(x2+2)96(xx0)(xx1)(xx2)6|f(x) - P_2(x)| \leq \left| \frac{(x - x_0)(x - x_1)(x - x_2)}{6} \cdot 24(x_2 + 2) \right| \leq 96 \left| \frac{(x - x_0)(x - x_1)(x - x_2)}{6} \right|


If h=x1x0=x2x1h = x_1 - x_0 = x_2 - x_1, then


maxx0xx2(xx0)(xx1)(xx2)6=h393.\max_{x_0 \leq x \leq x_2} \left| \frac{(x - x_0)(x - x_1)(x - x_2)}{6} \right| = \frac{h^3}{9\sqrt{3}}.error=f(x)P2(x)h39396.| error | = | f (x) - P _ {2} (x) | \leq \frac {h ^ {3}}{9 \sqrt {3}} \cdot 9 6.


Thus,


h39396=106,\frac {h ^ {3}}{9 \sqrt {3}} \cdot 9 6 = 1 0 ^ {- 6},h=333231000.0055.h = \frac {\sqrt [ 3 ]{\frac {3 \sqrt {3}}{3 2}}}{1 0 0} \approx 0. 0 0 5 5.


Answer: h=333231000.0055h = \frac{\sqrt[3]{\frac{3\sqrt{3}}{32}}}{100} \approx 0.0055 .

Answer provided by https://www.AssignmentExpert.com

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS