Questions: Numerical Differentiation

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A programmer wants the most accurate numerical estimate of f'(x) and chooses h = 10⁻¹⁵, reasoning that smaller h means closer to the limit definition. What actually happens?

AThe estimate improves dramatically because h is nearly zero
BThe estimate degrades because catastrophic cancellation in f(x+h) − f(x) amplifies rounding error, overwhelming any gain from smaller truncation error
CThe estimate is unchanged because floating-point arithmetic handles small differences correctly
DThe truncation error increases when h drops below the optimal value
Question 2 Multiple Choice

Why does the centered difference formula (f(x+h) − f(x−h))/(2h) have O(h²) truncation error while the forward difference (f(x+h) − f(x))/h has only O(h)?

AThe centered formula uses twice as many function evaluations, which averages out errors
BThe symmetric form causes the O(h) terms in the Taylor expansions to cancel, leaving only O(h²) terms
CThe factor of 2h in the denominator reduces truncation error by a factor of 2
DThe centered formula avoids catastrophic cancellation entirely
Question 3 True / False

For numerical differentiation, using a step size h smaller than the optimal value increases total error rather than decreasing it.

TTrue
FFalse
Question 4 True / False

Making the step size h as small as possible generally produces the most accurate numerical derivative.

TTrue
FFalse
Question 5 Short Answer

Explain the two competing sources of error in numerical differentiation and why they create an optimal step size h.

Think about your answer, then reveal below.