Skip to content

Numerical Differentiation

Differentiation is one of the most fundamental operations in mathematics, yet in numerical computation we often cannot apply standard calculus rules directly. When f(x)f(x) is defined only by a table of measured values, or is too complex for analytical treatment, we must approximate the derivative using only function values at discrete points. This chapter develops the three classical finite difference formulas, rigorously quantifies their errors, and introduces Richardson extrapolation as a technique for systematically improving accuracy.


Learning Objectives

By the end of this chapter you should be able to:

  1. State the geometric interpretation of the derivative and explain why a secant line approximates the tangent slope.
  2. Write down and apply the forward, backward, and central difference formulas for a given function and step size.
  3. State the truncation error order for each formula and predict how the error changes when hh is halved or divided by 10.
  4. Prove the forward difference truncation error using Lagrange interpolation.
  5. Compute an upper bound on the truncation error using the appropriate derivative and an interval-maximisation argument.
  6. Explain why reducing hh beyond an optimal value increases the total error through catastrophic cancellation.
  7. Write the total error formula combining truncation error and rounding error, and identify the optimal hh.
  8. Derive the first-level and second-level Richardson extrapolation formulas from Taylor series.
  9. Apply Richardson extrapolation to compute a derivative approximation of order O(h4)O(h^4) or O(h6)O(h^6).
  10. Deduce a Richardson-type formula for a non-standard step ratio.

Chapter Sections

#SectionKey Concepts
1Differentiation BasicsPower rule, tangent slope, motivation for numerical methods
2Difference FormulasForward, backward, and central difference; worked examples; comparison
3Truncation ErrorError orders O(h)O(h) vs O(h2)O(h^2); Lagrange proof; upper bound example
4Rounding Error and Total ErrorCatastrophic cancellation; total error formula; optimal hh
5Richardson ExtrapolationDh(1)D_h^{(1)} and Dh(2)D_h^{(2)} derivations; generalized formula; worked example; custom step ratio