Consider the following approximations for the first derivati…
Consider the following approximations for the first derivative: (forward difference formula}) (center difference formula) In class, we learned how the truncation and round-off errors for the center difference formula are proportional to h2 and , respectively . Minimizing the total error, yields an optimal step size . (a) The truncation and round-off errors for the forward difference formula are proportional to h and , respectively. Minimize the total error to find the optimal step size . Hint: < . (b) Evaluate the derivative of at x = 1 using the two formulae with their respective optimal step sizes. Which formula is more more accurate? The true derivative is e.