Numerical Methods
Level: 4 (Application — novel problems, no hints) Time limit: 60 minutes Total marks: 60
Answer all questions. Calculators permitted. Show all working; unsupported answers earn no method marks.
Question 1 — Catastrophic cancellation & conditioning (12 marks)
Consider computing for small , whose exact limit as is .
(a) Working in a hypothetical decimal machine that carries only 6 significant digits, evaluate directly at using (rounded to 6 sig. figs). Report the computed value and the relative error against . (4)
(b) Explain precisely which subtraction causes catastrophic cancellation and estimate how many significant digits are lost. (3)
(c) Derive an algebraically equivalent formula for using a half-angle identity that avoids the cancellation, and re-evaluate at using to 6 sig. figs. (3)
(d) The relative condition number of a function is . Compute at (use the limit) and state whether the problem itself is well-conditioned there, distinguishing this from the algorithm's instability. (2)
Question 2 — Root finding, mixed methods (14 marks)
Let (a classical test equation), which has a single real root near .
(a) Perform 2 iterations of the secant method starting from , . Report and to 5 decimal places. (5)
(b) Perform 1 iteration of Newton–Raphson from . Compare the resulting estimate's accuracy with your from part (a). (3)
(c) Bisection is applied on . Determine the minimum number of iterations required to guarantee the root is located to within an absolute error of . (3)
(d) State the theoretical order of convergence of the secant method and of Newton's method, and explain in one or two sentences why the secant method can still be preferred in practice. (3)
Question 3 — Interpolation & numerical integration (14 marks)
The function values below are sampled from an unknown smooth :
| 0 | 1 | 2 | 3 | |
|---|---|---|---|---|
| 1 | 2 | 5 | 10 |
(a) Construct the Newton divided-difference interpolating polynomial through all four points and simplify it to standard form. (5)
(b) Use the composite Simpson's 1/3 rule with all four intervals-worth of data appropriately (i.e. use nodes for Simpson and handle the remaining subinterval) to estimate . Clearly state how you treat the interval and justify. (5)
(c) Given that a bound holds on , write the error term for the composite Simpson's 1/3 rule over with , and evaluate it for the polynomial you found in (a) (state the value of ). (4)
Question 4 — Linear systems & iterative convergence (10 marks)
Consider the system
(a) Show the coefficient matrix is strictly diagonally dominant, and hence state what this guarantees about the Jacobi and Gauss–Seidel iterations. (3)
(b) Perform 1 iteration of Gauss–Seidel starting from . Report . (5)
(c) State one reason Gauss–Seidel typically converges faster than Jacobi. (2)
Question 5 — ODE integration (10 marks)
Consider the IVP , , on with step .
(a) Take one step of Heun's method (modified Euler) to estimate . Show the predictor and corrector explicitly. (5)
(b) Take one step of the classical RK4 method to estimate (compute ). (5)
Answer keyMark scheme & solutions
Question 1 (12)
(a) With (6 sig figs): . . . Relative error (100%). (1 mark subtraction, 1 mark , 1 mark quotient, 1 mark rel. error.)
(b) The subtraction is the culprit: for small , , which is closer to 1 than 6 digits can resolve. Rounding to retains only ~1 significant digit of the true difference ; the leading matching digits cancel. About 5–6 significant digits are lost (the true difference has magnitude but is represented as ). (2 marks identify subtraction & why, 1 mark digit-loss estimate.)
(c) Half-angle: , so At , , : , so . No cancellation because is computed directly (no near-equal subtraction). (2 marks derivation, 1 mark value.)
(d) (limit), and as (even function, smooth min). Hence . The problem is well-conditioned near (tiny perturbations in barely change ). The 100% error in (a) is purely algorithmic instability (catastrophic cancellation in the chosen formula), not inherent to the problem. (1 mark , 1 mark distinction.)
Question 2 (14)
(a) Secant: . ; . . : , , . ... compute carefully: ; ; . , . (2 marks , 3 marks .)
(b) Newton: , , . . True root . Newton's error ; secant has error . Newton's single step is more accurate than one secant step (it uses exact derivative). (2 marks value+compare, 1 mark reasoning.)
(c) Bisection error after steps . Require , i.e. . , . So iterations. (1 formula, 1 inequality, 1 answer.)
(d) Secant order (superlinear); Newton order (quadratic). Secant is often preferred because it needs no derivative evaluation — each step costs one function evaluation vs Newton's two (f and f'), giving comparable or better efficiency per work unit when derivatives are expensive/unavailable. (1 each order, 1 practical reason.)
Question 3 (14)
(a) Divided differences: . First: . Second: . Third: . Polynomial: . (Check: . ✓) (3 marks DD table, 2 marks simplification.)
(b) Composite Simpson's 1/3 on (nodes , ): Simpson's 1/3 needs an even number of intervals; is a single leftover interval, so use the trapezoidal rule there: Total . (Exact for : . Simpson is exact on giving ; trapezoid over-estimates the quadratic on .) (2 marks Simpson, 2 marks handling with justification, 1 mark total.)
(c) Composite Simpson error over : . For , , so — Simpson's 1/3 is exact for polynomials up to degree 3, consistent with the exact match on . (2 marks error formula, 2 marks with explanation.)
Question 4 (10)
(a) Row 1: . Row 2: . Row 3: . Strictly diagonally dominant. This guarantees both Jacobi and Gauss–Seidel converge for any initial guess. (2 marks checks, 1 mark guarantee.)
(b) Gauss–Seidel (use updated values immediately), : . (2 marks , 1.5 each .)
(c) Gauss–Seidel uses the most recently updated components within the same sweep, so it incorporates new information immediately rather than waiting for the next iteration (as Jacobi does), giving a smaller spectral radius / faster convergence for diagonally dominant systems. (2 marks.)
Question 5 (10)
, , , .
(a) Heun. Predictor (Euler): ; . Corrector slope at : . . (2 predictor, 2 corrector slope, 1 update.)
(b) RK4. . (Exact solution gives .) *(1 each , 1