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 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:
- State the geometric interpretation of the derivative and explain why a secant line approximates the tangent slope.
- Write down and apply the forward, backward, and central difference formulas for a given function and step size.
- State the truncation error order for each formula and predict how the error changes when is halved or divided by 10.
- Prove the forward difference truncation error using Lagrange interpolation.
- Compute an upper bound on the truncation error using the appropriate derivative and an interval-maximisation argument.
- Explain why reducing beyond an optimal value increases the total error through catastrophic cancellation.
- Write the total error formula combining truncation error and rounding error, and identify the optimal .
- Derive the first-level and second-level Richardson extrapolation formulas from Taylor series.
- Apply Richardson extrapolation to compute a derivative approximation of order or .
- Deduce a Richardson-type formula for a non-standard step ratio.
Chapter Sections
| # | Section | Key Concepts |
|---|---|---|
| 1 | Differentiation Basics | Power rule, tangent slope, motivation for numerical methods |
| 2 | Difference Formulas | Forward, backward, and central difference; worked examples; comparison |
| 3 | Truncation Error | Error orders vs ; Lagrange proof; upper bound example |
| 4 | Rounding Error and Total Error | Catastrophic cancellation; total error formula; optimal |
| 5 | Richardson Extrapolation | and derivations; generalized formula; worked example; custom step ratio |