Question #74146

derive a suitable numerical differentiation formula of 0(h2) to find f''(2. 4) with h =0.1 given the table f(0.1)=3.41, f(1.2) =2.68, f(2.4)=1. 37, f(3.9) =-1. 48.

Expert's answer

Question #74146

Derive a suitable numerical differentiation formula of 0(h2)0(h2) to find f(2.4)f'(2.4) with h=0.1h = 0.1 given the table f(0.1)=3.41f(0.1) = 3.41, f(1.2)=2.68f(1.2) = 2.68, f(2.4)=1.37f(2.4) = 1.37, f(3.9)=1.48f(3.9) = -1.48.

Answer:

Using Taylor Expansion technique:


f(x+h)=f(x)+hf(x)+h22!f(x)+h33!f(x)+h44!f(4)(x),f(x + h) = f(x) + h f'(x) + \frac{h^2}{2!} f''(x) + \frac{h^3}{3!} f'''(x) + \frac{h^4}{4!} f^{(4)}(x) \dots,f(xh)=f(x)hf(x)+h22!f(x)h33!f(x)+h44!f(4)(x).f(x - h) = f(x) - h f'(x) + \frac{h^2}{2!} f''(x) - \frac{h^3}{3!} f'''(x) + \frac{h^4}{4!} f^{(4)}(x) \dots.


Thus


f(x+h)+f(xh)=2f(x)+h2f(x)+h412f(4)(x)+,f(x + h) + f(x - h) = 2f(x) + h^2 f''(x) + \frac{h^4}{12} f^{(4)}(x) + \dots,f(x+h)+f(xh)2f(x)=h2f(x)+h412f(4)(x)+,f(x + h) + f(x - h) - 2f(x) = h^2 f''(x) + \frac{h^4}{12} f^{(4)}(x) + \dots,f(x+h)+f(xh)2f(x)h2=f(x)+h212f(4)(x)+,\frac{f(x + h) + f(x - h) - 2f(x)}{h^2} = f''(x) + \frac{h^2}{12} f^{(4)}(x) + \dots,f(x+h)+f(xh)2f(x)h2=f(x)+O(h2).\frac{f(x + h) + f(x - h) - 2f(x)}{h^2} = f''(x) + O(h^2).


So


f(x)f(x+h)+f(xh)2f(x)h2f''(x) \approx \frac{f(x + h) + f(x - h) - 2f(x)}{h^2}


with truncation error of order O(h2)O(h^2).

For x=2.4x = 2.4 and h=0.1h = 0.1

f(2.4)=1.37,f(2.4) = 1.37,f(2.4+0.1)=f(2.5)=1.37(1.37+1.48)2.52.43.92.4=1.18,f(2.4 + 0.1) = f(2.5) = 1.37 - (1.37 + 1.48) \frac{2.5 - 2.4}{3.9 - 2.4} = 1.18,f(2.40.1)=f(2.3)=1.37+(2.681.37)2.42.32.41.2=1.48,f(2.4 - 0.1) = f(2.3) = 1.37 + (2.68 - 1.37) \frac{2.4 - 2.3}{2.4 - 1.2} = 1.48,f(x)=1.18+1.4821.370.12=8.f''(x) = \frac{1.18 + 1.48 - 2 \cdot 1.37}{0.1^2} = -8.


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!

LATEST TUTORIALS
APPROVED BY CLIENTS