Answer on Question #75527 – Math – Quantitative Methods
Question
For the table of values f(x)=xex given by
x f(x)
1.8 10.8894
1.9 12.7032
2.0 14.7781
2.1 17.1489
2.2 19.8550
Find f′′(2.0) using the central difference formula of 0(h2) for h=0.1 and h=0.2. Calculate T.E. and actual error.
Solution
Exact value:
f(x)=xex,f′(x)=(x+1)ex,f′′(x)=(x+2)ex,f′′(2.0)=4e2≈29.5562.
Central difference formula.
f′′(x)≈h2f(x+h)−2f(x)+f(x−h).
Using h=0.1:
f′′(2.0)≈0.12f(2.1)−2f(2.0)+f(1.9)=0.0117.1489−2×14.7781+12.7032=29.59.
Total error ε=29.5562−29.59=−0.0338.
Actual error ∣ε∣=0.0338.
Using h=0.2:
f′′(2.0)≈0.22f(2.2)−2f(2.0)+f(1.8)=0.0419.8550−2×14.7781+10.8834=29.555.
Total error ε=29.5562−29.555=−0.0012. Actual error ∣ε∣=0.0012.
Answer provided by https://www.AssignmentExpert.com
Comments