Differential Equations & Numerical Methods · BE5B01DEN · Topic 3 of 13
Approximating the derivative, order of a method
Week 3. Forward and central differences have different orders; the order tells you how the error shrinks with h.
Key ideas
Three difference quotients
The forward, backward and central differences approximate f′(a) from values of f near a.
Orders and the second derivative
The one-sided quotients have error O(h); the central quotient and the second-difference formula have error O(h²). The central formula is more accurate for smooth f at the same step.
Predict errors with the order
If E(h)≈C·h^p then halving h divides the error by 2^p. Big-O calculus: O(h^a)·O(h^b)=O(hᵃ⁺ᵇ), and a sum of O terms keeps the lower power.
In one line: The order p is the exponent in E≈C·h^p; use it to predict, not just to name, the error.
Formulas
- Three difference quotients
- Orders and the second derivative
- Predict errors with the order
Practice with worked solutions
Question 1
Approximate f′(2) for f(x) = x³ by the forward difference with h = 0.1.
Worked solution
Answer: 12.61
Evaluate (2.1³ − 2³)/0.1.
Question 2
Approximate f′(2) for f(x) = x³ by the central difference with h = 0.1.
Worked solution
Answer: 12.01
Evaluate (2.1³ − 1.9³)/0.2; the error is much smaller than for the forward difference.
Question 3
Approximate f″(1) for f(x) = x⁴ using the second difference with h = 1/2.
Worked solution
Answer: 25/2
Use f(1.5), f(0.5) and f(1) in the second difference.
More Differential Equations & Numerical Methods practice in Ucenly
Sources
Written by Ucenly. Based on the BE5B01DEN course materials:
- Course card BE5B01DEN (Bílá kniha), p. 1
- Lecture slides: Numerical derivation and integration (edens_n2derInt.pdf), p. 1, 2, 3
- Habala: Ordinary Differential Equations and Numerical Analysis (dnbook.pdf), p. 27
- Homework 3 (edenhw03.pdf), p. 1