Answer on Question #66785 – Math – Algorithms | Quantitative Methods
Question
Determine the spacing h h h in a table of equally spaced values for the function
f ( x ) = ( x + 2 ) 4 , 1 ≤ x ≤ 2 f(x) = (x + 2)^4, \quad 1 \leq x \leq 2 f ( x ) = ( x + 2 ) 4 , 1 ≤ x ≤ 2
so that the quadratic interpolation in this table satisfies ∣ error ∣ ≤ 1 0 − 6 |\text{error}| \leq 10^{-6} ∣ error ∣ ≤ 1 0 − 6 .
Solution
f ( x ) − P n ( x ) = ( x − x 0 ) ( x − x 1 ) … ( x − x n ) ( n + 1 ) ! f ( n + 1 ) ( c x ) f(x) - P_n(x) = \frac{(x - x_0)(x - x_1) \dots (x - x_n)}{(n + 1)!} f^{(n+1)}(c_x) f ( x ) − P n ( x ) = ( n + 1 )! ( x − x 0 ) ( x − x 1 ) … ( x − x n ) f ( n + 1 ) ( c x )
where P n ( x ) P_n(x) P n ( x ) is the polynomial of degree less than or equal to n n n interpolating the f f f at the n + 1 n + 1 n + 1 data points x 0 , x 1 , x 2 , … , x n x_0, x_1, x_2, \ldots, x_n x 0 , x 1 , x 2 , … , x n in [ a , b ] [a, b] [ a , b ] ; c x c_x c x is between the maximum and minimum of x , x 0 , x 1 , x 2 , … , x n x, x_0, x_1, x_2, \ldots, x_n x , x 0 , x 1 , x 2 , … , x n .
We have n = 2 n = 2 n = 2 . Then:
f ( x ) − P 2 ( x ) = ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) 3 ! f ′ ′ ′ ( c x ) f(x) - P_2(x) = \frac{(x - x_0)(x - x_1)(x - x_2)}{3!} f'''(c_x) f ( x ) − P 2 ( x ) = 3 ! ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) f ′′′ ( c x ) f ′ ( x ) = 4 ( x + 2 ) 3 f'(x) = 4(x + 2)^3 f ′ ( x ) = 4 ( x + 2 ) 3 f ′ ′ ( x ) = 12 ( x + 2 ) 2 f''(x) = 12(x + 2)^2 f ′′ ( x ) = 12 ( x + 2 ) 2 f ′ ′ ′ ( x ) = 24 ( x + 2 ) f'''(x) = 24(x + 2) f ′′′ ( x ) = 24 ( x + 2 ) f ( x ) − P 2 ( x ) = ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) 6 ⋅ 24 ( c x + 2 ) f(x) - P_2(x) = \frac{(x - x_0)(x - x_1)(x - x_2)}{6} \cdot 24(c_x + 2) f ( x ) − P 2 ( x ) = 6 ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) ⋅ 24 ( c x + 2 )
where 1 ≤ x ≤ 2 1 \leq x \leq 2 1 ≤ x ≤ 2 , c x c_x c x is between the maximum and minimum of x , x 0 , x 1 , x 2 x, x_0, x_1, x_2 x , x 0 , x 1 , x 2 .
If we assume that x 0 ≤ x ≤ x 2 x_0 \leq x \leq x_2 x 0 ≤ x ≤ x 2 and that h = x 1 − x 0 = x 2 − x 1 h = x_1 - x_0 = x_2 - x_1 h = x 1 − x 0 = x 2 − x 1 , then c x c_x c x is between x 0 x_0 x 0 and x 2 x_2 x 2 , and we have:
∣ f ( x ) − P 2 ( x ) ∣ ≤ ∣ ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) 6 ⋅ 24 ( x 2 + 2 ) ∣ ≤ 96 ∣ ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) 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| ∣ f ( x ) − P 2 ( x ) ∣ ≤ ∣ ∣ 6 ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) ⋅ 24 ( x 2 + 2 ) ∣ ∣ ≤ 96 ∣ ∣ 6 ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) ∣ ∣
If h = x 1 − x 0 = x 2 − x 1 h = x_1 - x_0 = x_2 - x_1 h = x 1 − x 0 = x 2 − x 1 , then
max x 0 ≤ x ≤ x 2 ∣ ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) 6 ∣ = h 3 9 3 . \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}}. x 0 ≤ x ≤ x 2 max ∣ ∣ 6 ( x − x 0 ) ( x − x 1 ) ( x − x 2 ) ∣ ∣ = 9 3 h 3 . ∣ e r r o r ∣ = ∣ f ( x ) − P 2 ( x ) ∣ ≤ h 3 9 3 ⋅ 96. | error | = | f (x) - P _ {2} (x) | \leq \frac {h ^ {3}}{9 \sqrt {3}} \cdot 9 6. ∣ error ∣ = ∣ f ( x ) − P 2 ( x ) ∣ ≤ 9 3 h 3 ⋅ 96.
Thus,
h 3 9 3 ⋅ 96 = 1 0 − 6 , \frac {h ^ {3}}{9 \sqrt {3}} \cdot 9 6 = 1 0 ^ {- 6}, 9 3 h 3 ⋅ 96 = 1 0 − 6 , h = 3 3 32 3 100 ≈ 0.0055. h = \frac {\sqrt [ 3 ]{\frac {3 \sqrt {3}}{3 2}}}{1 0 0} \approx 0. 0 0 5 5. h = 100 3 32 3 3 ≈ 0.0055.
Answer: h = 3 3 32 3 100 ≈ 0.0055 h = \frac{\sqrt[3]{\frac{3\sqrt{3}}{32}}}{100} \approx 0.0055 h = 100 3 32 3 3 ≈ 0.0055 .
Answer provided by https://www.AssignmentExpert.com